:root {
  color-scheme: dark;
  --page: #0a0a0c;
  --surface: #18171a;
  --line: #37302c;
  --text: #fff9ee;
  --muted: #d3c8b9;
  --gold: #fcb424;
  --paper: #f0dfb8;
  --ink: #321f12;
  --cork-scene: url("media/cork-wall.webp");
  --display: "Dela Gothic One", system-ui, sans-serif;
  --gutter: clamp(16px, 3.2vw, 52px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font: 400 1rem/1.65 Comfortaa, system-ui, sans-serif;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.17; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.wrap { width: min(100% - var(--gutter) - var(--gutter), 1220px); margin-inline: auto; }

.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 400 .94rem/1 var(--display);
  text-transform: uppercase;
  text-decoration: none;
}
.brand img { object-fit: contain; }
.home-link { flex: 0 0 auto; padding: 6px 0; color: var(--muted); font-weight: 700; text-underline-offset: .24em; }
.home-link:hover, .brand:hover { color: var(--gold); }
.wall-section {
  padding-bottom: clamp(38px, 5vw, 72px);
  background: radial-gradient(ellipse at 55% 61%, #332115 0, var(--page) 72%);
}
.wall-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 10px 24px;
  padding: clamp(16px, 2.8vw, 40px) 0 25px;
}
.wall-intro h1 { font-size: clamp(1.9rem, 4.8vw, 4.25rem); letter-spacing: -.03em; text-transform: uppercase; }
.wall-intro p { max-width: 37ch; color: var(--muted); }

/* The photograph is the coordinate system for the wall, its contents and their labels. */
.room-links { display: flex; gap: clamp(14px, 3vw, 36px); align-items: center; }
.room-links a { color: var(--muted); font-size: .85rem; text-decoration: none; }
.room-links a:hover { color: var(--gold); }
.wall-intro .room-name { margin-bottom: 8px; color: #efbe76; font-size: .79rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.wall-intro > p { font-size: .93rem; line-height: 1.6; }
.wall-section { overflow: clip; }
.room-viewport { margin: 0 auto; width: min(calc(100% - var(--gutter) * 2), 1440px, max(1110px, (100svh - 126px) * 1.5)); overflow: hidden; border-radius: 12px; box-shadow: 0 22px 65px #000b; }
.wall { position: relative; isolation: isolate; container-type: inline-size; }
.room-photo { width: 100%; height: auto; transition: filter .35s ease; }
.board-items { display: contents; list-style: none; }
.note-origins { --left: 7%; --top: 10.5%; --width: 18%; --height: 38%; --tilt: -2deg; }
.note-camps { --left: 27.5%; --top: 10.5%; --width: 20%; --height: 38%; --tilt: 1deg; }
.note-infocenter { --left: 50%; --top: 10.5%; --width: 21%; --height: 38%; --tilt: -1deg; }
.note-online { --left: 9%; --top: 50.5%; --width: 15%; --height: 37%; --tilt: 1deg; }
.note-departments { --left: 27.75%; --top: 48%; --width: 21%; --height: 39.5%; --tilt: -1deg; }
.note-awards { --left: 51%; --top: 50.5%; --width: 19.5%; --height: 37%; --tilt: 1.5deg; }
.wall-note, .guitar, .record-control, .drawer {
  position: absolute; z-index: 2; top: var(--top); left: var(--left); width: var(--width); height: var(--height);
  display: flex; align-items: flex-end; justify-content: center; padding: 0; border: 0; border-radius: 7px;
  color: var(--ink); background: transparent; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.note-paper, .drawer span {
  position: relative; display: grid; gap: 2px; padding: .48em .77em .44em; max-width: 100%; border: 1px solid #aa8759;
  border-radius: 2px; text-align: center; line-height: 1.2; background: linear-gradient(132deg,#fff1ce,#e7cca0);
  box-shadow: 1px 3px 4px #23100699; rotate: var(--tilt,0deg);
  transform-origin: 50% 0; transition: transform .24s ease, box-shadow .22s;
}
.note-paper strong { font: 400 clamp(.79rem, 1.4cqw, 1.17rem)/1.16 var(--display); }
.note-paper > span { font-size: clamp(.72rem, 1.07cqw, .93rem); font-weight: 700; }
.note-paper::before { content:""; position:absolute; left:calc(50% - 3px); top:-4px; width:7px; height:7px; border-radius:50%; background:radial-gradient(circle at 30% 25%,#fff5b8,#ba8437 50%,#694620); box-shadow:1px 2px 2px #321b10ab; }
.wall-note[data-visited] .note-paper::before { background: radial-gradient(circle at 30% 25%,#daffb8,#77924b 55%,#3b4e23); }
.prop-light { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: var(--cork-scene) center / 100% 100% no-repeat; opacity: 0; transform-origin: var(--pivot); clip-path: var(--edge); transition: opacity .25s, transform .3s ease; filter: brightness(1.17) saturate(1.08); }
.prop-light.is-lit { opacity: 1; transform: translateY(-2px) scale(1.014); }
.wall:has(.prop-light.is-lit) .room-photo { filter: brightness(.81); }
.wall [data-lit] .note-paper, .drawer:is(:hover,:focus-visible) span { transform: translateY(-3px) rotate(1deg); box-shadow: 2px 6px 9px #231006aa; }
.guitar { --left: 73%; --top: 32%; --width: 9%; --height: 57%; }
.record-control { --left: 82.4%; --top: 37%; --width: 17.4%; --height: 28.5%; }
.drawer { --left: 85%; --top: 69%; --width: 14.5%; --height: 15%; align-items: center; }
.drawer span { font-size: clamp(.67rem, 1cqw, .85rem); font-weight: 700; background: linear-gradient(140deg,#d9ba84,#bb945d); border-color:#674727; }
.record-status { color: var(--muted); text-align: right; }
.record-status:not(:empty) { padding-top: 12px; }
.tour { display: none; }
@keyframes enter-room { from { opacity: .65; transform: scale(1.012); } to { opacity: 1; transform: scale(1); } }
@keyframes open-chapter { from { opacity: .5; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .wall { animation: enter-room .65s ease-out; }
  .period-dialog[open] { animation: open-chapter .23s ease-out; }
}
@media (max-width: 720px) {
  .room-viewport { width: 100%; overflow-x: auto; scrollbar-color: #99764c #211910; scrollbar-width: thin; border-radius: 0; }
  .wall { min-width: 780px; }
  .tour:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 15px; }
  .tour button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #6e5031; background: #2c2118; color: #ffda92; font-size: 1.2rem; cursor: pointer; }
  .tour button:disabled { opacity: .42; cursor: default; }
  #tour-current { text-align: center; font-size: .84rem; font-weight: 700; }
  .wall-intro { padding-bottom: 15px; }
  .brand { font-size: .82rem; gap: 6px; }
  .brand img { width: 33px; height: 33px; }
}
.chronicle { margin-block: 4px clamp(36px, 7vw, 94px); }
.read-all, .archive-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
summary {
  position: relative;
  display: block;
  list-style: none;
  padding: 19px 56px 19px 21px;
  font-weight: 700;
  cursor: pointer;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--gold);
}
details[open] > summary::after { content: "−"; }
summary:hover { color: var(--gold); }
.period { padding: clamp(22px, 3vw, 36px); border-top: 1px solid var(--line); }
.period-title { margin-bottom: 20px; color: var(--gold); font-size: clamp(1rem, 2.35vw, 1.5rem); }
.period-title > span { color: var(--text); margin-inline-start: .45em; }
.timeline { display: grid; margin: 0; padding: 0; list-style: none; gap: 24px; }
.milestone { min-width: 0; display: grid; grid-template-columns: 102px minmax(0, 1fr); align-items: start; gap: 14px; }
.milestone + .milestone { border-top: 1px solid var(--line); padding-top: 24px; }
.year { font: 400 .96rem/1.25 var(--display); color: var(--gold); padding-top: .13em; }
.milestone-body { min-width: 0; }
.milestone-body h3 { font-size: clamp(1rem, 2vw, 1.3rem); overflow-wrap: anywhere; }
.milestone-body p { margin-top: 10px; color: var(--muted); }
.with-photo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, .75fr); gap: 18px; align-items: start; }
.milestone-photo { margin: 0; }
.milestone-photo img { width: 100%; height: auto; border-radius: 9px; }
.milestone-photo figcaption { margin-top: 5px; font-size: .875rem; color: var(--muted); }
@media (max-width: 760px) {
  .with-photo { grid-template-columns: 1fr; }
  .milestone { grid-template-columns: 1fr; gap: 7px; }
}

.period-dialog {
  padding: 0;
  overflow: hidden;
  width: min(100% - 26px, 930px);
  max-height: min(92svh, 810px);
  border: 1px solid #644124;
  border-radius: 18px;
  background: #1b1715;
  color: var(--text);
  box-shadow: 0 26px 90px #000d;
}
.period-dialog::backdrop { background: #090705ce; backdrop-filter: blur(4px); }
body:has(.period-dialog[open]) { overflow: hidden; }
.dialog-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: min(92svh - 2px, 808px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
  padding: clamp(18px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
  background: #231b16;
}
.dialog-years { font-weight: 700; color: var(--gold); margin-bottom: 5px; }
.dialog-header h2 { font-size: clamp(1.25rem, 3vw, 2.1rem); text-wrap: balance; }
.dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #75553c;
  border-radius: 50%;
  background: #372b20;
  color: var(--text);
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}
.dialog-close:hover { background: var(--gold); color: var(--ink); }
.dialog-content { padding: clamp(18px, 4vw, 32px); overflow-y: auto; overscroll-behavior: contain; }
.dialog-navigation {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px;
  padding: 12px clamp(18px, 4vw, 32px) 21px;
  border-top: 1px solid var(--line);
}
.dialog-navigation button, .pill {
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: .875rem;
  font-weight: 700;
}
.dialog-navigation button { cursor: pointer; }
.dialog-navigation button:disabled { opacity: .46; cursor: default; }
.dialog-navigation button:not(:disabled):hover, .pill:not(.pill-emphasis):hover { border-color: var(--gold); }

.archive h2, .source h2 { font-size: clamp(1.35rem, 3vw, 2.5rem); text-transform: uppercase; }
.archive-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 17px; }
.archive-content { border-top: 1px solid var(--line); padding: 5px 18px 17px; }
.archive-table { width: 100%; border-collapse: collapse; text-align: left; }
.archive-table th, .archive-table td { vertical-align: top; padding: 10px 5px; overflow-wrap: anywhere; }
.archive-table td { color: var(--muted); font-size: .91rem; }
.archive-table thead th { color: var(--gold); font-size: .875rem; }
.archive-table tbody tr + tr { border-top: 1px solid var(--line); }
.shirt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 7px 0 0; padding: 0; list-style: none; gap: 8px 11px; }
.shirt-list li { display: flex; align-items: start; gap: 8px; padding: 5px 0; }
.shirt-list strong { color: var(--gold); }
.swatch { display: inline-block; flex: 0 0 auto; width: 14px; height: 14px; margin-top: .34em; border-radius: 4px; background: var(--swatch); }
.award-year { border-bottom: 1px solid var(--line); }
.award-year > summary { padding: 11px 33px 11px 5px; }
.award-year > summary::after { right: 7px; }
.award-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; padding: 0 5px 13px; }
.award-groups h3 { font-size: .94rem; color: var(--gold); }
.award-groups ul { margin: 7px 0 0; padding-left: 1.1em; color: var(--muted); overflow-wrap: anywhere; }
.source { margin-block: clamp(40px, 7vw, 96px) 25px; padding: 26px 0 16px; border-top: 1px solid var(--line); }
.source-inner { display: flex; gap: 16px 32px; justify-content: space-between; flex-wrap: wrap; }
.source-inner p { margin-top: 10px; max-width: 76ch; color: var(--muted); }
.source-inner .source-authors { font-size: .875rem; }
.source-links { align-self: center; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; text-decoration: none; }
.pill-emphasis { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.pill-emphasis:hover { background: #ffd070; }
@media (max-width: 720px) { .archive-panels { grid-template-columns: 1fr; } }
@media (max-width: 360px) {
  .shirt-list, .award-groups { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .note-paper { transition: none; }
}
.period-dialog { --text: #35291f; --muted: #56483c; --line: #cdbd9f; --gold: #835423; background: #f6ecd8; border-color: #aa8557; color-scheme: light; }
.dialog-header { background: linear-gradient(105deg, #ead7b4, #f8efdc); }
.dialog-years, .year { letter-spacing: .035em; }
.dialog-navigation { background: #eee2cb; }
.dialog-navigation button { background: #fff7e6; }
.dialog-close { color: #fff2d6; }
.period-dialog :focus-visible { outline-color: #8f5718; }
.milestone-photo img { padding: 5px 5px 12px; background: #fffaf0; border-radius: 2px; box-shadow: 0 3px 8px #62451c25; }
@media (prefers-reduced-motion: reduce) {
  .room-photo, .prop-light, .note-paper, .drawer span { transition: none; }
  .prop-light.is-lit, .wall [data-lit] .note-paper { transform: none; }
}
.note-paper strong { white-space: nowrap; }
@media (min-width: 760px) {
  .wall-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, 30%); }
  .wall-intro > p { align-self: end; }
}
