:root {
  --ink: #142533;
  --navy: #102232;
  --night: #0b1724;
  --gold: #e6c387;
  --brass: #73521c;
  --paper: #f9f5ec;
  --border: #dfd3bd;
  --muted: #465460;
  --serif: "Frank Ruhl Libre", Georgia, serif;
  font: 18px/1.6 Assistant, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ac732d; outline-offset: 4px; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.1vw, 2.6rem); }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 10; top: .5rem; inset-inline-start: .6rem; padding: .45rem .7rem; background: white; color: var(--ink); transform: translateY(-140%); }
.skip:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  color: #f8f1e5;
  background: linear-gradient(120deg, #142d3d, var(--night) 72%);
  border-bottom: 1px solid #c89c5480;
}
.masthead { padding-block: .65rem .5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand img { display: block; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 1.45rem/1.1 var(--serif); }
.brand small { margin-block-start: .12rem; font-size: .78rem; color: var(--gold); }
.mainnav { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.mainnav a {
  text-align: center;
  font-weight: 650;
  font-size: .96rem;
  padding: .44rem .18rem .54rem;
  border-top: 1px solid #e6c3872d;
  border-bottom: 2px solid transparent;
}
.mainnav a:hover, .mainnav a[aria-current] { color: var(--gold); background: #e6c3870d; }
.mainnav a[aria-current] { border-bottom-color: var(--gold); }
.mainnav a:focus-visible { outline-offset: -4px; }

.home-hero, .tour-landing { position: relative; isolation: isolate; color: #fff8e9; background: var(--night); }
.home-hero { background: linear-gradient(105deg, #dbb98c, #82664e); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 12%; z-index: -2; }
.home-hero .hero-image { object-position: center 17%; }
.home-hero::after, .tour-landing::after { content: ""; position: absolute; z-index: -1; inset: 0; }
.hero-layout { min-height: clamp(475px, 70svh, 770px); display: flex; align-items: center; padding-block: 2.6rem; }
.featured-quote { width: min(57%, 610px); padding-inline: .5rem; }
.featured-quote h1, .featured-quote footer {
  color: #ffca24;
  -webkit-text-stroke: .045em #c4cbd3;
  paint-order: stroke fill;
  text-shadow: 0 2px 2px #25180f, 0 3px 9px #221208b3;
}
.featured-quote h1 { font-size: clamp(1.62rem, 3.06vw, 3.18rem); line-height: 1.36; white-space: pre-line; }
.featured-quote footer, .quote-credit { margin-block-start: .7rem; font: 700 clamp(.88rem, 1.5vw, 1.12rem)/1.4 Assistant, Arial, sans-serif; color: #ffebbd; }
.quote-playing { align-self: stretch; position: relative; }
.hero-layout:has(.quote-playing) { padding-block: 0; }
.quote-window { position: absolute; inset: 0; overflow: hidden; padding-inline: .5rem; }
.quote-flow { position: relative; display: block; will-change: transform; }
.quote-credit { display: block; opacity: 0; transition: opacity .4s ease; -webkit-text-stroke-width: .075em; }
.quote-credit.visible { opacity: 1; }
.quote-playing footer, .quote-finished { opacity: 0; }
.quote-finished .quote-flow { visibility: hidden; will-change: auto; }
.quote-word { display: inline-block; }
.quote-letter.pending { visibility: hidden; }

.books { padding-block: .85rem 2rem; border-bottom: 1px solid var(--border); }
.books h2, .sources h2 { display: flex; align-items: center; gap: 1rem; margin-block-end: 1.15rem; }
.books h2::after, .sources h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to left, #a87e42a6, transparent); }
.book-list { display: flex; flex-wrap: wrap; gap: .65rem; }
.book {
  display: inline-flex;
  align-items: center;
  text-align: start;
  gap: .6rem;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 4px;
  background: linear-gradient(120deg, #f5ecd9, #fffdf6 65%);
  box-shadow: 0 3px 12px #62432112;
  padding: .66rem .85rem;
  line-height: 1.28;
}
.book strong, .book small { display: block; }
.book strong { font-size: .93rem; }
.book small { color: var(--brass); font-size: .77rem; margin-block-start: .1rem; }
.book-symbol { position: relative; flex: none; width: 1.38rem; height: 1.8rem; border: 1px solid #68502c; border-radius: 2px 4px 4px 2px; background: linear-gradient(90deg, #172e3c 74%, #bfa16a 76%, #1f3947 83%); box-shadow: inset 0 -2px #ebd9b6, -1px 2px 3px #47301625; }
.book-symbol::before { content: ""; position: absolute; inset: 18% 28% 27% 14%; border: 1px solid #dfc58b; }

.sources { padding-block: 1.85rem 3rem; }
.quote-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.source-card {
  position: relative;
  isolation: isolate;
  padding: 1.45rem clamp(.85rem, 2vw, 1.45rem) 1.25rem;
  color: #322416;
  filter: drop-shadow(0 4px 5px #62401c45);
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.source-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 46% 39%, #fff7dd2b 26%, #a9753d39 74%, #8f4c235e),
    #f0dbb1 url(/assets/parchment.webp) center / cover;
  border: 1px solid #a46a3e9c;
  box-shadow: inset 0 0 12px #8c4a2f57, inset 0 -4px 8px #8b4e2433;
  clip-path: polygon(0 .9%, 3.5% 0, 8% .8%, 14% .1%, 19% .6%, 26% 0, 31% .7%, 39% .22%, 47% .9%,
    55% .1%, 62% .7%, 70% 0, 76% .7%, 85% .2%, 91% 1%, 97% .3%, 99.5% 1.3%, 100% 15%, 99.55% 28%,
    100% 46%, 99.5% 61%, 100% 75%, 99.65% 89%, 100% 98.9%, 96% 99.7%, 91% 99.1%, 85% 100%, 77% 99.3%,
    70% 99.9%, 61% 99.1%, 53% 100%, 47% 99.4%, 40% 100%, 33% 99.25%, 25% 100%, 18% 99.4%, 11% 99.9%,
    5% 99.2%, .35% 100%, 0 87%, .45% 73%, 0 57%, .5% 40%, 0 24%, .45% 12%);
}
.source-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .07rem .1rem auto;
  height: clamp(.32rem, 1vw, .62rem);
  border-radius: 21% 13% 12% 8% / 47% 67% 32% 36%;
  background: linear-gradient(180deg, #a8704238 4%, #fff1c6b5 32%, #e7c17c8f 66%, #a5714165);
  box-shadow: 0 3px 5px #79442140;
  pointer-events: none;
}
.source-card blockquote { font: 500 1.01rem/1.55 var(--serif); }
.source-card-featured { grid-column: 1 / -1; text-align: start; }
.source-card-featured blockquote p + p { margin-block-start: .65em; }
.source-card figcaption { color: #68451f; font-size: .83rem; line-height: 1.35; font-weight: 700; margin-block-start: auto; padding-block-start: .42rem; border-block-start: 1px solid #85532340; }

.tour-landing {
  min-height: calc(100svh - 117px);
  display: flex;
  align-items: center;
  text-align: center;
  border-bottom: 1px solid #c89c5480;
}
.tour-landing::after { background: linear-gradient(0deg, #0b1724f1, #0b17247a 53%, #0b172470); }
.tour-inner { padding-block: 3rem; }
.tour-inner h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
  color: #ffca24;
  -webkit-text-stroke: .036em #c4cbd3;
  paint-order: stroke fill;
  text-shadow: 0 2px 4px #281609, 0 6px 20px #07121f;
}
/* The narrow highlight and darker gold below it follow the face of each glyph. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .quote-letter, .featured-quote:not(.quote-playing) h1, .tour-inner h1 {
    background-image: linear-gradient(177deg, #f1ac09 5%, #ffca22 30%, #ffe47a 43%, #ffd343 52%, #f1ac09 69%, #ffd138 86%);
    background-size: 100% 1.12em;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
  .quote-letter, .featured-quote:not(.quote-playing) h1, .tour-inner h1 { -webkit-text-stroke: clamp(.7px, .03em, 1.8px) #c4cbd3; font-weight: 700; }
  .featured-quote:not(.quote-playing) h1 { background-size: 100% 1.36em; }
  .quote-flow, .featured-quote:not(.quote-playing) h1, .tour-inner h1 {
    filter: drop-shadow(0 0 .8px #0a172b) drop-shadow(0 0 1px #0a172b) drop-shadow(0 1.5px 1.4px #0a172b);
  }
}
@media (forced-colors: active) {
  .quote-letter, .featured-quote h1, .tour-inner h1 { -webkit-text-fill-color: CanvasText; -webkit-text-stroke-width: 0; }
}
.tour-inner > p { margin-block-start: .4rem; font-size: clamp(1.12rem, 2.9vw, 1.6rem); font-weight: 700; text-shadow: 0 2px 15px #07121f, 0 0 4px #07121f; }
.tour-options { margin-block-start: 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.tour-option {
  display: grid;
  place-content: center;
  min-width: 0;
  padding: .75rem .3rem;
  border: 1px solid #dec69a8a;
  border-radius: 4px;
  color: #e9e2d7;
  background: #111d29dc;
  line-height: 1.3;
}
.tour-option strong { font: 600 clamp(1rem, 2.15vw, 1.5rem)/1.25 var(--serif); }
.tour-option small { margin-block-start: .23rem; font-size: .78rem; }
.tour-available { color: var(--night); border-color: #ffe7b2; background: linear-gradient(115deg, #ebcb90, #cf9f59); }
.tour-available:hover { background: #fae0ab; }

.page-heading { color: #fff7e8; background: linear-gradient(105deg, #224354, var(--night) 82%); border-block-end: 2px solid #c7a368; padding-block: clamp(2.3rem, 6vw, 4.8rem); }
.page-heading h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.page-content { padding-block: 1.8rem 3.5rem; }
.page-content h2 { margin-block-end: .65rem; }
.page-content p { color: var(--muted); }
.subnav { display: flex; gap: .6rem; padding-block-end: .7rem; margin-block-end: 1.7rem; border-bottom: 1px solid var(--border); }
.subnav a, .email-link { padding: .45rem .8rem; border: 1px solid var(--border); border-radius: 3px; font-weight: 700; background: #fffdf7; }
.subnav a:hover, .subnav a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff7e8; }
.email-link { display: inline-block; color: var(--brass); overflow-wrap: anywhere; }
.email-link:hover { background: #f3e4c7; }
.about { display: flex; align-items: flex-start; gap: 1rem 1.55rem; }
.about img { object-fit: contain; width: clamp(72px, 15vw, 120px); height: auto; }
.about p + p { margin-block-start: .6rem; }
.campaign-feed { display: grid; gap: .75rem; }
.publication { max-width: 790px; padding: 1rem; background: #fffdf7; border: 1px solid var(--border); border-radius: 4px; }
.publication h3 { font-size: 1.4rem; }
.publication time { color: var(--brass); font-weight: 700; font-size: .83rem; }
.publication-body { margin-block: .5rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.publication img { display: block; max-width: 100%; max-height: 640px; height: auto; margin-block: .7rem; }
.publication a { text-decoration: underline; text-underline-offset: .2em; color: var(--brass); }

.site-footer { color: #f8f1e5; background: var(--night); border-top: 1px solid #c89c5480; }
.site-footer .wrap { padding-block: 1rem; display: flex; flex-wrap: wrap; gap: .25rem .65rem; align-items: baseline; }
.site-footer strong { font-family: var(--serif); }
.site-footer span { font-size: .82rem; color: #ded2bc; }

@media (max-width: 680px) {
  .wrap { width: calc(100% - 1.5rem); }
  .masthead { padding-block: .38rem .2rem; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 1.21rem; }
  .brand small { font-size: .7rem; }
  .mainnav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mainnav a { padding: .24rem .14rem; font-size: .88rem; }
  .home-hero .hero-image { object-position: center top; }
  .hero-layout { min-height: clamp(415px, 58svh, 590px); padding-block: 2rem; }
  .featured-quote { width: 100%; }
  .featured-quote h1 { font-size: clamp(1.32rem, 5.35vw, 1.9rem); }
  .source-card { padding: .8rem .57rem .6rem; gap: .55rem; }
  .source-card blockquote { font-size: .91rem; }
  .source-card figcaption { font-size: .74rem; }
  .quote-grid { gap: .48rem; }
  .tour-landing { min-height: calc(100svh - 121px); }
  .tour-options { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block-start: 1.35rem; }
  .tour-inner { padding-block: 2rem; }
}

@media (min-width: 950px) {
  .site-header { display: flex; align-items: center; gap: clamp(1rem, 4vw, 4rem); padding-inline: max(1.5rem, (100% - 1120px) / 2); }
  .site-header .masthead { flex: none; width: auto; padding-block: .7rem; }
  .site-header .mainnav { flex: 1; width: auto; align-self: stretch; }
  .mainnav a { display: grid; place-content: center; border-top: none; }
}
@media (max-width: 680px) {
  .masthead { display: flex; align-items: center; justify-content: center; gap: .8rem; }
  .masthead::before, .masthead::after { content: ""; flex: 1; max-width: 4.4rem; height: 1px; background: linear-gradient(to left, transparent, #c69b537d); }
  .masthead::after { transform: rotate(180deg); }
}
