/* Ayuta website. Colours and type mirror lib/core/design/tokens.dart. */

:root {
  --bg: #fbf9f3;
  --surface: #f5f3ed;
  --ink: #1e3a2f;
  --text: #1b1c18;
  --text-2: #424844;
  --muted: #6b7068;
  --hairline: #e2ded4;
  --accent: #4c6b2c;
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --surface: #151517;
    --ink: #f2efea;
    --text: #e5e1e4;
    --text-2: #c3beb6;
    --muted: #9c988f;
    --hairline: #2b2b30;
    --accent: #e8a33d;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
}

a { color: var(--ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 0;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font: 400 26px/1 var(--serif);
}
.brand svg { width: 22px; height: 28px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero { padding: 64px 0 40px; }
.hero .mark { width: 72px; height: 90px; color: var(--ink); }
.hero h1 {
  margin: 28px 0 12px;
  font: 400 clamp(40px, 8vw, 60px)/1.05 var(--serif);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.lede { margin: 0; font-size: 20px; color: var(--text-2); max-width: 34em; }
.cta {
  display: inline-block; margin-top: 28px; padding: 12px 20px;
  border: 1px solid var(--hairline); border-radius: 12px;
  color: var(--muted); font-size: 15px;
}

.points { list-style: none; padding: 0; margin: 48px 0; border-top: 1px solid var(--hairline); }
.points li { padding: 20px 0; border-bottom: 1px solid var(--hairline); }
.points b { display: block; font: 400 22px/1.3 var(--serif); color: var(--ink); }
.points span { color: var(--text-2); }

blockquote {
  margin: 48px 0; padding: 20px 24px; border-radius: 16px;
  background: var(--surface); color: var(--text-2); font-style: italic;
}
blockquote footer { margin-top: 6px; font-style: normal; font-size: 14px; color: var(--muted); }

/* Documents */
.doc { padding: 32px 0 24px; }
.doc h1 { margin: 0 0 6px; font: 400 44px/1.1 var(--serif); color: var(--ink); }
.doc .meta { margin: 0 0 32px; color: var(--muted); font-size: 15px; }
.doc h2 { margin: 40px 0 8px; font: 400 26px/1.25 var(--serif); color: var(--ink); }
.doc h3 { margin: 24px 0 4px; font-size: 17px; font-weight: 600; }
.doc ul, .doc ol { padding-left: 1.2em; }
.doc li { margin: 4px 0; }
.summary {
  margin: 0 0 32px; padding: 20px 24px; border-radius: 16px;
  background: var(--surface); color: var(--text-2);
}
.summary p { margin: 0; }
.summary ul { margin: 8px 0 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--hairline); }
th { font-weight: 600; color: var(--text); }
.table-scroll { overflow-x: auto; }

/* Footer */
.foot {
  margin-top: 64px; padding: 28px 0 48px; border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  color: var(--muted); font-size: 14px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--muted); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav { gap: 14px; }
  .hero { padding-top: 32px; }
  .doc h1 { font-size: 36px; }
}

/* ---------- Home: bold, minimal ---------- */

.home { --band: #1e3a2f; --on-band: #fbf9f3; --on-band-2: #c9d3c4; --pop: #c5d86d; }
@media (prefers-color-scheme: dark) {
  .home { --band: #151517; --on-band: #f2efea; --on-band-2: #9c988f; --pop: #e8a33d; }
}

.wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.band { background: var(--band); color: var(--on-band); }
.band .top .brand, .band .top nav a { color: var(--on-band); }
.band .top nav a { opacity: .7; }
.band .top nav a:hover { opacity: 1; color: var(--on-band); }

.stage {
  min-height: min(calc(100svh - 92px), 760px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0 72px;
}
.kicker {
  margin: 0 0 28px; font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--on-band-2);
}
.big {
  margin: 0; font: 400 clamp(84px, 24vw, 300px)/.82 var(--serif);
  letter-spacing: -.045em; color: var(--on-band);
}
.big em { font-style: italic; color: var(--pop); }
.stage h1 {
  margin: 28px 0 0; max-width: 16em;
  font: 400 clamp(30px, 4.6vw, 52px)/1.1 var(--serif); letter-spacing: -.01em;
}
.stage .lede { margin-top: 16px; color: var(--on-band-2); max-width: 30em; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
  margin-top: 36px; padding: 14px 22px; border-radius: 999px;
  background: var(--on-band); color: var(--band);
  font-weight: 600; font-size: 15px; text-decoration: none;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--pop); }

.section { padding: 112px 0 0; }
.eyebrow {
  margin: 0 0 12px; font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.section h2 {
  margin: 0 0 48px; max-width: 14em;
  font: 400 clamp(34px, 5.5vw, 64px)/1.05 var(--serif);
  letter-spacing: -.02em; color: var(--ink);
}

/* The rank ladder: bar length is the hours, to scale. */
.ladder { list-style: none; margin: 0; padding: 0; }
.ladder li {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 16px;
  padding: 16px 0; border-top: 1px solid var(--hairline);
}
.ladder b { font: 400 clamp(22px, 3vw, 30px)/1.1 var(--serif); color: var(--ink); }
.ladder span { font-variant-numeric: tabular-nums; color: var(--muted); align-self: end; }
.ladder .bar {
  grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--hairline);
  position: relative; overflow: hidden;
}
.ladder .bar::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w);
  min-width: 6px; border-radius: 3px; background: var(--ink);
}
.ladder li:last-child .bar::after { background: var(--accent); }

.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px;
  list-style: none; margin: 0; padding: 0;
}
.pillars li { border-top: 2px solid var(--ink); padding-top: 20px; }
.pillars .n { font: 400 15px/1 var(--sans); font-weight: 600; letter-spacing: .1em; color: var(--muted); }
.pillars b { display: block; margin: 16px 0 8px; font: 400 28px/1.15 var(--serif); color: var(--ink); }
.pillars p { margin: 0; color: var(--text-2); }

.quote { padding: 136px 0 24px; text-align: center; }
.quote p {
  margin: 0 auto; max-width: 20em;
  font: italic 400 clamp(30px, 4.8vw, 54px)/1.18 var(--serif);
  letter-spacing: -.01em; color: var(--ink);
}
.quote footer { margin-top: 20px; color: var(--muted); font-size: 15px; }

.closer { margin-top: 112px; text-align: center; padding: 96px 0; }
.closer h2 { margin: 0; font: 400 clamp(40px, 7vw, 88px)/1 var(--serif); letter-spacing: -.03em; }
.closer p { margin: 14px 0 0; color: var(--on-band-2); }
.closer .pill { align-self: auto; }

.home .foot { margin-top: 0; }

@media (max-width: 760px) {
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .section { padding-top: 80px; }
  .quote { padding-top: 96px; }
}

/* Bar widths live here: the CSP forbids inline style attributes. */
.ladder li:nth-child(1) { --w: 0%; }
.ladder li:nth-child(2) { --w: 1%; }
.ladder li:nth-child(3) { --w: 5%; }
.ladder li:nth-child(4) { --w: 10%; }
.ladder li:nth-child(5) { --w: 25%; }
.ladder li:nth-child(6) { --w: 50%; }
.ladder li:nth-child(7) { --w: 75%; }
.ladder li:nth-child(8) { --w: 100%; }

.quote blockquote { margin: 0; padding: 0; background: none; font-style: normal; }
