:root{
  /* River Evening: deep river blue at dusk with warm gold, the river photo as a full-width opening, dark throughout. */
  --sky:#0e1f2b; --paper:#16303f; --ink:#eef4f3; --muted:#a6bdc2;
  --maple:#f0b54a; --on-maple:#1b1405; --sun:#f0b54a; --line:#2b4a5c; --pennant-light:#dfe9f1;
  --shadow:0 12px 30px rgba(0,0,0,.45);
  --display:"DM Serif Display",Georgia,"Times New Roman",serif;
  --ui:"DM Sans","Segoe UI",Arial,sans-serif;
  --body:"DM Sans","Segoe UI",Arial,sans-serif;
  --hand:"Caveat","Segoe Print","Bradley Hand",cursive;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--sky);color:var(--ink);font-family:var(--body);font-size:1.125rem;line-height:1.6}
img{max-width:100%;height:auto;display:block}
a{color:var(--maple)}
:focus-visible{outline:3px solid var(--sun);outline-offset:3px;border-radius:4px}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}
h1,h2,h3{font-family:var(--display);line-height:1.05;margin:0;text-wrap:balance}
h2{font-size:clamp(1.8rem,4.5vw,2.6rem);font-weight:800}
h3{font-size:1.2rem;font-weight:600}
p{margin:0}
.prose{display:flex;flex-direction:column;gap:1em;max-width:62ch}
.muted{color:var(--muted)}
.small{font-size:.95rem}

/* pennants */
.bunting{display:flex;justify-content:center;gap:10px;overflow:hidden;border-top:3px solid var(--ink);padding:0 4px}
.bunting span{flex:0 0 44px;height:52px;background:var(--maple);clip-path:polygon(0 0,100% 0,50% 100%)}
.bunting span:nth-child(even){background:var(--pennant-light)}

/* hero */
.hero{padding:36px 0 56px}
.hero-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;align-items:center}
.eyebrow{font-family:var(--ui);font-weight:600;font-size:.95rem;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
h1{font-size:clamp(3rem,10vw,6.2rem);font-weight:800;letter-spacing:-.03em;margin:.15em 0 .1em}
h1 em{font-style:normal;color:var(--maple);display:block}
.motto{font-family:var(--hand);font-size:clamp(1.7rem,4.6vw,2.4rem);line-height:1.15;color:var(--ink)}
.hero .lede{margin-top:18px;max-width:46ch}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.btn{font-family:var(--ui);font-weight:600;font-size:1rem;border:2px solid var(--ink);background:transparent;color:var(--ink);padding:12px 20px;border-radius:999px;text-decoration:none;cursor:pointer;display:inline-block}
.btn.primary{background:var(--maple);border-color:var(--maple);color:var(--on-maple)}
.btn:hover{transform:translateY(-1px)}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none}
.btn.quiet{border-color:var(--line);font-size:.9rem;padding:8px 14px}
.snap{background:var(--paper);padding:12px 12px 16px;box-shadow:var(--shadow);border-radius:4px;margin:0}
.snap img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:2px}
.snap figcaption{font-family:var(--hand);font-size:1.45rem;text-align:center;padding-top:10px;line-height:1.1}
.hero .snap{transform:rotate(2.2deg);max-width:420px;justify-self:center}

section{padding:56px 0}
.band{background:var(--paper)}
.section-head{display:flex;flex-direction:column;gap:10px;margin-bottom:28px;max-width:62ch}

/* card steps */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;list-style:none;padding:0;margin:0;counter-reset:s}
.steps li{counter-increment:s;background:var(--sky);border-radius:14px;padding:22px;display:flex;flex-direction:column;gap:8px}
.steps li::before{content:counter(s);font-family:var(--ui);font-weight:800;font-size:1.1rem;width:36px;height:36px;border-radius:50%;background:var(--maple);color:var(--on-maple);display:grid;place-items:center}

/* story */
.story-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:44px;align-items:start}
.story-photos{display:flex;flex-direction:column;gap:26px}
.story-photos .snap:nth-child(1){transform:rotate(-1.6deg)}
.story-photos .snap:nth-child(2){transform:rotate(1.4deg)}
.story-photos .snap img{aspect-ratio:4/3}
.dates{font-family:var(--ui);font-weight:600;color:var(--muted)}
.family{border-left:4px solid var(--maple);padding-left:18px}

/* wall */
.notice{background:var(--paper);border:1px dashed var(--line);border-radius:12px;padding:16px 18px;color:var(--muted)}
.year{font-family:var(--ui);font-weight:800;font-size:1.5rem;margin:30px 0 14px;display:flex;align-items:center;gap:14px}
.year::after{content:"";flex:1;height:2px;background:var(--line)}
.posts{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:20px}
.post{background:var(--paper);border-radius:14px;box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column;min-width:0}
.post > img{width:100%;aspect-ratio:4/3;object-fit:cover}
.post-body{padding:20px;display:flex;flex-direction:column;gap:14px;flex:1}
.post .label{font-family:var(--ui);font-weight:600;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:var(--maple)}
.post .text{white-space:pre-wrap;overflow-wrap:anywhere}
.post .beauty{font-family:var(--hand);font-size:1.5rem;line-height:1.2}
.post footer{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);font-size:.92rem;color:var(--muted);display:flex;flex-direction:column;gap:2px}
.post footer strong{color:var(--ink);font-family:var(--ui);font-weight:600;font-size:1rem}
.tag{align-self:flex-start;font-family:var(--ui);font-weight:600;font-size:.75rem;letter-spacing:.06em;text-transform:uppercase;background:var(--sun);color:#2b1e00;padding:3px 10px;border-radius:999px}
.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* form */
.form-card{background:var(--paper);border-radius:18px;box-shadow:var(--shadow);padding:28px;max-width:720px}
form{display:flex;flex-direction:column;gap:18px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
label{font-family:var(--ui);font-weight:600;font-size:1rem}
label span{font-weight:400;color:var(--muted);font-family:var(--body)}
input,textarea{font:inherit;color:var(--ink);background:var(--sky);border:2px solid var(--line);border-radius:10px;padding:11px 13px;width:100%}
textarea{min-height:120px;resize:vertical}
input:focus,textarea:focus{border-color:var(--ink);outline:none}
.status{font-family:var(--ui);font-weight:600}
.status.err{color:var(--maple)}
.thanks{display:flex;flex-direction:column;gap:12px}
.thanks .motto{color:var(--maple)}
[hidden]{display:none !important}

/* family review */
.admin{border:2px solid var(--ink);border-radius:18px;padding:26px;background:var(--paper);display:flex;flex-direction:column;gap:22px}
.pending{display:flex;flex-direction:column;gap:16px}
.pending .post{box-shadow:none;border:1px solid var(--line)}
.pending .post > img{aspect-ratio:auto;max-height:340px;object-fit:contain;background:var(--sky)}
.emails{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.emails li{display:flex;justify-content:space-between;align-items:center;gap:12px;background:var(--sky);padding:8px 8px 8px 14px;border-radius:10px;overflow-wrap:anywhere}
.addrow{display:flex;flex-direction:row;gap:10px;flex-wrap:wrap}
.addrow input{flex:1 1 220px;width:auto}

footer.site{padding:44px 0 60px;text-align:left}
footer.site .motto{margin-bottom:10px}

@media (max-width:820px){
  .hero-grid,.story-grid{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr}
  .two{grid-template-columns:1fr}
  .hero .snap{max-width:340px}
  section{padding:44px 0}
  .form-card,.admin{padding:20px}
}

/* review and family pages */
.page{padding:36px 0 60px}
.page h1{font-size:clamp(2.2rem,7vw,3.4rem);margin:0 0 .3em}
.page h1 a{color:inherit;text-decoration:none}
.panel{background:var(--paper);border-radius:18px;box-shadow:var(--shadow);padding:26px;display:flex;flex-direction:column;gap:20px;max-width:760px}
.panel .post{box-shadow:none;border:1px solid var(--line)}
.panel .post > img{aspect-ratio:auto;max-height:420px;object-fit:contain;background:var(--sky)}
.stack{display:flex;flex-direction:column;gap:16px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.check{font-family:var(--ui);font-weight:600;font-size:.95rem}
.check.ok::before{content:"\2713  "}
.check.no{color:var(--maple)}
.check.no::before{content:"!  "}


/* site nav */
.nav{padding:14px 0 0}
.nav .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px 20px}
.nav a{font-family:var(--ui);font-weight:600;color:var(--ink);text-decoration:none}
.nav a:hover{text-decoration:underline}
.nav .brand{font-weight:800}
.nav .links{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:.98rem}

/* photo gallery */
.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px;list-style:none;margin:0;padding:0}
.gallery li{min-width:0}
.shot{display:flex;flex-direction:column;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;background:var(--paper);border:0;padding:10px 10px 14px;border-radius:4px;box-shadow:var(--shadow)}
.gallery li:nth-child(3n+1) .shot{transform:rotate(-.8deg)}
.gallery li:nth-child(3n+2) .shot{transform:rotate(.7deg)}
.shot:hover,.shot:focus-visible{transform:rotate(0) scale(1.02)}
.shot img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:2px}
.shot .cap{font-family:var(--hand);font-size:1.35rem;line-height:1.15;padding-top:10px;overflow-wrap:anywhere}
.shot .by{font-size:.9rem;color:var(--muted);padding-top:4px}
@media (prefers-reduced-motion: reduce){.shot,.gallery li .shot{transform:none !important}}
dialog.viewer{border:0;padding:0;background:var(--paper);color:var(--ink);border-radius:8px;max-width:min(94vw,900px);width:max-content;box-shadow:var(--shadow)}
dialog.viewer::backdrop{background:rgba(10,18,28,.8)}
dialog.viewer img{max-height:72vh;width:auto;max-width:100%;margin:0 auto}
dialog.viewer .info{padding:16px 20px 20px;display:flex;flex-direction:column;gap:8px}
dialog.viewer .cap{font-family:var(--hand);font-size:1.6rem;line-height:1.15;overflow-wrap:anywhere}
.thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px;list-style:none;margin:0;padding:0}
.thumbs li{display:flex;flex-direction:column;gap:6px;background:var(--sky);border-radius:10px;padding:8px;min-width:0;font-size:.9rem;overflow-wrap:anywhere}
.thumbs img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:6px}
.people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.people li{background:var(--sky);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}
.people input[readonly]{font-size:.85rem;background:var(--paper)}

/* version label for comparing drafts */
.version-tag{background:var(--ink);color:var(--sky);font-family:var(--ui);font-size:.95rem;padding:9px 16px;display:flex;flex-wrap:wrap;justify-content:center;align-items:baseline;gap:4px 12px;text-align:center}
.version-tag strong{font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.version-tag i{font-style:normal;opacity:.75;font-size:.85rem}

/* ---- River Evening ---- */
h1,h2,h3{font-weight:400}
h1{letter-spacing:0}
body{font-size:1.06rem}
.version-tag{background:var(--sun);color:#1b1405}
.bunting{display:none}
.nav{padding:14px 0}
.hero{padding:clamp(220px,42vw,380px) 0 48px;background:linear-gradient(180deg,rgba(14,31,43,.15) 0%,rgba(14,31,43,.55) 45%,rgba(14,31,43,.97) 88%),url(kevin-river.jpg) center 30%/cover no-repeat}
.hero-grid{grid-template-columns:1fr}
.hero-grid > figure{display:none}
.hero .eyebrow{color:var(--ink)}
.hero .lede{max-width:52ch}
.motto{color:var(--sun)}
.band{background:#132a38}
.steps li{background:var(--paper);border:1px solid var(--line)}
.snap{background:var(--paper);padding:0;border-radius:12px;overflow:hidden;border:1px solid var(--line)}
.snap figcaption{padding:10px 12px 14px}
.story-photos .snap{transform:none !important}
.family{border-left-color:var(--sun)}
.post,.form-card,.panel{border:1px solid var(--line)}
.post .label{color:var(--sun)}
.tag{background:var(--ink);color:var(--sky)}
.shot{background:var(--paper);padding:0;border-radius:12px;overflow:hidden;border:1px solid var(--line);transform:none !important}
.shot img{border-radius:0}
.shot .cap,.shot .by{padding-left:12px;padding-right:12px}
.shot .by{padding-bottom:12px}
@media (max-width:820px){
  .hero{padding-top:300px;background:linear-gradient(180deg,rgba(14,31,43,0) 0,rgba(14,31,43,0) 190px,#0e1f2b 300px),url(kevin-river.jpg) 60% top/auto 300px no-repeat,#0e1f2b}
}
