/* BLESS MATCHA — Japanese premium × global modern.
   Colour tokens come from /css/tokens.css (generated from src/config.js). */

@font-face { font-family: "Zen Old Mincho"; font-weight: 500; font-display: swap; src: url(/fonts/zen-old-mincho-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Zen Old Mincho"; font-weight: 700; font-display: swap; src: url(/fonts/zen-old-mincho-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 400; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 500; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Zen Kaku Gothic New"; font-weight: 700; font-display: swap; src: url(/fonts/zen-kaku-gothic-new-latin-700-normal.woff2) format("woff2"); }

:root {
  --serif: "Zen Old Mincho", "Iowan Old Style", Georgia, serif;
  --sans: "Zen Kaku Gothic New", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.3rem, 1.4rem + 4vw, 4.25rem);
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 6px;
  --focus: 3px solid var(--matcha);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--step-0); line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--matcha-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: var(--focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; letter-spacing: 0.005em; }
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.35; }
p { margin: 0 0 1em; max-width: 68ch; }
.small { font-size: var(--step--1); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--paper); padding: 0.6rem 1rem; z-index: 50; }
.skip:focus { top: 1rem; }
.wrap { width: min(100% - 2 * var(--gap), 72rem); margin-inline: auto; }

/* Preview-only markers */
.preview-bar { background: #FFF6CC; color: #4A3B00; font-size: var(--step--1); padding: 0.4rem var(--gap); text-align: center; }
.tbc, .placeholder { border: 1.5px dashed #A88B00; background: #FFFBE6; color: #4A3B00; border-radius: var(--radius); font-size: var(--step--1); }
.tbc { display: inline-block; padding: 0 0.4em; }
.placeholder { padding: 1rem 1.25rem; margin-top: 2rem; max-width: 46rem; }

/* Buttons */
.btn { display: inline-block; background: var(--matcha); color: #fff; font-weight: 700; text-decoration: none; padding: 0.9rem 1.5rem; border-radius: var(--radius); border: 0; font: inherit; font-weight: 700; cursor: pointer; line-height: 1.2; text-align: center; }
.btn:hover { background: var(--matcha-deep); }
.btn-small { padding: 0.55rem 0.9rem; font-size: var(--step--1); }
.btn-block { display: block; width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn-text { background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--matcha-deep); font: inherit; font-size: var(--step--1); padding: 0 0.8rem; cursor: pointer; white-space: nowrap; }
.link-quiet { color: var(--ink); font-weight: 500; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; }
.wordmark { font-family: var(--serif); font-weight: 700; letter-spacing: 0.18em; color: var(--ink); text-decoration: none; font-size: 1.05rem; margin-right: auto; }
.wordmark-footer { margin: 0 0 0.75rem; }
.nav-toggle { background: none; border: 1px solid var(--line); border-radius: var(--radius); font: inherit; font-size: var(--step--1); padding: 0.45rem 0.75rem; color: var(--ink); cursor: pointer; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--ink); text-decoration: none; font-size: var(--step--1); }
.nav-list a:hover { text-decoration: underline; }
@media (max-width: 599px) { .site-header .btn-small { display: none; } }
@media (max-width: 899px) {
  .nav { order: 3; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem var(--gap) 1rem; }
  .nav-list.open { display: block; }
  .nav-list li a { display: block; padding: 0.65rem 0; font-size: var(--step-0); border-bottom: 1px solid var(--line); }
}
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-list { display: flex; gap: 1.5rem; }
  .nav { margin-right: 1.5rem; }
}

/* Hero */
.hero { padding: clamp(2rem, 6vw, 5.5rem) 0 clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero h1 { max-width: 14ch; }
.lede { font-size: var(--step-1); line-height: 1.6; max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin: 1.75rem 0 1rem; }
.hero-note { font-size: var(--step--1); color: color-mix(in srgb, var(--ink) 72%, var(--paper)); }

/* The bowl: a top-down view of whisked matcha, drawn in CSS (no stock photo). */
.bowl { --size: 9rem; width: var(--size); aspect-ratio: 1; border-radius: 50%; padding: calc(var(--size) * 0.07);
  background: radial-gradient(circle at 35% 30%, #3B4A3C, var(--ink) 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); order: -1; justify-self: end; }
.bowl-tea { width: 100%; height: 100%; border-radius: 50%;
  background:
    radial-gradient(circle at 46% 44%, rgba(214, 228, 160, 0.95) 0 9%, transparent 34%),
    repeating-radial-gradient(circle at 46% 44%, rgba(255,255,255,0.07) 0 2px, transparent 2px 7px),
    radial-gradient(circle at 46% 44%, #A9C25E 0, #86A63C 32%, #5F8326 62%, #46661C 100%); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr 1fr; gap: 3rem; }
  .bowl { --size: min(26rem, 34vw); order: 0; justify-self: center; }
}
@media (max-width: 899px) { .hero h1 { margin-top: -0.25rem; } }

/* Sections */
.section { padding: clamp(3rem, 8vw, 6rem) 0; scroll-margin-top: 3.5rem; }
.section-tint { background: var(--tint); }
.section-lede { font-size: var(--step-1); max-width: 46ch; margin-bottom: 2.25rem; }
.section-narrow .wrap > *, .section-narrow-inner > * { max-width: 46rem; }
.section-narrow { padding-block: clamp(2.5rem, 6vw, 4rem); border-top: 1px solid var(--line); }

/* Uses: colour of the powder carries the difference between grades. */
.uses { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.use { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.swatch { display: block; width: 4.5rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.28), transparent 55%), var(--tone, transparent); }
.use-open .swatch { border: 1.5px dashed var(--matcha); }
.use h3 { margin-bottom: 0.3em; }
.use p { margin-bottom: 0.6em; }
.use-link { font-weight: 700; }
.swatch-small { display: inline-block; width: 1.35rem; vertical-align: -0.3rem; margin-right: 0.6rem; }
.hojicha { margin-top: 2rem; }
@media (min-width: 900px) {
  .uses { grid-template-columns: repeat(4, 1fr); gap: 2rem; }
  .use { grid-template-columns: 1fr; border-top: 0; padding: 0; align-content: start; }
  .use .swatch { width: 100%; aspect-ratio: 4 / 3; border-radius: 3px 3px 50% 50% / 3px 3px 22% 22%; }
}

/* Sequences: numbered because order matters. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: -0.1rem; width: 2rem; height: 2rem; border-radius: 50%; border: 1.5px solid var(--matcha); color: var(--matcha-deep); font-family: var(--serif); font-weight: 700; display: grid; place-items: center; font-size: 1rem; }
.steps h3 { font-size: 1.125rem; margin-bottom: 0.25em; }
.steps p { margin: 0; }
@media (min-width: 900px) {
  .steps-3 { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .steps-5 { grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
  .steps li { padding-left: 0; padding-top: 3rem; }
  .steps-5 li:not(:last-child)::after { content: ""; position: absolute; top: 1rem; left: 2.5rem; right: -1rem; border-top: 1px solid var(--matcha); opacity: 0.5; }
}
.aside { margin-top: 2rem; }

/* Documents */
.docs { margin: 0; display: grid; gap: 1.25rem; }
.docs div { border-left: 3px solid var(--matcha); padding-left: 1rem; }
.docs dt { font-weight: 700; }
.docs dd { margin: 0.2rem 0 0; max-width: 60ch; }
@media (min-width: 900px) { .docs { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.example { margin: 2rem 0 0; max-width: 32rem; }
.example figcaption { font-size: var(--step--1); margin-top: 0.5rem; }

/* About */
.about-grid { display: grid; gap: 2rem; }
.facts { margin: 0; display: grid; gap: 0.9rem; align-content: start; }
.facts div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: 0.9rem; }
.facts dt { color: color-mix(in srgb, var(--ink) 70%, var(--paper)); font-size: var(--step--1); padding-top: 0.15rem; }
.facts dd { margin: 0; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }

/* FAQ */
.faq details { border-bottom: 1px solid color-mix(in srgb, var(--matcha) 35%, var(--tint)); }
.faq summary { cursor: pointer; padding: 1rem 2rem 1rem 0; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.25rem; top: 0.85rem; font-size: 1.4rem; line-height: 1; color: var(--matcha-deep); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.25rem; }

/* Form */
.section-form { background: var(--matcha-deep); color: #F1F5E6; }
.section-form h2 { color: #fff; }
.section-form .form-intro a { color: #fff; }
.form-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .form-grid { grid-template-columns: 1fr 1.5fr; gap: 4rem; align-items: start; } .form-intro { position: sticky; top: 6rem; } }
.inquiry-form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 4vw, 2.25rem); }
.field { margin: 0 0 1.35rem; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend { display: block; font-weight: 700; margin-bottom: 0.35rem; padding: 0; }
.req { font-weight: 400; font-size: var(--step--1); color: color-mix(in srgb, var(--ink) 65%, var(--paper)); margin-left: 0.35rem; }
.hint { font-size: var(--step--1); margin: 0.35rem 0 0; color: color-mix(in srgb, var(--ink) 72%, var(--paper)); }
input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #9BA68C; border-radius: var(--radius); padding: 0.7rem 0.8rem; min-height: 3rem; }
textarea { resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: var(--focus); outline-offset: 1px; border-color: var(--matcha); }
[aria-invalid=true] { border-color: #B3261E !important; }
.field-error { color: #B3261E; font-size: var(--step--1); font-weight: 700; margin: 0.35rem 0 0; }
.inline-input { display: flex; gap: 0.5rem; }
.field-grid { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .field-grid { grid-template-columns: 1fr 1fr; } }
.choice-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice-row .choice { border: 1.5px solid #9BA68C; border-radius: 999px; padding: 0.45rem 0.9rem 0.45rem 0.7rem; background: #fff; cursor: pointer; }
.choice-row .choice:has(input:checked) { border-color: var(--matcha); background: var(--tint); }
.choice-col { display: grid; gap: 0.5rem; }
.choice { display: flex; gap: 0.55rem; align-items: baseline; font-weight: 400; }
.choice input { accent-color: var(--matcha); width: 1.1rem; height: 1.1rem; flex: none; transform: translateY(0.15rem); }
.consent { font-size: var(--step--1); line-height: 1.55; }
.qty-row { display: grid; grid-template-columns: 1fr 5rem 1.5fr; gap: 0.5rem; }
.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 1.5rem; }
.more summary { cursor: pointer; padding: 0.9rem 0; font-weight: 700; color: var(--matcha-deep); }
.more-body { padding-bottom: 0.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: var(--step--1); margin: 0.9rem 0 0; }
.form-summary { border: 2px solid #B3261E; border-radius: var(--radius); padding: 0.9rem 1rem; margin-bottom: 1.5rem; background: #FDF1F0; }
.form-summary ul { margin: 0.3rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: #8C1D18; }
.form-status:not(:empty) { border-left: 4px solid #B3261E; background: #FDF1F0; padding: 0.8rem 1rem; margin-bottom: 1.25rem; font-weight: 500; }
.form-status.ok:not(:empty) { border-color: var(--matcha); background: var(--tint); }

/* Simple pages */
.page-simple h1 { font-size: var(--step-2); }
.ref-box { border: 1.5px solid var(--matcha); border-radius: var(--radius); padding: 1rem 1.25rem; display: inline-block; background: #fff; }
.ref-box strong { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.06em; }
.next { padding-left: 1.2rem; }
.next li { margin-bottom: 0.6rem; max-width: 64ch; }
.prose h2 { font-size: var(--step-1); margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; max-width: 66ch; }

/* Footer */
.site-footer { background: var(--ink); color: #DDE3D3; padding: 3rem 0 6rem; font-size: var(--step--1); }
.site-footer a { color: #fff; }
.site-footer .wordmark { color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } .site-footer { padding-bottom: 3rem; } }

/* Mobile sticky CTA: appears after the hero, hides while the form is on screen. */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 0.6rem var(--gap) calc(0.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }

/* Under-construction release */
.status-line { display: inline-flex; align-items: center; gap: 0.55rem; font-size: var(--step--1); font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem 0.3rem 0.7rem; background: #fff; margin-bottom: 1.5rem; }
.status-dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--matcha); }
.hero-soon { padding-bottom: clamp(2rem, 5vw, 4rem); }

/* Contact by email (shown while the inquiry form is off) */
.email-contact { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: 2rem; }
.email-contact p { margin: 0 0 .75rem; }
.email-contact p:last-child { margin-bottom: 0; }
.email-contact-address { font-size: 1.4rem; font-weight: 700; overflow-wrap: anywhere; }
.email-contact a { color: #fff; }
