:root {
  --blue: #1A3FA8;
  --ink: #10162C;
  --grey: #5B6584;
  --rule: #D8DDEA;
  --font: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  /* Sticky footer. Without this the footer stops wherever the content does,
     so a short page leaves it floating mid-window with white below it.
     dvh rather than vh so mobile browser chrome does not push it off. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
.skip {
  position: absolute; left: -9999px;
  background: var(--blue); color: #fff; padding: 10px 16px; z-index: 10;
}
.skip:focus { left: var(--gutter); top: 10px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* --- bar --- */
.bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue); }
.brand-mark { width: 38px; display: block; }
.brand-mark svg { width: 100%; height: auto; display: block; }
.brand-name {
  font-weight: 800; font-size: 14px; line-height: 1.1;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.bar nav {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px clamp(14px, 2.4vw, 30px);
  /* min-width:0 lets the nav shrink so its links wrap. Without it the flex
     item keeps its content width and pushes the page sideways. */
  flex: 1 1 auto; min-width: 0; justify-content: flex-end;
}
@media (max-width: 720px) {
  .bar { gap: 14px; padding-block: 14px; }
  .bar nav { flex-basis: 100%; justify-content: flex-start; }
}
.bar nav a {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding-bottom: 2px; border-bottom: 2px solid transparent;
}
.bar nav a:hover { border-bottom-color: var(--rule); }
.bar nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }
.cta {
  background: var(--blue); color: #fff !important; padding: 9px 18px;
  border-bottom: none !important;
}
.cta:hover { background: #14328A; }

/* --- page --- */
main { flex: 1 0 auto; max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 84px) var(--gutter); }
.lede { display: flex; flex-direction: column; gap: 26px; }
h1 {
  margin: 0; font-weight: 800; color: var(--blue); text-transform: uppercase;
  font-size: clamp(32px, 6.5vw, 54px); line-height: 1; letter-spacing: -0.015em;
}
h1 span { display: block; }
h2 {
  margin: 0; font-weight: 800; font-size: clamp(19px, 2.6vw, 23px);
  letter-spacing: -0.005em;
}
p { margin: 0; max-width: 56ch; }
section { display: flex; flex-direction: column; gap: 12px; }
main > * + * { margin-top: clamp(36px, 5vw, 52px); }
.strip {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 26px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.strip .blue { color: var(--blue); }
.note { color: var(--blue); font-weight: 600; }
.muted { color: var(--grey); }
dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; }
dt { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); padding-top: 3px; }
dd { margin: 0; }
@media (max-width: 480px) { dl { grid-template-columns: 1fr; gap: 3px 0; } dd { margin-bottom: 12px; } }

/* --- foot --- */
.foot {
  border-top: 1px solid var(--rule); padding: 22px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--grey);
}
.foot p { margin: 0; }
.foot a { color: inherit; }

/* --- buy --- */
.buy {
  align-self: flex-start;
  background: var(--blue); color: #fff; text-decoration: none;
  padding: 16px 30px; font-size: 14px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.buy:hover { background: #14328A; }
.fineprint { font-size: 13px; color: var(--grey); }

/* --- cubes --- */
.cubes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cube {
  border-top: 1px solid var(--rule);
  padding: 22px 0;
  display: flex; flex-direction: column; gap: 16px;
}
/* Art sits beside the name and stats; the blurb runs full width below both. */
.cube-head { display: flex; align-items: center; gap: 20px; }
.cube-titles { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* height:auto is load-bearing: the img carries width and height attributes,
   and without it those win and aspect-ratio never applies. */
.cube-art {
  width: 140px; flex: none; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; display: block; background: #EDEFF6;
}
@media (max-width: 480px) {
  .cube-head { gap: 14px; }
  .cube-art { width: 96px; }
}
.cube:last-child { border-bottom: 1px solid var(--rule); }
.cube h3 { margin: 0; font-size: clamp(19px, 2.6vw, 23px); font-weight: 800; letter-spacing: -0.005em; }
.cube h3 a { text-decoration: none; }
.cube h3 a:hover { text-decoration: underline; }
/* One flex row of dt/dd pairs, each pair wrapped in a div. Simpler than the
   grid this replaced, whose auto columns stretched and shoved the last pair
   out to the right edge. */
.meta { display: flex; flex-wrap: wrap; gap: 12px 34px; margin: 0; }
.meta > div { display: flex; flex-direction: column; gap: 2px; }
.meta dt {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--grey);
}
.meta dd { margin: 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* Cube descriptions carry bare URLs, which have no break points. */
.cube-blurb { font-size: 14.5px; color: var(--grey); max-width: 62ch; margin: 0;
              overflow-wrap: anywhere; }
.cube-blurb + .cube-blurb { margin-top: 8px; }
.cube-blurb a { color: var(--blue); }

/* Visually hidden, for screen readers only. */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }



/* Venue photographs. Two up on a wide screen, stacked on a phone. */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
          gap: 14px; margin: 0; }
.photos figure { margin: 0; }
/* 4:3 rather than a fixed pixel height, so the frames scale with the column.
   The hall photo is natively 4:3 and crops to nothing; the square balcony shot
   loses far less than it did squeezed into a 220px band.
   height:auto is load-bearing. The width/height attributes on the <img> are
   presentational hints, and a definite height from them makes the browser
   ignore aspect-ratio entirely. */
.photos img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3;
              object-fit: cover; object-position: center;
              border-radius: 3px; background: #f2f2f4; }
.photos figcaption { font-size: 13px; color: var(--grey); margin-top: 6px; }

/* Partner logo. Capped by height so it sits at its own weight rather than
   filling the column.
   align-self is load-bearing: section is a column flex container, so the
   default align-items:stretch pulls the image across the full column width
   while height holds it short, which squashes it flat. */
.partner { display: block; align-self: flex-start;
           width: auto; height: 72px; max-width: 100%; }

/* Small outlined action. align-self keeps it to its own width inside the
   column flex containers it sits in, rather than stretching across them. */
.pill {
  align-self: flex-start; display: inline-block; text-decoration: none;
  border: 1px solid var(--rule); border-radius: 3px; padding: 7px 13px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); background: #FFFFFF;
}
.pill:hover { border-color: var(--blue); background: var(--blue); color: #FFFFFF; }

/* Run sheet. Times in a fixed column so the colon lines up down the page. */
.runsheet { border-collapse: collapse; width: 100%; max-width: 420px; }
.runsheet td { padding: 9px 0; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.runsheet tr:last-child td { border-bottom: 0; }
.runsheet td:first-child {
  width: 104px; color: var(--blue); font-weight: 700;
  font-variant-numeric: tabular-nums; letter-spacing: 0.02em;
}
.runsheet td:last-child { font-weight: 600; }
