@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --mint: #b4fde1;
  --fog: #add8e6;
  --ink: #172620;
  --ink2: #1f3329;
  --mint-dark: #7be8c0;
  --fog-dark: #7dbcd6;
  --white: #f4fef9;
  --card-bg: #e8fef4;
  --radius: 18px;
  --radius-sm: 12px;
  --border: 3px solid var(--ink);
  --shadow-out: 4px 4px 0px var(--ink);
  --shadow-in: inset -2px -2px 6px rgba(23,38,32,0.12);
  --shadow-card: 4px 4px 0 var(--ink), inset -1px -1px 6px rgba(23,38,32,0.08);
  --font-main: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 110px;
  --transition: 200ms cubic-bezier(0.34,1.56,0.64,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body.clay-body {
  font-family: var(--font-main);
  background: var(--ink);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== SCROLL MARGIN FOR ANCHOR SECTIONS ===== */
div[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* ===== PAGE WRAPPER ===== */
.page-wrapper {
  background: var(--white);
  min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mint);
  border-bottom: var(--border);
  box-shadow: 0 4px 0 var(--ink);
}

.header-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 24px 6px;
  border-bottom: 2px solid rgba(23,38,32,0.15);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-link:hover { text-decoration: none; }

.brand-logo-img {
  border-radius: 8px;
  border: 2px solid var(--ink);
}

.brand-name {
  background: var(--ink);
  color: var(--mint);
  padding: 2px 10px;
  border-radius: 8px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.8rem;
  color: var(--ink2);
  opacity: 0.75;
  font-weight: 500;
}

.header-contact {
  font-size: 0.82rem;
  color: var(--ink2);
}

.header-contact a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
}

/* ===== NAV: header > nav > p > a ===== */
.site-nav {
  padding: 0 24px;
}

.site-nav p {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  padding: 6px 0;
}

.site-nav p a {
  display: inline-block;
  padding: 7px 14px;
  min-height: 40px;
  line-height: 1.4;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.site-nav p a:hover {
  background: var(--ink);
  color: var(--mint);
  border-color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  min-height: 45vh;
  background: linear-gradient(135deg, var(--fog) 0%, var(--mint) 60%, var(--mint-dark) 100%);
  border-bottom: var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23,38,32,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23,38,32,0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px;
}

.hero-copy {
  flex: 1;
  max-width: 520px;
  text-align: left;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ink2);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 400px;
}

.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  min-height: 48px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mint);
  background: var(--ink);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-out);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.clay-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink2);
  text-decoration: none;
}

.clay-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink2);
}

.hero-media {
  flex: 0 0 auto;
  position: relative;
  width: 340px;
  height: 260px;
}

.hero-card {
  position: absolute;
  border: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--card-bg);
}

.hero-card-1 {
  width: 220px;
  height: 165px;
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-3deg);
}

.hero-card-2 {
  width: 190px;
  height: 145px;
  bottom: 0;
  right: 0;
  z-index: 3;
  transform: rotate(2.5deg);
}

.hero-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, var(--mint) 0%, var(--fog) 100%);
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== CONTENT SHELL: main+aside ===== */
.content-shell {
  display: flex;
  gap: 28px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  align-items: flex-start;
}

/* ===== MAIN: main > section > div ===== */
.site-main {
  flex: 1;
  min-width: 0;
}

.main-article {
  /* section direct child of main */
}

.page-content-section {
  /* div direct child of section */
}

/* ===== CONTENT PROSE STYLES ===== */
.page-content-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 40px 0 8px;
  letter-spacing: -0.02em;
}

.page-content-section h2 + hr {
  border: none;
  border-top: 3px solid var(--ink);
  margin: 0 0 20px;
  border-radius: 2px;
}

.page-content-section h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink2);
  margin: 28px 0 10px;
}

.page-content-section h3 + hr {
  border: none;
  border-top: 2px solid var(--mint-dark);
  margin: 0 0 16px;
  border-radius: 2px;
}

.page-content-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: #1a2e24;
  margin-bottom: 14px;
}

.page-content-section ul,
.page-content-section ol {
  margin: 0 0 16px 20px;
  padding: 0;
}

.page-content-section ul { list-style: disc; }
.page-content-section ol { list-style: decimal; }

.page-content-section li {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 6px;
}

.page-content-section a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content-section a:hover { color: var(--fog-dark); }

/* Section blocks inside content */
.page-content-section div {
  background: var(--card-bg);
  border: var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 20px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease-out;
}

.page-content-section div:hover {
  transform: translateY(-3px);
}

/* hr in content */
.page-content-section hr {
  border: none;
  border-top: 2px solid rgba(23,38,32,0.15);
  margin: 24px 0;
}

/* ===== ASIDE ===== */
.site-aside {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

.aside-card {
  background: var(--mint);
  border: var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.aside-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.aside-card hr {
  border: none;
  border-top: 2px solid var(--ink);
  margin: 0 0 12px;
}

.aside-card ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aside-card ul li a {
  display: block;
  padding: 6px 10px;
  min-height: 36px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition), border-color var(--transition);
  display: flex;
  align-items: center;
}

.aside-card ul li a:hover {
  background: var(--ink);
  color: var(--mint);
  border-color: var(--ink);
  text-decoration: none;
}

.aside-tip {
  background: var(--fog);
}

.aside-tip p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink2);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: var(--mint);
  border-top: var(--border);
  margin-top: 60px;
  padding: 48px 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fog);
  margin-bottom: 14px;
  font-family: var(--font-mono);
}

.footer-col address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(180,253,225,0.75);
}

.footer-col address a {
  color: var(--mint);
  text-decoration: underline;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(180,253,225,0.8);
  display: flex;
  align-items: center;
  min-height: 32px;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: var(--mint);
  text-decoration: none;
}

.footer-age {
  margin-top: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fog);
}

.footer-bottom {
  border-top: 1px solid rgba(180,253,225,0.2);
  padding: 20px 0;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(180,253,225,0.5);
  line-height: 1.6;
}

/* ===== SCROLL REVEAL ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }

  .hero-card-1 {
    animation: clay-float-1 4s ease-in-out infinite;
  }
  .hero-card-2 {
    animation: clay-float-2 4.5s ease-in-out infinite 0.6s;
  }
}

@keyframes clay-float-1 {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-8px); }
}

@keyframes clay-float-2 {
  0%, 100% { transform: rotate(2.5deg) translateY(0); }
  50% { transform: rotate(2.5deg) translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-media {
    width: 260px;
    height: 200px;
  }

  .hero-card-1 { width: 170px; height: 130px; }
  .hero-card-2 { width: 150px; height: 115px; }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 130px;
  }

  .header-brand-row {
    padding: 10px 16px 6px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .site-nav { padding: 0 12px; }

  .site-nav p {
    gap: 3px;
    padding: 4px 0;
  }

  .site-nav p a {
    padding: 6px 10px;
    font-size: 0.82rem;
    min-height: 40px;
  }

  .hero-inner {
    flex-direction: column;
    padding: 32px 20px;
    gap: 24px;
  }

  .hero-copy { max-width: 100%; }

  .hero-media {
    width: 100%;
    height: 180px;
    position: relative;
  }

  .hero-card-1 {
    width: 160px;
    height: 120px;
    top: 0;
    left: 10px;
  }

  .hero-card-2 {
    width: 140px;
    height: 108px;
    bottom: 0;
    right: 10px;
  }

  .content-shell {
    flex-direction: column;
    padding: 0 16px;
    gap: 20px;
    margin: 24px auto;
  }

  .site-aside {
    position: static;
    flex: none;
    width: 100%;
  }

  .page-content-section div {
    padding: 20px 16px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .brand-tagline { display: none; }

  .hero-h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 0.95rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .site-nav p a { font-size: 0.78rem; padding: 6px 8px; }
}
