:root {
  color-scheme: dark;
  --midnight: #0a1c25;
  --navy: #102c37;
  --teal: #153b43;
  --ink: #ecede3;
  --muted: #b6c6c7;
  --gold: #e4bd83;
  --copper: #b58e60;
  --line: #ffffff29;
  --serif: "Baskervville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", "Avenir Next", Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body { margin: 0; min-width: 280px; font: 16px/1.6 var(--sans); background: var(--midnight); color: var(--ink); }
h1, h2, h3, p, figure, ol { margin: 0; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ffc772; outline-offset: 4px; }
.wrap { width: min(100% - 2 * clamp(22px, 5vw, 82px), 1340px); margin-inline: auto; }
.skip, .sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; padding: 10px 18px; background: var(--ink); color: var(--midnight); z-index: 20; }
.masthead { position: relative; background: #0c232d; border-bottom: 1px solid #7896a22e; z-index: 5; }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 80px; }
.brand { display: inline-flex; flex: none; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; border: 1px solid #e4c9a7; }
.brand > span { display: grid; gap: 4px; font: 500 1.62rem/.94 var(--serif); letter-spacing: -.025em; }
.brand small { font: 650 .57rem/1.25 var(--sans); letter-spacing: .15em; text-transform: uppercase; color: #c1cecc; }
#menu { display: flex; align-items: center; gap: clamp(15px, 2vw, 34px); }
#menu a { padding: 6px 0; font-size: .865rem; font-weight: 550; color: #e0e7e4; text-decoration: none; white-space: nowrap; }
#menu a:hover { color: var(--gold); text-decoration: underline; }
#menu .nav-contact { border: 1px solid #b29771; padding: 7px 16px; color: #f0d09f; }
.menu-toggle { display: none; gap: 8px; align-items: center; border: 1px solid #768b8c; background: transparent; color: var(--ink); padding: 7px 11px; font-size: .85rem; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.057em; }
h1 em, h2 em { color: var(--gold); font-weight: 400; }
h2 { font-size: clamp(3rem, 5.7vw, 6rem); line-height: 1.01; text-wrap: balance; }
.eyebrow { font-size: .69rem; line-height: 1.35; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; color: var(--gold); }
.section-label { display: flex; align-items: center; gap: .85rem; margin-bottom: 16px; }
.section-label::before, .caption-rule { content: ""; width: 34px; flex: 0 0 34px; height: 1px; background: var(--copper); }
.hero-band { background: radial-gradient(ellipse at 84% 14%, #204753 0, transparent 55%), linear-gradient(108deg, #0c2732, #143744 52%, #0d2934); border-bottom: 1px solid #677f7b; }
.hero { display: grid; grid-template-columns: .79fr 1.21fr; align-items: center; column-gap: clamp(32px, 4.6vw, 75px); padding-block: clamp(40px, 6vw, 94px) clamp(40px, 5.1vw, 83px); }
.hero-copy, .hero-photo, .about-side, .prose { min-width: 0; }
.anniversary { display: flex; align-items: center; gap: 13px; margin-bottom: clamp(17px, 2.5vw, 38px); }
.anniversary img { width: 60px; height: 60px; padding: 4px; border-radius: 50%; background: #e7ddc7; border: 1px solid #f4d498; }
.years { color: #e2e3d9; font: 500 1rem/1.3 var(--serif); letter-spacing: .09em; margin-top: 3px; }
.years span { color: var(--copper); }
h1 { font-size: clamp(5.25rem, 9.2vw, 9.55rem); line-height: .83; }
h1 em { display: inline-block; font-size: .64em; letter-spacing: -.065em; line-height: 1.12; white-space: nowrap; }
.intro { margin-top: clamp(18px, 2.2vw, 35px); max-width: 42ch; color: #d2deda; font-size: clamp(.98rem, 1.17vw, 1.13rem); line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 13px clamp(18px, 2vw, 32px); align-items: center; margin-top: clamp(20px, 2.6vw, 40px); }
.button, .text-link { display: inline-flex; align-items: center; gap: .7em; font-size: .865rem; line-height: 1.45; font-weight: 650; text-decoration: none; }
.button { justify-content: space-between; padding: 13px 17px; background: #e6c491; color: #162b30; border: 1px solid #e6c491; }
.button:hover { background: #f3d8af; }
.button span, .text-link span { font-size: 1.14em; line-height: 1; }
.text-link { color: var(--gold); border-bottom: 1px solid #a98a6396; padding: 3px 0; }
.text-link:hover { border-color: currentColor; color: #ffddb0; }
.hero-photo { position: relative; margin: 0; }
.picture-frame { position: relative; background: #0c1f29; box-shadow: 0 15px 35px #03121970; }
.picture-frame::before { content: ""; position: absolute; z-index: 1; pointer-events: none; top: -7px; right: -7px; width: 27%; height: 28%; border: solid #c4a074; border-width: 1px 1px 0 0; }
.picture-frame img { width: 100%; height: auto; }
.hero-photo figcaption, .about-photo figcaption { position: relative; font-size: .735rem; line-height: 1.55; color: #c6d2d0; }
.hero-photo figcaption { display: flex; gap: 10px; align-items: baseline; padding-top: 14px; }
.caption-rule { transform: translateY(-.28em); width: 18px; flex-basis: 18px; }
.credit { color: #f0d6b0; }
.about-band, .gallery-band { background: #101f29; }
.about, .contact, .documents { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(36px, 8vw, 145px); }
.about, .timeline-band, .logbook, .gallery-band, .contact { padding-block: clamp(56px, 7vw, 105px); }
.about-side h2 { margin-bottom: clamp(26px, 3.8vw, 60px); }
.about-photo { max-width: 440px; }
.about-photo img { width: 100%; height: auto; }
.about-photo figcaption { margin-top: 10px; border-left: 1px solid var(--copper); padding-left: 10px; }
.prose { max-width: 69ch; color: #c3d0ce; align-self: center; }
.prose p + p { margin-top: 1.15em; }
.prose .lead { color: #eee7d7; font: 400 clamp(1.43rem, 2.2vw, 2.13rem)/1.25 var(--serif); letter-spacing: -.026em; }
.timeline-band { background: #163a42; border-block: 1px solid #6b878450; }
.heading-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: clamp(26px, 3.9vw, 56px); }
.heading-row .text-link { flex: none; margin-bottom: 4px; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; list-style: none; gap: 32px 0; }
.timeline li { position: relative; padding: 17px clamp(16px, 2.5vw, 40px) 0 0; border-top: 1px solid #a7af836b; }
.timeline li::before { content: ""; position: absolute; top: -3px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #dec391; }
.timeline time { font: 400 clamp(2.25rem, 3.4vw, 3.5rem)/1.1 var(--serif); color: #edc894; letter-spacing: -.055em; }
.timeline h3 { font-size: .95rem; line-height: 1.35; margin: 7px 0 5px; }
.timeline p { font-size: .865rem; color: #c8d6d1; line-height: 1.5; max-width: 32ch; }
.logbook { background: #102a35; }
.news-list, .gallery-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px, 2.1vw, 34px); }
.news-card { display: flex; flex-direction: column; align-items: start; min-width: 0; border-top: 1px solid #ac967799; padding-top: 14px; }
.news-card > img { width: 100%; aspect-ratio: 1.68; object-fit: cover; background: #182e35; margin-bottom: 16px; }
.news-card > img.poster { object-fit: contain; background: #243a41; }
.news-card time { font-size: .68rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.news-card h3 { font: 400 clamp(1.52rem,2.35vw,2.25rem)/1.15 var(--serif); letter-spacing: -.034em; text-wrap: pretty; }
.news-card p, .empty-news p { font-size: .94rem; line-height: 1.58; color: #c5d3d1; }
.news-card p { margin-block: 10px 17px; }
.news-card .text-link { margin-top: auto; }
.empty-news { grid-column: 1/-1; max-width: 60ch; }
.empty-news .text-link { margin-top: 12px; }
.gallery-band { border-block: 1px solid var(--line); background: #0c1f29; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; }
.gallery-filters button, .more-button, .viewer-toolbar button, .viewer-controls button { padding: 7px 12px; color: #d7e2df; border: 1px solid #8da1a063; background: transparent; font-size: .84rem; line-height: 1.45; }
.gallery-filters button { border-radius: 20px; }
.gallery-filters button[aria-pressed="true"] { background: #ddc193; border-color: #ddc193; color: #132d32; }
.gallery-filters button:hover, .more-button:hover, .viewer-toolbar button:hover, .viewer-controls button:hover { border-color: var(--gold); }
.gallery-list { row-gap: 26px; }
.gallery-item { display: block; width: 100%; min-width: 0; text-align: left; padding: 0; border: 0; color: var(--ink); background: none; }
.gallery-image { display: block; position: relative; overflow: hidden; background: #162e38; }
.gallery-image::after { content: "+"; position: absolute; bottom: 8px; right: 8px; display: grid; place-items: center; width: 27px; height: 27px; background: #0c2631d9; border: 1px solid #dfc293ae; color: #fff0d2; font: 1.2rem/1 var(--sans); }
.gallery-image img { width: 100%; height: auto; aspect-ratio: 1.58; object-fit: cover; transition: transform .32s ease; }
.gallery-item:hover img { transform: scale(1.035); }
.gallery-caption { display: block; padding-top: 10px; font: 400 1.11rem/1.3 var(--serif); }
.gallery-item:hover .gallery-caption { color: var(--gold); }
.more-button { margin-top: 24px; padding: 10px 16px; color: var(--gold); }
.more-button span { margin-left: 9px; }
.documents-band { background: #d6c8aa; color: #173038; color-scheme: light; }
.documents { align-items: center; padding-block: clamp(36px, 5vw, 72px); }
.documents .eyebrow, .documents .section-label::before { color: #735329; }
.documents h2 { font-size: clamp(2.6rem, 4.4vw, 4.25rem); }
.document-link { display: flex; align-items: center; justify-content: space-between; gap: 15px; text-decoration: none; border-block: 1px solid #665e4980; padding: 15px 0; }
.document-link small, .document-link strong { display: block; }
.document-link small { font-size: .72rem; font-weight: 600; color: #4c5146; letter-spacing: .04em; }
.document-link strong { font: 400 clamp(1.3rem, 2.5vw, 2.2rem)/1.23 var(--serif); letter-spacing: -.03em; margin-top: 3px; }
.document-link > span { font-size: 1.45rem; }
.document-link:hover { border-color: #173038; }
.contact-band { background: #12323a; }
.contact { align-items: center; }
.contact address { display: flex; flex-direction: column; align-items: start; font-style: normal; color: #c8d5d0; }
.email { font: 400 clamp(1.5rem, 3.6vw, 3.4rem)/1.15 var(--serif); letter-spacing: -.04em; color: #f2debc; text-decoration: none; margin-bottom: 18px; }
.email span { font: 400 .53em/1 var(--sans); }
.email:hover { text-decoration: underline; }
.contact address strong, .contact address > span { font-size: .92rem; }
.contact address .text-link { margin-top: 12px; }
footer { background: #0b212b; border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; padding-block: 22px; font-size: .77rem; color: #bac9c8; }
.footer-inner a { white-space: nowrap; }
#viewer { width: min(1050px, calc(100% - 28px)); max-height: calc(100dvh - 26px); overflow: auto; padding: clamp(12px, 2vw, 24px); border: 1px solid #ac926d; background: #0c232c; color: var(--ink); }
#viewer::backdrop { background: #020b10e8; }
body:has(#viewer[open]) { overflow: hidden; }
.viewer-toolbar, .viewer-controls, #viewer figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.viewer-toolbar { margin-bottom: 9px; }
#viewer-counter { color: var(--gold); font-variant-numeric: tabular-nums; font-size: .85rem; }
#viewer-image { width: 100%; height: auto; max-height: 63dvh; object-fit: contain; background: #081a21; }
#viewer figcaption { padding-block: 10px; font-size: .9rem; }
#viewer-source { color: var(--gold); flex: none; }
@media (max-width: 850px) {
  .head-inner { min-height: 70px; gap: 1rem; }
  #menu { gap: 13px; }
  #menu a { font-size: .78rem; }
  .hero { grid-template-columns: .88fr 1.12fr; column-gap: 24px; }
  .news-list, .gallery-list { gap: 20px 15px; }
  .about, .contact, .documents { gap: 36px; }
  .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .head-inner { flex-wrap: wrap; padding-block: 12px; gap: 10px; }
  .brand img { width: 41px; height: 41px; }
  .brand > span { font-size: 1.4rem; }
  .brand small { font-size: .53rem; }
  .js-menu .menu-toggle { display: inline-flex; }
  #menu { width: 100%; display: flex; flex-wrap: wrap; gap: 5px 18px; }
  .js-menu #menu { display: none; }
  .js-menu #menu.open { display: grid; grid-template-columns: repeat(2,1fr); padding: 8px 0 3px; }
  #menu a, #menu .nav-contact { border: 0; padding: 6px 0; font-size: .93rem; }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; row-gap: 30px; padding-block: 30px 34px; }
  .anniversary { margin-bottom: 18px; }
  .anniversary img { width: 48px; height: 48px; }
  h1 { font-size: clamp(5rem, 16vw, 6.6rem); }
  h1 br { display: none; }
  h1 em { margin-left: .13em; }
  .intro { max-width: 55ch; margin-top: 15px; }
  .actions { margin-top: 18px; }
  .hero-photo figcaption { padding-top: 10px; }
  .about, .contact, .documents { grid-template-columns: 1fr; gap: 24px; }
  .about-side { display: contents; }
  .about-side .section-label { margin-bottom: -16px; }
  .about-side h2 { margin-bottom: 0; }
  .about-side h2 br { display: none; }
  .about-side h2 em { margin-left: .15em; }
  .about-photo { order: 1; max-width: 100%; }
  .about-photo img { max-height: 420px; object-fit: contain; object-position: left; width: auto; }
  .heading-row { align-items: start; flex-direction: column; gap: 12px; }
  .news-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .gallery-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact h2 br { display: none; }
  .contact h2 em { margin-left: .15em; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 40px); }
  .news-list { grid-template-columns: 1fr; gap: 28px; }
  .news-card h3 { font-size: 1.85rem; }
  .gallery-list { gap: 18px 12px; }
  .gallery-image img { aspect-ratio: 1.32; }
  .gallery-caption { font-size: 1rem; }
  #viewer figcaption { flex-direction: column; align-items: start; gap: 5px; }
}
@media (max-width: 380px) {
  h1 { font-size: 4.5rem; }
  h1 br { display: inline; }
  h1 em { margin-left: 0; }
  .actions { gap: 12px; }
  .button { padding: 11px 12px; }
  .gallery-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
.gallery-credit, .news-credit { display: block; font: 400 .72rem/1.45 var(--sans); color: #c7cbba; }
.gallery-credit { margin-top: 4px; }
.news-credit { margin: -10px 0 13px; }
#viewer figcaption { flex-wrap: wrap; }
#viewer-caption { flex: 1 1 260px; }
#viewer figcaption a { color: var(--gold); }
@media (max-width: 520px) { #viewer-caption { flex: auto; } }

.caption-source { color: #e8cba4; white-space: nowrap; margin-left: .3em; }
