/* Clubs site: shared styles. Each club page sets --accent, --accent-ink and --tint on <body>. */
:root {
  --paper: #FBFAF7;
  --paper-2: #F3F0E9;
  --ink: #0E1B2E;
  --ink-2: #46566C;
  --ink-3: #6B7686;
  --rule: #DED7C8;
  --navy: #091930;
  --on-navy: #EFEDE6;
  --accent: #091930;
  --accent-ink: #FFFFFF;
  --tint: #EEF1F5;
  --display: "Fraunces", Georgia, serif;
  --body: "Source Serif 4", Georgia, serif;
  --label: "Inter Tight", system-ui, -apple-system, sans-serif;
  --shell: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.02rem, 1rem + .15vw, 1.12rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

/* header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-head .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { font-family: var(--display); font-weight: 650; font-size: 1.2rem; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.site-nav { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { font-family: var(--label); font-size: .92rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 10px 10px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
@media (max-width: 760px) {
  .site-head .shell { flex-direction: column; align-items: flex-start; gap: 0; padding-block: 6px; }
  .site-nav { justify-content: flex-start; margin-inline: -10px; }
  .site-nav a { padding: 8px 10px; font-size: .88rem; }
  .site-head { position: static; }
}

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 650; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--ink-2); max-width: 60ch; }
.label { font-family: var(--label); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border-radius: 999px; font-family: var(--label); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid var(--accent); cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--tint); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* hero */
.hero { padding-block: clamp(24px, 5vw, 60px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(20px, 4vw, 56px); align-items: center; }
.hero-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic img { border-radius: 12px; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; height: 100%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { order: -1; aspect-ratio: 16 / 10; } .mosaic { order: -1; } }

section { padding-block: clamp(24px, 5vw, 52px); }
.band { background: var(--tint); }

/* grids and cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3, .split { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body p { color: var(--ink-2); margin: 0; }
.card-photo { aspect-ratio: 3 / 2; background: var(--paper-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card .next { font-family: var(--label); font-size: .92rem; color: var(--ink); background: var(--tint); border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; }
.card .next b { display: block; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--card-accent, var(--ink-2)); }

/* facts panel: what the organiser saved through the assistant */
.facts { background: #fff; border: 1px solid var(--rule); border-left: 6px solid var(--accent); border-radius: var(--radius); padding: 20px 22px; }
.facts h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); }
.fact { padding: 12px 0; border-top: 1px solid var(--rule); }
.fact:first-of-type { border-top: 0; padding-top: 4px; }
.fact-label { font-family: var(--label); font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.fact-text { white-space: pre-line; }
.fact-text.unset { color: var(--ink-3); font-style: italic; }
.updated { font-family: var(--label); font-size: .8rem; color: var(--ink-3); margin-top: 12px; }

/* the organiser's own words */
.prose { max-width: 66ch; }
.prose h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem); margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--label); font-weight: 600; display: grid; place-items: center; }
.steps h3 { margin: 8px 0 4px; }
.steps p { margin: 0; color: var(--ink-2); }

/* the chat */
.chat-frame { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: #fff; height: min(680px, 82vh); box-shadow: 0 10px 30px rgba(14, 27, 46, .08); }
.chat-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.mock { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px; display: grid; gap: 10px; box-shadow: 0 10px 30px rgba(14, 27, 46, .06); }
.mock-head { font-family: var(--label); font-size: .82rem; color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.mock-head img { width: 24px; height: 24px; border-radius: 6px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-family: var(--label); font-size: .93rem; line-height: 1.45; }
.bubble.me { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.bubble.bot { background: var(--paper-2); border-bottom-left-radius: 4px; }
.mock-note { font-family: var(--label); font-size: .78rem; color: var(--ink-3); }

.example { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--rule); background: #fff; }
.example img { width: 100%; }
.example figcaption { font-family: var(--label); font-size: .85rem; color: var(--ink-3); padding: 10px 14px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 24px; padding-block: 24px 36px; font-family: var(--label); font-size: .88rem; color: var(--ink-3); }
.site-foot .shell { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-foot a { color: var(--ink-2); }
.credits { font-size: .78rem; }

.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 8px 8px; font-family: var(--label); }
.pager a { text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover .card { border-color: var(--ink-3); }
.card-link:hover .btn { background: var(--tint); }
