:root {
  --bg: #f6f1e8;
  --bg-elev: #fffdf9;
  --fg: #1c1916;
  --muted: #6b635a;
  --subtle: #9a9086;
  --border: #e4dcd0;
  --border-strong: #cfc3b3;
  --primary: #2c3e34;
  --primary-fg: #f6f1e8;
  --accent: #9a5b3c;
  --accent-soft: #f3e6dc;
  --danger: #9b3b2e;
  --radius: 1rem;
  --font: "Inter", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --photo-pos: center 28%;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 18px;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

button, [role=button], input, textarea, select {
  font-family: inherit;
}

button, [role=button] {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 0 1rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--display);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}

.nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
  padding: .4rem .75rem;
  border-radius: 999px;
}

.nav a:hover {
  color: var(--fg);
}

.nav a.active {
  background: color-mix(in oklab, var(--border) 70%, white);
  color: var(--fg);
}

.nav a.admin-link {
  border: 1px solid var(--border);
  color: var(--fg);
  margin-left: .25rem;
}

.nav a.admin-link.active {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.font-display {
  font-family: var(--display);
}

.h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 0;
  line-height: 1.15;
}

.lead {
  color: var(--muted);
  line-height: 1.55;
  margin: .75rem 0 0;
  max-width: 36rem;
}

.kicker {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 999px;
  padding: .2rem .7rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: var(--accent-soft);
  color: var(--accent);
}

.chip>span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: .6rem 1.1rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  background: var(--primary);
  color: var(--primary-fg);
  text-decoration: none;
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.btn.secondary {
  background: var(--bg-elev);
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  border-color: transparent;
}

.btn.danger {
  background: transparent;
  color: var(--danger);
  border-color: color-mix(in oklab, var(--danger) 35%, var(--border));
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.field label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: .75rem;
  padding: .7rem .85rem;
  font: inherit;
  background: var(--bg-elev);
  color: var(--fg);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field .hint {
  font-size: .75rem;
  color: var(--subtle);
}

.pass-wrap {
  position: relative;
}

.pass-wrap input {
  padding-right: 2.75rem;
}

.pass-wrap .eye {
  position: absolute;
  right: .4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 2rem;
  height: 2rem;
  border-radius: .5rem;
  display: grid;
  place-items: center;
}

.pass-wrap .eye:hover {
  background: color-mix(in oklab, var(--border) 50%, white);
  color: var(--fg);
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + .15rem);
  overflow: hidden;
}

.card-pad {
  padding: 1.1rem 1.15rem;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.2rem;
}

.person-card {
  overflow: hidden;
}

.person-card .photo {
  aspect-ratio: auto;
  background: var(--bg-elev);
  padding: .85rem .85rem 0;
}

.person-card .photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: var(--photo-pos);
  border-radius: .7rem;
  background: #ebe4d8;
  display: block;
}

.person-card .meta {
  padding: .95rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.person-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
}

.person-card .role {
  margin: 0;
  font-size: .8rem;
  color: var(--subtle);
}

.person-card .quote {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.year-rail {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin: 0 0 1.5rem;
}

.year-rail a {
  text-decoration: none;
  font-size: .9rem;
  font-weight: 600;
  padding: .55rem 1rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  white-space: nowrap;
}

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: 0;
  bottom: 0;
  width: 1px;
  z-index: 0;
  background: linear-gradient(to bottom, var(--border-strong), color-mix(in oklab, var(--accent) 40%, var(--border)), transparent);
}

@media (min-width: 720px) {
  .timeline:before {
    left: 0.85rem;
    transform: none;
  }
}

.moment {
  position: relative;
  margin-bottom: 1.4rem;
  padding-left: 2.6rem;
}

@media (min-width: 720px) {
  .moment,
  .moment.left,
  .moment.right {
    padding-left: 1.75rem;
    padding-right: 0;
    width: 100%;
    max-width: 38rem;
    margin-left: 0;
    margin-right: auto;
  }
}

.moment .dot {
  position: absolute;
  left: .85rem;
  top: 1.6rem;
  width: .7rem;
  height: .7rem;
  border-radius: 999px;
  background: var(--accent);
  border: 2px solid var(--bg);
  z-index: 1;
}

@media (min-width: 720px) {
  .moment .dot {
    left: -.45rem;
    right: auto;
  }
  .moment.right .dot {
    left: -.45rem;
    right: auto;
  }
}

.year-pill {
  position: relative;
  z-index: 2;
  display: inline-flex;
  margin: .5rem 0 .75rem 2.6rem;
  padding: .4rem .9rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  box-shadow: 0 0 0 6px var(--bg);
}

@media (min-width: 720px) {
  .year-pill {
    display: flex;
    width: fit-content;
    margin: .5rem 0 1rem 1.75rem;
  }
}

.moment-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  overflow: hidden;
  padding: 0;
  font: inherit;
  color: inherit;
  box-shadow: 0 18px 40px -28px #281e1480;
  transition: box-shadow .2s, border-color .2s;
}

.moment-card:hover {
  border-color: var(--border-strong);
}

.moment-card.open {
  outline: 2px solid color-mix(in oklab, var(--accent) 40%, transparent);
}

.moment-hero {
  position: relative;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #3d4a42, #6b5344 50%, #8a6a4a);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}

.moment-hero.spring {
  background: linear-gradient(135deg, #2f4a3c, #5a6b4a 55%, #8a7a4a);
}

.moment-hero.summer {
  background: linear-gradient(135deg, #2f4a5a, #5a6b5a 50%, #b07a4a);
}

.moment-hero.fall {
  background: linear-gradient(135deg, #4a3028, #7a4a30 55%, #a06a40);
}

.moment-hero.winter {
  background: linear-gradient(135deg, #2a3340, #4a5560 55%, #6a7080);
}

.faces {
  display: flex;
}

.faces img, .faces .ph {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, .92);
  margin-left: -.85rem;
  background: #ddd;
}

.faces img:first-child, .faces .ph:first-child {
  margin-left: 0;
}

.badge-abs {
  position: absolute;
  top: .7rem;
  left: .7rem;
  background: #0006;
  color: #fff;
  font-size: .65rem;
  font-weight: 600;
  padding: .25rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.moment-body {
  padding: .95rem 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.moment-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
}

.moment-body .when {
  font-size: .75rem;
  color: var(--subtle);
}

.moment-body .teaser {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.moment-expand {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--bg-elev);
  padding: 0 1rem;
  overflow: hidden;
  pointer-events: none;
  transition: grid-template-rows .4s ease, opacity .3s ease, padding .4s ease;
}

.moment-expand.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 0 1rem 1rem;
  pointer-events: auto;
}

.moment-expand-inner {
  min-height: 0;
  overflow: hidden;
}

.moment-card.open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  outline: none;
  border-color: var(--border-strong);
}

.moment-expand.is-open .voice {
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .moment-expand-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1rem;
  }
  .moment-expand-inner .moment-filmstrip {
    display: none;
  }
  .moment-expand-inner .voice {
    border-bottom: 0;
    padding: .85rem .2rem 0;
  }
}

.voice {
  display: flex;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}

.voice:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.voice img, .voice .ph {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: .65rem;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8e0d4;
}

.voice h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
}

.voice .story {
  margin: .4rem 0 0;
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.5;
  white-space: pre-wrap;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.05rem 1.1rem 1rem;
}

.admin-row img, .admin-row .ph {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: .65rem;
  object-fit: cover;
  background: #e8e0d4;
  flex-shrink: 0;
}

.admin-row strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.admin-row .subtle {
  margin-top: .2rem;
  font-size: .8rem;
  letter-spacing: .01em;
}

.admin-row .chip {
  font-family: var(--display);
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: -.015em;
}

.admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: .45rem;
  margin-top: .75rem;
}

.admin-actions .btn {
  width: 100%;
  font-size: .8rem;
  padding: .5rem .7rem;
}

.admin-list .card form.card-pad {
  padding: 1rem 1.1rem 1.15rem;
  background: color-mix(in oklab, var(--bg) 70%, var(--bg-elev));
}

.admin-list .card form.card-pad .field label {
  font-size: .72rem;
  letter-spacing: .08em;
}

.admin-list .card form.card-pad .field input,
.admin-list .card form.card-pad .field textarea {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.45;
}

.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translate(-50%);
  background: var(--primary);
  color: var(--primary-fg);
  padding: .65rem 1rem;
  border-radius: 999px;
  font-size: .85rem;
  z-index: 100;
  box-shadow: 0 10px 30px #00000026;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.subtle {
  color: var(--subtle);
  font-size: .85rem;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
}

.people-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1.35rem;
}

.person-card .photo {
  aspect-ratio: auto;
  overflow: visible;
  background: var(--bg-elev);
  padding: 1rem 1rem 0;
}

.person-card .photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: var(--photo-pos);
  border-radius: .75rem;
}

.person-card .meta {
  padding: .85rem .9rem 1rem;
}

.storybook {
  max-width: 720px;
  margin: 0 auto;
}

.storybook-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: 1rem;
}

.storybook-hero {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 1.25rem;
  padding: 1.15rem;
  align-items: center;
}

@media (max-width: 560px) {
  .storybook-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .storybook-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.storybook-portrait-wrap {
  width: min(200px, 42vw);
  margin: 0 auto;
}

.storybook-portrait {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: var(--photo-pos);
  border-radius: 1rem;
  background: #ebe4d8;
  box-shadow: 0 16px 40px -20px #281e148c;
}

.ph-portrait {
  display: grid;
  place-items: center;
  background: #ebe4d8;
  color: var(--subtle);
  font-size: .85rem;
  aspect-ratio: 4/5;
  border-radius: 1rem;
}

.storybook-intro {
  min-width: 0;
}

.storybook-chip {
  margin-top: .65rem;
}

.storybook-when {
  margin: .55rem 0 0;
  font-size: .85rem;
  color: var(--subtle);
}

.storybook-quote {
  margin: .85rem 0 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
  line-height: 1.4;
}

.storybook-story {
  margin-top: 1rem;
}

.storybook-section-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 .65rem;
}

.storybook-body {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: .98rem;
}

.storybook-gallery-block {
  margin-top: 1.35rem;
}

.storybook-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .65rem;
}

.gallery-tile {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: .75rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: #ebe4d8;
  cursor: zoom-in;
}

.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.gallery-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: .35rem .45rem;
  font-size: .68rem;
  color: #fff;
  background: linear-gradient(transparent, #000000a6);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.storybook-context {
  margin-top: 1.35rem;
}

.companion-row {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.companion-card {
  display: flex;
  gap: .75rem;
  align-items: center;
  text-decoration: none;
  padding: .55rem;
  border-radius: .75rem;
  border: 1px solid var(--border);
  background: var(--bg);
}

.companion-card img, .companion-card .ph {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .55rem;
  object-fit: cover;
  object-position: var(--photo-pos);
  flex-shrink: 0;
  background: #e8e0d4;
}

.companion-card strong {
  display: block;
  font-size: .92rem;
}

.companion-card .chip {
  margin-top: .25rem;
}

.lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 80;
  background: #14100ce0;
  border: 0;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  cursor: zoom-out;
}

.lightbox img {
  max-width: min(920px, 100%);
  max-height: 90dvh;
  object-fit: contain;
  border-radius: .5rem;
}

.contrib-portrait {
  width: 96px;
  height: 128px;
  object-fit: cover;
  object-position: var(--photo-pos);
  border-radius: .85rem;
  background: #ebe4d8;
}

.gallery-edit {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.gallery-edit-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: .55rem;
  align-items: center;
}

.gallery-edit-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: .55rem;
  background: #ebe4d8;
}

.gallery-edit-item input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: .6rem;
  padding: .5rem .65rem;
  font: inherit;
  background: var(--bg-elev);
}

.moment-hero {
  overflow: hidden;
}

.moment-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: .35;
  filter: saturate(.85);
}

.moment-hero .faces, .moment-hero .badge-abs {
  position: relative;
  z-index: 1;
}

.moment-filmstrip {
  display: none;
}

.moment-filmstrip img {
  height: 4.5rem;
  width: auto;
  min-width: 4.5rem;
  object-fit: cover;
  border-radius: .5rem;
  flex-shrink: 0;
  background: #e8e0d4;
}

.voice-thumbs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .55rem;
}

.voice-thumbs img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: cover;
  border-radius: .45rem;
  background: #e8e0d4;
}

.voice img, .voice .ph {
  object-position: var(--photo-pos);
}

.home {
  padding-top: .5rem;
}

.home-faces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin-top: 1.5rem;
}

.home-faces img {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  object-fit: cover;
  object-position: var(--photo-pos);
  border: 2px solid var(--bg);
  margin-left: -.55rem;
  box-shadow: 0 4px 12px #281e141f;
}

.home-faces img:first-child {
  margin-left: 0;
}

.home-faces-more {
  margin-left: .45rem;
  min-width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  border: 2px solid var(--bg);
}




.demo-banner {
  margin: 0 0 1.25rem;
  padding: .65rem .9rem;
  border-radius: .65rem;
  border: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--accent-soft) 70%, var(--bg-elev));
  color: var(--fg);
  font-size: .85rem;
  line-height: 1.45;
}

.home-prose {
  margin-top: 1.15rem;
  max-width: 38rem;
}

.home-prose p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.home-prose a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.home-closing {
  margin: 2.25rem 0 0;
  max-width: 36rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--subtle);
}

/* ==========================================================================
   Locked mobile layout pass — max-width: 640px only.
   Recovered 27 Aug 2026 from https://6066532c.our-shared-life.pages.dev/
   Do not restyle :root brand tokens. Do not let these rules leak to desktop.
   ========================================================================== */

@media (max-width: 640px) {
  html,
  body {
    overflow-x: hidden;
    max-width: 100%;
  }

  /* 8. Touch: 44px min, 48px primary */
  button,
  [role="button"],
  .year-rail a,
  .gallery-tile,
  .pass-wrap .eye {
    min-height: 44px;
    min-width: 44px;
  }

  .btn {
    min-height: 48px;
  }

  /* 7. Safe-area on header; no site footer exists in markup */
  .header {
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .shell {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }

  .toast {
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  /* 1. Header: two rows, full width. Brand then 3-col nav. Never 2x2.
     Wordmark is the site brand: centered, a little larger, more air. */
  .header-inner {
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.75rem;
    padding-top: 1.05rem;
    padding-bottom: 0.7rem;
  }

  .brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 56px;
    padding: 0.35rem 0.85rem 0.2rem;
    font-size: clamp(1.35rem, 6.2vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 0;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-inline: 4px;
    text-align: center;
  }

  .nav a.admin-link {
    display: none;
  }

  /* 2. Home faces: 4-col grid, no overlap. 13th leftover left-aligns. */
  .home-faces {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    justify-content: start;
    justify-items: stretch;
  }

  .home-faces a {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .home-faces img,
  .home-faces img:first-child,
  .home-faces .home-faces-more {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin-left: 0;
    min-width: 0;
  }

  .home-faces-more {
    width: 100%;
    min-width: 0;
    height: auto;
    aspect-ratio: 1;
    margin-left: 0;
  }

  /* 3. Hero actions: stacked full-width. Ghost / extra <a> as outline button. */
  .hero-actions {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn,
  .hero-actions a {
    min-height: 48px;
    width: 100%;
    box-sizing: border-box;
  }

  .hero-actions .btn.ghost,
  .hero-actions a:not(.btn) {
    border: 1px solid var(--border-strong);
    background: var(--bg-elev);
    color: var(--fg);
  }

  /* 9. Home intro: drop the second long paragraph only. Keep page-count (3rd p). */
  .home-prose p:nth-of-type(2) {
    display: none;
  }

  /* 4. People: two columns even on small screens. More air. */
  .people-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem .75rem;
  }

  .person-card .photo {
    padding: .65rem .65rem 0;
  }

  .chip {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    height: auto;
    max-width: 100%;
    padding: 8px 12px;
    align-items: flex-start;
  }

  .chip > span {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
  }

  /* 5. Our story: moment almost full width; shrink timeline rail (~40px stolen). */
  .timeline:before {
    left: 0.5rem;
  }

  .moment {
    padding-left: 1.35rem;
    width: 100%;
  }

  .moment .dot {
    left: 0.28rem;
  }

  .year-pill {
    margin-left: 1.35rem;
  }

  .moment-card {
    width: 100%;
  }

  .year-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    max-width: 100%;
  }

  .year-rail a {
    flex-shrink: 0;
  }

  /* 6. Your page: stack secret input + button full width. 16px inputs (no iOS zoom). */
  .row:has(> input) {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .row:has(> input) > input,
  .row:has(> input) > .btn,
  .row:has(> input) > button {
    width: 100%;
    min-height: 48px;
    flex: none;
    min-width: 0;
  }

  .row:has(> input) > input,
  .field input,
  .field textarea {
    font-size: 16px;
  }

  .field input {
    min-height: 48px;
  }
}

.add-more {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 0.35rem;
}
.add-more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 0.5rem 0 0.85rem;
}
.add-more summary::-webkit-details-marker { display: none; }
