:root {
  --paper: #f7f4ec;
  --card: #fffdf8;
  --ink: #26332b;
  --muted: #5f6b62;
  --line: #ddd6c6;
  --shutter: #2f5d5a;
  --shutter-ink: #fff;
  --barn: #8c3b2e;
  --soft: #ece6d6;
  --radius: 10px;
  --serif: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b211d;
    --card: #232a25;
    --ink: #ece8dd;
    --muted: #a8b0a8;
    --line: #38423b;
    --shutter: #5f9d97;
    --shutter-ink: #10201e;
    --barn: #e08a77;
    --soft: #2b332d;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
h2 { font-size: 1.35rem; }
a { color: var(--shutter); }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px; z-index: 10; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--card); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand strong { font-family: var(--serif); font-size: 1.25rem; letter-spacing: .06em; }
.brand small { color: var(--muted); font-size: .75rem; }
.site-nav { display: flex; align-items: center; gap: 14px; }
.menu summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { list-style: none; margin: 0; padding: 8px; position: absolute; right: 16px; top: 58px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); min-width: 200px; box-shadow: 0 8px 24px rgb(0 0 0 / .12); }
.menu li a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.menu li a:hover, .menu li a[aria-current] { background: var(--soft); }
.me { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.me-name { display: none; }
.nav-wide { display: none; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-wide a { display: block; padding: 6px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .95rem; }
.nav-wide a:hover, .nav-wide a[aria-current] { background: var(--soft); }
@media (min-width: 1260px) {
  .nav-wide { display: flex; }
  .menu { display: none; }
}
.nav-wide a { white-space: nowrap; }
/* The name next to the photo only shows when there's room for it. */
@media (min-width: 1480px) { .me-name { display: inline; font-size: .9rem; white-space: nowrap; } }
@media (min-width: 1260px) and (max-width: 1360px) {
  .nav-wide a, .over-hero .nav-wide a { padding: 6px 7px; font-size: .95rem; }
  .brand small { display: none; }
}

main { max-width: 900px; margin: 0 auto; padding: 28px 16px 60px; }
main.wide { max-width: 1200px; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; text-align: center; padding: 24px 16px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.narrow { max-width: 440px; margin: 6vh auto; }
.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.two > .card { margin: 0; } }
.lead { font-size: 1.1rem; color: var(--muted); }
.small, .meta { font-size: .85rem; color: var(--muted); }
.meta { display: block; }
.note { background: var(--soft); padding: 12px 16px; border-radius: var(--radius); }
.flash { background: color-mix(in srgb, var(--shutter) 14%, var(--card)); border: 1px solid var(--shutter); padding: 10px 14px; border-radius: var(--radius); }
.error { color: var(--barn); font-weight: 600; }
.crumbs { font-size: .9rem; margin-bottom: 8px; }
.title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.title-row h1 { margin: 0; }
.tag { font-size: .75rem; background: var(--soft); border-radius: 999px; padding: 2px 8px; font-family: var(--sans); font-weight: 400; vertical-align: middle; }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
input, select, textarea { width: 100%; font: inherit; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
input[type=checkbox] { width: auto; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--shutter) 50%, transparent); outline-offset: 1px; }
input.code { font: 600 1.6rem ui-monospace, Menlo, monospace; letter-spacing: .3em; text-align: center; }
button, .button { display: inline-block; margin-top: 16px; background: var(--shutter); color: var(--shutter-ink); border: 0; border-radius: 8px; padding: 10px 18px; font: 600 1rem var(--sans); cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { background: var(--soft); color: var(--ink); }
button.small, .button.small { padding: 6px 12px; font-size: .9rem; margin-top: 0; }
button.link { background: none; color: var(--muted); padding: 0; margin: 0 10px 0 0; font-weight: 400; font-size: .85rem; text-decoration: underline; }
button:disabled { opacity: .6; cursor: wait; }
form.inline { display: inline; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.inline-form label { margin: 0; flex: 1 1 200px; }
.inline-form button { margin: 0; }

.hero { position: relative; border-radius: 14px; overflow: hidden; min-height: 70vh; display: grid; align-items: end; background: var(--shutter); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-text { position: relative; margin: 16px; padding: 24px; max-width: 560px; background: color-mix(in srgb, var(--card) 92%, transparent); border-radius: 12px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--barn); margin: 0 0 6px; }

.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list li.reserved span:first-child::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--barn); margin-right: 8px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .9rem; }
.chips a[aria-current] { background: var(--shutter); color: var(--shutter-ink); border-color: var(--shutter); }
.topics { list-style: none; padding: 0; margin: 16px 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.topics li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.topics li:last-child { border-bottom: 0; }
.topics li.pinned { background: color-mix(in srgb, var(--shutter) 6%, var(--card)); }
.topics a { text-decoration: none; color: var(--ink); }
.count { text-align: center; font-weight: 600; line-height: 1; }
.count small { display: block; font-weight: 400; font-size: .7rem; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: var(--s, 36px); height: var(--s, 36px); border-radius: 50%; background: var(--soft); color: var(--shutter); font: 600 .8rem var(--sans); object-fit: cover; flex: none; }
.post, .replies li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; }
.byline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.replies { list-style: none; padding: 0; }
.replies li { display: grid; grid-template-columns: auto 1fr; gap: 12px; }
.post-img { display: block; margin-top: 12px; border-radius: 8px; max-height: 520px; width: auto; }

.prose p, .prose li { max-width: 68ch; }
.prose img { border-radius: 8px; margin: 12px 0; }
.lead-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; }

.originals, .tiles { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.tiles { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.originals a, .tiles a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; height: 100%; }
.originals img, .tiles img, .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: var(--soft); display: block; }
.originals img { aspect-ratio: 1; object-position: top; }
.originals span, .tiles .meta { font-size: .8rem; color: var(--muted); }
.tiles.admin a { padding: 18px; }
.original { display: grid; gap: 24px; margin-bottom: 24px; }
@media (min-width: 700px) { .original { grid-template-columns: 280px 1fr; } }
.portrait { border-radius: 10px; width: 100%; }
.pager { display: flex; justify-content: space-between; margin-top: 32px; }

.news-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.news-list a { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.news-list img { width: 120px; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }

.month { margin-top: 28px; }
.events { list-style: none; padding: 0; }
.events li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--shutter); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.events li.reservation { border-left-color: var(--barn); }
.events .date { text-align: center; line-height: 1.1; }
.events .date span { text-transform: uppercase; font-size: .75rem; color: var(--muted); }
.events .date strong { display: block; font: 600 1.6rem var(--serif); }
.events p { margin: 2px 0; }

.photo-grid { list-style: none; padding: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; display: block; }

.recipes { list-style: none; padding: 0; }
.recipes details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 8px; }
.recipes summary { cursor: pointer; font: 600 1.1rem var(--serif); }
.rules > li { margin-bottom: 10px; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.profile-head p { margin: 0; }
.steps { list-style: none; padding: 0; }
.cards { list-style: none; padding: 0; }
.cards .approved { opacity: .7; }
.cards .declined { opacity: .5; }
.stack label { font-weight: 400; }
.table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .92rem; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr.muted { color: var(--muted); }
@media (max-width: 640px) { .table td:nth-child(3), .table th:nth-child(3) { display: none; } .news-list a { grid-template-columns: 80px 1fr; } .news-list img { width: 80px; } }
.file-pick { display: inline-block; margin: 0; padding: 6px 12px; border-radius: 8px; background: var(--shutter); color: var(--shutter-ink); font-weight: 600; cursor: pointer; }
.file-pick:focus-within { outline: 3px solid color-mix(in srgb, var(--shutter) 50%, transparent); }
.tag.ok { background: color-mix(in srgb, var(--shutter) 18%, var(--card)); color: var(--ink); text-decoration: none; }

/* Month view */
.view-tabs { margin: 0 0 8px; }
.month-nav { display: flex; align-items: center; gap: 12px; margin: 16px 0 4px; }
.month-nav h2 { margin: 0; min-width: 11ch; text-align: center; }
.month-nav .button { margin: 0; }
.legend { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.month-grid { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.month-grid li { background: var(--card); min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.month-grid li.dow { min-height: 0; padding: 6px; text-align: center; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--soft); }
.month-grid li.pad { background: var(--paper); }
.month-grid .num { font-size: .85rem; color: var(--muted); }
.month-grid li.today .num { background: var(--shutter); color: var(--shutter-ink); border-radius: 999px; width: 1.8em; height: 1.8em; display: grid; place-items: center; font-weight: 600; }
.chip { display: block; font-size: .75rem; line-height: 1.3; padding: 2px 6px; border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: color-mix(in srgb, var(--shutter) 16%, var(--card)); border-left: 3px solid var(--shutter); }
.chip.reservation { background: color-mix(in srgb, var(--barn) 14%, var(--card)); border-left-color: var(--barn); }
.chip.bday { background: none; border-left: 0; padding-left: 0; color: var(--muted); }
.chip.bday::before { content: '🎂 '; }
.chip.cont { opacity: .75; }
.legend .chip { display: inline-block; }
.more { font-size: .72rem; color: var(--muted); }
@media (max-width: 700px) {
  .month-grid li { min-height: 56px; padding: 4px 3px; align-items: center; }
  .month-grid .chip { font-size: 0; width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; display: inline-block; }
  .month-grid .chip.event { background: var(--shutter); }
  .month-grid .chip.reservation { background: var(--barn); }
  .month-grid .chip.bday { background: var(--muted); opacity: .6; }
  .month-grid .chip.bday::before { content: none; }
  .month-grid li.busy { flex-flow: row wrap; justify-content: center; align-content: flex-start; }
  .month-grid li.busy .num { flex-basis: 100%; text-align: center; }
  .month-grid .more { display: none; }
}

@media (max-width: 420px) { .brand small { white-space: nowrap; font-size: .68rem; } }

/* ---------- Homepage hero ---------- */
@font-face { font-family: 'Poppins'; font-weight: 400; font-display: swap; src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-display: swap; src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-weight: 700; font-display: swap; src: url('/fonts/poppins-latin-700-normal.woff2') format('woff2'); }
:root { --display: 'Poppins', var(--sans); }

.hero-band { position: relative; margin: 0 clamp(0px, 1vw, 12px); height: clamp(540px, 88vh, 880px); overflow: hidden; border-radius: 0 0 clamp(36px, 7vw, 120px) clamp(36px, 7vw, 120px); background: #3f6b45; isolation: isolate; }
.hero-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; z-index: -2; animation: hero-settle 1.8s cubic-bezier(.2,.7,.2,1) both; }
.hero-band::after { content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(8 18 10 / .55) 0%, rgb(8 18 10 / 0) 22%),
    linear-gradient(90deg, rgb(8 18 10 / .62) 0%, rgb(8 18 10 / .28) 45%, rgb(8 18 10 / 0) 70%),
    linear-gradient(0deg, rgb(8 18 10 / .35) 0%, rgb(8 18 10 / 0) 35%); }
.hero-copy { position: absolute; left: clamp(20px, 5vw, 72px); right: 20px; bottom: clamp(56px, 12vh, 140px); color: #fff; max-width: 900px; animation: hero-rise 1s .25s cubic-bezier(.2,.7,.2,1) both; }
.hero-copy h1 { font: 700 clamp(2.7rem, 7.4vw, 6rem)/1.02 var(--display); letter-spacing: -.02em; margin: 0 0 .35em; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.hero-tag { font: 400 clamp(1.4rem, 3.4vw, 2.7rem)/1.2 var(--display); margin: 0 0 1.1em; text-shadow: 0 2px 16px rgb(0 0 0 / .3); }
.hero-hello { font: 500 clamp(1rem, 1.6vw, 1.25rem) var(--display); margin: 0 0 .6em; letter-spacing: .02em; opacity: .92; }
.hero-button { font-family: var(--display); font-weight: 500; background: #fff; color: #1f3324; padding: 14px 26px; border-radius: 999px; box-shadow: 0 6px 24px rgb(0 0 0 / .25); transition: transform .2s, box-shadow .2s; }
.hero-button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes hero-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero-band img, .hero-copy { animation: none; } }

/* Header sitting on the photo */
.site-header.over-hero { position: absolute; top: 0; left: 0; right: 0; background: none; border: 0; padding: 22px clamp(20px, 5vw, 72px); z-index: 6; }
.over-hero .brand, .over-hero .brand small { color: #fff; }
.over-hero .brand img { width: 62px; height: auto; }
.over-hero .brand strong { font: 500 1.5rem var(--display); letter-spacing: .08em; }
.over-hero .nav-wide a { color: #fff; font: 400 1.05rem var(--display); background: none; border-radius: 0; padding: 6px 10px; text-shadow: 0 1px 8px rgb(0 0 0 / .35); }
.over-hero .nav-wide a:hover, .over-hero .nav-wide a[aria-current] { background: none; box-shadow: inset 0 -2px 0 #fff; }
.over-hero .menu summary { color: #fff; border-color: rgb(255 255 255 / .7); }
.over-hero .me { color: #fff; }
.over-hero .button.small { background: #fff; color: #1f3324; }

/* Below the hero */
.intro { max-width: 640px; margin: 24px auto 0; text-align: center; }
.intro h2 { font: 700 clamp(1.8rem, 4vw, 2.6rem)/1.15 var(--display); }
.intro p { font-size: 1.1rem; }
.home-cards { margin-top: 4px; }
.site-header.over-hero ~ main { padding-top: 40px; }
@media (min-width: 900px) { .home-cards { margin-top: -110px; position: relative; } .home-cards > .card { box-shadow: 0 10px 30px rgb(20 30 22 / .10); } }
@media (max-width: 700px) { .hero-band { height: 78vh; } .hero-band::after { background: linear-gradient(180deg, rgb(8 18 10 / .55) 0%, rgb(8 18 10 / .1) 30%, rgb(8 18 10 / .55) 100%); } }
@media (min-width: 900px) { .hero-band.home .hero-copy { bottom: 180px; } }

/* ---------- Inner page heroes ---------- */
.hero-band.inner { height: clamp(340px, 52vh, 540px); }
.hero-band.inner .hero-copy { bottom: clamp(36px, 7vh, 72px); }
.hero-band.inner h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); }
.hero-band.inner .hero-tag { font-size: clamp(1.15rem, 2.4vw, 1.9rem); margin-bottom: .9em; }
.hero-band.inner .hero-tag:last-child { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .button { margin: 0; }
.hero-button.ghost { background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .8); backdrop-filter: blur(4px); }
.site-header.over-hero ~ main > .chips:first-child, .site-header.over-hero ~ main > .lead:first-child { margin-top: 0; }
@media (max-width: 700px) { .hero-band.inner { height: 56vh; min-height: 340px; } }

.hero-admin { list-style: none; padding: 0; display: grid; gap: 16px; }
.hero-admin li { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .hero-admin li { grid-template-columns: 320px 1fr; } }
.hero-admin h2 { margin-bottom: 8px; }
.hero-admin form { margin-top: 8px; }
.hero-admin .file-pick { margin-right: 10px; }
.hero-thumb { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: #3f6b45; }
.hero-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 18 10 / .6), rgb(8 18 10 / 0) 75%); }
.hero-thumb figcaption { position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 1; color: #fff; display: flex; flex-direction: column; }
.hero-thumb strong { font: 700 1.2rem/1.1 var(--display); }
.hero-thumb span { font: 400 .85rem var(--display); }

/* .small is also the muted-text helper, so restate button text colors */
button.small, .button.small, .file-pick.small { color: var(--shutter-ink); }
button.small.secondary, .button.small.secondary { color: var(--ink); }
.over-hero .button.small { color: #1f3324; }

/* Hero that shows the whole photo: nothing sits on top of it. The menu is
   on a dark band above and the headline is on the band below. */
.hero-band.inner.whole { height: auto; min-height: 0; padding-top: clamp(84px, 9vw, 112px); background: #1d2a20; }
.hero-band.inner.whole img { position: relative; display: block; width: 100%; height: auto; z-index: 0; border-radius: 6px; animation: none; }
.hero-band.inner.whole::after { content: none; }
.hero-band.inner.whole .hero-copy { position: relative; left: 0; right: 0; bottom: 0; max-width: none; padding: clamp(18px, 3vw, 34px) clamp(20px, 5vw, 72px) clamp(28px, 4vw, 52px); }
.hero-band.inner.whole h1, .hero-band.inner.whole .hero-tag { text-shadow: none; }
.fit { border: 1px solid var(--line); border-radius: 8px; margin: 14px 0 0; padding: 4px 12px 12px; }
.fit legend { font-weight: 600; padding: 0 4px; }
.fit label.check { margin: 8px 0; }
.fit select { width: auto; margin-left: 8px; }
.avatar { line-height: 1; text-align: center; letter-spacing: .02em; }

/* ---------- Slideshow ---------- */
.slideshow { margin: 0 0 28px; outline: none; }
.slideshow .stage { position: relative; background: #121a14; border-radius: 12px; overflow: hidden; height: clamp(300px, 68vh, 760px); display: grid; place-items: center; touch-action: pan-y; user-select: none; }
.slideshow #slide-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; transition: opacity .25s; cursor: zoom-in; }
.slideshow #slide-img.fading { opacity: .35; }
.slideshow .nav { position: absolute; top: 50%; transform: translateY(-50%); margin: 0; width: 52px; height: 52px; border-radius: 50%; padding: 0; font: 400 2.2rem/1 var(--sans); background: rgb(255 255 255 / .9); color: #1f3324; box-shadow: 0 4px 16px rgb(0 0 0 / .3); }
.slideshow .nav:hover { background: #fff; }
.slideshow .prev { left: 14px; }
.slideshow .next { right: 14px; }
.slide-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 2px 0; }
#slide-count { font-weight: 600; font-variant-numeric: tabular-nums; }
#slide-caption { flex: 1 1 240px; }
.slide-tools { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.slide-tools button { margin: 0; }
.photo-grid a[aria-current] img { outline: 3px solid var(--shutter); outline-offset: 2px; }
.latest { margin-top: 36px; }
.latest .title-row h2 { margin: 0; }
.latest .title-row p { margin: 2px 0 0; }
@media (max-width: 700px) {
  .slideshow .stage { height: min(62vh, 82vw); border-radius: 8px; }
  .slideshow .nav { width: 40px; height: 40px; font-size: 1.7rem; }
  .slideshow .prev { left: 8px; } .slideshow .next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .slideshow #slide-img { transition: none; } }

.slideshow .close { display: none; }
/* Full-screen viewer */
html.viewer-open { overflow: hidden; }
.slideshow.is-full { position: fixed; inset: 0; z-index: 100; margin: 0; background: #0b0f0c; display: flex; flex-direction: column; }
.slideshow.is-full .stage { flex: 1; height: auto; border-radius: 0; background: #0b0f0c; }
.slideshow.is-full #slide-img { cursor: default; }
.slideshow.is-full .slide-bar { padding: 12px 20px 16px; color: #e8e6df; }
.slideshow.is-full #slide-caption, .slideshow.is-full #slide-caption a { color: #c9cdc6; }
.slideshow.is-full .close { display: grid; place-items: center; position: absolute; top: 14px; right: 14px; margin: 0; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgb(255 255 255 / .9); color: #1f3324; font: 400 1.2rem/1 var(--sans); }
.slideshow:fullscreen { width: 100vw; height: 100vh; }

/* ---------- Family tree ---------- */
.hero-band.rotating img { opacity: 0; transition: opacity 1.4s ease; animation: none; }
.hero-band.rotating img.on { opacity: 1; }
.hero-hello a { color: #fff; text-decoration: none; border-bottom: 1px solid rgb(255 255 255 / .6); }
.person-card h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 600; }
.person-card h3 a { text-decoration: none; color: var(--ink); }
.person-card .eyebrow { margin-bottom: 4px; }
.person-card.remembered { background: color-mix(in srgb, var(--soft) 50%, var(--card)); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: .95rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.children { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.children .card { margin: 0; }
.children h3 { margin: 0 0 2px; font: 600 1.1rem var(--display); }
.children h3 a { color: var(--ink); text-decoration: none; }
.children p { margin: 4px 0 0; }
.count-line { color: var(--shutter) !important; font-weight: 600; }
.photo-grid.pick li { position: relative; }
.photo-grid.pick form { position: absolute; right: 6px; bottom: 6px; }
.photo-grid.pick form .link { background: rgb(255 255 255 / .9); color: #1f3324; padding: 2px 8px; border-radius: 6px; text-decoration: none; }
.pick-photo { display: block; margin: 0; position: relative; cursor: pointer; }
.pick-photo input { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; z-index: 1; accent-color: var(--shutter); }
.pick-photo:has(input:checked) img { outline: 4px solid var(--shutter); outline-offset: -4px; opacity: .85; }

/* Person pages: show each photo whole in a tall frame */
.hero-band.person .hero-frame { position: relative; height: clamp(340px, 60vh, 720px); overflow: hidden; border-radius: 6px; background: #111814; }
.hero-band.person .slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-band.person .slide.on { opacity: 1; }
.hero-band.person .slide img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; border-radius: 0; animation: none; }
.hero-band.person .slide .photo { object-fit: contain; }
.hero-band.person .slide .backdrop { object-fit: cover; filter: blur(28px) brightness(.5) saturate(1.1); transform: scale(1.15); }
.hero-band.person .hero-hello { margin-bottom: .4em; }
@media (max-width: 700px) { .hero-band.person .hero-frame { height: min(70vh, 110vw); } }
@media (prefers-reduced-motion: reduce) { .hero-band.person .slide { transition: none; } }

/* Reservation review */
.res-dates { font: 700 clamp(1.3rem, 3vw, 1.8rem)/1.2 var(--display); margin: 0 0 12px; }
.card.warn { border-color: var(--barn); background: color-mix(in srgb, var(--barn) 7%, var(--card)); }
.card.warn h2 { color: var(--barn); }
.card.clear { border-color: var(--shutter); background: color-mix(in srgb, var(--shutter) 6%, var(--card)); }
.decide .card { margin: 0; }
button.big { font-size: 1.15rem; padding: 14px 30px; }
.tag.approved { background: color-mix(in srgb, var(--shutter) 18%, var(--card)); }
.tag.declined { background: color-mix(in srgb, var(--barn) 16%, var(--card)); }

/* Board on/off switch in the Family list */
button.toggle { width: 44px; height: 24px; padding: 0; border-radius: 999px; background: var(--line); position: relative; border: 0; cursor: pointer; transition: background .15s; }
button.toggle span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .25); transition: transform .15s; }
button.toggle.on { background: var(--shutter); }
button.toggle.on span { transform: translateX(20px); }
button.toggle:focus-visible { outline: 2px solid var(--barn); outline-offset: 2px; }
.compose { display: grid; gap: 6px; }
.compose textarea { font: inherit; }
.compose details { margin: 8px 0; }
.compose details label { display: block; margin-top: 6px; }
.send-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.attach-list { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.attach-list li { display: flex; align-items: baseline; gap: 10px; padding: 6px 10px; background: var(--soft); border-radius: 8px; }
.sending progress { width: 100%; height: 14px; accent-color: var(--shutter); }
.attach-list li .meta { display: inline; margin-left: auto; }

/* Main page headers: a wide 16:9 frame, capped so the page still shows below it.
   Phones keep a taller crop so the headline fits on the photo. */
.hero-band.inner:not(.whole):not(.person) { height: clamp(340px, calc((100vw - 2vw) * 9 / 16), 82vh); }
@media (max-width: 700px) { .hero-band.inner:not(.whole):not(.person) { height: 56vh; } }

/* Home page panels: a 16:9 picture from that page's header */
.home-cards > .card { overflow: hidden; }
.card-pic { display: block; margin: -20px -20px 16px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--soft); }
.card-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.card-pic:hover img { transform: scale(1.03); }
.list.bdays li::before { content: "🎂"; margin-right: 8px; }
.list.bdays li { display: grid; grid-template-columns: auto 1fr; column-gap: 0; }
.list.bdays li::before { grid-row: span 2; align-self: start; padding-top: 1px; }
.list.bdays li > * { grid-column: 2; }
@media (prefers-reduced-motion: reduce) { .card-pic img { transition: none; } }

/* ---------- Search ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); }
.search-link:hover { background: var(--soft); }
.over-hero .search-link { color: #fff; }
.over-hero .search-link:hover { background: rgb(255 255 255 / .15); }
.hero-search { display: flex; max-width: 440px; margin-top: 4px; background: rgb(255 255 255 / .95); border-radius: 999px; box-shadow: 0 6px 24px rgb(0 0 0 / .25); overflow: hidden; }
.hero-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 14px 4px 14px 22px; font: 400 1.05rem var(--display); color: #1f3324; margin: 0; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px rgb(255 255 255 / .6), 0 6px 24px rgb(0 0 0 / .25); }
.hero-search button { background: none; color: #2f5d5a; padding: 0 18px; margin: 0; border-radius: 0; box-shadow: none; }
.hero-search button:hover { background: rgb(47 93 90 / .1); }
.search-page { display: flex; gap: 8px; margin-bottom: 16px; }
.search-page input { flex: 1; margin: 0; }
.search-page button { margin: 0; }
.results { margin-top: 24px; }
.results .snip { margin: 4px 0 0; font-size: .92rem; color: var(--muted); }
.results mark { background: color-mix(in srgb, var(--wheat, #e8c872) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
.results li.has-img { display: flex; gap: 12px; align-items: center; }
.results li.has-img img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; flex: none; }
.results .meta { display: block; }
.trash-photos li { display: flex; gap: 12px; align-items: center; }
.trash-photos img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; flex: none; }
.list li form.inline { display: inline-block; margin-top: 6px; }
.steps { padding-left: 1.3em; display: grid; gap: 6px; }
textarea.code { width: 100%; font: .78rem/1.4 ui-monospace, Menlo, Consolas, monospace; background: var(--soft); }
.list.bdays li.anniv::before { content: "💍"; }
.chip.anniv { background: none; border-left: 0; padding-left: 0; color: var(--muted); text-decoration: none; }
.chip.anniv::before { content: '💍 '; }
@media (max-width: 700px) { .month-grid .chip.anniv { background: var(--muted); opacity: .6; } .month-grid .chip.anniv::before { content: none; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tag.approved { background: color-mix(in srgb, var(--shutter) 18%, var(--card)); }
.tag.requested { background: color-mix(in srgb, #e8c872 40%, var(--card)); }
.tag.cancelled { background: var(--soft); color: var(--muted); text-decoration: line-through; }
.dir-branch { margin-top: 28px; }
.dir-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dir-card { margin: 0; }
.dir-card h3 { margin: 0 0 6px; font: 600 1rem/1.3 var(--display); }
.dir-card h3 a { color: var(--ink); text-decoration: none; }
.dir-card p { margin: 0 0 6px; font-size: .92rem; overflow-wrap: anywhere; }
.dir-card .meta { display: block; }
.comments { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 12px; }
.card-edit { margin: 10px 0 0; }
.person-pick[hidden] { display: none; }

/* Home hero: the headline block sits low in the photo, but never closer
   than ~150px to the top, so it can't crowd the logo on short screens.
   The band grows taller instead. */
.hero-band.home { height: auto; min-height: clamp(580px, 92vh, 940px); display: flex; flex-direction: column; justify-content: flex-end; padding: 160px 0 64px; }
.hero-band.home .hero-copy { position: relative; left: auto; right: auto; bottom: auto; margin: 0 clamp(20px, 5vw, 72px); }
@media (min-width: 900px) { .hero-band.home { padding-bottom: 200px; } .hero-band.home .hero-copy { bottom: auto; } }
@media (max-width: 700px) { .hero-band.home { min-height: 82vh; padding-top: 130px; padding-bottom: 48px; } }

/* Page wallpapers: one faint icon per main page, corn everywhere else.
   Each tile has the 20% green built in. */
body.pat { background-color: var(--paper); background-repeat: repeat; background-size: 168px 426px; }
body.pat-home { background-image: url(/patterns/home.svg?v=1); }
body.pat-table { background-image: url(/patterns/table.svg?v=1); }
body.pat-family { background-image: url(/patterns/family.svg?v=1); }
body.pat-news { background-image: url(/patterns/news.svg?v=1); }
body.pat-calendar { background-image: url(/patterns/calendar.svg?v=1); }
body.pat-photos { background-image: url(/patterns/photos.svg?v=1); }
body.pat-recipes { background-image: url(/patterns/recipes.svg?v=1); }
body.pat-farm { background-image: url(/patterns/farm.svg?v=1); }
body.pat-board { background-image: url(/patterns/board.svg?v=1); }
.chips a:not([aria-current]) { background: var(--card); }
