/* Sunday League Golf website. Same colours as the app (src/constants/theme.ts). */
:root {
  --green: #00473a;
  --black: #1b2119;
  --cream: #f3f0e8;
  --coral: #dd644d;
  --aloe: #d0d8c8;
  --peach: #cb9c80;

  --bg: var(--cream);
  --card: #fffdf8;
  --text: var(--black);
  --muted: #5b6258;
  --heading: var(--green);
  --border: var(--aloe);
  --tint: #dde7df;

  --radius: 22px;
  --rounded: ui-rounded, 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --card: #1a231e;
    --text: var(--cream);
    --muted: #a9b0a4;
    --heading: #8fc7a9;
    --border: #2b3830;
    --tint: #1f3a30;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
a { color: var(--heading); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- Header ---------- */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font: 800 18px/1.1 var(--rounded); letter-spacing: -0.01em; }
.nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--rounded); color: var(--heading); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; }
.eyebrow { font: 700 13px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 34em; }
p { margin: 0 0 14px; }

/* ---------- Hero ---------- */
.hero { padding: 12px 0 56px; }
.hero-img { border-radius: calc(var(--radius) + 6px); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: 0 18px 50px -20px rgba(0, 40, 30, 0.45); }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-text { margin-top: 36px; display: grid; gap: 20px; }
@media (min-width: 860px) {
  .hero-text { grid-template-columns: 1.3fr 1fr; align-items: end; }
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; background: var(--coral); color: var(--black); font-weight: 700; text-decoration: none;
}
.button:hover { filter: brightness(1.05); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 20px;
  border-radius: 999px; border: 1.5px solid var(--border); font-weight: 600; color: var(--heading);
}

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-head { margin-bottom: 28px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .grid.four { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.card p:last-child { margin-bottom: 0; }
.card .muted, .muted { color: var(--muted); }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--green); color: var(--cream);
  display: grid; place-items: center; font: 800 18px/1 var(--rounded); margin-bottom: 16px;
}
.tag {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  border: 1.5px solid var(--heading); color: var(--heading); margin-bottom: 12px;
}
.points { font: 700 15px/1.4 var(--body); color: var(--heading); margin-top: 8px; }

.band { background: var(--green); color: var(--cream); border-radius: calc(var(--radius) + 6px); padding: 40px 28px; }
.band h2 { color: var(--cream); }
.band p { color: #d8e2da; }
.band ul { margin: 0; padding-left: 20px; }
.band li { margin-bottom: 8px; }
@media (min-width: 860px) { .band { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px; } }

.split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; } }
.split img { border-radius: var(--radius); }

/* ---------- Legal and support pages ---------- */
.doc { padding: 24px 0 64px; }
.doc h2 { font-size: 24px; margin-top: 36px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.notice { background: var(--tint); border-radius: 16px; padding: 16px 20px; margin: 20px 0; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; margin-bottom: 12px; }
summary { font-weight: 700; cursor: pointer; color: var(--heading); }
details p { margin: 12px 0 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 12px; font-weight: 600; }
.site-footer a { color: var(--muted); }
