/* Hilltop website, built from the Hilltop brand kit (Oct 2026):
   Alumni Sans for headings, Libre Franklin for everything else, Feather
   icons, a white page with an olive primary, and a "dusk" dark mode that
   follows the visitor's device setting. Fonts are served from this site
   (no Google requests, so visitors aren't tracked). */

@font-face {
  font-family: "Alumni Sans";
  src: url("/assets/fonts/alumni-sans.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Libre Franklin";
  src: url("/assets/fonts/libre-franklin-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --font-heading: "Alumni Sans", "Arial Narrow", sans-serif;
  --font-body: "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #FFFFFF;
  --surface: #F6F4EE;
  --text: #1D1500;
  --muted: #4C473B;
  --primary: #6B6034;
  --primary-hover: #544B27;
  --on-primary: #FFFFFF;
  --border: #E1DED5;
  --band: #1D1500;
  --on-band: #F4F1E8;
  --band-muted: #B5AE9E;
  --glass: rgba(255, 255, 255, 0.88);
  --photo-filter: none;
  --radius: 10px;
  --radius-big: 12px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120A;
    --surface: #211C12;
    --text: #F4F1E8;
    --muted: #B5AE9E;
    --primary: #C9B97E;
    --primary-hover: #DCCE97;
    --on-primary: #1D1500;
    --border: #3A3427;
    --band: #211C12;
    --on-band: #F4F1E8;
    --band-muted: #B5AE9E;
    --glass: rgba(22, 18, 10, 0.84);
    --photo-filter: brightness(0.6) saturate(0.9);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--bg); padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 8px; }

/* Type */
.h, h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.display { font-size: clamp(64px, 11.5vw, 168px); line-height: 0.9; }
/* In the hero both lines sit in the sky above the peak. */
.hero .display { font-size: clamp(60px, 8.6vw, 124px); }
h2 { font-size: clamp(44px, 6vw, 72px); line-height: 0.95; }
h3 { font-size: 32px; line-height: 1.05; }
.h-xl { font-size: clamp(40px, 4.2vw, 56px); line-height: 0.95; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.55; }
.lead { font-size: 18px; line-height: 1.6; }

/* Layout */
.wrap { max-width: 1344px; margin: 0 auto; padding: 16px 20px 0; }
@media (min-width: 760px) { .wrap { padding: 24px 48px 0; } }
main { display: grid; gap: clamp(64px, 9vw, 112px); }
.section { display: grid; gap: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 32px; }
.section-head p { max-width: 520px; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-2-1 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-2-1 { grid-template-columns: 2fr 1fr; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 20px; border-radius: 6px;
  font: 500 15px/1.2 var(--font-body);
  background: var(--primary); color: var(--on-primary);
  border: 0; cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1px var(--border); }
.btn-secondary:hover { background: var(--surface); color: var(--primary-hover); }
.btn[aria-disabled="true"] { background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); cursor: default; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Icons (Feather, 2 px stroke) */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 24px; height: 24px; }
.ic-tile { width: 48px; height: 48px; border-radius: var(--radius); background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--primary); }

/* Logo: the mark's tile, ridge and two heads follow light and dark */
.mark-tile { fill: var(--primary); }
.mark-ridge { stroke: var(--on-primary); }
.mark-heads { fill: #E1DED5; }
@media (prefers-color-scheme: dark) { .mark-heads { fill: #F4F1E8; } }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo svg { width: 30px; height: 30px; }
.logo span { font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1; }

/* Navigation */
.nav { display: flex; align-items: center; gap: 24px; background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 8px 8px 16px; }
.nav-links { display: none; gap: 24px; font-size: 15px; }
.nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--primary); }
.nav .spacer { flex: 1; }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* Hero */
.hero { position: relative; border-radius: var(--radius-big); overflow: hidden; min-height: 600px; height: min(860px, 94vh); background: #1D1500; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; filter: var(--photo-filter); }
.hero .nav { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 2; }
.hero h1 { position: absolute; left: 16px; right: 16px; top: 100px; text-align: center; color: var(--text); }
.hero-card { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; }
@media (min-width: 760px) {
  .hero .nav { left: 20px; right: 20px; top: 20px; }
  .hero h1 { top: 104px; }
  .hero-card { left: 20px; right: auto; bottom: 20px; width: 460px; padding: 24px; }
}
@media (prefers-color-scheme: dark) {
  .hero h1 { text-shadow: 0 2px 24px rgba(22, 18, 10, 0.5); }
}

/* Cards */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; align-content: start; }
.card-surface { background: var(--surface); border-color: var(--surface); }
.card-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.card-primary .eyebrow, .card-primary .muted { color: inherit; opacity: 0.85; }
.row { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 1.4; }
.row .grow { flex: 1; }
.rule { border-top: 1px solid var(--border); }
.ring { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text); flex: none; display: flex; align-items: center; justify-content: center; }
.ring.done { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.ring.done .ic { width: 12px; height: 12px; stroke-width: 3; }
.date { width: 56px; height: 60px; border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; }
.date span { font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); }
.date b { font-family: var(--font-heading); font-weight: 600; font-size: 30px; line-height: 1; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; flex: none; }
.rsvp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rsvp .btn { padding-inline: 8px; }
.quote { font-family: var(--font-heading); font-weight: 500; font-size: 30px; line-height: 1.1; }
.leader-list { display: grid; gap: 8px; font-size: 14px; }
.leader-list div { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 8px; padding: 10px 14px; }
@media (prefers-color-scheme: dark) { .leader-list div { border-color: rgba(29, 21, 0, 0.3); } }
.tag { border-radius: 6px; padding: 4px 10px; font-size: 12px; font-weight: 500; background: var(--on-primary); color: var(--primary); }
.feature-card { display: grid; gap: 24px; }
@media (min-width: 900px) { .feature-card { grid-template-columns: 1fr 300px; align-items: end; } }

/* Feature list */
.features { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.features > div { background: var(--bg); padding: 24px; display: grid; gap: 10px; align-content: start; }
/* Icon beside its title, the text underneath: shorter on phones. */
.features > div { grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.features > div > p { grid-column: 1 / -1; }
@media (max-width: 759px) {
  .card.step { grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; }
  .card.step > p { grid-column: 1 / -1; }
}
.features h3 { font-size: 26px; }

/* Verse band */
.band { background: var(--band); color: var(--on-band); border-radius: var(--radius-big); padding: clamp(32px, 5vw, 56px); display: grid; gap: 20px; }
.band p.h { font-weight: 500; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; }
.band .eyebrow { color: var(--band-muted); }

/* Start your group */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 6px; border-top: 1px solid var(--border); padding-top: 16px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; color: var(--muted); }
.steps b { font-family: var(--font-heading); font-weight: 600; font-size: 28px; line-height: 1; }

/* Footer */
.footer { margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--border); padding: 32px 0 48px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer nav a { color: var(--text); }
.footer nav a:hover { color: var(--primary); }
.footer .credit { width: 100%; color: var(--muted); font-size: 13px; }

/* Simple pages (join, privacy, support, not found) */
.page-top { padding-top: 4px; }
.narrow { max-width: 640px; margin: 0 auto; width: 100%; display: grid; gap: 24px; }
.code { font-family: var(--font-heading); font-weight: 600; font-size: clamp(56px, 16vw, 88px); letter-spacing: 0.12em; line-height: 1; text-align: center; background: var(--surface); border-radius: var(--radius); padding: 20px 12px 16px; }
.photo-band { height: clamp(160px, 26vw, 260px); border-radius: var(--radius-big); overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; filter: var(--photo-filter); }
ol.plain { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.prose { display: grid; gap: 16px; }
.prose h2 { font-size: 40px; }
