:root {
    --paper: #f6f3ee;
    --ink: #0b3a4a;
    --ink-deep: #062833;
    --yellow: #f5c518;
    --muted: #4d646c;
    --line: rgba(11, 58, 74, 0.14);
    --foam: #f6f3ee;
    --font-display: "Besley", "Iowan Old Style", Palatino, serif;
    --font-body: "Outfit", "Avenir Next", system-ui, sans-serif;
    --header: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header); }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
    position: absolute; left: -9999px; top: 12px; z-index: 80;
    padding: 10px 16px; background: var(--yellow); color: var(--ink-deep); text-decoration: none; font-weight: 600;
}
.skip-link:focus { left: 12px; }

.container { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 40; color: var(--foam);
    transition: background 0.3s ease, color 0.3s ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
    background: rgba(246, 243, 238, 0.94);
    color: var(--ink);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.navbar {
    width: min(1120px, calc(100% - 48px));
    height: var(--header);
    margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.03em; }
.brand-tagline { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); }
.site-header.is-scrolled .brand-tagline,
.site-header.is-solid .brand-tagline { color: var(--ink); }

.nav-menu { display: flex; gap: 26px; list-style: none; }
.nav-link { text-decoration: none; font-size: 15px; font-weight: 500; opacity: 0.82; }
.nav-link:hover, .nav-link:focus-visible { opacity: 1; }

.menu-toggle {
    display: none; width: 44px; height: 44px; border: 1px solid currentColor;
    background: transparent; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; cursor: pointer; color: inherit;
}
.menu-toggle span { display: block; height: 1.5px; background: currentColor; transition: transform 0.25s ease, opacity 0.25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.meter {
    position: fixed; top: var(--header); right: 0; bottom: 0; width: 8px; z-index: 30;
    background: rgba(11, 58, 74, 0.08); pointer-events: none;
}
.meter span {
    display: block; width: 100%; height: 100%; background: var(--yellow);
    transform: scaleY(var(--send, 0.08)); transform-origin: top center;
}

.eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--yellow); margin-bottom: 12px;
}
.ink .eyebrow { color: var(--ink); }

.hero {
    position: relative; min-height: 100vh; min-height: 100svh;
    display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
    color: var(--foam);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 40, 51, 0.35), rgba(6, 40, 51, 0.2) 42%, rgba(6, 40, 51, 0.82));
}
.hero-copy-wrap {
    position: relative; z-index: 1; box-sizing: border-box;
    width: min(820px, calc(100vw - 40px));
    margin: 0 0 10vh 20px;
}
.hero-title {
    font-family: var(--font-display); font-weight: 500; font-size: clamp(72px, 12vw, 128px);
    line-height: 0.84; letter-spacing: -0.045em;
}
.hero-lede { margin-top: 18px; font-size: clamp(22px, 3vw, 32px); font-weight: 500; }
.hero-copy { margin-top: 12px; max-width: 100%; color: rgba(246, 243, 238, 0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.solid-btn, .line-btn {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 18px;
    text-decoration: none; font-weight: 600;
}
.solid-btn { background: var(--yellow); color: var(--ink-deep); }
.line-btn { border: 1px solid rgba(246, 243, 238, 0.5); color: var(--foam); }

.log { padding: 88px 0 36px; }
.section-heading { max-width: 680px; margin-bottom: 20px; }
.section-heading h2, .about h2, .contact h2, .legal-body h1, .lost-page h1 {
    font-family: var(--font-display); font-weight: 500; letter-spacing: -0.03em; line-height: 1.02;
}
.section-heading h2, .about h2, .contact h2 { font-size: clamp(40px, 5vw, 68px); margin-bottom: 12px; }
.section-heading p:not(.eyebrow), .about-lede { color: var(--muted); max-width: 58ch; }

.pass {
    display: grid; grid-template-columns: 92px 240px minmax(0, 1fr); gap: 28px; align-items: center;
    padding: 28px 0; border-top: 1px solid var(--line);
}
.pass time { font-family: var(--font-display); font-size: 28px; font-weight: 500; }
.pass img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pass-kicker { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); }
.pass h3 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.05; margin: 4px 0 8px; }
.pass > div > p { color: var(--muted); }
.clip-list { list-style: none; margin-top: 14px; }
.clip-list li { padding-top: 10px; }
.clip-list strong { font-weight: 600; }
.clip-list span { color: var(--muted); }
.clip-list span::before { content: " — "; }

.about { padding: 64px 0 88px; }
.about-layout { max-width: 760px; }

.contact { position: relative; min-height: 560px; display: flex; align-items: flex-end; color: var(--foam); }
.contact-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 40, 51, 0.15), rgba(6, 40, 51, 0.82)); }
.contact-layout { position: relative; z-index: 1; padding: 72px 0; max-width: 720px; }
.contact .eyebrow { color: var(--yellow); }
.contact p { max-width: 46ch; color: rgba(246, 243, 238, 0.86); margin-bottom: 22px; }
.mail-link { display: inline-flex; flex-direction: column; gap: 4px; text-decoration: none; }
.mail-link span { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--yellow); }
.mail-link strong { font-size: clamp(28px, 4vw, 44px); font-weight: 500; letter-spacing: -0.03em; }

.footer { background: var(--ink-deep); color: rgba(246, 243, 238, 0.78); padding: 36px 0; }
.footer-content { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 24px; }
.footer-brand { display: flex; gap: 12px; align-items: center; }
.footer-name { color: var(--foam); font-family: var(--font-display); font-size: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible, .mail-link:hover strong { color: var(--yellow); }

.legal-main { padding: calc(var(--header) + 48px) 0 80px; background: var(--paper); color: var(--ink); }
.legal-body { width: min(760px, calc(100vw - 40px)); margin-inline: auto; box-sizing: border-box; }
.legal-body h1 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 8px; overflow-wrap: break-word; }
.legal-updated { color: var(--muted); margin-bottom: 28px; }
.legal-body h2 { font-family: var(--font-display); font-size: 32px; font-weight: 500; margin: 32px 0 10px; }
.legal-body h3 { font-size: 18px; margin: 22px 0 8px; }
.legal-body p + p, .legal-body ul, .legal-body ol { margin-top: 12px; }
.legal-body ul, .legal-body ol { padding-left: 1.2em; }
.legal-body li + li { margin-top: 8px; }
.legal-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.lost-page .legal-body { padding-top: 8vh; }
.lost-page .solid-btn { margin-top: 18px; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
    .pass { grid-template-columns: 88px minmax(0, 1fr); }
    .pass img { grid-column: 1 / -1; }
    .footer-content { grid-template-columns: 1fr; }
    .meter { top: auto; right: 0; left: 0; bottom: 0; width: 100%; height: 6px; }
    .meter span { transform: scaleX(var(--send, 0.08)); transform-origin: left center; height: 100%; }
}

@media (max-width: 720px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        display: none; position: absolute; top: var(--header); left: 0; right: 0;
        flex-direction: column; gap: 0; padding: 8px 24px 20px; background: var(--paper); color: var(--ink);
    }
    .nav-menu.is-open { display: flex; }
    .nav-link { display: block; padding: 14px 0; border-top: 1px solid var(--line); opacity: 1; }
    .pass { grid-template-columns: 1fr; gap: 12px; }
    .hero-copy-wrap { width: calc(100vw - 32px); margin: 0 16px 56px; }
    .legal-body h1, .lost-page h1 { font-size: 40px; }
    .mail-link strong { font-size: 26px; word-break: break-all; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .meter span { transform: scaleY(1); }
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
    .meter span { transform: scaleX(1); }
}
