/* unsupervised hr — site stylesheet
   Built from Design system v0.1 handoff (tokens + readme.md rules).
   Espresso is the only text colour; night/dawn full-bleed only, never both per screen;
   Baloo 2 700 only for logo, pull-quotes, big numbers; pills on everything interactive. */

/* ---------- tokens ---------- */
:root {
  --night: #223047;
  --night-deep: #1a2538;
  --cloud: #8b96a6;
  --cream: #f6efe6;
  --offwhite: #faf7f4;
  --peach: #f2d8c3;
  --apricot: #f9c8a8;
  --coral: #e9647f;
  --coral-soft: #f29aa4;
  --warm-grey: #a08d81;
  --espresso: #442920;
  --espresso-deep: #2f1b14;
  --muted-on-night: #9aa6b7;
  --heading-soft: #c4b3a6;

  --border-soft: rgba(68, 41, 32, 0.1);
  --border-strong: rgba(68, 41, 32, 0.3);

  --grad-night: linear-gradient(180deg, #1f2c42 0%, #243450 100%);
  --grad-dawn: linear-gradient(180deg, #f6e3cf, #f2d8c3);
  --grad-logo: linear-gradient(135deg, #f9c8a8, #f29aa4);
  --grad-sun: linear-gradient(180deg, #f9c8a8, #e9647f);

  --shadow-pill: 0 10px 28px rgba(68, 41, 32, 0.14);
  --shadow-pill-hover: 0 14px 34px rgba(68, 41, 32, 0.2);
  --shadow-float-night: 0 14px 36px rgba(10, 16, 28, 0.35);

  --radius-card: 28px;
  --radius-tile: 20px;
  --radius-pill: 999px;

  --font-body: 'Hanken Grotesk', sans-serif;
  --font-brand: 'Baloo 2', sans-serif;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--espresso);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--espresso); text-decoration: none; }
a:hover { color: var(--warm-grey); }

img { max-width: 100%; }

@keyframes omDrift { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }
@keyframes omTicker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .puff, .ticker-track { animation: none !important; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--espresso); color: var(--cream);
  padding: 12px 24px; border-radius: var(--radius-pill); z-index: 100;
}
.skip-link:focus-visible { left: 16px; top: 16px; color: var(--cream); }

/* ---------- page shell ---------- */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 96px;
}
.wrap > .top { display: flex; flex-direction: column; gap: 16px; }      /* nav tight above a hero card */
.wrap > .top-loose { display: flex; flex-direction: column; gap: 72px; } /* nav above a plain text header */

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  background: var(--offwhite);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  padding: 12px 14px 12px 28px;
}
.wordmark {
  font-family: var(--font-brand); font-size: 19px; font-weight: 700;
  letter-spacing: -0.02em; white-space: nowrap; color: var(--espresso);
}
.wordmark:hover { color: var(--espresso); }
.wordmark .i { color: var(--coral); }
.wordmark .hr { color: var(--warm-grey); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a { font-size: 16px; color: var(--warm-grey); }
.nav-links > a:hover, .nav-links > a:focus-visible { color: var(--espresso); }
.nav-links > a.is-active { font-weight: 500; color: var(--espresso); }
.nav-cta {
  display: inline-flex; padding: 12px 28px; border-radius: var(--radius-pill);
  background: var(--espresso); color: var(--cream); font-size: 16px; font-weight: 500;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--espresso-deep); color: var(--cream); }

/* ---------- buttons (pills only) ---------- */
.pill-espresso {
  display: inline-flex; padding: 18px 44px; border-radius: var(--radius-pill);
  background: var(--espresso); color: var(--cream); font-size: 19px; font-weight: 500;
}
.pill-espresso:hover, .pill-espresso:focus-visible { background: var(--espresso-deep); color: var(--cream); }
.pill-raised {
  display: inline-flex; padding: 18px 44px; border-radius: var(--radius-pill);
  background: var(--offwhite); color: var(--espresso); font-size: 19px; font-weight: 500;
  box-shadow: var(--shadow-pill), inset 0 1px 0 #ffffff;
}
.pill-raised:hover, .pill-raised:focus-visible { background: #ffffff; color: var(--espresso); box-shadow: var(--shadow-pill-hover), inset 0 1px 0 #ffffff; }
.pill-raised.on-night { box-shadow: var(--shadow-float-night); }
.pill-quiet {
  display: inline-flex; padding: 14px 32px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong); color: var(--espresso);
  font-size: 16px; font-weight: 500; white-space: nowrap; background: transparent;
}
.pill-quiet:hover, .pill-quiet:focus-visible { border-color: var(--espresso); color: var(--espresso); }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--warm-grey);
}
.display {
  margin: 0; font-weight: 300; letter-spacing: -0.025em; line-height: 1.04;
  font-size: clamp(40px, 6vw, 64px); text-wrap: pretty;
}
.display-lg { font-size: clamp(42px, 6.4vw, 68px); }
.display-sm { font-size: clamp(38px, 5.6vw, 60px); }
.h-section {
  margin: 0; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1;
  font-size: clamp(32px, 4.2vw, 44px); text-wrap: pretty;
}
.h-card { margin: 0; font-size: 26px; font-weight: 400; letter-spacing: -0.01em; }
.lede { margin: 0; font-weight: 300; line-height: 1.55; text-wrap: pretty; }
.muted { color: var(--warm-grey); }
.on-night-muted { color: var(--muted-on-night); }

/* ---------- cards & sections ---------- */
.card {
  background: var(--offwhite);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
}
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.section-head .stack { display: flex; flex-direction: column; gap: 14px; }

.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }

.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.dot-line { display: flex; align-items: center; gap: 10px; }
.dot-line > span:last-child { font-size: 17px; color: var(--warm-grey); }

.sticker {
  display: inline-flex; padding: 12px 26px; border-radius: var(--radius-pill);
  font-family: var(--font-brand); font-size: 17px; font-weight: 700;
}
.sticker.cream { background: var(--cream); color: var(--espresso); box-shadow: 0 10px 26px rgba(10, 16, 28, 0.35); }
.sticker.espresso { background: var(--espresso); color: var(--cream); box-shadow: var(--shadow-pill); }
.sticker.coral { background: var(--coral); color: var(--cream); box-shadow: var(--shadow-pill); }

/* pull-quote band type (Baloo, brand-voice layer) */
.brand-quote {
  font-family: var(--font-brand); font-weight: 700; letter-spacing: -0.03em;
  line-height: 1.05; text-wrap: pretty;
}

/* ---------- sunny (CSS-drawn mascot; geometry set inline per instance) ---------- */
.sunny { position: relative; overflow: hidden; pointer-events: none; }
.sunny .sun { position: absolute; border-radius: 50%; background: var(--grad-sun); }
.sunny .eye { position: absolute; border-radius: 50%; background: var(--espresso); }
.sunny .smile {
  position: absolute; border: 3px solid transparent;
  border-bottom-color: var(--espresso); border-radius: 50%;
}
.sunny .horizon {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  border-radius: var(--radius-pill); background: var(--espresso);
}
.sunny .horizon.on-night { background: rgba(246, 239, 230, 0.4); }

/* ---------- cloud layers ---------- */
.clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.puff {
  position: absolute;
  background: radial-gradient(ellipse at center, var(--c) 0%, transparent 70%);
  filter: blur(var(--blur, 40px));
  animation: omDrift var(--dur, 16s) ease-in-out infinite alternate;
}

/* ---------- ticker ---------- */
.ticker {
  position: relative; overflow: hidden; border-radius: var(--radius-pill);
  background: var(--espresso); padding: 18px 0;
}
.ticker-track {
  display: flex; align-items: center; gap: 32px; width: max-content;
  animation: omTicker 22s linear infinite;
}
.ticker-track .word {
  font-family: var(--font-brand); font-weight: 700; font-size: 20px;
  color: var(--cream); white-space: nowrap;
}
.ticker-track .tdot { width: 10px; height: 10px; border-radius: 50%; background: var(--coral-soft); flex-shrink: 0; }

/* ---------- footer ---------- */
.footer {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  background: var(--grad-night);
  padding: 64px 64px 0 64px;
  display: flex; flex-direction: column; gap: 48px;
}
.footer-cols { position: relative; display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer .wordmark { font-size: 22px; color: var(--cream); }
.footer .wordmark:hover { color: var(--cream); }
.footer .wordmark .i { color: var(--coral-soft); }
.footer .wordmark .hr { color: var(--cloud); }
.footer-tag { font-size: 15px; font-weight: 300; color: var(--muted-on-night); max-width: 30ch; }
.footer-nav { display: flex; gap: 72px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .eyebrow { color: var(--cloud); }
.footer-col > a { font-size: 16px; color: var(--cream); }
.footer-col > a:hover, .footer-col > a:focus-visible { color: var(--coral-soft); }
.footer-sunny-row { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.footer-legal {
  position: relative; text-align: center; padding-bottom: 24px;
  font-size: 13px; color: var(--cloud);
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split > div:last-child { padding-top: 0 !important; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-nav { gap: 48px; }
}

@media (max-width: 820px) {
  .wrap { padding: 16px 16px 0 16px; gap: 64px; }
  .wrap > .top-loose { gap: 48px; }
  .nav { flex-wrap: wrap; border-radius: var(--radius-card); padding: 14px 20px; row-gap: 12px; justify-content: center; }
  .nav-links { width: 100%; justify-content: center; flex-wrap: wrap; gap: 14px 20px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer { padding: 48px 28px 0 28px; }
  .footer-nav { flex-wrap: wrap; }
}
