/*
 * Our Aria component styles.
 *
 * Ported from prototype/Our Aria.html. See ourAria/design_handoff_our_aria/
 * README.md for the design contract. Tokens live in tokens.css.
 *
 * Naming: kebab-case, no BEM. Each block is one component (header,
 * footer, card, button, conversation, companion-grid).
 */

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Charter, Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  font-feature-settings: "onum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3 { font-weight: 400; letter-spacing: -0.005em; margin: 0; }
p { margin: 0 0 1em 0; }

/* ── Layout ──────────────────────────────────────────────── */

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 96px; }
@media (max-width: 1199px) { .wrap { padding: 0 64px; } }
@media (max-width: 767px)  { .wrap { padding: 0 32px; } }

.prose { max-width: 640px; }

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

/* ── Type utilities ─────────────────────────────────────── */

.small-caps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  font-size: 14px;
}

.eyebrow {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}

/* Hero display — 48px (was 64px in design; smaller for "quiet" register) */
.hero-display {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 400;
  max-width: 780px;
}
@media (max-width: 767px) {
  .hero-display { font-size: 36px; }
}

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit;
  font-size: 16px; font-weight: 500;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid transparent;
  min-height: 48px;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--paper); border-color: var(--accent); }
.btn-primary:hover { background: #4A6A78; border-color: #4A6A78; text-decoration: none; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: rgba(91,123,138,0.06); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { background: var(--paper-2); text-decoration: none; }

/* ── Header ─────────────────────────────────────────────── */

.site-header {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  font-size: 20px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.01em;
  display: inline-flex; align-items: center;
}
.brand:hover { text-decoration: none; }
.brand .ornament { color: var(--accent); margin-right: 8px; font-size: 18px; }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink); text-decoration: none;
  padding: 24px 0;
  border-bottom: 1px solid transparent;
  font-size: 16px;
}
.nav-links a:hover, .nav-links a.active {
  border-bottom-color: var(--accent);
  text-decoration: none;
}

.header-right { display: flex; align-items: center; gap: 20px; }

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--rule-soft);
  margin-top: 96px;
  padding: 48px 0;
  color: var(--ink-muted);
  font-size: 15px;
}
.site-footer .wrap {
  display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap;
}
.site-footer a { color: var(--ink-muted); }
.site-footer a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }

/* ── Cards ──────────────────────────────────────────────── */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px;
  transition: background-color 140ms ease;
}
.card:hover { background: var(--paper-2); }

/* ── Fleuron ornament ──────────────────────────────────── */

.fleuron {
  text-align: center; color: var(--ink-faint);
  font-size: 20px; margin: 48px 0;
  letter-spacing: 1em;
}

/* ── Sample conversation ───────────────────────────────── */

.convo {
  border-left: 2px solid var(--rule);
  padding: 8px 0 8px 28px;
  margin: 32px 0;
  max-width: 620px;
}
.convo .turn { margin-bottom: 14px; }
.convo .who {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: var(--ink-muted);
  margin-right: 8px;
}
.convo .said { font-style: italic; color: var(--ink); }
.convo .elder .said { font-style: normal; }

/* ── Companion grid + card ─────────────────────────────── */

.companions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.companion-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 32px 28px;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
  display: block;
  color: var(--ink);
}
.companion-card:hover {
  background: var(--paper-2);
  text-decoration: none;
}
.companion-swatch {
  width: 36px; height: 36px; border-radius: 50%;
  margin-bottom: 20px;
}
.companion-card h3 { font-size: 22px; margin-bottom: 4px; }
.companion-card .source {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.companion-card p { color: var(--ink-muted); font-size: 16px; margin: 0; }

/* ── SVG ink illustrations ─────────────────────────────── */

.ink-svg {
  color: var(--ink);
  display: block;
}
