@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin.woff2") format("woff2");
}

:root {
  --bg: #0a0a0b;
  --panel: #0e0e0f;
  --ink: #f5f3ef;
  --muted: #a8a5a0;
  --quiet: #8c8a85;
  --line: rgba(245, 243, 239, 0.14);
  --line-strong: rgba(245, 243, 239, 0.34);
  --accent: #ff4a1c;
  --pad: clamp(20px, 4vw, 56px);
  --max: 1520px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-160%);
}

.skip-link:focus-visible { transform: none; }

/* Background: slabs with 45 degree cuts, taken from the logo mark */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  animation: backdrop-in 1s ease-out both;
}

.backdrop svg { display: block; width: 100%; height: 100%; }

@keyframes backdrop-in {
  from { opacity: 0; }
}

main, .site-footer { position: relative; z-index: 1; }

/* Header */

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand img { width: auto; height: 34px; }
.brand:hover img { opacity: 0.82; }

.explore { position: relative; margin-right: auto; }

.explore-toggle {
  min-height: 44px;
  padding: 0 2px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.explore-toggle:hover,
.explore-toggle[aria-expanded="true"] {
  text-decoration: underline;
  text-underline-offset: 7px;
  text-decoration-thickness: 1px;
}

.menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  z-index: 20;
  min-width: 300px;
  padding: 8px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.7);
}

.menu-list a,
.menu-disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 4px 12px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.menu-list a:hover { background: rgba(245, 243, 239, 0.08); }
.menu-disabled { color: var(--quiet); cursor: default; }

.menu-note {
  font-size: 13px;
  color: var(--quiet);
}

.menu-account {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--accent);
  color: #0a0a0b;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.cta:hover { background: #ff6038; }

/* Hero */

main { display: grid; align-content: center; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(400px, 0.94fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
  padding-block: clamp(24px, 3.8vh, 54px) 0;
}

h1 {
  font-size: clamp(3.25rem, 6.4vw, 7.5rem);
  font-weight: 600;
  font-stretch: 114%;
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.hero-sub {
  max-width: 34ch;
  margin-top: clamp(18px, 2.6vh, 30px);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.45;
  color: var(--muted);
}

.events { display: grid; gap: 12px; }

.event {
  display: block;
  width: 100%;
  padding: clamp(16px, 2.2vh, 22px) clamp(18px, 2vw, 24px);
  text-align: left;
  background: rgba(245, 243, 239, 0.022);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.event:hover {
  border-color: var(--line-strong);
  background: rgba(245, 243, 239, 0.05);
}

.event:hover .event-name {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.event-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.event-name {
  display: block;
  margin-top: 8px;
  font-size: clamp(1.5rem, 2.1vw, 2.05rem);
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.02em;
}

.event-desc {
  display: block;
  max-width: 48ch;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin-top: 10px;
  font-size: 13px;
}

.event-open {
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-strong);
}

/* Secondary offers */

.offers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(14px, 2.4vh, 40px);
  padding-top: clamp(16px, 2.2vh, 24px);
  border-top: 1px solid var(--line);
}

.offer-label,
.latest-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.offer p {
  max-width: 46ch;
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}

.text-link:hover { text-decoration-color: var(--ink); }

/* Latest */

.latest {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  margin-top: clamp(14px, 2.2vh, 24px);
  padding-top: clamp(12px, 1.8vh, 18px);
  border-top: 1px solid var(--line);
}

.latest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 32px;
  font-size: 13px;
}

.latest-list a { color: var(--ink); text-decoration: none; }
.latest-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.latest-list span { color: var(--muted); }

/* Footer */

.site-footer { margin-top: clamp(14px, 2.6vh, 30px); border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-brand img { width: auto; height: 22px; }
.footer-copy { font-weight: 400; letter-spacing: 0.02em; color: var(--quiet); }

.socials { display: flex; gap: 24px; }

.socials a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.socials a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Dialogs */

.dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.dialog::backdrop { background: rgba(4, 4, 5, 0.78); }

.dialog-box {
  max-height: calc(100dvh - 40px);
  overflow: auto;
  padding: clamp(22px, 3.4vw, 36px);
  background: var(--panel);
  border: 1px solid var(--line-strong);
}

.dialog[open] .dialog-box { animation: dialog-in 0.18s ease-out both; }

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px); }
}

.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.dialog-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.dialog-close {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
  cursor: pointer;
}

.dialog-close:hover { text-decoration-color: var(--ink); }

.dialog-title {
  margin-top: 6px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.025em;
}

.dialog-lede { margin-top: 14px; font-size: 16px; line-height: 1.5; }

.dialog-note { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.rounds {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  counter-reset: round;
}

.rounds li {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  counter-increment: round;
}

.rounds li::before {
  content: counter(round, decimal-leading-zero);
  font-size: 12px;
  color: var(--quiet);
  font-variant-numeric: tabular-nums;
}

.rounds li span { color: var(--muted); text-align: right; }

.dialog-links { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }

.dialog-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}

.dialog-links a:hover { text-decoration-color: var(--ink); }

/* Narrow screens: allow scrolling, keep 44px targets */

@media (max-width: 860px) {
  body { grid-template-rows: auto auto auto; }
  main { align-content: start; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 32px 0;
  }

  h1 { font-size: clamp(2.75rem, 12vw, 4.5rem); }
  .hero-sub { max-width: 38ch; }
  .events { gap: 10px; }
  .offers { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .latest { margin-top: 20px; }
  .latest-list { flex-direction: column; gap: 0; }

  .latest-list li {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    min-height: 44px;
  }
}

@media (max-width: 560px) {
  .header-inner {
    padding-block: 10px;
    gap: 12px;
    min-height: 64px;
  }

  .brand { margin-right: 0; }
  .brand img { height: 26px; }
  .explore { margin-right: 0; margin-left: auto; }
  .explore-toggle { min-height: 44px; font-size: 14px; }

  .cta {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
  }

  /* Fixed under the 64px mobile header so it never hangs off the viewport */
  .menu {
    position: fixed;
    top: 64px;
    left: var(--pad);
    right: var(--pad);
    width: auto;
    min-width: 0;
  }

  .footer-inner { padding-block: 16px; }
  .footer-brand { font-size: 12px; }
  .socials { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
