:root {
  color-scheme: light;
  --forest: #171f18;
  --ink: #202a21;
  --paper: #f7f4ec;
  --line: #dfd9ca;
  --muted: #5b6255;
  --gold: #e1bd79;
  --bronze: #775b2f;
  --display: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; }
h2 { font-size: clamp(2.6rem, 5vw, 4.15rem); letter-spacing: -.045em; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 1.5rem; }

.shell { width: min(100% - 6rem, 1184px); margin-inline: auto; }
.skip { position: fixed; z-index: 5; top: 1rem; left: 1rem; padding: .6rem 1rem; background: var(--paper); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.site-header, .site-footer { background: var(--forest); color: var(--paper); }
.site-header { position: relative; z-index: 1; border-bottom: 1px solid #e1bd793d; }
.header-inner, .footer-inner { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.25rem; }
.brand { display: inline-flex; align-items: center; justify-self: start; font: 1.5rem var(--display); letter-spacing: -.035em; }
.brand svg { width: 34px; height: 34px; margin-right: .65rem; color: var(--gold); }
.brand-accent { color: var(--gold); }
nav { display: flex; align-items: center; gap: clamp(1rem, 3.4vw, 2.75rem); color: #e0e0d4; font-size: .85rem; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a:hover, .text-link:hover { color: var(--gold); }
.header-link { justify-self: end; padding: .65rem .95rem; border: 1px solid #e1bd795e; color: #f3e1b9; font-size: .78rem; }
.header-link span { margin-left: .6rem; }
.header-link:hover { background: #e1bd7924; }

.hero {
  position: relative;
  color: var(--paper);
  background-color: var(--forest);
  background-image: linear-gradient(90deg, #121a13f5 0%, #131c14c2 27%, #131c144d 58%, transparent 80%), linear-gradient(0deg, #111810b3, transparent 40%), url("assets/athenaeum.webp"), url("assets/ruins.svg");
  background-repeat: no-repeat;
  background-position: center, center, center 51%, right center;
  background-size: cover, cover, cover, auto 100%;
}
.hero-inner { position: relative; min-height: clamp(565px, 44vw, 690px); display: flex; align-items: center; padding-block: 4rem 5.75rem; }
.hero-copy { max-width: 41rem; }
.eyebrow { display: flex; align-items: center; gap: .75rem; color: var(--bronze); font-size: .68rem; font-weight: 650; letter-spacing: .19em; text-transform: uppercase; }
.hero .eyebrow { color: #f0d39b; }
.rule { display: inline-block; width: 1.75rem; height: 1px; flex: 0 0 auto; background: currentColor; }
h1 { margin: 1.35rem 0 1.5rem; font-size: clamp(4rem, 8.15vw, 7.8rem); letter-spacing: -.065em; line-height: .88; }
h1 em { color: var(--gold); font-weight: inherit; }
.hero-description { max-width: 31rem; font-size: clamp(.97rem, 1.4vw, 1.075rem); color: #e4e4d8; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.65rem; margin-top: 2rem; }
.button, .text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: .95rem; min-height: 48px; font-size: .85rem; font-weight: 600; }
.button { background: var(--gold); color: #201d13; padding: .72rem 1.1rem; }
.button:hover { background: #f1d69e; }
.arrow-up-right { position: relative; display: inline-block; width: .72rem; height: .72rem; flex: none; vertical-align: -.06em; }
.arrow-up-right::before { content: ""; position: absolute; top: 0; right: 0; width: .36rem; height: .36rem; border-block-start: 1px solid; border-inline-end: 1px solid; }
.arrow-up-right::after { content: ""; position: absolute; top: 50%; right: -.08rem; left: -.08rem; height: 1px; background: currentColor; transform: rotate(-45deg); }
.text-link span { color: var(--gold); }
.hero-caption { position: absolute; bottom: 1.3rem; left: 0; display: inline-flex; align-items: center; gap: .65rem; color: #f0deba; font-size: .65rem; letter-spacing: .19em; }
.hero-caption span { display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid #e1bd7980; border-radius: 50%; font-size: .9rem; }

.rotunda { padding: clamp(3.5rem, 6vw, 5.5rem) 0 6rem; }
.section-intro { text-align: center; margin-bottom: 2.4rem; }
.section-intro .eyebrow, .ornament { justify-content: center; }
.ornament { display: flex; align-items: center; gap: .65rem; color: var(--bronze); margin-bottom: .65rem; font-size: .85rem; }
.ornament span { width: 1.8rem; height: 1px; background: #b29e74; }
.section-intro h2, .roadmap h2 { margin: .65rem 0 .75rem; }
.section-intro > p:last-child, .story-copy > p:not(.eyebrow), .milestones p { color: var(--muted); }
.muse-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; align-items: start; }
.muse-card { border: 1px solid var(--line); background: #fbf9f2; }
.muse-card[open], .muse-card:hover { border-color: #b5a37d; }
.muse-card summary { min-height: 106px; padding: 1rem 1.05rem; display: flex; align-items: center; gap: .95rem; cursor: pointer; list-style: none; }
.muse-card summary::-webkit-details-marker { display: none; }
.muse-card summary:focus-visible { outline-offset: -4px; }
.muse-icon { width: 48px; height: 48px; padding: 10px; flex: 0 0 auto; border: 1px solid #e4dbc7; border-radius: 50%; color: var(--bronze); background: #f3eee2; }
.muse-label { display: grid; gap: .2rem; }
.muse-name { font: 1.5rem/1.1 var(--display); letter-spacing: -.03em; }
.muse-room { color: var(--muted); font-size: .77rem; }
.muse-toggle { margin-left: auto; width: .72rem; height: .72rem; flex: 0 0 auto; background: linear-gradient(var(--bronze), var(--bronze)) center / 100% 1px no-repeat, linear-gradient(var(--bronze), var(--bronze)) center / 1px 100% no-repeat; }
.muse-card[open] .muse-toggle { background-size: 100% 1px, 0 0; }
.muse-description { border-top: 1px solid var(--line); padding: 1rem 1.05rem; font-size: .9rem; }
.muse-description p + p { margin-top: .35rem; }
.room-status { color: var(--muted); font-size: .75rem; }

.story { background: #e9ebdf; padding-block: clamp(3rem, 6vw, 6rem); }
.story-inner { display: grid; grid-template-columns: .82fr 1fr; align-items: center; gap: clamp(2.25rem, 7vw, 7rem); }
.story-art { width: min(100%, 370px); justify-self: center; padding: .5rem; border: 1px solid #9ba68f; border-radius: 16rem 16rem 0 0; }
.story-art img { width: 100%; height: auto; border-radius: inherit; }
.story-copy { max-width: 31rem; }
.story-copy h2 { margin: .85rem 0 1.25rem; }
.story-copy > p + p { margin-top: .8rem; }
.story-copy .text-link { margin-top: .85rem; color: var(--ink); }
.story-copy .text-link span { color: var(--bronze); }
.story-copy .text-link:hover { text-decoration: underline; }

.roadmap { padding-block: clamp(3.5rem, 7vw, 6rem); }
.milestones { padding: 0; margin: 1.8rem 0 0; list-style: none; }
.milestones li { display: grid; grid-template-columns: 8rem minmax(10rem, .8fr) 1fr; gap: 1.1rem; align-items: baseline; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.milestones li:last-child { border-bottom: 1px solid var(--line); }
.milestones h3 { font-size: 1.6rem; }
.milestones p { font-size: .92rem; }
.stage { color: var(--bronze); font-size: .71rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.stage.current { color: #3f5b3a; }
.footer-inner { min-height: 103px; }
.footer-inner small { justify-self: end; color: #d3d5c9; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 3rem); }
  .muse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 670px) {
  .shell { width: calc(100% - 2.25rem); }
  .header-inner, .footer-inner { grid-template-columns: 1fr auto; gap: .25rem .75rem; padding-block: .75rem; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; border-top: 1px solid #e1bd793d; margin-top: .4rem; }
  .brand { font-size: 1.25rem; }
  .brand svg { width: 27px; height: 27px; margin-right: .4rem; }
  .header-link { padding-inline: .55rem; font-size: .69rem; }
  .header-link span { margin-left: .25rem; }
  .hero { background-position: center, center, 60% center, right center; background-image: linear-gradient(90deg, #111a13e6, #131c1470), linear-gradient(0deg, #11181099, transparent 45%), url("assets/athenaeum.webp"), url("assets/ruins.svg"); }
  .hero-inner { min-height: 550px; }
  h1 { font-size: clamp(3rem, 12vw, 5.3rem); }
  .hero-actions { gap: .35rem 1rem; }
  .rotunda { padding-bottom: 3.5rem; }
  .story-inner { grid-template-columns: 1fr; }
  .story-art { width: min(100%, 240px); }
  .milestones li { grid-template-columns: 1fr; gap: .45rem; }
  .footer-inner nav { grid-row: 2; grid-column: 1 / -1; }
  .footer-inner small { grid-row: 1; grid-column: 2; }
}

@media (max-width: 490px) {
  .muse-grid { grid-template-columns: 1fr; }
  .muse-card summary { min-height: 82px; }
}

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

.site-header [aria-current="page"], .site-footer [aria-current="page"] { color: var(--gold); text-decoration: underline; text-underline-offset: .3em; }
.footer-inner nav { gap: clamp(.6rem, 2.2vw, 1.8rem); flex-wrap: wrap; }
.rotunda-actions { margin-top: 1.2rem; text-align: center; }
.rotunda-actions .text-link span, .room-restoration .text-link span { color: var(--bronze); }
.rotunda-actions .text-link:hover, .room-restoration .text-link:hover { color: var(--ink); text-decoration: underline; }
.muse-room-link { display: inline-block; margin-top: .6rem; color: var(--bronze); font-weight: 600; }
.muse-room-link:hover { text-decoration: underline; }

.room-hero {
  padding-block: 1.1rem 3rem;
  color: var(--paper);
  background: linear-gradient(100deg, #141d16f5, #141d16bf 50%, #141d1666), #172019 url("/assets/rotunda.webp") center 58% / cover;
}
.room-breadcrumbs { font-size: .8rem; }
.room-breadcrumbs ol { display: flex; align-items: baseline; flex-wrap: wrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.room-breadcrumbs li + li::before { content: "/"; margin-right: .55rem; color: #e1bd79; }
.room-breadcrumbs a { text-decoration: underline; text-underline-offset: .2em; }
.room-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; min-height: 300px; padding-block: 2.75rem 1rem; }
.room-heading .eyebrow { color: var(--gold); }
.room-heading h1 { margin: .9rem 0 1.2rem; font-size: clamp(3rem, 7vw, 6.15rem); line-height: .98; letter-spacing: -.05em; overflow-wrap: break-word; }
.room-association { font-size: .8rem; color: #e0e0d4; }
.room-association span { display: block; font: 1.35rem var(--display); color: var(--paper); margin-top: .2rem; }
.room-emblem {
  display: grid;
  place-items: center;
  width: clamp(8rem, 16vw, 13.5rem);
  aspect-ratio: 1;
  border: 1px solid #e1bd7999;
  border-radius: 50%;
  outline: 1px solid #e1bd795e;
  outline-offset: -9px;
  background: #1c251bd9;
  color: var(--gold);
  margin-right: clamp(0rem, 4vw, 4rem);
}
.room-emblem-icon { width: 47%; }

.room-content { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; padding-block: clamp(3rem, 6vw, 5rem); }
.room-intro h2 { margin-bottom: 1rem; font-size: clamp(2.25rem, 4vw, 3.5rem); }
.room-intro p, .room-restoration p { color: var(--muted); }
.room-intro p { max-width: 34rem; }
.room-restoration { border: 1px solid var(--line); background: #f1ede1; padding: 1.4rem 1.6rem; }
.room-restoration h2 { margin-bottom: .55rem; font-size: 1.65rem; letter-spacing: -.025em; }
.room-restoration .text-link { margin-top: .3rem; }
.room-neighbors { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 1.1rem; font-size: 1rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.room-neighbors a { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-height: 65px; padding-block: .9rem; border-block: 1px solid var(--line); }
.room-neighbors a:hover .neighbor-name, .room-neighbors .room-all:hover { text-decoration: underline; text-underline-offset: .2em; }
.room-neighbors > :last-child { align-items: flex-end; text-align: right; }
.room-neighbors > :last-child .eyebrow { justify-content: flex-end; }
.neighbor-name { font: clamp(1.1rem, 2vw, 1.6rem) var(--display); color: var(--ink); }
.room-neighbors .room-all { align-items: center; justify-content: center; padding-inline: .8rem; text-align: center; color: var(--bronze); font-weight: 600; font-size: .8rem; }

@media (max-width: 670px) {
  .room-heading { grid-template-columns: 1fr; gap: 1.5rem; }
  .room-emblem { grid-row: 1; width: 5.5rem; margin: 0; outline-offset: -5px; }
  .room-content { grid-template-columns: 1fr; }
  .room-neighbors { gap: .55rem; }
  .room-neighbors .room-all { padding-inline: .25rem; }
  .room-neighbors .eyebrow { gap: .3rem; letter-spacing: .075em; }
}

.missing-page { min-height: 54vh; padding-block: clamp(3.5rem, 8vw, 7rem); }
.missing-page h1 { font-size: clamp(3.1rem, 7vw, 6rem); line-height: 1; }
.missing-page > p:not(.eyebrow) { max-width: 33rem; color: var(--muted); }
.missing-page .text-link span { color: var(--bronze); }
.missing-page .text-link:hover { color: var(--ink); text-decoration: underline; }

.home-map {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5.25rem);
  padding-bottom: clamp(3rem, 7vw, 6rem);
}

.home-map img { width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; }
.home-map h2 { margin: .7rem 0 1rem; }
.home-map p:not(.eyebrow) { color: var(--muted); }
.home-map .button { margin-top: 1.25rem; }
.home-roadmap-link { margin-top: .75rem; }
.home-roadmap-link span { color: var(--bronze); }
.home-roadmap-link:hover { color: var(--ink); text-decoration: underline; }

@media (max-width: 670px) {
  .home-map { grid-template-columns: 1fr; }
}
