@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,400;1,9..144,700&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --bg:         #f8f6f0;
  --bg-alt:     #ffffff;
  --surface:    #f0ece2;
  --ink:        #0d0c0a;
  --ink-2:      #2a2620;
  --ink-3:      #927777;
  --gold:       #b8933a;
  --gold-lt:    #d4aa55;
  --gold-pale:  #f5ecd4;
  --gold-bg:    rgba(184,147,58,0.08);
  --black:      #0d0c0a;
  --border:     rgba(13,12,10,0.1);
  --border-dk:  rgba(13,12,10,0.18);
  --shadow-sm:  0 2px 12px rgba(13,12,10,0.08);
  --shadow:     0 8px 40px rgba(13,12,10,0.12);
  --shadow-lg:  0 20px 60px rgba(13,12,10,0.16);
}

/* ── Dark Mode (auto: follows OS/time, or manual toggle) ──── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:         #12110e;
    --bg-alt:     #1a1812;
    --surface:    #211f19;
    --ink:        #f0ece2;
    --ink-2:      #d4cfc4;
    --ink-3:      #8a8070;
    --gold:       #c9a64a;
    --gold-lt:    #debb6a;
    --gold-pale:  rgba(201,166,74,0.15);
    --gold-bg:    rgba(201,166,74,0.08);
    --black:      #f0ece2;
    --border:     rgba(255,255,240,0.08);
    --border-dk:  rgba(255,255,240,0.14);
    --shadow-sm:  0 2px 12px rgba(0,0,0,0.35);
    --shadow:     0 8px 40px rgba(0,0,0,0.5);
    --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
  }
}

:root[data-theme="dark"] {
  --bg:         #12110e;
  --bg-alt:     #1a1812;
  --surface:    #211f19;
  --ink:        #f0ece2;
  --ink-2:      #d4cfc4;
  --ink-3:      #8a8070;
  --gold:       #c9a64a;
  --gold-lt:    #debb6a;
  --gold-pale:  rgba(201,166,74,0.15);
  --gold-bg:    rgba(201,166,74,0.08);
  --black:      #f0ece2;
  --border:     rgba(255,255,240,0.08);
  --border-dk:  rgba(255,255,240,0.14);
  --shadow-sm:  0 2px 12px rgba(0,0,0,0.35);
  --shadow:     0 8px 40px rgba(0,0,0,0.5);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.6);
}

/* ── Theme Toggle Button ─────────────────────────────────────── */
.theme-toggle {
  background: transparent;
  border: 1.5px solid var(--border-dk);
  color: var(--ink-3);
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background-color: var(--bg);
  color: var(--ink-2);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  padding-top: 64px; /* offset for fixed nav */
}

/* ── Subtle chess-board texture ────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-conic-gradient(rgba(0,0,0,0.022) 0% 25%, transparent 0% 50%);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

/* ── Navigation ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb, 248,246,240),0.92);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
}

.nav-brand {
  font-family: 'Fraunces', serif;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-brand span { font-size: 1.3rem; }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ── Page wrapper ──────────────────────────────────────────── */
.page { position: relative; z-index: 1; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #3d3830;
}

/* ── Hero (full-width title variant) ───────────────────────── */
.hero-full {
  justify-content: center;
  min-height: 80vh;
}

/* Remove the right-side checkerboard panel for full-width layout */
.hero-full::after { display: none; }

.hero-content-full {
  max-width: 1000px;
  width: 100%;
  text-align: center;
  padding: 6rem 4rem;
}

.hero-title-full {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.8rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 0.25em;
}

.hero-title-full em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-full .hero-eyebrow { justify-content: center; }

.hero-full .hero-sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 560px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 20% 50%, rgba(184,147,58,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 80% 80%, rgba(184,147,58,0.10) 0%, transparent 60%);
}

/* Checkerboard right panel */
.hero::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 42%;
  height: 100%;
  background-image:
    repeating-conic-gradient(rgba(255,255,255,0.07) 0% 25%, rgba(255,255,255,0.03) 0% 50%);
  background-size: 64px 64px;
  pointer-events: none;
}

.hero-image-placeholder {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: 38%;
  max-width: 520px;
  aspect-ratio: 4/3;
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 64px rgba(0,0,0,0.4);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Shown when image src is placeholder / broken */
.hero-image-placeholder:has(img[src="YOUR_IMAGE_HERE.jpg"]),
.hero-image-placeholder:not(:has(img[src])) {
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-placeholder:has(img[src="YOUR_IMAGE_HERE.jpg"])::after {
  content: '📷  Add your image here';
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-align: center;
  padding: 1rem;
  position: absolute;
}

.hero-content {
  padding: 6rem 4rem 6rem 7rem;
  max-width: 700px;
  animation: fadeUp 0.9s ease both;
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1.5px;
  background: var(--gold);
}

.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(3.5rem, 7.5vw, 6.5rem);
  font-weight: 900;
  line-height: 0.95;
  color: #ffffff;
  margin-bottom: 0.2em;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-lt);
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin: 1.6rem 0 2.8rem;
  max-width: 480px;
  line-height: 1.7;
  font-weight: 300;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  transition: background 0.22s, color 0.22s, transform 0.18s, box-shadow 0.22s;
  cursor: pointer;
  background: transparent;
  border-radius: 2px;
}

.btn:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(184,147,58,0.3);
}

.btn-solid {
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
}

.btn-solid:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  box-shadow: 0 6px 24px rgba(184,147,58,0.4);
}

/* Dark context buttons */
.hero .btn, .page-header .btn {
  border-color: rgba(255,255,255,0.35);
  color: rgba(255,255,255,0.85);
}

.hero .btn:hover, .page-header .btn:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.hero .btn-solid, .page-header .btn-solid {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.hero .btn-solid:hover, .page-header .btn-solid:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  color: var(--ink);
}

/* ── Section ───────────────────────────────────────────────── */
section {
  padding: 5rem 3rem;
  max-width: 1120px;
  margin: 0 auto;
}

section.wide { max-width: 1220px; }

.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dk);
}

h2.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3em;
  letter-spacing: -0.02em;
}

/* ── Cards ─────────────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2.2rem 2rem;
  border-radius: 4px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  display: block;
}

.card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card p { color: var(--ink-3); font-size: 0.95rem; }

/* ── Tournament banner ─────────────────────────────────────── */
.tourn-banner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.tourn-banner:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tourn-banner h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tourn-banner .date {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-top: 0.5rem;
}

.tourn-banner p[style] {
  color: var(--ink-3) !important;
}

/* ── Photo grid ─────────────────────────────────────────────── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 200px 200px;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.photo-item {
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(13,12,10,0.2);
  font-size: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
  position: relative;
  border-radius: 3px;
}

.photo-item:hover { border-color: var(--gold); box-shadow: var(--shadow-sm); }

.photo-item:first-child { grid-column: span 2; }

.photo-item .photo-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Schedule table ─────────────────────────────────────────── */
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-table th {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1.5px solid var(--border-dk);
  background: var(--surface);
}

.schedule-table td {
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--ink-2);
  vertical-align: top;
}

.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:hover td { background: var(--gold-bg); }

.schedule-table td:first-child {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--gold);
  white-space: nowrap;
  font-weight: 500;
}

.badge {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  border: 1px solid currentColor;
}

.badge-open { color: #2e8b57; background: rgba(46,139,87,0.08); }
.badge-closed { color: var(--ink-3); }
.badge-prize { color: var(--gold); background: var(--gold-bg); }

/* ── Info grid ──────────────────────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.info-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2rem 2.2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.info-box h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 700;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid var(--border-dk);
}

.info-box ul {
  padding-left: 1.2rem;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.info-box ul li { margin-bottom: 0.5rem; line-height: 1.5; }
.info-box p { color: var(--ink-3); font-size: 0.95rem; line-height: 1.6; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-item .label {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-item a, .contact-item p {
  color: var(--ink-2);
  font-size: 1.05rem;
  text-decoration: none;
  font-weight: 500;
}

.contact-item a:hover { color: var(--gold); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-group label {
  font-family: 'DM Mono', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-alt);
  border: 1.5px solid var(--border-dk);
  color: var(--ink);
  padding: 0.8rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  border-radius: 3px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,147,58,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(13,12,10,0.28); }

.form-group textarea { min-height: 120px; resize: vertical; }

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
  padding: 5rem 7rem 4rem;
  position: relative;
  overflow: hidden;
  background: #3d3830;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(184,147,58,0.15) 0%, transparent 65%);
  pointer-events: none;
}

/* checkerboard texture strip */
.page-header::after {
  content: attr(data-icon);
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14rem;
  opacity: 0.1;
  pointer-events: none;
  line-height: 1;
  filter: drop-shadow(0 0 40px rgba(184,147,58,0.2));
}

.page-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: #ffffff;
  margin-top: 0.5rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.page-header .section-label {
  color: var(--gold-lt);
  position: relative;
  z-index: 1;
}

.page-header .section-label::after { background: rgba(184,147,58,0.3); }

.page-header p[style] {
  position: relative;
  z-index: 1;
}

/* ── Entry box ────────────────────────────────────────────────── */
[style*="rgba(44,36,25"] {
  background: var(--gold-bg) !important;
  border-color: var(--border-dk) !important;
  border-left-color: var(--gold) !important;
  border-radius: 4px;
}

/* ── Gallery tabs ─────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1.5px solid var(--border-dk);
  margin-bottom: 2.5rem;
}

.tab-btn {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1.5px;
}

.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.video-placeholder {
  background: var(--surface);
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.6rem;
  color: rgba(13,12,10,0.25);
  font-size: 2.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 3px;
}

.video-placeholder:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

/* ── Stats strip (decorative) ────────────────────────────────── */
.stats-strip {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: center;
  gap: 0;
}

.stat-item {
  padding: 2.5rem 4rem;
  text-align: center;
  border-right: 1px solid var(--border);
}

.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  display: block;
  letter-spacing: -0.03em;
}

.stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: block;
  margin-top: 0.4rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  background: var(--bg-alt);
}

footer p {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--ink-3);
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { color: var(--gold-lt); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp 0.7s ease both; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 2rem;
}

/* ══════════════════════════════════════════════════════════════
   HAMBURGER / MOBILE NAV
   ══════════════════════════════════════════════════════════════ */

/* The hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--border-dk);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink-3);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Animate to X when open */
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Full-screen slide-down drawer */
.nav-drawer {
  display: none; /* shown via JS + .open only on mobile */
  position: fixed;
  top: 64px; /* nav height */
  left: 0;
  right: 0;
  bottom: 0;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 99;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
}

.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer ul {
  list-style: none;
  padding: 1.5rem 0;
}

.nav-drawer ul li a {
  display: block;
  padding: 1rem 1.8rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.nav-drawer ul li:first-child a { border-top: 1px solid var(--border); }

.nav-drawer ul li a:hover,
.nav-drawer ul li a.active {
  color: var(--gold);
  background: var(--gold-bg);
}

/* Prevent body scroll when drawer open — includes iOS Safari fix */
body.nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  touch-action: none;
  overscroll-behavior: none;
}
html:has(body.nav-open) {
  overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — prevent horizontal overflow everywhere
   ══════════════════════════════════════════════════════════════ */

html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════
   TABLET  ≤ 900px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-content-full { padding: 5rem 3rem; }
  .donation-hero { padding: 4rem 3rem; }
  .page-header { padding: 4rem 3rem 3rem; }
  section { padding: 4rem 2rem; }
  footer { padding: 2rem 2rem; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE  ≤ 768px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav — switch to hamburger */
  nav {
    padding: 0 1rem;
    height: 56px;
  }

  body { padding-top: 56px; }

  .nav-links { display: none; }          /* hide desktop links */
  .nav-hamburger { display: flex; }      /* show burger button */
  .nav-drawer { display: block; }        /* drawer participates in layout */

  /* Adjust drawer top to match shorter nav */
  .nav-drawer { top: 56px; }

  /* Logo slightly smaller */
  .sussex-logo { height: 32px; }

  /* Hero */
  .hero-content { padding: 3.5rem 1.2rem; }
  .hero-content-full { padding: 3.5rem 1.2rem; }
  .hero-image-placeholder { display: none; }

  /* Page header */
  .page-header { padding: 3rem 1.2rem 2.5rem; }
  /* hide the giant decorative emoji so it doesn't overflow */
  .page-header::after { display: none; }

  /* Sections */
  section { padding: 3rem 1.2rem; }

  /* Grids → single column where needed */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .getting-here-grid { grid-template-columns: 1fr; }

  /* Photo grid */
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .photo-item:first-child { grid-column: span 2; }

  /* Stats */
  .stats-strip { flex-wrap: wrap; }
  .stat-item { padding: 1.5rem 1.2rem; min-width: 50%; border-bottom: 1px solid var(--border); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  /* Footer */
  footer {
    padding: 2rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  /* Tournament banner */
  .tourn-banner {
    padding: 1.5rem 1.2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .tourn-banner h3 { font-size: 1.3rem; }

  /* Donation hero */
  .donation-hero { padding: 3rem 1.2rem; }
  .donation-hero::before { display: none; } /* hide giant heart */

  /* Report cards */
  .report-card { flex-direction: column; gap: 0.8rem; padding: 1.5rem; }

  /* Sticky notes — 2 columns on tablet */
  .sticky-notes { grid-template-columns: 1fr 1fr; }

  /* Tabs — allow wrapping */
  .tabs { flex-wrap: wrap; }
  .tab-btn { padding: 0.7rem 1rem; }

  /* Schedule/results tables — scroll via wrapper */
  .table-scroll-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .schedule-table,
  .results-table {
    white-space: nowrap;
  }

  /* Info grid */
  .info-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   SMALL MOBILE  ≤ 480px
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Tighten hero further */
  .hero-content-full { padding: 2.8rem 1rem; }
  .hero h1, .hero-title-full { font-size: clamp(2.8rem, 12vw, 4.5rem); }

  /* Sections */
  section { padding: 2.5rem 1rem; }
  .page-header { padding: 2.5rem 1rem 2rem; }
  .donation-hero { padding: 2.5rem 1rem; }

  /* Photo grid → single column */
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item:first-child { grid-column: span 1; }

  /* Stats → single column */
  .stat-item {
    min-width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:last-child { border-bottom: none; }
  .stat-num { font-size: 2.4rem; }

  /* Sticky notes → single column */
  .sticky-notes { grid-template-columns: 1fr; }

  /* Notable grid → 2 columns */
  .notable-grid { grid-template-columns: 1fr 1fr; }

  /* Donation tiers → single column */
  .donation-tiers { grid-template-columns: 1fr; }

  /* Cards → single column (auto-fit already handles this at very small sizes,
     but set a hard floor to stop min-content causing overflow) */
  .cards { grid-template-columns: 1fr; }
  .side-event-grid { grid-template-columns: 1fr; }

  /* Buttons — full width on tiny screens */
  .tourn-banner .btn,
  .tourn-banner .btn-solid { width: 100%; justify-content: center; }

  /* Footer */
  footer { padding: 1.8rem 1rem; }

  /* Navigation brand — slightly smaller */
  .nav-brand { font-size: 0.9rem; }
}
/* ── Quote / Testimonial Cards ──────────────────────────────── */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.quote-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  padding: 2rem 2.2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}

.quote-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.quote-card::before {
  content: '\201C';
  font-family: 'Fraunces', serif;
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.18;
  position: absolute;
  top: -0.5rem;
  left: 1.2rem;
  line-height: 1;
  pointer-events: none;
}

.quote-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2);
  font-style: italic;
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 1;
}

.quote-card cite {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}

/* ── Map embed ───────────────────────────────────────────────── */
.map-wrap {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: grayscale(20%);
}

/* ── Parking / Getting Here ──────────────────────────────────── */
.getting-here-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}

.transport-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.6rem 1.8rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.transport-card .t-icon {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  display: block;
}

.transport-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.transport-card p, .transport-card li {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.6;
}

.transport-card ul { padding-left: 1.1rem; }
.transport-card ul li { margin-bottom: 0.3rem; }

/* ── Archive / Results ───────────────────────────────────────── */
.archive-year {
  margin-bottom: 2.5rem;
}

.archive-year h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.3rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border-dk);
}

.archive-year .year-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── Scrollable table wrapper ────────────────────────────────── */
.table-scroll-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 0.92rem;
}

.results-table th {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
  padding: 0.8rem 1.1rem;
  border-bottom: 1.5px solid var(--border-dk);
  background: var(--surface);
}

.results-table td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink-2);
  vertical-align: top;
}

.results-table tr:last-child td { border-bottom: none; }
.results-table tr:hover td { background: var(--gold-bg); }

.results-table td:first-child {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--gold);
  font-weight: 500;
}

/* ── Notable Players ─────────────────────────────────────────── */
.notable-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.notable-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.6rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.notable-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.notable-avatar {
  width: 64px;
  height: 64px;
  background: var(--surface);
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2px solid var(--border-dk);
}

.notable-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.notable-card .notable-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.notable-card p {
  font-size: 0.85rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ── Donation Page / CTA ─────────────────────────────────────── */
.donation-hero {
  background: linear-gradient(135deg, #3d3830 0%, #2a2520 100%);
  padding: 5rem 7rem;
  position: relative;
  overflow: hidden;
}

.donation-hero::before {
  content: '♥';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14rem;
  opacity: 0.07;
  line-height: 1;
}

.donation-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.donation-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.donation-tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.donation-tier {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.donation-tier:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.donation-tier.featured {
  border-color: var(--gold);
  background: var(--gold-bg);
}

.donation-tier .tier-amount {
  font-family: 'Fraunces', serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.donation-tier h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.donation-tier p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ── Reports / Articles ──────────────────────────────────────── */
.report-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2rem 2.2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s;
  margin-bottom: 1.2rem;
}

.report-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.report-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.report-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.report-card .report-meta {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.report-card p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

/* ── Side Events ─────────────────────────────────────────────── */
.side-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.side-event-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.side-event-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.side-event-card .event-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.side-event-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.side-event-card .event-date {
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.side-event-card p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ── Sussex Uni Logo ─────────────────────────────────────────── */
.sussex-logo {
  height: 40px;
  width: auto;
  border: 3px solid #1d6572; /* teal colour matching the logo text */
  border-radius: 3px;
}

/* ── Social Links Bar ────────────────────────────────────────── */
.social-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border: 1.5px solid var(--border-dk);
  color: var(--ink-3);
  border-radius: 2px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

/* ── Sticky note quotes (fun variant) ───────────────────────── */
.sticky-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.sticky {
  padding: 1.8rem;
  border-radius: 2px;
  box-shadow: 3px 4px 16px rgba(0,0,0,0.13), 0 1px 3px rgba(0,0,0,0.08);
  position: relative;
  transform: rotate(var(--r, -1deg));
  transition: transform 0.25s, box-shadow 0.25s;
}

.sticky:nth-child(2) { --r: 1.5deg; }
.sticky:nth-child(3) { --r: -0.5deg; }
.sticky:nth-child(4) { --r: 2deg; }

.sticky:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 5px 8px 24px rgba(0,0,0,0.18);
  z-index: 2;
}

.sticky-yellow { background: #fff9c4; }
.sticky-blue   { background: #d0eaff; }
.sticky-green  { background: #d4f5d4; }
.sticky-pink   { background: #ffd6e0; }

.sticky blockquote {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #2a2620;
  font-style: italic;
  margin-bottom: 1rem;
}

.sticky cite {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5a5448;
  font-style: normal;
}

/* (Mobile styles consolidated in the responsive block below) */
/* ── Tournament section divider ──────────────────────────────── */
.tournament-divider {
  position: relative;
  text-align: center;
  margin: 0;
  padding: 3rem 2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.tournament-divider::before {
  content: '';
  position: absolute;
  left: 2rem;
  right: 2rem;
  top: 50%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold), transparent);
  opacity: 0.5;
}

.tournament-divider span {
  position: relative;
  z-index: 1;
  background: var(--bg);
  padding: 0.5rem 1.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border-dk);
  border-radius: 20px;
}

/* ── Parking section ─────────────────────────────────────────── */
.parking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.parking-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.8rem 2rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.parking-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.parking-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.parking-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.parking-card p {
  font-size: 0.9rem;
  color: var(--ink-3);
  line-height: 1.6;
}