:root {
    --ink: #1c2a33;
    --muted: #5b6b75;
    --deep: #0c3442;
    --sea: #2b7f8c;
    --foam: #dcefee;
    --sand: #f6efe3;
    --paper: #fffdf8;
    --sunset: #e08a5b;
    --line: #e7dfd0;
    --danger: #a8392f;
    --radius: 14px;
    --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--sans);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(120% 90% at 50% 105%, rgba(224, 138, 91, .55) 0%, rgba(224, 138, 91, 0) 55%),
        linear-gradient(180deg, #0a2a36 0%, var(--deep) 45%, #1b6272 100%);
    padding: 96px 20px 150px;
    text-align: center;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .28em;
    font-size: .78rem;
    margin: 0 0 18px;
    color: #f3d9c3;
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(2.2rem, 6.5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 12px;
}

.dates { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 6px; color: #d6ebea; }
.subtitle { margin: 0 auto 28px; max-width: 34rem; color: #e8f3f2; font-size: 1.05rem; }

.hero-nav { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-nav a {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .55);
    padding: 10px 20px;
    border-radius: 999px;
    font-size: .95rem;
    transition: background .2s;
}
.hero-nav a:hover, .hero-nav a:focus-visible { background: rgba(255, 255, 255, .16); }

.waves {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    width: 100%; height: 90px;
    fill: var(--sand);
}

/* ---------- sections ---------- */

.section { max-width: 760px; margin: 0 auto; padding: 56px 20px 24px; }

.section h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(1.7rem, 4vw, 2.2rem);
    color: var(--deep);
    margin: 0 0 18px;
}

.section-intro { color: var(--muted); margin: 0 0 24px; }

.prose { font-size: 1.1rem; }
.prose p { margin: 0 0 1.1em; }
.prose .lede { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: var(--deep); }

.portrait { margin: 0 0 28px; }
.portrait img {
    display: block;
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(12, 52, 66, .18);
}

.timeline-title { font-family: var(--serif); font-weight: 400; color: var(--deep); margin: 36px 0 14px; font-size: 1.3rem; }

.timeline { list-style: none; margin: 0 0 28px; padding: 0 0 0 22px; border-left: 2px solid var(--sea); }
.timeline li { position: relative; padding: 0 0 20px 14px; }
.timeline li::before {
    content: "";
    position: absolute;
    left: -30px; top: 7px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--sunset);
    border: 2px solid var(--sand);
}
.timeline .when { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); font-weight: 600; }

/* ---------- cards & form ---------- */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 4px 14px rgba(28, 42, 51, .05);
}

.form { margin-bottom: 40px; }
.form.narrow { max-width: 380px; }

.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 16px; }
.form .opt { font-weight: 400; color: var(--muted); }

.row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .row.two { grid-template-columns: 1fr; gap: 0; } }

input[type="text"], input[type="date"], input[type="password"], textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 11px 13px;
    font: inherit;
    font-weight: 400;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d3cabb;
    border-radius: 10px;
}
input:focus, textarea:focus, .btn:focus-visible {
    outline: 3px solid rgba(43, 127, 140, .35);
    border-color: var(--sea);
}
textarea { resize: vertical; min-height: 120px; }

.captcha input { max-width: 200px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
    display: inline-block;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    padding: 12px 26px;
    background: var(--deep);
    color: #fff;
    text-decoration: none;
    transition: background .2s;
}
.btn:hover { background: var(--sea); }
.btn.ghost { background: transparent; color: var(--deep); border: 1px solid var(--deep); }
.btn.ghost:hover { background: var(--foam); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8a2c24; }

.fine { color: var(--muted); font-size: .84rem; margin: 14px 0 0; }

.notice { border-radius: 10px; padding: 14px 18px; margin: 0 0 22px; }
.notice.ok { background: var(--foam); border: 1px solid #b5d9d6; color: #0c4a46; }
.notice.err { background: #fbe9e6; border: 1px solid #efc3bc; color: #7a2820; }
.notice ul { margin: 0; padding-left: 18px; }

/* ---------- sightings list ---------- */

.list-title { font-family: var(--serif); font-weight: 400; color: var(--deep); font-size: 1.3rem; margin: 0 0 16px; }

.sighting-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.sighting .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin-bottom: 8px; }
.sighting .where, .sighting .seen { color: var(--sea); font-size: .88rem; }
.sighting .where::before { content: "\1F4CD\FE0E "; }
.sighting p { margin: 0 0 8px; overflow-wrap: anywhere; }
.sighting .posted { color: var(--muted); font-size: .8rem; margin: 0; }
.sighting.is-hidden { opacity: .65; border-style: dashed; }

.badge { font-size: .72rem; padding: 2px 10px; border-radius: 999px; font-weight: 600; margin-left: auto; }
.badge.live { background: var(--foam); color: #0c4a46; }
.badge.wait { background: #fdebd9; color: #8a4a1f; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 0; }
.admin .inline-form { margin-bottom: 18px; }
.admin h1 { font-family: var(--serif); font-weight: 400; color: var(--deep); }

/* ---------- footer ---------- */

.footer { text-align: center; color: var(--muted); font-size: .9rem; padding: 40px 20px 56px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}

/* ---------- finder note, photos, primary button ---------- */

.hero-nav a.primary { background: var(--sunset); border-color: var(--sunset); color: #2a1507; font-weight: 600; }
.hero-nav a.primary:hover, .hero-nav a.primary:focus-visible { background: #eba074; }

.found-note {
    background: var(--foam);
    border: 1px solid #b5d9d6;
    border-left: 5px solid var(--sea);
    border-radius: var(--radius);
    padding: 20px 22px 6px;
    margin: 0 0 28px;
}
.found-note h3 { font-family: var(--serif); font-weight: 400; color: var(--deep); font-size: 1.35rem; margin: 0 0 10px; }
.found-note p { margin: 0 0 14px; }

input[type="file"].file {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    font: inherit;
    font-weight: 400;
    background: #fff;
    border: 1px dashed #b9ad98;
    border-radius: 10px;
}
.photo-note { margin: -8px 0 16px; }

.sighting .shot { display: block; margin: 0 0 12px; }
.sighting .shot img {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
    background: var(--line);
}

.sighting.needs-review { border-left: 5px solid var(--sunset); }
.badge + .badge { margin-left: 0; }

/* ---------- send-on / dump-me-in options ---------- */

.found-ask { font-weight: 600; color: var(--deep); margin-bottom: 10px !important; }

.found-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 18px; }
@media (max-width: 600px) { .found-options { grid-template-columns: 1fr; } }

.found-option {
    position: relative;
    background: var(--paper);
    border: 1px solid #b5d9d6;
    border-radius: 12px;
    padding: 16px 18px 6px 58px;
}
.found-option h4 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 1.1rem; color: var(--deep); }
.found-option p { margin: 0 0 12px; }
.found-letter {
    position: absolute;
    left: 16px; top: 16px;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--sunset);
    color: #2a1507;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ---------- memorial portrait & name ---------- */

.hero-portrait {
    display: block;
    width: 150px;
    height: 150px;
    margin: 0 auto 22px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 38%;
    border: 4px solid rgba(255, 255, 255, .88);
    box-shadow: 0 0 0 8px rgba(255, 255, 255, .12), 0 14px 32px rgba(0, 0, 0, .35);
    background: #1b6272;
}

.hero .in-memory {
    font-family: var(--serif);
    font-size: 1.35rem;
    letter-spacing: .04em;
    margin: 6px 0 2px;
    color: #fff;
}
.hero .dates { letter-spacing: .06em; margin-bottom: 18px; }

@media (max-width: 600px) {
    .hero { padding: 56px 18px 128px; }
    .hero-portrait { width: 124px; height: 124px; margin-bottom: 18px; }
    .eyebrow { margin-bottom: 16px; }
    .subtitle { margin-bottom: 22px; }
}

/* ---------- container number ---------- */

.vial {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--deep);
    color: #fff;
    white-space: nowrap;
}

.form .container-field input { max-width: 160px; }
.form .hint { display: block; margin-top: 6px; font-weight: 400; font-size: .84rem; color: var(--muted); }

/* ---------- container filter ---------- */

.filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin: 0 0 20px;
}
.filter label { font-weight: 600; font-size: .92rem; }
.filter select {
    font: inherit;
    padding: 9px 12px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d3cabb;
    border-radius: 10px;
    max-width: 100%;
}
.filter .btn { padding: 9px 20px; }
.clear-filter { color: var(--sea); font-size: .92rem; }

a.vial { text-decoration: none; transition: background .2s; }
a.vial:hover, a.vial:focus-visible { background: var(--sea); }
