@font-face { font-family: "Newsreader fallback"; src: local("Georgia"); size-adjust: 88%; }
@font-face { font-family: "Script fallback"; src: local("Snell Roundhand"), local("Apple Chancery"), local("Segoe Script"); size-adjust: 70%; }

/* Measurements in comments below are pixels in the owner's mock at 1199 px wide. */
:root {
  --navy: #0B2442;
  --navy-2: #12305A;
  --navy-deep: #02203C;
  --panel: #072039;
  --gold: #D4AF66;
  --gold-light: #E9CB8A;
  --gold-ink: #7A5C24;
  --parchment: #EEE3D5;
  --paper: #FAF5EC;
  --ink: #1D2433;
  --ink-soft: #4A5263;
  --cream: #F4EDE0;
  --mist: #C9D0DB;
  --line: #D8C9AF;
  --focus: #1E4A80;

  --serif: "Newsreader", "Newsreader fallback", Georgia, serif;
  --script: "Tangerine", "Script fallback", cursive;

  --step-0: 1.0625rem;
  --step-1: 1.35rem;
  --step-2: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  --step-3: clamp(2.1rem, 1.6rem + 1.6vw, 2.75rem);

  --gutter: clamp(16px, 2.34vw, 48px);
  --page: min(95.33%, 1500px);
  --shadow: 0 1px 2px rgba(2, 20, 40, .18), 0 6px 14px -6px rgba(2, 20, 40, .45);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: #B9A27A var(--parchment); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--serif);
  overflow-x: clip;
  caret-color: var(--navy);
  accent-color: var(--gold-ink);
}
::selection { background: var(--gold-light); color: var(--navy); }
img, svg, video { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; font-weight: 600; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--navy); text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: .18em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
main:focus { outline: none; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  background: var(--gold-light); color: var(--navy); padding: 10px 18px; border-radius: 6px; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Header: 62 tall. Plane x 20 to 95, wordmark to x 280, divider at x 312, nav from x 340 to 1190. */
.masthead {
  --focus: var(--gold-light);
  position: relative; z-index: 20;
  background: var(--navy);
  color: var(--cream);
}
.masthead-in { display: flex; align-items: center; height: 62px; padding: 0 0 0 clamp(12px, 1.7vw, 20px); }
.wordmark {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center;
  column-gap: 20px; text-decoration: none; color: #FBF6EC; flex: none;
}
.wordmark-plane { grid-row: 1 / 3; width: 76px; height: auto; mix-blend-mode: lighten; }
.wordmark-small { font-style: italic; font-size: 19.5px; line-height: 1; padding-top: 6px; }
.wordmark-name { font-family: var(--script); font-size: 50px; line-height: .72; padding: 0 0 6px 18px; white-space: nowrap; }
.wordmark-long { column-gap: 12px; }
.wordmark-long .wordmark-plane { width: 54px; }
.wordmark-long .wordmark-small { font-size: 17px; }
.wordmark-long .wordmark-name { font-size: 28px; padding-left: 0; }

.menu-button {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 14px; border-radius: 6px;
  border: 1px solid rgba(233, 203, 138, .55); background: transparent; color: var(--cream);
  font: 500 1.05rem var(--serif); cursor: pointer;
}
.menu-button .icon { width: 22px; height: 22px; color: var(--gold-light); }
.site-nav {
  position: fixed; inset: 70px 12px auto auto; margin: 0;
  width: min(320px, calc(100vw - 24px)); padding: 10px;
  background: var(--navy); color: var(--cream);
  border: 1px solid rgba(233, 203, 138, .5); border-radius: 10px;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .55);
}
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: flex; align-items: center; min-height: 46px; padding: 6px 14px; border-radius: 6px;
  color: var(--cream); text-decoration: none; font-size: 1.1rem;
}
.site-nav a:hover { background: rgba(233, 203, 138, .1); }
.site-nav a[aria-current="page"] { color: var(--gold-light); text-decoration: underline 2px var(--gold); text-underline-offset: 7px; }

@media (min-width: 1170px) {
  .menu-button { display: none; }
  .site-nav {
    display: block; position: static; inset: auto; width: auto; margin: 0 0 0 auto; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible;
  }
  .wordmark { padding-right: 31px; margin-right: 4px; position: relative; }
  .wordmark::after { content: ""; position: absolute; right: 0; top: 4px; bottom: 6px; width: 1.5px; background: var(--gold); }
  .site-nav ul { display: flex; align-items: center; }
  .site-nav a { position: relative; min-height: 44px; padding: 4px clamp(7px, 1.04vw, 16px); font-size: clamp(15px, 1.42vw, 17px); white-space: nowrap; border-radius: 0; color: #F7F2E8; }
  .site-nav a:hover { background: none; color: var(--gold-light); }
  .site-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
    transform: scaleX(0); transition: transform .4s var(--ease-out);
  }
  .site-nav a[aria-current="page"] { text-decoration: none; color: var(--gold); }
  .site-nav a[aria-current="page"]::after, .site-nav a:hover::after { transform: scaleX(1); }
}
@media (max-width: 520px) {
  .masthead-in { padding-inline: 12px; }
  .wordmark { column-gap: 10px; }
  .wordmark-plane { width: 52px; }
  .wordmark-small { font-size: 13.5px; }
  .wordmark-name { font-size: 32px; padding-left: 10px; }
  .menu-button { padding: 0; width: 44px; justify-content: center; }
  .menu-button span { display: none; }
}

/* Hero: the band from y 62 to 483. Lettering scales with the band (cqw) so it keeps the mock's proportions. */
.hero { position: relative; container-type: inline-size; display: grid; background: var(--navy); color: #fff; }
.hero > .hero-photo, .hero > .hero-text { grid-area: 1 / 1; }
.hero-photo { position: relative; aspect-ratio: 1199 / 421; overflow: hidden; background: var(--navy); }
.hero-photo picture { display: contents; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }
.hero-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, #042040 0, #0A2C4E 22%, rgba(10, 44, 78, .92) 25.5%, rgba(10, 44, 78, .55) 31%, rgba(10, 44, 78, 0) 37.5%);
}
.swoosh { position: absolute; left: 0; top: -8px; z-index: 2; width: 100%; height: 32px; pointer-events: none; }
.hero-text {
  position: relative; z-index: 3; align-self: start; margin-left: 2.67cqw; width: 28.4cqw;
  padding: 3.25cqw 0 2cqw; text-align: center;
  text-shadow: 0 1px 3px rgba(0, 10, 30, .5);
}
.hero-over { font-size: 1.62cqw; font-weight: 500; letter-spacing: .265em; text-transform: uppercase; margin: 0; padding-left: .265em; white-space: nowrap; }
.hero-name {
  font-family: var(--script); font-weight: 700; color: var(--gold);
  font-size: 11.1cqw; line-height: .8; letter-spacing: 0;
  /* The gold fill is clipped to the box, so the box is padded out to cover the script's swashes. */
  padding: .18em .12em .22em; margin: -.14em -.12em -.22em;
  background: linear-gradient(180deg, #F8E3A8 15%, #D9B467 55%, #B48A45); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 2px rgba(0, 10, 30, .55));
}
.hero-long .hero-name { font-size: 6.2cqw; line-height: .9; margin: .07em -.12em -.07em; }
.hero-wings { width: 13.85cqw; height: auto; aspect-ratio: 260 / 64; margin: -2.5cqw auto 0; filter: drop-shadow(0 1px 2px rgba(0, 10, 30, .6)); }
.hero-long .hero-wings { margin-top: .4cqw; }
.hero-dates { font-size: 2.31cqw; line-height: 1.18; margin: .7cqw 0 0; font-variant-numeric: lining-nums; }
.hero-dates + .hero-tagline::before, .hero-wings + .hero-tagline::before {
  content: ""; display: block; width: 15.85cqw; height: 2px; margin: 1.3cqw auto 1.15cqw;
  background: linear-gradient(90deg, transparent, var(--gold) 12%, #F3D88F 50%, var(--gold) 88%, transparent);
}
.hero-tagline { font-style: italic; font-size: 2.5cqw; line-height: 1.17; margin: 0; color: var(--gold-light); }

@media (max-width: 759px) {
  .hero-photo { aspect-ratio: 605 / 421; }
  .hero-photo::before { display: none; }
  .swoosh { height: 18px; top: -5px; }
  .hero > .hero-text {
    grid-area: 2 / 1; margin: 0; width: auto; padding: 26px 16px 30px;
    background: linear-gradient(180deg, #0A2C4E, var(--navy));
  }
  .hero-over { font-size: 13px; letter-spacing: .24em; white-space: normal; }
  .hero-name { font-size: 84px; }
  .hero-long .hero-name { font-size: 58px; }
  .hero-wings { width: 140px; margin-top: -10px; }
  .hero-long .hero-wings { margin-top: 2px; }
  .hero-dates { font-size: 20px; margin-top: 8px; }
  .hero-dates + .hero-tagline::before, .hero-wings + .hero-tagline::before { width: 130px; margin: 14px auto 12px; }
  .hero-tagline { font-size: 21px; }
}

/* Cards: row one y 501 to 701 (image 127, panel 73), row two y 721 to 890 (image 91, panel 78), x 29 to 1170. */
.features { padding: 18px 0; background: var(--parchment); }
.cards {
  list-style: none; margin: 0 auto; padding: 0; width: var(--page);
  display: grid; gap: 20px 18px; grid-template-columns: repeat(12, minmax(0, 1fr));
}
.cards > li { grid-column: span 12; display: flex; }
.card {
  --focus: var(--navy);
  display: flex; flex-direction: column; width: 100%;
  border-radius: 7px; overflow: hidden; text-decoration: none; color: var(--cream);
  background: var(--panel); box-shadow: var(--shadow);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card-img { width: 100%; aspect-ratio: 272 / 127; height: auto; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card-cap {
  position: relative; flex: 1; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: start;
  padding: 4px 10px 8px 16px;
  background: linear-gradient(180deg, #0C2A4B, var(--panel) 75%);
}
.card-icon { width: 38px; height: 34px; margin-top: 8px; color: var(--gold); stroke-width: 1.3; }
.card-title { display: block; font-size: 22px; font-weight: 500; line-height: 1.2; color: #F7F1E6; margin-bottom: 2px; letter-spacing: .005em; }
.card-line { display: block; font-size: 13.5px; line-height: 1.36; color: #E4E0D8; padding-right: 26px; }
.card-arrow {
  position: absolute; right: 9px; bottom: 9px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #F4D995, var(--gold) 60%, #A98140); color: var(--navy);
  transition: transform .5s var(--ease-out);
}
.card-arrow .icon { width: 15px; height: 15px; stroke-width: 2.2; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(2, 20, 40, .2), 0 16px 28px -12px rgba(2, 20, 40, .55); }
.card:hover .card-img { transform: scale(1.03); }
.card:hover .card-arrow { transform: translateX(2px); }

@media (min-width: 600px) {
  .cards > li { grid-column: span 6; }
  .cards > li:last-child { grid-column: 4 / span 6; }
}
@media (min-width: 960px) {
  .cards > li:nth-child(-n+4) { grid-column: span 3; }
  .cards > li:nth-child(n+5) { grid-column: span 4; }
  .cards > li:nth-child(n+5) .card-img { aspect-ratio: 368 / 91; }
  .cards > li:nth-child(n+5) .card-cap { grid-template-columns: 58px minmax(0, 1fr); padding: 2px 10px 10px 21px; }
  .cards > li:nth-child(n+5) .card-icon { width: 38px; height: 36px; }
  .cards > li:nth-child(n+5) .card-title { font-size: 23px; }
  .cards > li:nth-child(n+5) .card-line { font-size: 14.5px; line-height: 1.32; max-width: 236px; padding-right: 0; }
  .cards > li:nth-child(n+5) .card-arrow { width: 27px; height: 27px; bottom: 11px; right: 11px; }
  .cards > li:last-child { grid-column: span 4; }
}

/* Quote band: y 908 to 1003. Rules x 42 to 127 and 1062 to 1167, planes at x 148 and 945. */
.quote-band {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 95px; padding: 12px var(--gutter) 14px;
  background: radial-gradient(ellipse at 50% 50%, #0A2A4D, var(--navy-deep) 70%);
  color: var(--cream);
}
.quote-band blockquote { margin: 0; max-width: 600px; text-align: center; position: relative; z-index: 1; }
.quote-band p { font-style: italic; font-size: 25px; line-height: 1.24; margin: 0; letter-spacing: .005em; }
.quote-band p::before, .quote-band p::after { color: var(--gold); font-size: 1.5em; line-height: 0; position: relative; top: .12em; font-style: normal; font-weight: 700; }
.quote-band p::before { content: "\201C"; margin-right: .2em; }
.quote-band p::after { content: "\201D"; margin-left: .25em; }
.quote-plane { position: absolute; height: auto; mix-blend-mode: lighten; pointer-events: none; }
.quote-plane-left { left: 12.3%; top: 17px; width: 112px; }
.flight { position: absolute; left: 61.6%; top: 4px; width: 320px; height: 100px; color: var(--gold); pointer-events: none; }
.flight-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.quote-plane-right { left: 200px; top: 4px; width: 100px; }
@media (min-width: 1100px) {
  .quote-band::before, .quote-band::after { content: ""; position: absolute; top: 49%; height: 1.5px; background: var(--gold); }
  .quote-band::before { left: 3.5%; width: 7.1%; }
  .quote-band::after { right: 2.65%; width: 8.75%; }
}
@media (max-width: 1099px) {
  .quote-band { flex-direction: column; padding-bottom: 92px; }
  .quote-plane-left { display: none; }
  .flight { left: 50%; top: auto; bottom: 0; translate: -60% 0; }
}

/* His Story: y 1003 to 1312. Tilted print x 32 to 412, text from x 440. */
.story {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(ellipse at 30% 40%, #F3EBE0, var(--parchment) 70%);
}
.story-sky {
  position: absolute; right: 0; top: 0; height: 100%; width: auto; max-width: 40%; object-fit: cover; object-position: left center; z-index: -1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%);
}
.story-in {
  width: var(--page); margin: 0 auto; display: grid; align-items: start;
  grid-template-columns: 32.6% 42%; column-gap: 3.1%;
}
.deckle {
  margin: 12px 0 0 3px; rotate: -3.2deg;
  filter: drop-shadow(0 5px 7px rgba(60, 35, 5, .4));
}
.deckle-paper {
  padding: 4% 4.2%; background: linear-gradient(135deg, #F5E2B4, #E9CB86 50%, #F3DDA9);
  box-shadow: inset 0 0 0 4px rgba(246, 236, 210, .9), inset 0 0 10px 4px rgba(160, 115, 40, .55);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 290' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7'/%3E%3C/filter%3E%3Crect x='4' y='4' width='392' height='282' filter='url(%23r)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 290' preserveAspectRatio='none'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='2' seed='4'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='7'/%3E%3C/filter%3E%3Crect x='4' y='4' width='392' height='282' filter='url(%23r)'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.deckle img { width: 100%; aspect-ratio: 330 / 234; height: auto; object-fit: cover; }
.story-text { padding: 23px 0 30px; }
.story-text h2 { font-style: italic; font-weight: 600; font-size: 42px; line-height: 1.1; color: var(--navy); }
.story-text h2::after { content: ""; display: block; width: 98px; height: 3px; margin: 12px 0 16px; background: linear-gradient(90deg, #A98140, var(--gold) 40%, #A98140); }
.story-text p { font-size: 16.2px; line-height: 1.3; margin-bottom: 22px; color: #1B2230; }

/* Buttons. The mock's pill is 294 by 40. */
.button {
  --focus: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 44px; padding: 8px 28px; border-radius: 999px; border: 1px solid #B68E48;
  background: linear-gradient(180deg, #F0D696, #D9B66C 55%, #C29A52);
  color: #10233F; font: 500 18.5px var(--serif); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 3px 6px rgba(70, 45, 10, .3);
  transition: transform .4s var(--ease-out), filter .3s;
}
.story-text .button { min-width: 294px; min-height: 40px; padding-block: 6px; font-size: 20px; }
.button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.button:active { transform: translateY(1px); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button .icon { width: 20px; height: 20px; }
.button-quiet { background: transparent; border-color: rgba(11, 36, 66, .4); box-shadow: none; font-size: 1.05rem; }
.button-quiet:hover { background: rgba(11, 36, 66, .05); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }

@media (max-width: 899px) {
  .story-in { grid-template-columns: minmax(0, 1fr); padding: 36px 0 8px; }
  .deckle { width: min(92%, 460px); justify-self: center; margin: 0; }
  .story-sky { max-width: 70%; opacity: .5; }
  .story-text { padding-top: 32px; }
  .story-text .button { min-width: 0; }
}

/* Inner page banner: the hero's navy panel and gold swoosh. */
.page-head {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: clamp(170px, 16vw, 230px); padding: 40px var(--gutter) 40px;
  background: radial-gradient(ellipse at 50% 0, #123A66, var(--navy) 60%, var(--navy-deep));
  color: #fff;
}
.page-head .swoosh { top: -8px; }
.page-head-text { max-width: 960px; }
.page-head h1 { font-style: italic; font-size: var(--step-3); }
.page-head h1::after { content: ""; display: block; width: 100px; height: 2px; margin: 14px auto 0; background: var(--gold); }
.page-head p { font-style: italic; font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); margin: 14px auto 0; max-width: 46ch; color: var(--gold-light); }

/* Notes and letters */
.note { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 22px 24px 18px; box-shadow: 0 1px 2px rgba(20, 35, 63, .06); }
.note-body { font-style: italic; font-size: 1.2rem; line-height: 1.5; }
.note-body p:last-child { margin-bottom: 12px; }
.note-by { margin: 0; font-weight: 600; font-size: 1.02rem; color: var(--navy); overflow-wrap: anywhere; }
.note-by span { font-weight: 400; color: var(--ink-soft); }
.note-date { margin: 2px 0 0; font-size: .95rem; color: var(--ink-soft); }

/* Inner pages */
.page-body { max-width: 1120px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px); }
.page-wide { max-width: 1320px; }
.prose { max-width: 66ch; margin: 0 auto; font-size: 1.25rem; line-height: 1.75; }
.prose h2 { font-style: italic; font-weight: 600; font-size: 1.9rem; line-height: 1.2; color: var(--navy); margin: 2.1em 0 .7em; text-wrap: balance; }
.prose h2::after { content: ""; display: block; width: 72px; height: 3px; margin-top: 12px; background: linear-gradient(90deg, #A98140, var(--gold) 40%, #A98140); }
.story-dates span { white-space: nowrap; }
.story-dates { text-align: center; font-size: 1.15rem; letter-spacing: .08em; color: var(--ink-soft); margin: 0 0 36px; font-variant-numeric: lining-nums; }
.dropcap > p:first-child::first-letter { float: left; font-size: 4.1em; line-height: .82; padding: .06em .1em 0 0; color: var(--gold-ink); font-weight: 500; }
.page-next { text-align: center; margin-top: 48px; }

.empty { text-align: center; max-width: 46ch; margin: 0 auto; padding: 24px 0; font-size: 1.25rem; color: var(--ink-soft); }
.empty p:first-of-type { font-style: italic; color: var(--ink); }
.empty .button { margin-top: 8px; }
.empty-art { width: 150px; height: auto; aspect-ratio: 260 / 64; margin: 0 auto 20px; }
.empty-left { text-align: left; margin: 0; padding: 0; }
.empty-line { font-style: italic; color: var(--ink-soft); font-size: 1.2rem; }

.section-title { display: flex; align-items: center; gap: 14px; font-style: italic; font-size: var(--step-2); color: var(--navy); margin: 56px 0 20px; }
.section-mark { width: 30px; height: 30px; color: var(--gold-ink); }
.section-more { margin-top: 8px; }
.prose + .photo-section .section-title { margin-top: 64px; }

/* Photo grid */
.photo-grid { list-style: none; margin: 0; padding: 0; columns: 4 160px; column-gap: 16px; }
.photo-grid li { break-inside: avoid; margin-bottom: 16px; }
.photo-grid a { --focus: var(--navy); display: block; border-radius: 4px; overflow: hidden; background: #E7DCC6; box-shadow: 0 1px 2px rgba(20, 35, 63, .12), 0 8px 18px -12px rgba(20, 35, 63, .4); }
.photo-grid img { width: 100%; height: auto; transition: transform 1s var(--ease-out), filter .4s; }
.photo-grid a:hover img { transform: scale(1.03); filter: brightness(1.04); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.filters a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px; border-radius: 999px;
  text-decoration: none; color: var(--navy); box-shadow: inset 0 0 0 1px rgba(20, 35, 63, .3); font-size: 1.05rem;
}
.filters a:hover { background: rgba(20, 35, 63, .05); }
.filters a[aria-current="page"] { background: var(--navy); color: var(--cream); box-shadow: none; }

/* Memory Lane */
.timeline { list-style: none; margin: 0 auto; padding: 0; position: relative; max-width: 1000px; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 31px; width: 2px; background: linear-gradient(var(--gold), rgba(201, 164, 92, .3)); }
.moment { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; margin-bottom: 40px; }
.moment-year {
  position: relative; z-index: 1; justify-self: center; align-self: start; margin: 0;
  min-width: 64px; padding: 4px 8px; text-align: center; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--gold); color: var(--navy); font-weight: 600; font-size: 1.05rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.moment-card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px 8px; box-shadow: 0 1px 2px rgba(20, 35, 63, .06); }
.moment-card img { width: calc(100% + 48px); max-width: none; height: auto; max-height: 340px; object-fit: cover; margin: -22px -24px 18px; border-radius: 8px 8px 0 0; }
.moment-card h2 { font-size: var(--step-1); color: var(--navy); margin-bottom: 8px; }
@media (min-width: 860px) {
  .timeline::before { left: 50%; translate: -1px 0; }
  .moment { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); gap: 0; }
  .moment-year { grid-column: 2; grid-row: 1; font-size: 1.25rem; min-width: 84px; }
  .moment-card { grid-column: 3; grid-row: 1; }
  .moment:nth-child(even) .moment-card { grid-column: 1; }
}

/* Videos */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.video-card { --focus: var(--navy); display: block; text-decoration: none; color: var(--ink); }
.video-poster { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.video-poster > img, .video-poster > svg { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(13, 24, 45, .78); color: var(--gold-light);
  box-shadow: inset 0 0 0 1.5px var(--gold-light), 0 8px 20px -6px rgba(0, 0, 0, .5);
  transition: transform .5s var(--ease-out), background .3s;
}
.play .icon { width: 30px; height: 30px; translate: 2px 0; }
.video-card:hover .play { transform: scale(1.08); background: rgba(13, 24, 45, .9); }
.video-card:hover .video-poster > img, .video-card:hover .video-poster > svg { transform: scale(1.03); }
.video-caption { display: block; margin-top: 12px; font-size: 1.2rem; line-height: 1.35; }
.video-meta { margin: 4px 0 0; color: var(--ink-soft); font-size: 1rem; }

/* Viewer dialogs: lightbox and video */
.viewer {
  --focus: var(--gold-light);
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(9, 15, 28, .96); color: var(--cream); overflow: hidden;
}
.viewer[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; animation: fade .35s var(--ease-out); }
.viewer::backdrop { background: transparent; }
@keyframes fade { from { opacity: 0; } }
.viewer-stage { display: grid; place-items: center; padding: 64px 88px 12px; min-height: 0; touch-action: pan-y pinch-zoom; }
.viewer-stage img { max-width: 100%; max-height: calc(100dvh - 200px); width: auto; height: auto; object-fit: contain; background: center / cover no-repeat; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.viewer-stage video, .viewer-stage iframe { width: min(100%, calc((100dvh - 180px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; border: 0; background: #000; }
.viewer-caption { text-align: center; padding: 8px 24px 28px; min-height: 84px; }
.viewer-caption p { margin: 0 auto; max-width: 60ch; }
.viewer-text { font-style: italic; font-size: 1.25rem; }
.viewer-meta { color: var(--mist); font-size: 1rem; margin-top: 4px !important; }
.viewer-count { color: var(--mist); font-size: .95rem; font-variant-numeric: tabular-nums; }
.icon-button {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 1px solid rgba(227, 200, 138, .5); background: rgba(20, 35, 63, .7); color: var(--cream);
}
.icon-button:hover { background: var(--navy-2); border-color: var(--gold-light); }
.icon-button .icon { width: 24px; height: 24px; }
.viewer-close { position: absolute; top: 12px; right: 12px; }
.viewer-prev, .viewer-next { position: absolute; top: 50%; translate: 0 -50%; width: 56px; height: 56px; }
.viewer-prev { left: 16px; }
.viewer-next { right: 16px; }
@media (max-width: 700px) {
  .viewer-stage { padding: 64px 8px 8px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 20px; translate: none; width: 48px; height: 48px; }
  .viewer-caption { padding: 8px 72px 20px; }
}

/* Forms */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 1px 2px rgba(20, 35, 63, .06), 0 18px 36px -24px rgba(20, 35, 63, .35); }
.panel h2 { font-style: italic; font-size: var(--step-2); color: var(--navy); margin-bottom: 10px; }
.form-note { color: var(--ink-soft); font-size: 1.05rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: 1.05rem; }
.optional { font-weight: 400; font-style: italic; color: var(--ink-soft); font-size: .95rem; margin-left: 4px; }
input:not([type="file"]), textarea, select {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #A89B7E; border-radius: 6px;
  background: #FFFDF8; color: var(--ink); font: 400 1.1rem/1.5 var(--serif);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 140px; }
input::placeholder, textarea::placeholder { color: #6A6F7C; font-style: italic; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30, 74, 128, .35); }
.notice { padding: 12px 16px; border-radius: 6px; font-size: 1.1rem; margin-bottom: 16px; border: 1px solid; }
.notice-ok { background: #EAF0E2; border-color: #9DB48A; color: #22401A; }
.notice-error { background: #F8E7E0; border-color: #D79B86; color: #74260F; }

.with-form { display: grid; gap: 32px; }
.with-form .entry-form { order: 1; }
.form-first .entry-form { order: -1; }
.form-first .jump { display: none; }
@media (min-width: 960px) {
  .with-form { grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); align-items: start; gap: 56px; }
  .with-form .entry-form { grid-column: 2; grid-row: 1; position: sticky; top: 24px; }
  .with-form .entries { grid-column: 1; grid-row: 1; }
  .jump { display: none; }
}
.notes { list-style: none; margin: 0; padding: 0; columns: 2 300px; column-gap: 24px; }
.notes .note { break-inside: avoid; margin-bottom: 24px; }

.letters { list-style: none; margin: 0; padding: 0; }
.letter {
  position: relative; max-width: 68ch; margin: 0 auto 48px; padding: clamp(28px, 5vw, 56px) clamp(22px, 5vw, 60px) clamp(28px, 4vw, 44px);
  background: linear-gradient(180deg, #FFFCF4, #FBF5E7);
  border: 1px solid #E7DCC4; box-shadow: 0 2px 3px rgba(20, 35, 63, .06), 0 22px 40px -28px rgba(20, 35, 63, .5);
  font-size: 1.22rem; line-height: 1.75; rotate: -.3deg;
}
.letter:nth-child(even) { rotate: .4deg; }
.letter-date { text-align: right; font-style: italic; color: var(--ink-soft); font-size: 1rem; }
.letter-body { overflow-wrap: anywhere; }
.letter-sign { font-family: var(--script); font-size: 2.3rem; line-height: 1.2; color: var(--navy); text-align: right; margin: 8px 0 0; overflow-wrap: anywhere; }
.letter-relation { text-align: right; color: var(--ink-soft); font-size: 1rem; margin: 0; letter-spacing: .04em; }

/* Share */
.share { max-width: 860px; margin: 0 auto; }
.share-who { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.drop {
  position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; cursor: pointer;
  padding: 40px 20px; margin: 8px 0 24px; border-radius: 10px;
  border: 2px dashed #A89B7E; background: #FFFDF8; transition: background .2s, border-color .2s;
}
.drop:hover, .drop.over { background: #F5EDDB; border-color: var(--navy); }
.drop:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { width: 40px; height: 40px; color: var(--gold-ink); margin-bottom: 6px; }
.drop-title { font-size: var(--step-1); color: var(--navy); font-weight: 500; }
.drop-hint { color: var(--ink-soft); }
.queue { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 16px; }
.q { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #FFFDF8; }
.q-preview { width: 120px; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: var(--parchment); }
.q-preview img, .q-preview video { width: 100%; height: 100%; object-fit: cover; }
.q-name { font-weight: 600; margin: 0 0 10px; overflow-wrap: anywhere; }
.q-fields { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 0 14px; }
.q-name, .q-progress, .q-state { grid-column: 1 / -1; }
.q-fields .field { margin-bottom: 10px; }
.q-progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 99px; background: #E6DCC6; overflow: hidden; }
.q-progress::-webkit-progress-bar { background: #E6DCC6; }
.q-progress::-webkit-progress-value { background: var(--gold-ink); transition: width .3s; }
.q-progress::-moz-progress-bar { background: var(--gold-ink); }
.q-state { margin: 6px 0 0; color: var(--ink-soft); font-size: 1rem; }
.q[data-state="done"] .q-state { color: #22401A; font-weight: 600; }
.q[data-state="error"] .q-state { color: #74260F; font-weight: 600; }
.q-remove { background: transparent; color: var(--navy); border-color: rgba(20, 35, 63, .3); }
.q-remove:hover { background: rgba(20, 35, 63, .06); border-color: var(--navy); }
.share-status { font-size: 1.15rem; }
@media (max-width: 560px) {
  .q { grid-template-columns: 84px minmax(0, 1fr); }
  .q-preview { width: 84px; }
  .q-remove { grid-column: 2; justify-self: end; grid-row: 1; }
  .q-fields { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
}

/* Footer: slim, as the mock ends at His Story. */
.site-footer {
  --focus: var(--gold-light);
  background: var(--navy); color: var(--cream); text-align: center;
  padding: 22px var(--gutter) 18px; border-top: 2px solid var(--gold);
}
.footer-name { font-family: var(--script); color: var(--gold); font-size: 38px; line-height: 1; margin: 0; }
.footer-years { margin: 4px 0 0; font-size: .98rem; font-variant-numeric: lining-nums; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 28px; margin: 10px 0 0; }
.footer-links a { color: var(--cream); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.footer-share { color: var(--gold-light) !important; font-weight: 500; }
.footer-share .icon { width: 20px; height: 20px; }
.footer-links .footer-admin { color: var(--mist); font-size: .9rem; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.toolbar .filters { margin: 0; }

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