/* ============================================================
   Wooden-Pixel Studios — wooden-pixel.com
   Palette and type are derived from the studio logo lockups:
   deep bark browns, spotlit wood tones, honey accent, cream text.
   ============================================================ */

:root {
  /* Core palette */
  --ink:        #1A1109;
  --bark:       #2E2015;
  --bark-2:     #3B2718;
  --bark-3:     #4A3222;
  --wood:       #8B5E34;
  --wood-light: #C08B4E;
  --tan:        #D9A05B;
  --honey:      #E9A44A;
  --honey-deep: #C97F22;
  --cream:      #F6EAD8;
  --cream-dim:  #D9C7AD;
  --parchment:  #FBF4E9;
  --parchment-2:#F2E6D3;
  --cocoa:      #4A2E1A;
  --cocoa-dim:  #6E543C;

  /* Type */
  --display: "Bitter", Georgia, "Times New Roman", serif;
  --body:    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --pixel:   "Press Start 2P", "Courier New", monospace;

  /* Layout */
  --wrap: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 14px;
  --section-y: clamp(4rem, 9vw, 7.5rem);
}

/* ── Reset ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bark);
  color: var(--cream);
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 1.6rem + 3.4vw, 4.15rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.9rem); margin-bottom: 0.45em; }
h3 { font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem); }
h4 { font-size: 0.95rem; letter-spacing: 0.02em; }

p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

::selection { background: var(--honey); color: var(--ink); }

/* ── Utilities ─────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 0.5rem; top: -4rem; z-index: 200;
  background: var(--honey); color: var(--ink);
  padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 700; text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0.5rem; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: var(--pixel);
  font-size: clamp(0.5rem, 0.42rem + 0.28vw, 0.66rem);
  line-height: 1.9;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--honey);
  margin: 0 0 1.35em;
}
.eyebrow-dark { color: var(--honey-deep); }

.lede, .section-lede {
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.28rem);
  color: var(--cream-dim);
  max-width: 62ch;
}
.section-light .section-lede { color: var(--cocoa-dim); }

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.85rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--honey);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 0 0 var(--honey-deep);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { background: #F2B25C; transform: translateY(-2px); box-shadow: 0 6px 0 0 var(--honey-deep); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 0 var(--honey-deep); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: 0 4px 0 0 var(--honey-deep); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; box-shadow: 0 3px 0 0 var(--honey-deep); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ── Header ────────────────────────────────────────────────── */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26, 17, 9, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(217, 160, 91, 0.18);
}

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.4rem;
}

.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; margin-right: auto;
}
.brand-cube { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1; }
.brand-name {
  font-family: var(--display); font-weight: 800;
  font-size: 1.08rem; letter-spacing: 0.01em; color: var(--cream);
}
.brand-sub {
  font-family: var(--body); font-weight: 700;
  font-size: 0.66rem; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--tan); margin-top: 0.28rem;
}

.site-nav { display: flex; align-items: center; gap: clamp(0.75rem, 1.6vw, 1.6rem); }
.site-nav a {
  text-decoration: none; font-weight: 700; font-size: 0.95rem;
  color: var(--cream-dim); white-space: nowrap;
}
.site-nav a:hover { color: var(--honey); }
.site-nav a.btn { color: var(--ink); }
.site-nav a.btn:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 2px solid rgba(217,160,91,.35);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 20px; height: 2.5px; background: var(--cream);
  margin-inline: auto; border-radius: 2px; transition: transform .18s ease, opacity .18s ease;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: relative; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 3.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { top: -2.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { top: -5px;   transform: rotate(-45deg); }

/* ── Hero ──────────────────────────────────────────────────── */

.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(233,164,74,.20) 0%, rgba(233,164,74,0) 55%),
    linear-gradient(180deg, #241708 0%, var(--bark) 60%, #33230f 100%);
  overflow: hidden;
}
.hero::before {
  /* faint wood-grain texture */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(
    92deg,
    rgba(217,160,91,.035) 0px, rgba(217,160,91,.035) 1px,
    transparent 1px, transparent 11px
  );
  opacity: .5;
}

.hero-inner {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}

.hero h1 { margin-bottom: 0.4em; color: #FFF3E0; }
.h1-sub {
  display: block; margin-top: 0.35em;
  font-size: clamp(1rem, 0.7rem + 1.15vw, 1.55rem);
  font-weight: 600; letter-spacing: 0.01em; color: var(--tan);
}

.hero-art { position: relative; }
.hero-art img {
  width: 100%; border-radius: 20px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.7);
  border: 1px solid rgba(217,160,91,.18);
}

.motto-strip {
  position: relative;
  border-top: 1px solid rgba(217,160,91,.2);
  border-bottom: 1px solid rgba(217,160,91,.2);
  background: rgba(0,0,0,.22);
}
.motto-strip p {
  margin: 0; padding-block: 1.1rem;
  text-align: center;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.6rem);
  letter-spacing: 0.02em; color: var(--cream);
}
.motto-strip span { color: var(--honey); }

/* ── Sections ──────────────────────────────────────────────── */

.section { padding-block: var(--section-y); }

.section-dark {
  background: linear-gradient(180deg, var(--bark) 0%, #271A0F 100%);
  color: var(--cream);
}
.section-light {
  background: var(--parchment);
  color: var(--cocoa);
}
.section-light h2, .section-light h3 { color: var(--cocoa); }

/* ── Feature grid ──────────────────────────────────────────── */

.feature-grid {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid rgba(74,46,26,.14);
  border-top: 4px solid var(--wood-light);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 2px 0 rgba(74,46,26,.06), 0 14px 30px -22px rgba(74,46,26,.5);
}
.card p { color: var(--cocoa-dim); margin-bottom: 0; font-size: 0.98rem; }
.card strong { color: var(--cocoa); }
.card em { color: var(--cocoa); font-style: italic; }

/* ── Hero character cards ──────────────────────────────────── */

.hero-cards {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.hero-card {
  display: flex; gap: 1.5rem; align-items: stretch;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(217,160,91,.22);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.hero-card > div { flex: 1; display: flex; flex-direction: column; }
.hero-card h3 { color: var(--honey); margin-bottom: 0.25em; }
.hero-card p { color: var(--cream-dim); font-size: 0.98rem; }
.hero-card .role {
  font-weight: 700; font-size: 0.83rem; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--tan); margin-bottom: 0.9em;
}
.hero-card .portrait {
  width: 118px; flex: none; align-self: flex-start;
  image-rendering: pixelated;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
}
.hero-card .lesson {
  margin-top: auto; padding-top: 1.1em;
  border-top: 1px dashed rgba(217,160,91,.3);
  font-size: 0.95rem; color: var(--cream);
}
.hero-card .lesson span {
  display: block;
  font-family: var(--pixel); font-size: 0.5rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--honey); margin-bottom: 0.7em;
}

/* ── Lagoon grid ───────────────────────────────────────────── */

.lagoon-grid {
  list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0;
  display: grid; gap: 1.15rem;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  counter-reset: none;
}

.lagoon-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(74,46,26,.14);
  border-left: 5px solid var(--biome, var(--wood-light));
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.5rem 1.6rem;
  box-shadow: 0 14px 28px -24px rgba(74,46,26,.6);
}
.lagoon-num {
  display: inline-block;
  font-family: var(--pixel); font-size: 0.62rem;
  color: var(--biome, var(--wood));
  margin-bottom: 1rem;
}
.lagoon-card h3 { margin-bottom: 0.35em; }
.lagoon-card p { margin: 0; font-size: 0.95rem; color: var(--cocoa-dim); }
.lagoon-card-final {
  background: linear-gradient(180deg, #efe3d2 0%, #e8dac6 100%);
  border-style: dashed;
  border-left-style: solid;
}

/* ── Studio ────────────────────────────────────────────────── */

.section-studio {
  background:
    radial-gradient(90% 70% at 15% 10%, rgba(233,164,74,.14) 0%, rgba(233,164,74,0) 60%),
    linear-gradient(180deg, #271A0F 0%, var(--bark-2) 100%);
}
.studio-inner {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
.studio-art { position: sticky; top: 6rem; }
.studio-art img {
  border-radius: var(--radius);
  border: 1px solid rgba(217,160,91,.2);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
}
.studio-copy p { color: var(--cream-dim); }

.pillars { list-style: none; margin: 2rem 0; padding: 0; display: grid; gap: 0.85rem; }
.pillars li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.98rem; color: var(--cream-dim);
}
.pillars li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 11px; height: 11px; background: var(--honey);
  transform: rotate(45deg); border-radius: 2px;
}
.pillars strong {
  display: block; color: var(--cream);
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
}

blockquote {
  margin: 0; padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--honey);
  background: rgba(0,0,0,.22);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--display); font-size: 1.08rem;
  font-style: italic; line-height: 1.55; color: var(--cream);
}

/* ── What's next ───────────────────────────────────────────── */

.next-grid {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.next-card {
  background: #fff;
  border: 1px solid rgba(74,46,26,.14);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: 0 14px 30px -24px rgba(74,46,26,.6);
}
.next-card p { color: var(--cocoa-dim); font-size: 0.97rem; margin-bottom: 0; }
.next-card .tag {
  display: inline-block;
  font-family: var(--pixel); font-size: 0.5rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--honey-deep);
  border: 1px solid rgba(201,127,34,.35);
  border-radius: 999px; padding: 0.45rem 0.7rem;
  margin-bottom: 1.1rem;
}

.next-card-feature {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0; padding: 0; overflow: hidden;
}
.next-card-feature img { height: 100%; object-fit: cover; }
.next-card-feature .next-card-body { padding: 1.75rem; align-self: center; }

/* ── Signup ────────────────────────────────────────────────── */

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.signup-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  max-width: 34rem;
  margin-top: 2rem;
}
.signup-inline input[type="email"] {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border: 2px solid rgba(217,160,91,.4);
  border-radius: 10px;
  background: rgba(0,0,0,.3);
  color: var(--cream);
}
.signup-inline input::placeholder { color: rgba(246,234,216,.42); }
.signup-inline .form-note,
.signup-inline .form-status { grid-column: 1 / -1; }

.form-note {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: rgba(246,234,216,.6);
}
.form-note a { color: var(--tan); }

.form-status { margin: 0; font-size: 0.95rem; font-weight: 700; min-height: 0; }
.form-status:empty { display: none; }
.form-status[data-state="ok"]   { color: #9FD98A; }
.form-status[data-state="error"]{ color: #F5A38C; }

.section-signup {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(233,164,74,.22) 0%, rgba(233,164,74,0) 60%),
    linear-gradient(180deg, var(--bark-2) 0%, var(--ink) 100%);
  border-top: 1px solid rgba(217,160,91,.2);
}
.signup-wrap { max-width: 46rem; text-align: center; }
.signup-wrap .section-lede { margin-inline: auto; }

.signup-full {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  text-align: left;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(217,160,91,.24);
  border-radius: 18px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.field-full { grid-column: 1 / -1; }

.signup-full label {
  display: block;
  font-weight: 700; font-size: 0.9rem;
  margin-bottom: 0.45rem; color: var(--cream);
}
.optional { font-weight: 400; color: rgba(246,234,216,.55); }

.signup-full input[type="text"],
.signup-full input[type="email"],
.signup-full select {
  width: 100%;
  font: inherit;
  padding: 0.8rem 0.95rem;
  border: 2px solid rgba(217,160,91,.4);
  border-radius: 10px;
  background: rgba(0,0,0,.3);
  color: var(--cream);
}
.signup-full input::placeholder { color: rgba(246,234,216,.4); }
.signup-full select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--tan) 50%),
                    linear-gradient(135deg, var(--tan) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}
.signup-full option { background: var(--bark-2); color: var(--cream); }

.field.check { display: flex; align-items: flex-start; gap: 0.7rem; }
.field.check input { width: 20px; height: 20px; flex: none; margin-top: 0.2rem; accent-color: var(--honey); }
.field.check label { margin: 0; font-weight: 600; font-size: 0.92rem; }

.signup-full .btn { width: 100%; }
.signup-full .form-note { margin-top: 0.9rem; text-align: center; }
.signup-full .form-status { margin-top: 0.9rem; text-align: center; }

input[aria-invalid="true"] { border-color: #E8836A !important; }

/* ── Footer ────────────────────────────────────────────────── */

.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(217,160,91,.16);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  font-size: 0.94rem;
}
.footer-logo {
  width: 190px; border-radius: 12px;
  border: 1px solid rgba(217,160,91,.15);
  margin-bottom: 2rem;
}
.footer-cols {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(217,160,91,.14);
}
.footer-cols h4 {
  font-family: var(--body); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 0.72rem; color: var(--honey); margin-bottom: 0.9rem;
}
.footer-cols p, .footer-cols a { color: var(--cream-dim); margin: 0 0 0.5rem; }
.footer-cols nav { display: grid; gap: 0.5rem; }
.footer-cols nav a { text-decoration: none; }
.footer-cols a:hover { color: var(--honey); }
.colophon {
  margin: 1.75rem 0 0;
  font-size: 0.82rem; line-height: 1.6;
  color: rgba(246,234,216,.42);
  max-width: 68ch;
}

/* ── Privacy / prose page ──────────────────────────────────── */

.prose {
  max-width: 44rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); margin-bottom: 0.6em; }
.prose h2 { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.55rem); margin-top: 2.2em; }
.prose p, .prose li { color: var(--cream-dim); }
.prose ul { padding-left: 1.2rem; display: grid; gap: 0.5rem; margin-bottom: 1.5em; }
.prose a { color: var(--honey); }
.prose .updated { font-size: 0.9rem; color: rgba(246,234,216,.5); }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 380px; margin-inline: auto; }
  .studio-inner { grid-template-columns: 1fr; }
  .studio-art { max-width: 300px; position: static; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(217,160,91,.2);
    padding: 0.5rem var(--gutter) 1.25rem;
  }
  .site-nav[data-open] { display: flex; }
  /* Pages with no hamburger (privacy) keep their single button inline. */
  .site-nav-simple {
    display: flex; position: static; flex-direction: row;
    background: none; border: 0; padding: 0;
  }
  .site-nav-simple a { padding: 0.5rem 1rem; border-bottom: 0; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid rgba(217,160,91,.12); }
  .site-nav a.btn { margin-top: 1rem; text-align: center; border-bottom: 2px solid var(--ink); }
  .header-inner { position: relative; }
}

@media (max-width: 620px) {
  .signup-inline { grid-template-columns: 1fr; }
  .signup-full { grid-template-columns: 1fr; }
  .feature-grid, .next-grid { grid-template-columns: 1fr; }
  .hero-card { flex-direction: column; gap: 1rem; }
  .hero-card .portrait { width: 92px; }
  .next-card-feature { grid-template-columns: 1fr; }
  .next-card-feature img { aspect-ratio: 16 / 10; }
}

/* ── Motion ────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
