@font-face {
  font-family: "Playfair Display";
  src: url("assets/playfair.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #0c1726;
  --paper: #f5f0e6;
  --muted: #aab5c4;
  --gold: #d9b575;
  --hairline: rgb(195 168 119 / 25%);
  --serif: "Playfair Display", Georgia, serif;
  --satin: url("assets/satin.webp");
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--paper);
  background: radial-gradient(ellipse at 52% 20%, #18283c 0, var(--ink) 68%, #0a1421 100%);
}
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 2px solid #ffdf9e; outline-offset: 5px; }
button, figure, p, dl, dd, h1, h2 { margin: 0; }
svg { display: block; width: 1em; height: 1em; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.page { width: min(1200px, 90%); margin-inline: auto; padding: 0 0 24px; }
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 25px 0 23px;
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand > svg { width: 43px; height: 43px; color: var(--gold); }
.brand-name { display: block; font: 500 24px/1.15 var(--serif); letter-spacing: -.6px; }
.brand-caption { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; letter-spacing: .085em; }
.music {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 15px;
  border: 1px solid var(--hairline);
  border-radius: 30px;
  background: rgb(137 156 177 / 5%);
  color: #d2d7dc;
  font-size: 13px;
}
.music svg { width: 16px; height: 16px; color: var(--gold); }
.music:hover, .close:hover { background: rgb(195 168 119 / 12%); }
main { margin-top: clamp(22px, 3.2vw, 44px); }
.hero {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: 53% 47%;
  grid-template-rows: 1fr auto auto 1fr;
  min-height: clamp(440px, 41vw, 535px);
  overflow: hidden;
  border: 1px solid #625847;
  border-radius: 7px;
  background: #142438;
  box-shadow: 0 15px 50px rgb(0 0 0 / 18%);
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, #152438 0%, #152438 23%, rgb(20 35 54 / 92%) 37%, rgb(16 28 45 / 18%) 69%, rgb(8 15 26 / 3%)),
    var(--satin) right 48% / 85% auto no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--gold) 0 0) left top / 21px 1px,
    linear-gradient(var(--gold) 0 0) left top / 1px 21px,
    linear-gradient(var(--gold) 0 0) right top / 21px 1px,
    linear-gradient(var(--gold) 0 0) right top / 1px 21px,
    linear-gradient(var(--gold) 0 0) left bottom / 21px 1px,
    linear-gradient(var(--gold) 0 0) left bottom / 1px 21px,
    linear-gradient(var(--gold) 0 0) right bottom / 21px 1px,
    linear-gradient(var(--gold) 0 0) right bottom / 1px 21px;
  background-repeat: no-repeat;
  opacity: .68;
}
.hero-copy, .hero-action { grid-column: 1; padding-left: clamp(33px, 4.8vw, 69px); }
.hero-copy { grid-row: 2; }
.eyebrow, .rank-label {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .17em;
}
.eyebrow { display: flex; align-items: center; gap: 13px; color: var(--gold); }
.line { width: 30px; height: 1px; background: var(--gold); }
h1 { margin: 21px 0 21px -3px; font: 500 clamp(56px, 6.15vw, 86px)/1.04 var(--serif); letter-spacing: -.055em; }
.lead { max-width: 380px; font-size: clamp(15px, 1.18vw, 17px); line-height: 1.65; color: #c1c8d2; text-wrap: pretty; }
.hero-action { grid-row: 3; align-self: start; padding-top: 28px; }
.primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 23px;
  min-height: 49px;
  padding: 12px 22px;
  border: 1px solid #e4c898;
  border-radius: 4px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 3px 12px rgb(0 0 0 / 14%);
  background: linear-gradient(106deg, #efd5a7, #d9b676);
  color: #1c2530;
  font-size: 15px;
  font-weight: 650;
  transition: filter .15s, transform .15s;
}
.primary svg { width: 19px; height: 19px; }
.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.primary:active { transform: translateY(1px); }
.exhibit {
  grid-area: 1 / 2 / 5 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 18px 8.5% 14px 0;
}
.display-case {
  position: relative;
  display: block;
  width: min(100%, clamp(298px, 31.7vw, 442px));
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.art {
  position: absolute;
  inset: 0;
  filter: drop-shadow(5px 15px 10px rgb(0 0 0 / 48%));
  transition: transform .45s cubic-bezier(.2,.75,.3,1);
}
@media (hover: hover) {
  .display-case:hover .art { transform: translateY(-3px) rotate(-1deg); }
}
.board-photo {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  clip-path: polygon(18.2% 92.4%, 19% 89%, 54.8% 5.1%, 57.2% 3.6%, 65.8% .2%, 68.4% .3%, 74.4% 2.5%, 75.7% 3.8%, 79.9% 11.9%, 79.8% 14.1%, 48% 98.9%, 46.8% 100%, 45.1% 99.9%);
}
.next-board, .major-pin { opacity: 0; }
.pin {
  position: absolute;
  width: 8.9%;
  aspect-ratio: 1;
  margin-left: -4.45%;
  margin-top: -4.45%;
}
.pin svg { width: 100%; height: 100%; transform: rotate(21deg); filter: drop-shadow(1px 2.2px 1.1px #462b12); }
.pin-one { left: 51.3%; top: 49%; }
.pin-two { left: 46%; top: 63.1%; }
.pin-three { left: 34.3%; top: 75.7%; }
.pin-four { left: 46.3%; top: 80.1%; }
.major-pin { width: 13.8%; left: 40.4%; top: 77%; margin: -6.9% 0 0 -6.9%; }
.promoted .next-board, .promoted .major-pin { opacity: 1; }
.promoted .pin:not(.major-pin) { visibility: hidden; }
figcaption { display: inline-flex; align-items: center; gap: 7px; margin-top: 11px; font-size: 12px; color: #d0d5dc; }
figcaption svg { width: 17px; height: 17px; color: #dec08c; }
.serial { position: absolute; left: clamp(33px, 4.8vw, 69px); bottom: 20px; color: #a69a82; font: 11px/1.2 ui-monospace, Menlo, monospace; letter-spacing: .15em; }
.ranks {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-top: 19px;
  padding: 25px 0;
  border: 1px solid rgb(175 184 196 / 17%);
  border-radius: 6px;
  background: linear-gradient(102deg, rgb(31 48 69 / 70%), rgb(21 35 53 / 72%));
}
.rank { display: flex; align-items: center; justify-self: center; gap: 19px; }
.rank-label { color: #aeb9c7; font-size: 9px; }
.rank-name { margin-top: 5px; font: 500 clamp(20px, 2vw, 27px)/1.25 var(--serif); letter-spacing: -.035em; }
.rank-new .rank-label, .rank-new .rank-name { color: #e6c68c; }
.rank-icon {
  display: grid;
  place-content: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgb(197 169 120 / 32%);
  border-radius: 5px;
  background: linear-gradient(145deg, rgb(203 179 131 / 9%), rgb(129 152 176 / 2%));
}
.rank-icon-four { grid-template: repeat(3, 10px) / repeat(2, 12px); justify-items: center; }
.rank-icon-four svg { width: 11px; height: 11px; }
.rank-icon-four svg:nth-child(-n+2) { grid-column: span 2; }
.single-star { width: 30px; height: 30px; }
.rank-arrow { display: flex; align-items: center; gap: 15px; color: #ae9877; }
.rank-arrow::before, .rank-arrow::after { content: ""; width: clamp(12px, 3.1vw, 45px); height: 1px; background: var(--hairline); }
.rank-arrow svg { width: 23px; height: 23px; }
footer { display: flex; align-items: center; justify-content: center; gap: 17px; margin: 28px auto 0; color: #aa9c82; font: italic 15px/1.55 Georgia, serif; }
footer span { width: 30px; height: 1px; background: var(--hairline); }
.notice { color: var(--muted); text-align: center; font-size: 13px; }
.notice:not(:empty) { margin-top: 14px; }

dialog {
  isolation: isolate;
  width: min(470px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 34px clamp(24px, 5vw, 41px);
  border: 1px solid rgb(226 194 138 / 58%);
  border-radius: 12px;
  color: var(--paper);
  background: linear-gradient(130deg, rgb(43 61 82 / 84%), rgb(15 30 48 / 90%));
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow: inset 0 1px 0 #ffffff21, 0 20px 95px #0008;
}
dialog::backdrop { background: rgb(4 11 22 / 58%); }
dialog[open] { animation: open-file .3s ease-out both; }
@keyframes open-file { from { opacity: 0; transform: translateY(12px); } }
body:has(dialog[open]) { overflow: hidden; }
.close { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #e3d6c1; }
.close svg { width: 20px; height: 20px; }
.dossier-crest { width: 51px; height: 51px; margin-bottom: 15px; color: var(--gold); }
h2 { margin: 8px 0 15px; font: 500 clamp(32px, 6vw, 43px)/1.15 var(--serif); letter-spacing: -.045em; }
#greeting-text { font-size: 15px; line-height: 1.65; color: #dee2e6; }
.record { margin: 23px 0; }
.record div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding: 12px 0; border-top: 1px solid var(--hairline); }
.record div:last-child { border-bottom: 1px solid var(--hairline); }
.record dt { font-size: 12px; color: #bec7d1; }
.record dd { font: 500 17px/1.3 var(--serif); }
.record div:last-child dd { color: #efd199; }
.dossier-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(144px, 100%), 1fr));
  gap: 10px;
}
.dossier-actions button {
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 9px 10px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}
.dossier-actions svg { flex: none; width: 18px; height: 18px; }

@media (min-width: 1500px) { .page { padding-top: 1.5vh; } main { margin-top: 5vh; } }
@media (max-width: 830px) and (min-width: 651px) {
  .page { width: 94%; }
  .hero { min-height: 400px; }
  .hero-copy, .hero-action { padding-left: 30px; }
  h1 { font-size: clamp(46px, 6.5vw, 55px); }
  .lead { font-size: 14px; }
  .rank { gap: 13px; }
}
@media (max-width: 650px) {
  .page { width: calc(100% - 28px); }
  .masthead { padding: 16px 2px; gap: 8px; }
  .brand { gap: 8px; }
  .brand > svg { width: 34px; height: 36px; }
  .brand-name { font-size: 19px; }
  .brand-caption { margin-top: 3px; font-size: 10px; }
  .music { gap: 6px; min-height: 40px; padding: 8px 10px; font-size: 11px; }
  main { margin-top: 17px; }
  .hero { display: flex; flex-direction: column; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, #152438 0%, #152438 21%, rgb(20 35 54 / 88%) 34%, rgb(11 22 36 / 8%) 57%, rgb(12 24 40 / 15%) 80%, #132337 100%), var(--satin) center 83% / 140% auto no-repeat; }
  .hero-copy { align-self: stretch; padding: 31px 26px 0; order: 1; }
  .eyebrow { font-size: 9px; gap: 9px; }
  .line { width: 20px; }
  h1 { margin: 13px 0 13px -2px; font-size: clamp(44px, 10.8vw, 62px); line-height: 1.02; }
  .lead { max-width: 420px; font-size: 14px; line-height: 1.5; }
  .exhibit { order: 2; padding: 15px 10px 0; }
  .display-case { width: min(66vw, 255px); }
  figcaption { margin-top: 6px; font-size: 11px; }
  .hero-action { order: 3; align-self: stretch; padding: 18px 26px 26px; text-align: center; }
  .primary { min-height: 45px; padding: 10px 18px; font-size: 14px; }
  .serial { left: auto; right: 21px; top: 22px; bottom: auto; font-size: 9px; }
  .ranks { margin-top: 12px; padding: 17px 10px; grid-template-columns: 1fr 22px 1fr; }
  .rank { flex-direction: column; text-align: center; gap: 9px; }
  .rank-icon { width: 41px; height: 41px; }
  .rank-icon-four { grid-template-rows: repeat(3, 8px); }
  .rank-icon-four svg { width: 9px; height: 9px; }
  .single-star { width: 25px; height: 25px; }
  .rank-label { font-size: 8px; letter-spacing: .1em; }
  .rank-name { margin-top: 4px; font-size: clamp(15px, 4.1vw, 21px); }
  .rank-arrow::before, .rank-arrow::after { display: none; }
  footer { margin-top: 20px; font-size: 13px; }
}
@media (max-width: 350px) {
  .brand-name { font-size: 17px; }
  .music { padding-inline: 8px; }
  .hero-copy { padding-inline: 21px; }
  .serial { right: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .display-case:hover .art, .primary:hover { transform: none; }
}
