/* ============================================================
   Hinata Creative
   Warm, plain, unhurried. Hinata means a sunny place.
   One page. Edit the tokens below to reskin the whole site.
   ============================================================ */

:root {
  /* Light palette. Warm paper, ink, and one sun accent. */
  --paper:      #fbf7f0;
  /* Translucent so the dot grid runs through the band unbroken.
     Composites over --paper to the old solid #f4ede2. */
  --paper-2:    rgba(234, 222, 205, 0.4);
  --ink:        #241f1a;
  --ink-soft:   #5c5248;
  --ink-faint:  #8a7f73;
  --rule:       #e2d7c7;
  --sun:        #d98324;
  --sun-deep:   #a85f14;
  --leaf:       #4f6f52;
  /* Header CTA. Deeper than --sun on purpose: white on --sun is 2.91:1, which
     fails AA. This clears it at 4.87:1, and holds up on both papers, so it is
     deliberately NOT redefined for dark mode. */
  --cta:        #a85f14;
  --cta-hover:  #9c560f;

  /* Notebook dot grid. Barely there — you feel it more than see it. */
  --dot:        rgba(36, 31, 26, 0.10);
  --dot-gap:    1.5rem;

  /* Sun off the top-right corner: orange core, yellow falloff. */
  --glow-core:  rgba(217, 131, 36, 0.20);
  --glow-mid:   rgba(236, 173, 61, 0.13);
  --glow-edge:  rgba(246, 214, 122, 0.06);
  --glow-w:     clamp(20rem, 62vw, 46rem);
  --glow-h:     clamp(16rem, 46vw, 34rem);

  --measure: 34rem;
  --page: 62rem;
  --pad: clamp(1.25rem, 5vw, 3rem);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:     #17140f;
    --paper-2:   rgba(43, 38, 30, 0.4);
    --ink:       #f2ece2;
    --ink-soft:  #bdb2a3;
    --ink-faint: #8d8274;
    --rule:      #332c22;
    --sun:       #f0a542;
    --sun-deep:  #f5bd6d;
    --leaf:      #8fae8f;
    --dot:       rgba(242, 236, 226, 0.09);
    --glow-core: rgba(240, 165, 66, 0.20);
    --glow-mid:  rgba(233, 176, 74, 0.12);
    --glow-edge: rgba(245, 213, 128, 0.05);
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, var(--dot) 1px, transparent 1px),
    radial-gradient(ellipse at 100% 0%,
      var(--glow-core) 0%,
      var(--glow-mid) 26%,
      var(--glow-edge) 48%,
      transparent 70%);   /* must clear before 70.7% — the box edge */
  background-size: var(--dot-gap) var(--dot-gap), var(--glow-w) var(--glow-h);
  background-position: center top, right top;
  background-repeat: repeat, no-repeat;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
p { max-width: var(--measure); }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 4px; z-index: 10;
}
.skip:focus { left: var(--pad); top: 0.6rem; }

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

/* ---------- header ---------- */

.site-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--page); margin: 0 auto;
  padding: 1.5rem var(--pad);
}

.mark {
  display: inline-flex; align-items: center; gap: 0.6rem;
  text-decoration: none; font-weight: 600; letter-spacing: 0.01em;
}
.mark-glyph { width: 1.75rem; height: 1.75rem; flex: none; color: var(--sun); }
.mark-glyph circle { fill: currentColor; }
.mark-glyph .rays { stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; fill: none; }
.mark-text { font-family: var(--serif); font-size: 1.0625rem; }

.head-link {
  display: inline-block;
  background: var(--cta); color: #fff;
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1.1rem; border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.head-link:hover { background: var(--cta-hover); color: #fff; transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .head-link { transition: none; } }

/* ---------- hero ---------- */

.hero {
  max-width: var(--page); margin: 0 auto;
  padding: clamp(3rem, 11vw, 7rem) var(--pad) clamp(3rem, 8vw, 5rem);
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint);
}

.hero h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.125rem, 1.1rem + 4.4vw, 3.75rem);
  max-width: 26ch;
  text-wrap: balance;
}

.lede { font-size: 1.125rem; color: var(--ink-soft); margin: 0 0 2rem; }

.cta { margin: 0; max-width: none; }

.btn {
  display: inline-block;
  background: var(--sun); color: #1a1206;
  font-weight: 600; text-decoration: none;
  padding: 0.75rem 1.4rem; border-radius: 999px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--sun-deep); color: var(--paper); transform: translateY(-1px); }
@media (prefers-color-scheme: dark) { .btn:hover { color: #17140f; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------- bands ---------- */

.band {
  max-width: var(--page); margin: 0 auto;
  padding: clamp(2.75rem, 7vw, 4.5rem) var(--pad);
  border-top: 1px solid var(--rule);
}

.band > h2, .band-inner > h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
}

.cols { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cols.two { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; }
.cols h3 { margin: 0 0 0.6rem; font-size: 1.0625rem; }
.cols p { margin: 0; color: var(--ink-soft); font-size: 0.9688rem; }

/* ---------- proof ---------- */

.stats { list-style: none; margin: 0 0 2rem; padding: 0;
  display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.stats p { margin: 0.5rem 0 0; color: var(--ink-soft); font-size: 0.9375rem; }

.stat {
  display: block; font-family: var(--serif);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  line-height: 1; color: var(--sun-deep);
}
.unit { font-size: 0.45em; color: var(--ink-faint); letter-spacing: 0.02em; }

.fineprint { margin: 0; color: var(--ink-faint); font-size: 0.875rem; max-width: none; }

/* ---------- fit ---------- */

.fit ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.fit li { margin-bottom: 0.6rem; font-size: 0.9688rem; }
.fit li::marker { color: var(--rule); }
.fit .yes h3 { color: var(--leaf); }
.fit .no h3 { color: var(--ink-faint); }

/* ---------- contact ---------- */

.contact { background: var(--paper-2); max-width: none; border-radius: 0; }

/* .contact is full-bleed so its background reaches the viewport edges. One
   wrapper puts the content back in the same column as every other band.
   Centring each child separately instead loses to `.band > h2`, whose margin
   shorthand zeroes the inline margins and outranks `.contact > *`. */
/* Not --page: a .band's padding sits inside its --page cap, so its true
   content column is --page minus both pads. Matching that is what keeps this
   heading in line with every other section's. */
.band-inner { max-width: calc(var(--page) - 2 * var(--pad)); margin-inline: auto; }

.contact h2 { margin-bottom: 1rem; }
.contact .lede { margin-bottom: 2.5rem; max-width: var(--measure); }

/* Two ways in, side by side. The form is the wider of the two. */
.ways {
  display: grid; gap: 3rem 4rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 46rem) { .ways { grid-template-columns: 1fr; gap: 2.5rem; } }

.way h3 { margin: 0 0 1.25rem; font-size: 1.0625rem; }
.way p { color: var(--ink-soft); }

.direct { margin: 0.75rem 0 1.25rem; font-size: 1.0625rem; }
.direct a { color: var(--sun-deep); text-decoration: none; border-bottom: 1px solid var(--rule); }
.direct a:hover { border-color: var(--sun); }

/* ---------- the form ---------- */

.contact-form { max-width: var(--measure); }

.field { margin: 0 0 1.1rem; max-width: none; }
.field label {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.875rem; color: var(--ink-soft);
}

.field input, .field textarea {
  display: block; width: 100%;
  font: inherit; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.15s ease;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:hover, .field textarea:hover { border-color: var(--ink-faint); }
.field input:focus, .field textarea:focus { border-color: var(--sun); }

/* Only after the field has been touched — never red on an untouched form. */
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--sun-deep);
}

.contact-form .btn { border: 0; cursor: pointer; font-family: inherit; font-size: inherit; }
.contact-form .btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* The honeypot. Off-screen rather than display:none, which some bots skip. */
.trap {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

.form-note { margin: 1rem 0 0; font-size: 0.9375rem; min-height: 1.4em; }
.form-note:empty { margin: 0; min-height: 0; }
.form-note[data-state="ok"]   { color: var(--leaf); }
.form-note[data-state="bad"]  { color: var(--sun-deep); }
.form-note[data-state="busy"] { color: var(--ink-faint); }

/* ---------- footer ---------- */

.site-foot {
  max-width: var(--page); margin: 0 auto;
  padding: 3rem var(--pad) 4rem;
  font-size: 0.875rem; color: var(--ink-soft);
}
.site-foot p { margin: 0 0 0.35rem; max-width: none; }
.quiet { color: var(--ink-faint); }

/* ---------- process ---------- */

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  counter-reset: step;
}
.steps li { position: relative; padding-top: 2.25rem; }
.step-n {
  position: absolute; top: 0; left: 0;
  font-family: var(--serif); font-size: 1.5rem; line-height: 1;
  color: var(--sun); opacity: 0.8;
}
.steps h3 { margin: 0 0 0.6rem; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.9688rem; }

/* ---------- faq ---------- */

.faq details {
  border-top: 1px solid var(--rule);
  padding: 0;
}
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }

.faq summary {
  cursor: pointer; list-style: none;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  font-weight: 600; font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--serif); font-size: 1.35rem; line-height: 1;
  color: var(--sun); transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--sun-deep); }

.faq details p {
  margin: 0 0 1.25rem;
  color: var(--ink-soft); font-size: 0.9688rem;
  max-width: var(--measure);
}

@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}

/* ---------- about ---------- */

.about-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.about-grid:has(.portrait) { grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); }

.about p { margin: 0 0 1.1rem; color: var(--ink-soft); }
.about p:first-child { color: var(--ink); font-size: 1.125rem; font-family: var(--serif); }

.quiet-note {
  margin-top: 1.75rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint) !important;
  font-size: 0.9375rem;
}

.portrait { margin: 0; }
.portrait img {
  width: 100%; height: auto; display: block;
  border-radius: 6px;
}

@media (max-width: 46rem) {
  .about-grid:has(.portrait) { grid-template-columns: minmax(0, 1fr); }
}
