/* TARO landing page — page-level styles only.
   Every value here is a token from tokens.css; components come from bundle.css,
   which is copied verbatim from the design system and is not edited. */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-100);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;                 /* body */
  line-height: 26px;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; }

a { color: var(--taro-plum); }

/* Focus rings are solid taro-plum and clear 3:1 on every ground — never hairline. */
:focus-visible {
  outline: 3px solid var(--taro-plum);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.t-footer :focus-visible { outline-color: var(--mark-cream); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--taro-plum);
  color: var(--mark-cream);
  border-radius: var(--radius-md);
  font-size: 13px;                 /* label */
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--space-8)));
  transition: transform 0.15s;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- shared section scaffolding ---------- */

.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-8);
}

.section__title {
  margin: var(--space-2) 0 var(--space-6);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;                 /* display-md */
  line-height: 1.2;
  color: var(--ink);
}

.eyebrow {
  margin: 0;
  font-size: 13px;                 /* label */
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

/* Anchored sections get a little air when jumped to. */
.section,
.hero { scroll-margin-top: var(--space-8); }

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

.t-header { position: relative; }

.site-menu {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: auto;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  height: 44px;
  padding: 0 var(--space-4);
  background: transparent;
  color: var(--taro-plum);
  border: 2px solid var(--taro-plum);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--surface-200); }

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: var(--space-16);
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-16) var(--space-8) var(--space-12);
}

.hero__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 14px;                 /* body-sm */
  line-height: 22px;
  color: var(--ink-muted);
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 40px;                 /* display-lg */
  line-height: 1.1;
  letter-spacing: -0.005em;
  color: var(--ink);
  max-width: 14ch;
}

.hero__lead {
  margin: var(--space-6) 0 0;
  font-size: 18px;                 /* body-lg */
  line-height: 30px;
  color: var(--ink);
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-8) 0 0;
}

.hero__motif svg { display: block; width: 100%; height: auto; }

.motif__slab  { fill: var(--taro-plum); }
.motif__col   { fill: var(--taro-plum-soft); }
.motif__clay  { fill: var(--clay); }
.motif__panel { fill: var(--surface-200); }
.motif__cut   { fill: var(--surface-100); }
.motif__plum  { fill: var(--taro-plum); }
.motif__half  { fill: var(--clay); }
.motif__ray   { fill: none; stroke: var(--surface-100); stroke-linecap: round; }
.motif__ring  { fill: none; stroke: var(--surface-100); stroke-width: 9; }

/* ---------- mission ---------- */

.mission { padding-top: var(--space-12); }

.mission__statement {
  margin: var(--space-4) 0 0;
  font-size: 18px;                 /* body-lg */
  line-height: 30px;
  color: var(--ink);
  max-width: 62ch;
}

/* ---------- programs ---------- */

.programs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 360px));
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.programs__grid .t-card { height: 100%; max-width: none; }
.programs__grid .t-card__body { color: var(--ink-muted); }

/* ---------- email list ---------- */

.join__panel {
  background: var(--surface-200);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-8);
}

.join__lead {
  margin: 0 0 var(--space-8);
  font-size: 18px;                 /* body-lg */
  line-height: 30px;
  max-width: 48ch;
}

.signup { max-width: 34rem; }

.signup__label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 14px;                 /* body-sm */
  line-height: 22px;
  font-weight: 600;
  color: var(--ink);
}

.signup__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.signup__input {
  flex: 1 1 16rem;
  min-width: 0;
  height: 44px;
  padding: 0 var(--space-4);
  background: var(--surface-100);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 16px;                 /* 16px keeps iOS from zooming on focus */
  line-height: 26px;
}
.signup__input::placeholder { color: var(--ink-muted); }
.signup__input[aria-invalid="true"] { border-color: var(--clay-deep); border-width: 2px; }

.signup__help,
.signup__status {
  margin: var(--space-4) 0 0;
  font-size: 14px;                 /* body-sm */
  line-height: 22px;
  color: var(--ink-muted);
  max-width: 52ch;
}

.signup__status:empty { margin: 0; }
.signup__status[data-state="error"] { color: var(--clay-deep); font-weight: 600; }
.signup__status[data-state="ok"] { color: var(--taro-plum); font-weight: 600; }

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

.t-footer__legal { margin-top: var(--space-12); }
.t-footer__brand img { width: auto; }

/* The Footer component styles its column headings as `h4`. On a one-page site
   the footer sits directly after an h2 section, so h4 would skip a level — these
   are h2 in the markup, restyled here to the component's exact values. */
.t-footer h2 {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-12);
    padding-top: var(--space-12);
  }
  .hero__title { max-width: none; }
  .hero__motif { max-width: 460px; }
}

/* The Header component collapses its nav to a menu button below 720px. */
@media (max-width: 719px) {
  .t-header { padding: 0 var(--space-6); gap: var(--space-4); }
  .menu-toggle { display: inline-flex; align-items: center; }

  .site-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 9;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--surface-100);
    border-bottom: 1px solid var(--hairline);
  }
  .site-menu[data-open] { display: flex; }

  .t-header__nav {
    flex-direction: column;
    gap: var(--space-4);
    margin-left: 0;
  }
  .site-menu .t-btn { justify-content: center; }
}

@media (max-width: 640px) {
  .section { padding: var(--space-12) var(--space-6); }
  .hero { padding: var(--space-12) var(--space-6); }
  .hero__title { font-size: 32px; }
  .join__panel { padding: var(--space-8) var(--space-6); }

  .t-footer { padding: var(--space-12) var(--space-6) var(--space-8); }
  .t-footer__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .t-footer__legal { flex-direction: column; gap: var(--space-2); }
}

/* ---------- motion ---------- */

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