/* ==========================================================================
   KAWARU — Coming soon
   Mobile-first. Palette: matcha #7A9A5A · off-white #F7F4EC · charcoal text
   Single accent: clay #A3552F
   ========================================================================== */

:root {
  --matcha: #7A9A5A;          /* brand green (decor, illustrations) */
  --matcha-deep: #4B6634;     /* accessible green for buttons/links (AA on off-white & with white text) */
  --matcha-tint: #E6EBDB;     /* soft green surface */
  --cream: #F7F4EC;           /* page background */
  --paper: #FFFDF8;           /* cards */
  --ink: #2A2B27;             /* main text (charcoal) */
  --ink-soft: #5A5B54;        /* secondary text (AA on cream) */
  --line: #E2DDCF;
  --accent: #A3552F;          /* single accent color — clay */

  --font-serif: "Shippori Mincho", "Iowan Old Style", Georgia, serif;
  --font-sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --container: 1120px;
  --space: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--matcha-deep); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }

.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: 1rem; top: -3rem; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 1rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.lead { font-size: clamp(1.08rem, 2.2vw, 1.22rem); color: var(--ink-soft); max-width: 34em; }

/* Visible placeholders — remove the class once content is final */
mark.ph { background: #FFE9A8; color: #3d3200; padding: .1em .35em; border-radius: 4px; font-size: .95em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(247, 244, 236, .9); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo-word { font-family: var(--font-serif); font-weight: 600; font-size: 1.3rem; letter-spacing: .32em; }
.logo-word.small { font-size: 1rem; }
.logo-kanji { font-family: var(--font-serif); font-size: .8rem; color: var(--matcha-deep); letter-spacing: .1em; }
.header-link { font-size: .92rem; font-weight: 500; text-decoration: none; padding: .45rem .9rem; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); }
.header-link:hover { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.hero { padding: 2.5rem 0 var(--space); }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-media { margin: 0; }
.hero-media img { width: 100%; border-radius: 24px; }

/* ---------- Signup form ---------- */
.signup { margin-top: 1.8rem; max-width: 520px; }
.signup--center { margin-inline: auto; }
.signup-row { display: flex; flex-direction: column; gap: .7rem; }
.signup input[type="email"] {
  font: inherit; width: 100%; padding: .95rem 1.1rem; min-height: 52px;
  border: 1.5px solid #CFC9B8; border-radius: 999px; background: var(--paper); color: var(--ink);
}
.signup input[type="email"]::placeholder { color: #8A8A80; }
.signup input[type="email"]:focus { border-color: var(--matcha-deep); outline: none; box-shadow: 0 0 0 4px rgba(122, 154, 90, .25); }
.btn {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 52px; padding: .9rem 1.5rem;
  border: 0; border-radius: 999px; background: var(--matcha-deep); color: #fff; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #3C5329; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.form-note { font-size: .85rem; color: var(--ink-soft); margin: .8rem 0 0; }
.form-status { font-size: .95rem; font-weight: 500; margin: .5rem 0 0; min-height: 1.5em; }
.form-status.is-success { color: var(--matcha-deep); }
.form-status.is-error { color: #9B2C1C; }

/* ---------- Sections ---------- */
.section { padding: var(--space) 0; }

/* Kit */
.kit { background: var(--paper); border-block: 1px solid var(--line); }
.kit-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; }
.kit-item { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.kit-item img { width: 56px; height: 56px; margin-bottom: 1rem; }
.kit-item h3 { margin-bottom: .35rem; }
.kit-item p { margin: 0; color: var(--ink-soft); }
.jp { font-family: var(--font-sans); font-size: .85rem; font-weight: 400; color: var(--ink-soft); }
.materials { margin-top: 2rem; font-size: .95rem; color: var(--ink-soft); }

/* Benefits */
.benefit-grid { display: grid; gap: 2.2rem; margin-top: 2.5rem; }
.benefit { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.benefit-num { display: block; font-family: var(--font-serif); color: var(--accent); font-size: .95rem; margin-bottom: .8rem; }
.benefit p { color: var(--ink-soft); margin: 0; }

/* Steps */
.steps { background: var(--matcha-tint); }
.step-list { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: 1.25rem; counter-reset: none; }
.step { background: var(--paper); border-radius: var(--radius); padding: 1.6rem; }
.step img { width: 84px; height: 84px; margin-bottom: 1rem; }
.step h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.step-n {
  display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--matcha-deep); color: #fff; font-family: var(--font-sans); font-size: .85rem; font-weight: 600;
}
.step p { margin: 0; color: var(--ink-soft); }

/* Story */
.story-grid { display: grid; gap: 2.5rem; align-items: center; }
.story-media { margin: 0; }
.story-media img { width: 100%; border-radius: 24px; }
.story-copy p { color: var(--ink-soft); max-width: 34em; }
.kanji-inline { font-family: var(--font-serif); color: var(--matcha-deep); font-size: 1.15em; margin-right: .2em; }

/* FAQ */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-list { margin-top: 2rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.3rem 2.5rem 1.3rem 0; position: relative;
  font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--ink-soft); padding-right: 2rem; margin-bottom: 1.4rem; }

/* CTA */
.cta { text-align: center; }
.cta .lead { margin-inline: auto; }
.cta-kanji { display: block; font-family: var(--font-serif); font-size: 3rem; color: var(--matcha); line-height: 1; margin-bottom: 1rem; }
.amazon-note {
  display: inline-block; margin-top: 2rem; font-size: .8rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem;
}

/* Footer */
.site-footer { background: var(--ink); color: #D9D6CC; padding: 3rem 0; }
.footer-inner { display: grid; gap: 1.2rem; justify-items: start; }
.site-footer a { color: #EDEAE0; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .92rem; }
.copyright { margin: 0; font-size: .85rem; color: #B9B6AC; }

/* Legal pages */
.legal { padding: 3rem 0 var(--space); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .updated { font-size: .9rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .signup-row { flex-direction: row; background: var(--paper); border: 1.5px solid #CFC9B8; border-radius: 999px; padding: 5px; }
  .signup-row:focus-within { border-color: var(--matcha-deep); box-shadow: 0 0 0 4px rgba(122, 154, 90, .25); }
  .signup input[type="email"] { border: 0; background: transparent; min-height: 46px; }
  .signup input[type="email"]:focus { box-shadow: none; }
  .btn { min-height: 46px; }
  .kit-list { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .hero { padding-top: 4rem; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 4rem; }
  .kit-list { grid-template-columns: repeat(4, 1fr); }
  .benefit-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .step-list { grid-template-columns: repeat(4, 1fr); }
  .story-grid { grid-template-columns: 1fr 1fr; gap: 5rem; }
  .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-inner nav { justify-self: center; }
}
