/* Solstua Open — championship archive */

:root {
  --navy: #07194f;
  --navy-2: #0b2568;
  --red: #f51d2a;
  --cream: #f5f0e5;
  --paper: #fffdf7;
  --gold: #d4af64;
  --gold-pale: #ead7a8;
  --sea: #dbe8ec;
  --ink: #091333;
  --muted: #68728a;
  --line: rgba(7, 25, 79, 0.16);
  --line-light: rgba(255, 255, 255, 0.18);
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --data: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(1.15rem, 5vw, 5rem);
  --measure: 76rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--body);
  font-feature-settings: 'tnum' 1;
}
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }

/* Navigation */
.pagenav {
  min-height: 4rem;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--data);
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  position: relative;
  z-index: 20;
}
.pagenav--dark { background: var(--navy); color: #fff; border-color: var(--line-light); }
.pagenav__brand { font-family: var(--display); font-size: 1.05rem; letter-spacing: .02em; text-transform: none; }
.pagenav__links { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2rem); }
.pagenav a { text-decoration: none; opacity: .66; }
.pagenav a:hover, .pagenav a[aria-current='page'], .pagenav__brand { opacity: 1; }
.pagenav a[aria-current='page'] { text-decoration: underline; text-underline-offset: .4rem; text-decoration-color: var(--red); }

/* Hero */
.hof-hero {
  min-height: clamp(34rem, 76svh, 45rem);
  padding: clamp(1.75rem, 4vh, 3rem) var(--gutter) 1.75rem;
  background:
    radial-gradient(circle at 50% 25%, rgba(37, 71, 145, .55), transparent 34rem),
    linear-gradient(145deg, var(--navy-2), var(--navy) 58%);
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hof-hero::before, .hof-hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.hof-hero::before {
  inset: 1.5rem;
  border: 1px solid rgba(234, 215, 168, .35);
}
.hof-hero::after {
  width: 35rem;
  height: 35rem;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
  top: 9%;
}
.hof-hero__noise {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .25;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.hof-hero__crest-wrap {
  width: clamp(64px, 9vw, 90px);
  aspect-ratio: 1;
  padding: .8rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 7px rgba(212, 175, 100, .12);
}
.hof-hero__crest { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hof-hero__overline {
  margin: 1.25rem 0 .45rem;
  font: 500 .67rem/1.2 var(--data);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-pale);
}
.hof-hero__title {
  margin: 0;
  text-transform: uppercase;
}
.hof-hero__brand {
  display: block;
  font-size: clamp(2.7rem, 10.5vw, 8rem);
  letter-spacing: -.055em;
  line-height: .82;
  white-space: nowrap;
}
.hof-hero__descriptor {
  display: block;
  margin-top: .9rem;
  color: var(--red);
  font: 500 clamp(1rem, 3vw, 2rem)/1 var(--data);
  letter-spacing: .16em;
}
.hof-hero__intro { margin: .9rem 0 0; color: rgba(255,255,255,.7); }
.reigning {
  margin-top: clamp(1.5rem, 3vh, 2.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reigning__label, .reigning__year { font: 500 .61rem/1.4 var(--data); letter-spacing: .15em; text-transform: uppercase; }
.reigning__label { margin-bottom: .35rem; color: var(--gold-pale); }
.reigning__champion { display: flex; align-items: center; justify-content: center; gap: .75rem; }
.winner-house {
  display: inline-block;
  width: .95rem;
  height: .9rem;
  flex: none;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 36%, 92% 36%, 92% 100%, 8% 100%, 8% 36%, 0 36%);
}
.winner-house--hero { width: 1.35rem; height: 1.25rem; }
.reigning__name { font: 400 clamp(2rem, 6vw, 3.5rem)/1 var(--display); }
.reigning__year { margin-top: .35rem; color: rgba(255,255,255,.5); }
.scroll-cue {
  margin-top: 1.5rem;
  padding-top: 0;
  font: 500 .62rem/1 var(--data);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.62);
}
.scroll-cue span { display: inline-block; margin-left: .55rem; color: var(--red); animation: bob 1.8s ease-in-out infinite; }

/* Shared headings */
.eyebrow { margin: 0 0 .75rem; font: 500 .66rem/1.2 var(--data); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.section-title { margin: 0; font-size: clamp(2.25rem, 6vw, 5rem); letter-spacing: -.025em; }
.section-intro { max-width: 35rem; margin: 0; color: var(--muted); }

/* Roll of honour */
.honours { padding: clamp(4rem, 8vw, 6.5rem) var(--gutter); background: var(--cream); position: relative; }
.honours::before {
  content: 'SOLSTUA';
  position: absolute;
  right: -.03em;
  top: -.04em;
  font: 400 clamp(6rem, 18vw, 16rem)/1 var(--display);
  color: rgba(7,25,79,.035);
  pointer-events: none;
}
.honours__head, .scoreboard-band__head {
  max-width: var(--measure);
  margin: 0 auto clamp(3rem, 7vw, 5rem);
  display: grid;
  gap: 1.25rem 4rem;
  position: relative;
}
.honours-board { max-width: var(--measure); margin: 0 auto; border-top: 3px solid var(--navy); background: rgba(255,253,247,.58); }
.honours-board__legend {
  display: grid;
  grid-template-columns: 5rem 1.35fr 1fr 1fr;
  gap: 1rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  font: 500 .57rem/1 var(--data);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.honours-board__rows { list-style: none; margin: 0; padding: 0; }
.honour-row {
  min-height: 5rem;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 5rem 1.35fr 1fr 1fr;
  gap: 1rem;
  align-items: center;
  transition: background .2s ease, color .2s ease;
}
.honour-row:hover { background: var(--paper); }
.honour-row--current { background: var(--navy); color: #fff; }
.honour-row--current:hover { background: var(--navy-2); }
.honour-row__year { font: 400 1.35rem/1 var(--display); color: var(--red); }
.honour-row--current .honour-row__year { color: var(--gold-pale); }
.honour-row__place { display: flex; align-items: baseline; gap: .65rem; min-width: 0; }
.honour-row__place small { display: none; }
.honour-row__place b { width: 1rem; flex: none; font: 400 1rem/1 var(--display); color: var(--gold); }
.honour-row__place span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.honour-row__place--winner { align-items: center; }
.honour-row__place strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 clamp(1.35rem, 2.8vw, 1.9rem)/1 var(--display); }

/* Hall scoreboard */
.scoreboard-band { padding: clamp(4.5rem, 10vw, 9rem) var(--gutter); background: var(--paper); }
.scoreboard { max-width: 58rem; margin: 0 auto; border-top: 3px solid var(--navy); }
.scoreboard__legend {
  display: grid;
  grid-template-columns: 3rem 1fr repeat(2, 4rem) 5rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  font: 500 .57rem/1 var(--data);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.scoreboard__legend span:nth-child(2) { text-align: left; }
.scoreboard__rows { list-style: none; padding: 0; margin: 0; }
.score-row {
  display: grid;
  grid-template-columns: 3rem 1fr repeat(2, 4rem) 5rem;
  align-items: center;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--line);
}
.score-row--top { min-height: 5.4rem; }
.score-row__rank { font: 400 .75rem/1 var(--data); color: var(--muted); }
.score-row--top .score-row__rank { color: var(--red); }
.score-row__name { font: 400 clamp(1.35rem, 3vw, 2rem)/1 var(--display); }
.score-row__metric { text-align: right; font: 500 1rem/1 var(--data); }
.score-row__metric small { display: none; }
.score-row__points { text-align: right; font: 400 clamp(1.5rem, 3vw, 2.1rem)/1 var(--display); color: var(--navy); }
.score-row--top .score-row__points { color: var(--red); }
.score-row__points small { margin-left: .15em; font: 500 .55rem/1 var(--data); text-transform: uppercase; }

/* Fun stats */
.fun-stats { padding: clamp(4.5rem, 10vw, 9rem) var(--gutter); background: var(--red); color: #fff; }
.fun-stats__intro { max-width: var(--measure); margin: 0 auto 3rem; }
.fun-stats .eyebrow { color: var(--navy); }
.fun-stats__grid { max-width: var(--measure); margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255,255,255,.25); }
.fun-fact { min-height: 17rem; padding: 1.5rem; background: var(--red); position: relative; display: flex; flex-direction: column; }
.fun-fact__number { position: absolute; top: 1.5rem; right: 1.5rem; font: 500 .65rem/1 var(--data); color: rgba(255,255,255,.5); }
.fun-fact__kicker { margin: 0; font: 500 .62rem/1 var(--data); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.fun-fact__value { margin: auto 0 .2rem; font: 400 clamp(4rem, 10vw, 6.5rem)/.75 var(--display); }
.fun-fact h3 { margin: .8rem 0 .2rem; font-size: 1.6rem; }
.fun-fact__note { margin: 0; font: 500 .65rem/1.3 var(--data); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.68); }

/* Data note */
.data-note { padding: clamp(4.5rem, 9vw, 8rem) var(--gutter); background: var(--navy); color: #fff; display: grid; gap: 2rem 6rem; }
.data-note > div { max-width: 35rem; }
.data-note h2 { margin: 0; font-size: clamp(2rem, 5vw, 4rem); }
.data-note p:not(.eyebrow) { color: rgba(255,255,255,.66); }
.text-link { display: inline-block; margin-top: 1rem; text-decoration: none; font: 500 .7rem/1.3 var(--data); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-pale); }
.text-link span { color: var(--red); margin-left: .5rem; }

/* Wall of shame */
.shame-wall { padding: clamp(4rem, 8vw, 6.5rem) var(--gutter); background: var(--cream); }
.shame-wall__head {
  max-width: var(--measure);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  display: grid;
  gap: 1.25rem 4rem;
}
.shame-list {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border-top: 3px solid var(--navy);
}
.shame-person {
  min-height: 5.5rem;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  background: var(--cream);
}
.shame-person strong { display: block; font: 400 1.45rem/1 var(--display); }
.shame-person small {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font: 500 .55rem/1.2 var(--data);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shame-house {
  width: 1.35rem;
  height: 1.25rem;
  flex: none;
  position: relative;
  background: rgba(7, 25, 79, .38);
  clip-path: polygon(50% 0, 100% 36%, 92% 36%, 92% 100%, 8% 100%, 8% 36%, 0 36%);
}
.shame-house::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--cream);
  clip-path: inherit;
}

/* Secondary statistics page */
.band { padding: clamp(3.5rem, 8vw, 7rem) var(--gutter); }
.band--sea { background: var(--sea); }
.band--navy { background: var(--navy); color: var(--paper); }
.wrap { max-width: 68rem; margin-inline: auto; }
.band .section-title { margin-bottom: .65rem; }
.band .section-intro { margin-bottom: 2.5rem; }
.controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font: 500 .62rem/1 var(--data); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
select { min-width: 11rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.2 var(--body); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 32rem; border-collapse: collapse; }
th, td { padding: .72rem .55rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; font: 400 .82rem/1.3 var(--data); }
th { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
th:first-child, td:first-child, th.name, td.name { text-align: left; }
td.name { white-space: normal; font-family: var(--body); font-size: .94rem; font-weight: 500; }
tr.is-winner td { background: rgba(245,29,42,.055); }
tr.is-winner td.name { color: var(--red); }
.muted { color: var(--muted); }
.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.card { min-height: 12rem; padding: 1.35rem; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: .35rem; }
.card__label { font: 500 .61rem/1 var(--data); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.card__value { font: 400 clamp(2.6rem, 8vw, 4rem)/1 var(--display); color: var(--red); }
.card__holder { font-weight: 600; }
.card__unit, .card__basis, .chart-note { font: 400 .68rem/1.45 var(--data); color: var(--muted); }
.card__basis { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--line); }
.chart { width: 100%; height: auto; display: block; margin: 1.5rem 0 .5rem; }
.chart .axis, .chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { fill: none; stroke: var(--navy); stroke-width: 2; }
.chart .dot, .chart .bar { fill: var(--navy); }
.chart .dot--win { fill: var(--red); }
.chart text { font: 10px var(--data); fill: var(--muted); }
.h2h-score { display: flex; gap: 1rem; align-items: baseline; margin-bottom: .5rem; font: 400 clamp(2.5rem, 8vw, 4rem)/1 var(--display); color: var(--navy); }
.h2h-score .sep { color: var(--muted); font-size: .6em; }
.empty { padding: 2rem 0; color: var(--muted); font-style: italic; }

/* Footer + motion */
.foot { padding: 2.5rem var(--gutter); text-align: center; color: var(--muted); font: 400 .65rem/1.5 var(--data); }
.foot--dark { background: #041038; color: rgba(255,255,255,.48); display: flex; justify-content: space-between; gap: 1rem; text-align: left; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease var(--delay, 0ms), transform .6s ease var(--delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes bob { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

@media (min-width: 42rem) {
  .honours__head, .scoreboard-band__head { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .shame-wall__head { grid-template-columns: 1.1fr .9fr; align-items: end; }
  .shame-list { grid-template-columns: repeat(2, 1fr); }
  .fun-stats__grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .data-note { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 68rem) {
  .shame-list { grid-template-columns: repeat(4, 1fr); }
  .fun-stats__grid { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .data-note { justify-content: center; }
}

@media (max-width: 36rem) {
  .pagenav__brand { display: none; }
  .pagenav { justify-content: center; }
  .hof-hero::before { inset: .75rem; }
  .honours-board__legend { display: none; }
  .honour-row {
    min-height: 7.25rem;
    padding: 1rem;
    grid-template-columns: 4rem 1fr 1fr;
    gap: .75rem 1rem;
  }
  .honour-row__year { grid-row: 1 / 3; align-self: start; padding-top: .2rem; }
  .honour-row__place--winner { grid-column: 2 / 4; }
  .honour-row__place { display: grid; grid-template-columns: 1rem 1fr; gap: .15rem .45rem; }
  .honour-row__place small { display: block; grid-column: 1 / -1; font: 500 .48rem/1 var(--data); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
  .honour-row--current .honour-row__place small { color: rgba(255,255,255,.5); }
  .honour-row__place--winner { display: flex; }
  .honour-row__place--winner small { order: -2; align-self: center; margin-right: .1rem; }
  .honour-row__place--winner .winner-house { order: -1; }
  .honour-row__place span { font-size: .82rem; }
  .scoreboard__legend { display: none; }
  .score-row { grid-template-columns: 2.35rem 1fr 3rem 4.2rem; }
  .score-row__metric:nth-of-type(4) { display: none; }
  .score-row__metric small { display: block; margin-bottom: .25rem; font: 500 .48rem/1 var(--data); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .score-row__points { font-size: 1.55rem; }
  .foot--dark { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span { animation: none; }
}

@media print {
  .pagenav, .scroll-cue { display: none; }
  .hof-hero { min-height: auto; }
  .reveal { opacity: 1; transform: none; }
}
