/* Gateline Sports: arena wayfinding. Tokens live in :root; see ../DESIGN.md. */

@font-face { font-family: "Sofia Sans"; src: url(/fonts/sofia-sans-latin.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans"; src: url(/fonts/sofia-sans-greek.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }
@font-face { font-family: "Sofia Sans XC"; src: url(/fonts/sofia-sans-xc-latin.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans XC"; src: url(/fonts/sofia-sans-xc-greek.woff2) format("woff2"); font-weight: 1 1000; font-display: swap; unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF; }

:root {
  --white: #fff;
  --navy: #0e2a52;      /* sign panel and ink */
  --navy-2: #163763;    /* court floor, hover */
  --empty: #22406b;     /* empty seats on a sign */
  --lit: #a9d0fa;       /* sold seats on a sign */
  --blue: #0d5eaf;      /* Greek blue: focus, links on white */
  --yellow: #ffc72c;    /* the action, and only the action */
  --concourse: #eef2f7;
  --rule: #c9d3e0;
  --muted: #475b7a;
  --on-navy: rgb(255 255 255 / 0.74);
  --sans: "Sofia Sans", system-ui, sans-serif;
  --sign: "Sofia Sans XC", "Sofia Sans", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--white); color: var(--navy); font: 400 1.125rem/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--yellow); color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.bar :focus-visible, .sign :focus-visible, .directory :focus-visible, .foot :focus-visible { outline-color: var(--yellow); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
svg { display: block; }

h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--sign); font-weight: 760; line-height: 0.95; letter-spacing: -0.005em; }
h1 { font-size: clamp(3.25rem, 2rem + 5.2vw, 6rem); }
h2 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem); }
h3 { font-size: 1.3125rem; line-height: 1.2; font-weight: 700; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 8px; top: -64px; z-index: 20; padding: 10px 16px; background: var(--yellow); color: var(--navy); font-weight: 700; border-radius: 4px; }
.skip:focus { top: 8px; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 4px; font: 700 1.0625rem/1.1 var(--sans); text-decoration: none; transition: transform 160ms var(--ease), background-color 150ms ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.btn-go { background: var(--yellow); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
@media (hover: hover) {
  .btn-go:hover { background: #ffd45c; }
  .btn-navy:hover { background: var(--navy-2); }
}
.link { font-weight: 700; text-decoration: underline 3px var(--yellow); text-underline-offset: 6px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) { .link:hover { text-decoration-color: var(--navy); } }

/* Header: the overhead concourse sign */
.bar { position: sticky; top: 0; z-index: 10; background: var(--navy); color: var(--white); }
.bar-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 1.75rem/1 var(--sign); letter-spacing: 0.01em; text-decoration: none; }
.brand svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a, .lang a { color: var(--on-navy); text-decoration: none; font-weight: 600; transition: color 150ms ease, border-color 150ms ease; }
.nav a { font-size: 1rem; padding-block: 8px; border-bottom: 2px solid transparent; }
.lang { display: flex; gap: 2px; font-size: 0.9375rem; }
.lang a { padding: 6px 8px; border-radius: 3px; }
.lang a[aria-current] { background: var(--white); color: var(--navy); }
.bar .btn { min-height: 40px; padding: 0 16px; font-size: 1rem; }
@media (hover: hover) {
  .nav a:hover { color: var(--white); border-color: var(--yellow); }
  .lang a:not([aria-current]):hover { color: var(--white); }
}
@media (max-width: 860px) { .nav { display: none; } .lang { margin-left: auto; } }
@media (max-width: 420px) { .bar-in { gap: 12px; } .brand { font-size: 1.5rem; } .bar .btn { padding: 0 12px; } }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.lede { margin-top: 24px; max-width: 40ch; font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem); line-height: 1.5; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; } }

/* The directory sign */
.sign { margin: 0; padding: clamp(16px, 2.4vw, 28px); background: var(--navy); color: var(--white); border-radius: 12px; box-shadow: 0 2px 4px rgb(14 42 82 / 0.08), 0 28px 56px -28px rgb(14 42 82 / 0.5); }
.sign-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 12px; }
.sign-title { font: 760 1.5rem/1 var(--sign); letter-spacing: 0.01em; }
.sign-title span { display: block; margin-top: 4px; font: 500 0.875rem/1.3 var(--sans); letter-spacing: 0; color: var(--on-navy); }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; background: rgb(255 255 255 / 0.1); border-radius: 6px; }
.switch button { position: relative; z-index: 1; min-height: 40px; padding: 8px 14px; border: 0; border-radius: 4px; background: none; color: var(--on-navy); font: 700 0.9375rem/1.1 var(--sans); white-space: nowrap; cursor: pointer; transition: color 200ms ease, transform 160ms var(--ease); }
.switch button:active { transform: scale(0.97); }
.switch button[aria-pressed="true"] { color: var(--navy); }
.switch-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--yellow); border-radius: 4px; transition: transform 260ms var(--ease); }
.switch[data-list="gl"] .switch-thumb { transform: translateX(100%); }
@media (hover: hover) { .switch button[aria-pressed="false"]:hover { color: var(--white); } }

.map { width: 100%; height: auto; aspect-ratio: 600 / 440; }
.map .sec { stroke: var(--navy); stroke-width: 3; stroke-linejoin: round; transition: fill 420ms var(--ease); }
.map .r1 { transition-delay: 60ms; }
.map .r2 { transition-delay: 120ms; }
.map .court { fill: var(--navy-2); }
.map .lines { fill: none; stroke: rgb(255 255 255 / 0.38); stroke-width: 1.25; }
.map .zl { font: 760 15px var(--sign); text-anchor: middle; dominant-baseline: central; pointer-events: none; transition: fill 420ms var(--ease); }
.map .zl-s { font-size: 11px; }
@media (max-width: 560px) { .map .zl { font-size: 26px; } .map .zl-s { font-size: 15px; } }

.legend { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 0.8125rem; color: var(--on-navy); }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; width: min(220px, 50%); height: 10px; }
.scale i { border-radius: 1px; background: var(--empty); }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 0.16); }
.totals dt { font-size: 0.875rem; color: var(--on-navy); }
.totals dd { margin: 4px 0 0; font: 780 clamp(2rem, 1.4rem + 2vw, 2.75rem)/1 var(--sign); font-variant-numeric: tabular-nums; }
.delta { min-height: 1.5em; margin-top: 10px; font-size: 0.9375rem; font-weight: 700; color: var(--yellow); }
.sign figcaption { margin-top: 8px; font-size: 0.8125rem; color: var(--on-navy); }

/* Concourse: why the opening price matters */
.why { background: var(--concourse); }
.why h2 { max-width: 15ch; }
.why .wrap > p { margin-top: 24px; font-size: 1.25rem; color: var(--muted); }
.signals { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); margin: 56px 0 0; padding: 0; list-style: none; }
.signals li { padding-top: 24px; border-top: 3px solid var(--navy); }
.gauge { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; max-width: 280px; height: 14px; margin-bottom: 24px; }
.gauge i { background: var(--rule); }
.gauge i.on { background: var(--navy); }
.signals h3 { font: 760 clamp(1.75rem, 1.3rem + 1.4vw, 2.25rem)/1 var(--sign); }
.signals p { margin-top: 12px; color: var(--muted); }
.why .after { margin-top: 48px; font-size: 1.25rem; font-weight: 700; color: var(--navy); }
@media (max-width: 720px) { .signals { grid-template-columns: 1fr; } }

/* Levels: how it works */
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin: 56px 0 0; padding: 0; list-style: none; }
.level { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; background: var(--navy); color: var(--white); border-radius: 6px; font: 800 3rem/1 var(--sign); }
.levels p { margin-top: 10px; font-size: 1.0625rem; color: var(--muted); }
@media (max-width: 1024px) { .levels { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .levels { grid-template-columns: 1fr; }
  .levels li { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; }
  .level { grid-row: span 2; width: 56px; height: 56px; margin: 0; font-size: 2.25rem; }
}

/* Price board */
.board { background: var(--concourse); }
.board-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.board-head p { color: var(--muted); }
.table-wrap { margin-top: 48px; overflow-x: auto; background: var(--white); border-radius: 8px; box-shadow: 0 1px 2px rgb(14 42 82 / 0.08), 0 12px 32px -20px rgb(14 42 82 / 0.25); }
.prices { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.prices caption { caption-side: bottom; padding: 14px 20px; text-align: left; font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--rule); }
.prices th, .prices td { padding: 14px 20px; text-align: right; white-space: nowrap; }
.prices th:first-child, .prices td:first-child { text-align: left; }
.prices thead th { font-size: 0.875rem; font-weight: 700; color: var(--muted); vertical-align: bottom; }
.prices thead tr:last-child th, .prices thead th[rowspan] { border-bottom: 2px solid var(--navy); }
.prices thead th[colspan] { padding-bottom: 4px; color: var(--navy); }
.prices tbody th { font-weight: 600; }
.prices tbody tr + tr > * { border-top: 1px solid var(--rule); }
.prices tfoot > tr > * { font-weight: 800; }
.prices tfoot tr:first-child > * { border-top: 2px solid var(--navy); }
.prices .move { font-weight: 700; }
.prices[data-list="club"] .c-club, .prices[data-list="gl"] .c-gl { background: rgb(255 199 44 / 0.16); }
@media (max-width: 860px) { .board-head { grid-template-columns: 1fr; } }

/* Directory board: reports by department */
.directory { background: var(--navy); color: var(--white); }
.directory h2 { max-width: 16ch; }
.directory .intro { margin-top: 24px; font-size: 1.25rem; color: var(--on-navy); }
.dir { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.2); }
.dir li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 8px 32px; align-items: baseline; padding-block: 24px; border-bottom: 1px solid rgb(255 255 255 / 0.2); }
.dir h3 { font: 760 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem)/1 var(--sign); }
.dir p { color: var(--on-navy); }
.dir-note { margin-top: 32px; font-weight: 700; }
@media (max-width: 720px) { .dir li { grid-template-columns: 1fr; } }

/* House rules */
.rules h2 { max-width: 16ch; }
.rules-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); margin: 56px 0 0; padding: 0; list-style: none; }
.picto { width: 64px; height: 64px; margin-bottom: 20px; fill: none; stroke: var(--navy); stroke-linecap: round; stroke-linejoin: round; }
.rules-list p { margin-top: 10px; color: var(--muted); }
@media (max-width: 860px) { .rules-list { grid-template-columns: 1fr; } }

/* Partner */
.club { background: var(--concourse); }
.club-in, .exit-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 56px; align-items: end; }
.club p { font-size: 1.25rem; color: var(--muted); }
@media (max-width: 860px) { .club-in, .exit-in { grid-template-columns: 1fr; } }

/* Exit */
.exit { background: var(--yellow); }
.exit p { font-size: 1.25rem; }
.exit .btn { justify-self: start; margin-top: 28px; }
.exit :focus-visible { outline-color: var(--navy); }

.foot { background: var(--navy); color: var(--on-navy); font-size: 0.9375rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding-block: 40px; }
.foot .brand { margin-right: auto; color: var(--white); }
.foot .lang a[aria-current] { background: var(--white); }

@media (prefers-reduced-motion: reduce) {
  .map .sec, .map .zl { transition-duration: 0ms; transition-delay: 0ms; }
  .switch-thumb, .btn, .switch button { transition: none; }
}
