/* ==========================================================
   Minchi waitlist — styles
   Palette from the brand brief. Fonts are bundled locally.
   ========================================================== */

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F6EFE5;
  --sand: #E4C5A2;
  --chestnut: #A95F3F;
  --chestnut-text: #8C4A30; /* darker chestnut so small text passes contrast */
  --cocoa: #49352E;
  --clay: #C98263;
  --ink: #2A2421;
  --ink-soft: #5A4C45;
  --white: #FFFDFC;
  --line: #E6D9C8;

  --font-display: "Nunito", ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(73, 53, 46, 0.06), 0 10px 30px -12px rgba(73, 53, 46, 0.22);
  --shadow-lift: 0 2px 4px rgba(73, 53, 46, 0.07), 0 18px 40px -14px rgba(73, 53, 46, 0.3);
  --wrap: 1120px;
  --header-h: 64px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--cream);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .21 0 0 0 0 .18 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0; }

a { color: var(--cocoa); text-underline-offset: 3px; }
a:hover { color: var(--chestnut-text); }

:focus-visible {
  outline: 3px solid var(--cocoa);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -100px;
  background: var(--cocoa); color: var(--white);
  padding: 10px 16px; border-radius: 10px; z-index: 100;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) { .wrap { padding: 0 32px; } }

.display {
  font-family: var(--font-display);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2.display { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }

.body-lg { font-size: 1.1875rem; color: var(--ink-soft); }
.fine { font-size: 0.9375rem; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--chestnut-text);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font: 700 1rem/1.2 var(--font-display);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--cocoa); color: var(--white); box-shadow: 0 6px 18px -8px rgba(73,53,46,.6); }
.btn-primary:hover { background: #3A2A24; color: var(--white); }
.btn-ghost { background: transparent; color: var(--cocoa); border-color: rgba(73,53,46,.35); }
.btn-ghost:hover { background: rgba(255,253,252,.7); border-color: var(--cocoa); color: var(--cocoa); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }
.btn-block { width: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translateY(-1px); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 229, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  color: var(--cocoa);
  text-decoration: none;
}
.header-nav { display: none; }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.header-nav a {
  font-size: .9375rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  padding: 6px 2px;
}
.header-nav a:hover { color: var(--cocoa); text-decoration: underline; }
@media (min-width: 860px) {
  .header-nav { display: block; margin-left: auto; margin-right: 12px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }

.hero-inner { position: relative; }
.hero-copy { padding: 40px 0 28px; max-width: 520px; }
.hero h1 { font-size: clamp(2.9rem, 1.8rem + 4.6vw, 5rem); margin-bottom: 16px; }
.hero .lede { font-size: clamp(1.15rem, 1rem + .6vw, 1.375rem); color: var(--ink-soft); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.hero .fine { max-width: 40ch; }

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  order: 2;
}
.hero-media picture, .hero-img {
  position: absolute; inset: -4px 0;
  width: 100%; height: calc(100% + 8px);
}
.hero-img { object-fit: cover; object-position: 78% 50%; }

/* Mobile: copy first, image below */
.hero { display: flex; flex-direction: column; }
.hero-inner { order: 1; }

/* Desktop: copy sits in the image's empty left space */
@media (min-width: 900px) {
  .hero { display: block; min-height: min(78vh, 720px); }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-img { object-position: 64% 50%; }
  .hero-inner { min-height: min(78vh, 720px); display: flex; align-items: center; }
  .hero-copy { padding: 64px 0; max-width: 44%; }
}
@media (min-width: 1500px) {
  .hero-copy { max-width: 520px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media picture { animation: float 7s ease-in-out infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 900px) { .section { padding: 112px 0; } }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head .body-lg { margin-top: 14px; }

/* Intro */
.intro-head { max-width: 680px; }
.intro-head .body-lg { margin-top: 18px; }
.values {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; gap: 32px;
}
@media (min-width: 760px) { .values { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.value { border-top: 1px solid var(--line); padding-top: 24px; }
.value-icon {
  width: 32px; height: 32px; margin-bottom: 14px;
  fill: none; stroke: var(--chestnut); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.value h3 { font: 750 1.1875rem/1.3 var(--font-display); margin-bottom: 6px; }
.value p { color: var(--ink-soft); }

/* Poses */
.poses { background: var(--white); border-block: 1px solid var(--line); }
.pose-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 24px;
  max-width: 420px; margin-inline: auto;
}
@media (min-width: 640px) {
  .pose-grid { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 20px; }
}
@media (min-width: 960px) { .pose-grid { gap: 32px; } }

.pose-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
  box-shadow: 0 0 0 1.5px transparent, var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pose-img-wrap {
  aspect-ratio: 6 / 5;
  display: grid; place-items: center;
  margin-bottom: 14px;
  background: radial-gradient(closest-side, rgba(228,197,162,.55), rgba(228,197,162,0) 75%);
}
.pose-img-wrap picture { width: 100%; height: 100%; }
.pose-img { width: 100%; height: 100%; object-fit: contain; }
.pose-name { font: 750 1.375rem/1.25 var(--font-display); margin-bottom: 6px; }
.pose-card > p { color: var(--ink-soft); margin-bottom: 18px; flex: 1; }

.pose-select {
  display: inline-flex; align-items: center; gap: 10px;
  align-self: flex-start;
  min-height: 44px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  border: 1.5px solid rgba(73,53,46,.3);
  background: var(--white);
  color: var(--cocoa);
  font: 700 .9375rem/1 var(--font-display);
  cursor: pointer;
}
/* Whole card is clickable via the button */
.pose-select::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.pose-select:focus-visible { outline: none; }
.pose-select:focus-visible::after { outline: 3px solid var(--cocoa); outline-offset: 3px; }

.pose-check {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid rgba(73,53,46,.35);
  display: grid; place-items: center;
  background: var(--white);
  transition: background-color .2s ease, border-color .2s ease;
}
.pose-check::before {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid var(--white); border-bottom: 2px solid var(--white);
  transform: translateY(-1px) rotate(-45deg);
  opacity: 0;
}
.pose-card.is-selected { box-shadow: 0 0 0 2px var(--cocoa), var(--shadow-lift); }
.pose-card.is-selected .pose-select { border-color: var(--cocoa); }
.pose-card.is-selected .pose-check { background: var(--cocoa); border-color: var(--cocoa); }
.pose-card.is-selected .pose-check::before { opacity: 1; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pose-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1.5px rgba(73,53,46,.12), var(--shadow-lift); }
  .pose-card.is-selected:hover { box-shadow: 0 0 0 2px var(--cocoa), var(--shadow-lift); }
}

.pose-status { text-align: center; margin-top: 28px; min-height: 1.6em; color: var(--ink-soft); }

/* Story */
.story-inner { display: grid; gap: 40px; }
.story-copy { max-width: 620px; }
.story-copy .body-lg { margin: 18px 0 14px; }
.social-links { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.social-links a { font-weight: 600; }
.social-links .handle { font-weight: 400; color: var(--ink-soft); margin-left: 4px; }

.story-figure { margin: 0; }
.story-figure picture {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.story-figure figcaption { margin-top: 12px; font-size: .875rem; color: var(--ink-soft); }

/* Join */
.join { background: linear-gradient(180deg, rgba(228,197,162,.28), rgba(228,197,162,.08)); border-top: 1px solid var(--line); }
.join-inner { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) {
  .join-inner { grid-template-columns: 1fr 1.05fr; gap: 64px; }
  .join-copy { padding-top: 24px; }
}
.join-copy .body-lg { margin-top: 18px; max-width: 46ch; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
@media (min-width: 640px) { .form-card { padding: 36px; } }

.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend {
  display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 8px; color: var(--ink);
  padding: 0;
}
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  font: inherit; color: var(--ink);
  background: var(--cream);
  border: 1.5px solid #D9C7B2;
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, background-color .15s ease;
}
.field input:hover { border-color: #C4AE96; }
.field input:focus { outline: none; border-color: var(--cocoa); background: var(--white); box-shadow: 0 0 0 3px rgba(73,53,46,.15); }
.field input[aria-invalid="true"] { border-color: #A3402A; }

.pose-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pose-option { position: relative; margin: 0 !important; }
.pose-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pose-option span {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #D9C7B2;
  background: var(--cream);
  font: 700 1rem/1 var(--font-display);
  color: var(--cocoa);
  transition: all .15s ease;
}
.pose-option input:hover + span { border-color: #C4AE96; }
.pose-option input:checked + span { background: var(--cocoa); border-color: var(--cocoa); color: var(--white); }
.pose-option input:focus-visible + span { outline: 3px solid var(--cocoa); outline-offset: 3px; }
.pose-field[aria-invalid="true"] .pose-option span { border-color: #A3402A; }

.field-error, .form-error {
  margin-top: 8px; font-size: .9375rem; font-weight: 600; color: #A3402A;
}
.form-error { margin: 0 0 16px; padding: 12px 14px; background: #FBEDE7; border-radius: var(--radius-sm); }

.submit-btn { margin-top: 4px; min-height: 54px; font-size: 1.0625rem; }
.submit-btn[disabled] { opacity: .85; cursor: progress; transform: none; }
.form-note { margin-top: 14px; text-align: center; font-size: .875rem; }

.curl-loader { display: none; width: 20px; height: 20px; }
.curl-loader svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.is-submitting .curl-loader { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .is-submitting .curl-loader { animation: curl 1.1s linear infinite; }
}
@keyframes curl { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 20px 4px; }
.form-success:focus { outline: none; }
.success-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 18px; box-shadow: var(--shadow); }
.success-title { font-size: 1.625rem; margin-bottom: 10px; }

/* FAQ */
.faq-inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .faq-inner { grid-template-columns: 1fr 2fr; gap: 64px; } }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 2px;
  cursor: pointer;
  font: 700 1.125rem/1.35 var(--font-display);
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--cocoa); border-bottom: 2px solid var(--cocoa);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--chestnut-text); }
.faq details p { padding: 0 2px 22px; color: var(--ink-soft); max-width: 62ch; }

/* Footer */
.site-footer { background: var(--cocoa); color: #EADBC9; padding: 56px 0 40px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--sand); }
.site-footer :focus-visible { outline-color: var(--sand); }
.footer-inner { display: grid; gap: 28px; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}
.site-footer .wordmark { color: var(--white); margin-bottom: 6px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-legal { border-top: 1px solid rgba(234,219,201,.2); padding-top: 22px; font-size: .875rem; display: grid; gap: 4px; }

/* Simple pages (thanks, 404, privacy) */
.simple-page { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 56px 0; }
.simple-card { max-width: 560px; text-align: center; }
.simple-card img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 28px; box-shadow: var(--shadow); }
.simple-card h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 14px; }
.simple-card p { color: var(--ink-soft); margin-bottom: 28px; }
.prose { max-width: 680px; padding: 56px 0 96px; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: 20px; }
.prose h2 { font: 750 1.25rem/1.3 var(--font-display); margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose p + p { margin-top: 12px; }
.note { background: #FBEDE7; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9375rem; }

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