:root {
  --page: #eaeaea;
  --paper: #ffffff;
  --sage: #ced7ba;
  --sage-dark: #454d35;
  --orange: #e26e1a;
  --ink: #404040;
  --muted: #6b6b64;
  --line: #b8c29f;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); }
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: #fff;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-shell {
  width: min(100% - 24px, 780px);
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
}
.site-header { padding-top: 10px; background: #fff; }
.brand img { width: 100%; height: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  padding: 5px 10px 11px;
  overflow-x: auto;
  white-space: nowrap;
  color: var(--sage-dark);
}
.site-nav a {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.08rem, 3vw, 1.38rem);
  font-style: italic;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 1px 1px 1px #bfc4b5;
}
.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--orange); }

main { background: var(--sage); padding: 8px 15px; }
.dedication {
  max-width: 650px;
  margin: 30px auto;
  padding: clamp(24px, 5vw, 42px);
  background: #fff;
  color: var(--sage-dark);
  font-size: .9rem;
  font-weight: 700;
}
.dedication h2 { margin: 26px 0 10px; color: var(--orange); font-size: 1.1rem; }
.dedication .signature { text-align: right; }

.home-panel {
  display: grid;
  grid-template-columns: 222fr 505fr;
  gap: 9px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
}
.home-panel img { width: 100%; height: 100%; object-fit: cover; }

.content-panel {
  max-width: 710px;
  margin: 38px auto;
  padding: clamp(24px, 5vw, 42px);
  background: #fff;
}
.section-heading { margin-bottom: 30px; text-align: center; }
.section-heading p { margin: 5px 0; color: var(--sage-dark); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-heading h2 { margin: 7px 0; color: var(--orange); font: 700 clamp(1.35rem, 4vw, 1.8rem) Georgia, serif; }
.story__body { font-size: .92rem; line-height: 1.75; }
.story__body p { margin: 0 0 1.25em; }
.story__body ol { margin: 0 0 1.25em; padding-left: 1.4rem; }
.story__body hr { width: 90px; margin: 38px auto; border: 0; border-top: 1px solid var(--line); }

.gallery__list { display: grid; gap: 18px; }
.gallery__item { width: 100%; padding: 0; border: 1px solid var(--line); background: #fff; cursor: zoom-in; text-align: left; }
.gallery__item img { width: 100%; height: auto; }
.gallery__item span { display: block; padding: 8px 10px; color: var(--sage-dark); font-size: .72rem; font-weight: 700; }
.gallery__item:hover, .gallery__item:focus-visible { outline: 3px solid rgba(226,110,26,.35); outline-offset: 2px; }

.messages__list { display: grid; gap: 18px; }
.message { border: 1px dashed #bfd0e4; background: #fff; }
.message dl { margin: 0; }
.message dl div { display: grid; grid-template-columns: 120px 1fr; border-bottom: 1px solid #d5e0ee; }
.message dt, .message dd { margin: 0; padding: 6px 10px; }
.message dt { background: #cee1ff; color: #00486a; font-weight: 700; }
.message p { margin: 0; padding: 20px 24px; line-height: 1.65; }

.lightbox { width: min(94vw, 1080px); max-width: none; padding: 42px 14px 14px; border: 1px solid var(--sage-dark); background: #fff; }
.lightbox::backdrop { background: rgba(25,27,22,.86); }
.lightbox img { width: 100%; height: auto; }
.lightbox__close { position: absolute; top: 9px; right: 12px; border: 0; background: transparent; color: var(--sage-dark); cursor: pointer; font-weight: 700; text-decoration: underline; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 10px 12px;
  font-size: .69rem;
}
.site-footer p { margin: 0; }
.site-footer p:last-child { text-align: right; }
.site-footer .footer-credit { flex-basis: 100%; text-align: center; }
.site-footer a { color: inherit; }

.entrance {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(234,234,234,.96);
}
.entrance[hidden] { display: none; }
.entrance__card {
  width: min(100%, 620px);
  padding: 0 34px 32px;
  border: 12px solid var(--sage);
  background: #fff;
  box-shadow: 0 20px 60px rgba(43,46,37,.18);
  text-align: center;
}
.entrance__header { width: calc(100% + 68px); max-width: none; margin-left: -34px; }
.entrance__eyebrow { margin: 20px 0 4px; color: var(--sage-dark); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.entrance h1 { margin: 0; color: var(--orange); font: 700 1.65rem Georgia, serif; }
.entrance__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.button { min-height: 44px; padding: 10px 18px; border: 1px solid var(--sage-dark); cursor: pointer; font-weight: 700; }
.button--music { background: var(--sage-dark); color: #fff; }
.button--quiet { background: #fff; color: var(--sage-dark); }
.button:hover, .button:focus-visible { outline: 3px solid rgba(226,110,26,.35); outline-offset: 2px; }
.entrance__note { margin: 14px 0 0; color: var(--muted); font-size: .72rem; }

.music-player {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: min(320px, calc(100vw - 32px));
  border: 1px solid var(--sage-dark);
  background: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}
.music-player[hidden] { display: none; }
.music-player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; }
.music-player__bar span, .music-player__bar strong { display: block; }
.music-player__bar span { color: var(--muted); font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.music-player__bar strong { font-size: .78rem; }
.music-player__bar button { border: 0; background: transparent; color: var(--sage-dark); cursor: pointer; font-size: .72rem; text-decoration: underline; }
.music-player iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

@media (max-width: 620px) {
  .site-shell { width: 100%; }
  .site-header { padding-top: 4px; }
  .site-nav { justify-content: center; flex-wrap: wrap; gap: 6px 10px; white-space: normal; }
  .site-nav a { font-size: 1.05rem; }
  main { padding: 8px; }
  .dedication { margin: 12px auto; }
  .home-panel { grid-template-columns: 1fr; }
  .home-panel__portrait { max-height: 420px; object-fit: contain !important; }
  .site-footer { flex-direction: column; gap: 5px; }
  .site-footer p:last-child { text-align: left; }
  .site-footer .footer-credit { text-align: center; }
  .entrance__card { padding: 0 20px 24px; border-width: 8px; }
  .entrance__header { width: calc(100% + 40px); margin-left: -20px; }
  .content-panel { margin: 20px auto; padding: 22px 18px; }
  .story__body { font-size: 1rem; }
  .message dl div { grid-template-columns: 92px 1fr; }
  .message p { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
