:root {
  --sky: #8FD3F0;
  --sky-pale: #E3F4FB;
  --ocean: #0B3C55;
  --ocean-soft: #CFE9F5;
  --gold: #F2B705;
  --sun: #FFC21A;
  --bark: #6B3A0E;
  --ink: #0B3C55;
  --ink-soft: #2C4B5C;
  --ray-1: #FFD34D; --ray-2: #F28C3A; --ray-3: #4BB8D8; --ray-4: #EF6A4C;
  --display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--ink); background: var(--sky-pale); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--bark); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
p { margin: 0; }
.prose { max-width: 40rem; }
.prose p + p { margin-top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 800; text-decoration: none; border: 3px solid var(--bark); transition: transform .15s ease, box-shadow .15s ease; }
.btn-sun { background: var(--sun); color: var(--bark); box-shadow: 0 4px 0 var(--bark); }
.btn-sun:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--bark); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-bark { background: var(--bark); color: var(--sun); }
.btn-bark:hover { background: var(--ocean); border-color: var(--ocean); }
.actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.75rem; }

/* Header, shared by every page */
.top { background: var(--sky); position: relative; z-index: 5; }
.top .wrap { width: min(1280px, 100% - 2rem); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: 1.35rem; text-decoration: none; color: var(--ocean); }
.brand img { width: 48px; height: 48px; }
/* The host club sits beside the event name, set apart by a stitched divider like the badge's ring */
.brand-group { display: flex; align-items: center; gap: 1rem; }
.host-tag { display: flex; align-items: center; gap: .5rem; padding-left: 1rem; border-left: 2px dashed rgba(11,60,85,.35); text-decoration: none; color: var(--ocean); font-size: .82rem; font-weight: 800; line-height: 1.15; }
.host-tag img { width: 40px; height: 40px; }
.host-tag small { display: block; font-size: .75rem; font-weight: 700; color: var(--ink-soft); }
.host-tag:hover span { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1240px) {
  .host-tag span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.top nav { display: flex; align-items: center; gap: 1.1rem; font-weight: 800; }
.nav-links { display: flex; gap: 1.1rem; }
.nav-links a { text-decoration: none; padding-block: .25rem; border-bottom: 3px solid transparent; }
.nav-links a:hover { border-bottom-color: var(--ocean); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--bark); color: var(--bark); }
.top .btn { padding: .55rem 1.1rem; font-size: .95rem; }
/* Narrower screens: logos and button on the first row, the page links on their own row below */
@media (max-width: 1060px) {
  .top nav { display: contents; }
  .top .btn { order: 2; }
  .nav-links { order: 3; flex-basis: 100%; padding-bottom: .15rem; }
  .nav-links a { white-space: nowrap; }
}
@media (max-width: 760px) {
  .brand { font-size: 1.05rem; gap: .45rem; line-height: 1; max-width: 9.5rem; }
  .brand img { width: 38px; height: 38px; }
  .brand-group { gap: .6rem; }
  .host-tag { padding-left: .6rem; }
  .host-tag img { width: 32px; height: 32px; }
  .top .btn { padding: .45rem .85rem; font-size: .85rem; }
  .nav-links { justify-content: space-between; gap: .4rem; font-size: .88rem; }
}

/* Rules page: a section list beside the rules, plain tables for looking things up */
.rules-band { padding-top: 1rem; }
.rules-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.rules-toc { position: sticky; top: 1.5rem; }
.rules-toc ol { margin: 0; padding: 1.25rem 1.25rem 1.25rem 2.6rem; background: #fff; border: 3px dashed var(--gold); border-radius: 22px; font-weight: 800; line-height: 1.4; }
.rules-toc li + li { margin-top: .5rem; }
.rules-toc a { text-decoration: none; }
.rules-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.rules { max-width: 46rem; }
.rules section { scroll-margin-top: 1.5rem; padding-bottom: 2.5rem; }
.rules section + section { padding-top: 2.5rem; border-top: 2px dashed var(--gold); }
.rules h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.rules h3 { font-size: 1.35rem; margin-top: 1.5rem; }
.rules p, .rules ul, .rules ol, .table-scroll { margin-top: 1rem; }
.rules ul, .rules ol { padding-left: 1.4rem; }
.rules li + li { margin-top: .4rem; }
.rules p, .rules li { color: var(--ink-soft); }
.rules strong { color: var(--ink); }
.table-scroll { overflow-x: auto; }
.rules table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 1rem; }
.rules table.narrow { width: auto; min-width: 16rem; }
.rules caption { text-align: left; font-weight: 800; padding-bottom: .5rem; color: var(--ink); }
.rules th, .rules td { padding: .65rem .9rem; text-align: left; vertical-align: top; border-bottom: 1px solid #D5ECF6; }
.rules th { background: var(--ocean); color: #fff; font-weight: 800; }
.rules tr:last-child td { border-bottom: 0; }
.rules .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) {
  .rules-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .rules-toc { position: static; }
}
@media (max-width: 560px) {
  .rules table { font-size: .88rem; }
  .rules th, .rules td { padding: .5rem .55rem; }
}

/* Home hero: the badge rises like the sun over the shore */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky) 0%, #BFE7F7 60%, var(--sky-pale) 100%); padding: 2.5rem 0 0; text-align: center; }
.rays { position: absolute; left: 50%; top: 13rem; width: 1700px; height: 1700px; translate: -50% -50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, var(--ray-1) 0deg 7deg, transparent 7deg 18deg, var(--ray-2) 18deg 25deg, transparent 25deg 36deg, var(--ray-3) 36deg 43deg, transparent 43deg 54deg, var(--ray-4) 54deg 61deg, transparent 61deg 72deg);
  -webkit-mask-image: radial-gradient(circle, transparent 15%, #000 16%, rgba(0,0,0,.55) 30%, transparent 46%);
          mask-image: radial-gradient(circle, transparent 15%, #000 16%, rgba(0,0,0,.55) 30%, transparent 46%);
  opacity: .42; }
.badge { position: relative; width: min(340px, 72vw); margin: 0 auto; filter: drop-shadow(0 18px 24px rgba(11,60,85,.25)); animation: rise 1.1s .1s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { transform: translateY(80px) scale(.94); } to { transform: none; } }
.hero-copy { position: relative; max-width: 44rem; margin: 2rem auto 0; padding-inline: 1rem; }
.hero-copy p { margin-top: 1.25rem; font-size: 1.25rem; color: var(--ink-soft); }
.hero .actions { justify-content: center; }

/* The 3D gold lettering from the badge, used for each page's main heading */
.shore-type { color: var(--sun); -webkit-text-stroke: 7px var(--bark); paint-order: stroke fill; text-shadow: 0 6px 0 var(--bark); letter-spacing: .01em; }
.hero h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); }

/* Inner page header */
.page-head { background: linear-gradient(180deg, var(--sky) 0%, #BFE7F7 100%); padding: 2.5rem 0 0; }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); -webkit-text-stroke-width: 6px; text-shadow: 0 5px 0 var(--bark); }
.page-head p { margin-top: 1rem; max-width: 38rem; font-size: 1.2rem; color: var(--ink-soft); }
.wave { display: block; width: 100%; height: 70px; margin-top: 3rem; }
.hero .wave { height: 90px; margin-top: 4rem; }

/* Sections */
.band { padding: 4.5rem 0; }
.band-ocean { background: var(--ocean); color: #fff; }
.band-ocean h2 { color: var(--sun); }
.band-ocean .lead { color: var(--ocean-soft); }
.band-gold { background: var(--gold); color: var(--bark); }
.lead { margin-top: 1rem; max-width: 34rem; font-size: 1.15rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 3rem; align-items: start; }

/* Term rows: label + explanation, dashed like the stitching on the badge */
.terms { margin: 0; }
.terms > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem 0; border-top: 2px dashed rgba(207,233,245,.35); }
.terms > div:last-child { border-bottom: 2px dashed rgba(207,233,245,.35); }
.terms dt { font-family: var(--display); font-size: 1.5rem; color: var(--sun); line-height: 1.2; }
.terms dd { margin: 0; color: var(--ocean-soft); }
.terms dd strong { color: #fff; }

/* Home: one row per page */
.glance { list-style: none; margin: 2rem 0 0; padding: 0; }
.glance a { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.3rem 0; border-top: 2px dashed rgba(207,233,245,.35); text-decoration: none; }
.glance li:last-child a { border-bottom: 2px dashed rgba(207,233,245,.35); }
.glance .label { font-family: var(--display); font-size: 1.6rem; color: var(--sun); }
.glance .what { color: var(--ocean-soft); }
.glance .go { font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.glance a:hover .go { color: var(--sun); }

/* Numbered steps: only for things that happen in order */
.steps { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { padding: 1.5rem; border: 3px dashed var(--gold); border-radius: 22px; background: #fff; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--sun); border: 3px solid var(--bark); color: var(--bark); font-family: var(--display); font-size: 1.3rem; margin-bottom: 1rem; }
.steps h3 { font-size: 1.6rem; }
.steps li p { margin-top: .35rem; color: var(--ink-soft); }
.steps li.big { background: var(--ocean); color: #fff; border-style: solid; }
.steps li.big p { color: var(--ocean-soft); }

/* Questions */
.faq { margin-top: 2rem; max-width: 46rem; }
.faq details { border-top: 2px dashed var(--gold); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 2px dashed var(--gold); }
.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.45rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--bark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: .6rem; color: var(--ink-soft); }

/* Photo and map frames */
.frame { width: 100%; border-radius: 28px; border: 6px solid #fff; box-shadow: 0 6px 0 var(--gold); }
.photo { aspect-ratio: 4 / 3; object-fit: cover; }
/* Field map shown whole, with the club crest stamped in the top-left corner */
.map-frame { position: relative; }
.map-crest { position: absolute; top: 18px; left: 18px; width: clamp(64px, 20%, 120px); height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.45)); }
.media-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
address { font-style: normal; font-weight: 800; font-size: 1.25rem; margin-top: 1rem; }
.note { margin-top: 1rem; color: var(--ink-soft); }

/* Sponsor tiers */
.tiers { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 3px solid var(--bark); }
.tiers li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 2rem; padding: 1.2rem 0; border-bottom: 3px solid var(--bark); }
.tiers h3 { font-size: 1.6rem; }
.tiers .price { font-family: var(--display); font-size: 1.6rem; text-align: right; }
.tiers p { grid-column: 1 / -1; font-weight: 700; }

/* Next page */
.next { padding: 3rem 0 4rem; }
.next a { display: inline-flex; flex-direction: column; text-decoration: none; }
.next span { font-weight: 800; color: var(--ink-soft); }
.next strong { font-family: var(--display); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 5px; text-underline-offset: 8px; }

/* Footer, shared by every page */
footer { background: var(--ocean); border-top: 6px solid var(--bark); color: #fff; padding: 3rem 0; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
footer .host { display: flex; align-items: center; gap: .6rem; font-weight: 800; text-decoration: none; }
footer .host img { width: 56px; height: 56px; }
footer .links { display: flex; flex-wrap: wrap; gap: 1.25rem; font-weight: 700; }
footer small { flex-basis: 100%; opacity: .85; font-size: .9rem; }

@media (max-width: 860px) {
  .split, .media-split { grid-template-columns: 1fr; gap: 2rem; }
  .steps { grid-template-columns: 1fr; }
  .terms > div { grid-template-columns: 1fr; gap: .25rem; }
  .glance a { grid-template-columns: 1fr; gap: .2rem; }
  .rays { top: 11rem; width: 1100px; height: 1100px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge { animation: none; }
  .btn { transition: none; }
}
