/* Metonic site palette + type.
   Palette: WARM DARK (dusk / brass / parchment) — committed 2026-06-17, see
   branding-visual-brief.md §8. Dark-mode-native, single brass "instrument"
   accent; the warm ground unifies with the parchment+ink app icon. Avoids
   calendar red / SaaS-blue gradients / neon. Type: system sans stack (SF on
   Apple) — license-free, zero dependency, on-brand for an Apple app. Colours
   live in :root below — the single edit point. */

:root {
  --ink:      #15110b;  /* background — espresso/dusk */
  --ink-2:    #1e1811;  /* panels */
  --ink-3:    #271f16;  /* raised */
  --star:     #ece3d1;  /* primary text — parchment */
  --muted:    #a89a82;  /* secondary text — taupe */
  --faint:    #7a6e59;  /* tertiary text */
  --accent:   #c9a45a;  /* single accent — brass */
  --accent-2: #dcc084;  /* brass hover */
  --line:     rgba(236, 227, 209, 0.12);
  --line-2:   rgba(236, 227, 209, 0.07);

  --maxw: 1080px;
  --prose: 64ch;
  --radius: 14px;
  --pad: clamp(20px, 5vw, 48px);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Inter", "IBM Plex Sans", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--star);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 0.5em; }
h3 { font-size: 1.15rem; margin: 0 0 0.4em; letter-spacing: -0.01em; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

p { margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1.4em;
}

.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 54ch; }
.prose { color: var(--muted); max-width: var(--prose); }
.fine { font-size: 0.85rem; color: var(--faint); }

/* ---- layout shell ---- */
.site-header,
.site-footer,
main > section,
.page {
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw); margin: 0 auto;
  padding-top: 22px; padding-bottom: 22px;
}

.brand { display: inline-flex; align-items: center; gap: 0.6em; color: var(--star); }
.brand:hover { color: var(--star); }
.brand-mark { width: 38px; height: 25px; color: var(--accent); flex: none; }
.brand-name { font-weight: 600; letter-spacing: -0.01em; font-size: 1.1rem; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) { color: var(--muted); font-size: 0.95rem; }
.site-nav a:not(.btn):hover { color: var(--star); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.98rem;
  padding: 0.7em 1.25em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-small { padding: 0.5em 0.95em; font-size: 0.9rem; }
.btn-primary { background: var(--accent); color: #1a130a; }
.btn-primary:hover { background: var(--accent-2); color: #1a130a; }
.btn-ghost { border-color: var(--line); color: var(--star); }
.btn-ghost:hover { border-color: var(--star); color: var(--star); }

/* ---- hero ---- */
.hero { max-width: var(--maxw); margin: 0 auto; }
.hero-lean {
  min-height: calc(100vh - 200px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(40px, 8vh, 96px); padding-bottom: clamp(40px, 8vh, 96px);
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.8em 0 1.2em; }

/* ---- media placeholders ---- */
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem;
  background: var(--ink-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--faint);
  aspect-ratio: 16 / 9;
  margin: 0;
  text-align: center;
}
.placeholder-play { font-size: 1.6rem; color: var(--accent); }
.placeholder figcaption, .placeholder small { font-size: 0.85rem; letter-spacing: 0.02em; }

/* ---- generic content page ---- */
.page { max-width: var(--maxw); margin: 0 auto; padding-top: 56px; padding-bottom: 40px; }
.page-narrow { max-width: 760px; }
.page-head { margin-bottom: 2.4rem; }
.page section { margin: 2.6rem 0; }
.page h2 { margin-top: 0; }
.updated { color: var(--faint); font-size: 0.9rem; }

/* ---- fact sheet ---- */
.factsheet { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.factsheet th, .factsheet td {
  text-align: left; vertical-align: top;
  padding: 0.7em 0.8em; border-bottom: 1px solid var(--line-2);
}
.factsheet th { width: 34%; color: var(--muted); font-weight: 500; }

/* ---- asset & clip grids ---- */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  background: var(--ink-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
.card h3 { margin-bottom: 0.2em; }
.card .meta { color: var(--faint); font-size: 0.82rem; margin: 0; }
.card a { font-size: 0.9rem; }

/* ---- demo clips (mixed portrait + landscape video) ---- */
.grid-clips {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  max-width: 720px; margin-inline: auto;
}
.clip { margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.clip video {
  width: 100%; height: auto; display: block;
  aspect-ratio: 9 / 16; object-fit: cover;
  background: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
/* the one 16:9 clip (multiband) spans the full width on its own row */
.clip-wide { grid-column: 1 / -1; }
.clip-wide video { aspect-ratio: 16 / 9; }
.clip figcaption { font-size: 0.85rem; color: var(--faint); letter-spacing: 0.02em; text-align: center; }

@media (max-width: 560px) {
  .grid-clips { grid-template-columns: 1fr; }
}

/* values (used on press story) */
.values { max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.value h3 { color: var(--star); }
.value p { color: var(--muted); margin: 0; font-size: 0.98rem; }

/* ---- FAQ ---- */
.faq details {
  border-bottom: 1px solid var(--line-2); padding: 0.4rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; padding: 0.6rem 0; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--accent); }
.faq details[open] summary::before { content: "– "; }
.faq details p { color: var(--muted); margin: 0 0 0.8rem; }

/* ---- callout (draft / note) ---- */
.note {
  border-left: 2px solid var(--accent); background: var(--ink-2);
  padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted); font-size: 0.92rem;
}

/* ---- footer ---- */
.site-footer {
  max-width: var(--maxw); margin: 80px auto 0;
  border-top: 1px solid var(--line-2);
  padding-top: 32px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a { color: var(--muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--star); }
.site-footer .fine { width: 100%; margin: 0; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero-lean { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
