/* Hummingword site. Tokens from docs/DESIGN_LANGUAGE.md and app/App/Brand.swift. */
:root {
  --deep-teal: #075C5B;
  --teal-shadow: #064847;
  --leaf: #55A878;
  --coral: #FF8267;
  --honey: #FFC85C;
  --cream: #FFF0D0;
  --ink: #24332F;

  --page: #F7F5F0;
  --surface: #FFFFFF;
  --text: #24332F;
  --muted: #55625E;
  --accent: #075C5B;
  --line: #E6E1D6;

  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #111816;
    --surface: #1C2523;
    --text: #F2EEE6;
    --muted: #B7BDB9;
    --accent: #FFF0D0;
    --line: #2C3734;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 17px/1.6 var(--body);
}

a { color: var(--accent); text-underline-offset: 3px; }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font: 700 1.25rem/1 var(--rounded); }
.site-header nav { display: flex; gap: 18px; font-size: 0.95rem; }
.site-header nav a { color: inherit; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 76% 50%, rgb(255 200 92 / 0.34), rgb(255 200 92 / 0.10) 28%, rgb(255 200 92 / 0) 46%),
    radial-gradient(120% 90% at 0% 0%, #0A6A68, rgb(10 106 104 / 0) 60%),
    var(--deep-teal);
  color: var(--cream);
  border-radius: 28px;
  padding: clamp(28px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.hero > :not(.hero-deco) { position: relative; z-index: 1; }
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  opacity: 0.07;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero-deco, .hero-deco svg { position: absolute; pointer-events: none; }
.hero-deco { inset: 0; z-index: 0; }
.leaf-a { width: 92px; right: -18px; bottom: -30px; transform: rotate(-32deg); }
.leaf-b { width: 56px; right: 390px; bottom: 96px; transform: rotate(-58deg); }
.note-a { width: 40px; right: 36%; top: 54px; transform: rotate(-10deg); }
.note-b { width: 46px; right: 6%; top: 34%; transform: rotate(12deg); }
.note-c { width: 24px; right: 9%; top: 60px; transform: rotate(14deg); opacity: 0.75; }
.note-d { width: 30px; right: 41%; top: 40%; transform: rotate(-14deg); opacity: 0.6; }
.deco-spark { width: 18px; }
.spark-a { right: 16%; top: 30px; }
.spark-b { right: 41%; bottom: 70px; width: 14px; }

.hero h1 {
  font: 800 clamp(2.2rem, 6vw, 3.6rem)/1.05 var(--rounded);
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.hero p { font-size: 1.15rem; margin: 0 0 24px; max-width: 34ch; }
.phone {
  justify-self: center;
  width: min(280px, 100%);
  padding: 10px;
  border-radius: 52px;
  background: #0E1412;
  box-shadow:
    inset 0 0 0 1.5px #3B4A46,
    0 0 0 1px rgb(0 0 0 / 0.35),
    0 30px 60px rgb(0 0 0 / 0.35);
}
.phone img { border-radius: 42px; width: 100%; }
.badge {
  display: inline-block;
  background: var(--cream);
  color: var(--teal-shadow);
  font: 700 1rem/1 var(--rounded);
  padding: 14px 22px;
  border-radius: 999px;
}

/* Sections */
section { padding: clamp(48px, 8vw, 88px) 0 0; }
h2 { font: 800 clamp(1.6rem, 4vw, 2.2rem)/1.15 var(--rounded); margin: 0 0 12px; }
.lead { color: var(--muted); margin: 0 0 32px; text-wrap: pretty; }

.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level { margin: 0; }
.level img { border-radius: 20px; aspect-ratio: 1; width: 100%; }
.level figcaption { padding: 14px 4px 0; }
.level strong { font: 700 1.15rem/1.2 var(--rounded); display: block; }
.level span { color: var(--muted); font-size: 0.95rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.feature h3 { font: 700 1.15rem/1.3 var(--rounded); margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); }
.feature-icon {
  width: 60px; height: 60px;
  border-radius: 18px;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 40px; height: 40px; }
.tint-coral { background: rgb(255 130 103 / 0.16); }
.tint-honey { background: rgb(255 200 92 / 0.24); }
.tint-leaf { background: rgb(85 168 120 / 0.18); }

/* Prose pages */
.prose { max-width: 70ch; padding: 24px 0 0; }
.prose h1 { font: 800 clamp(2rem, 5vw, 2.8rem)/1.1 var(--rounded); margin: 0 0 8px; }
.prose h2 { font-size: 1.35rem; margin: 36px 0 8px; }
.prose .updated { color: var(--muted); margin: 0 0 24px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 12px 0;
}
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { margin-top: clamp(56px, 9vw, 96px); padding: 28px 0 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 0.95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: inherit; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .phone { width: min(240px, 80%); }
  .hero {
    background:
      radial-gradient(circle at 50% 72%, rgb(255 200 92 / 0.30), rgb(255 200 92 / 0) 45%),
      radial-gradient(120% 90% at 0% 0%, #0A6A68, rgb(10 106 104 / 0) 60%),
      var(--deep-teal);
  }
  .leaf-a { width: 70px; right: -14px; bottom: -24px; }
  .leaf-b, .note-a, .note-c, .note-d { display: none; }
  .note-b { width: 32px; right: 2.5%; top: auto; bottom: 40%; }
  .spark-b { right: 12%; bottom: auto; top: 46%; }
  .levels, .features { grid-template-columns: 1fr; }
  .levels { max-width: 420px; }
}
