/* collectivegolf.com · holding page and booking conditions.
   Collective Golf has no identity yet, so this stays typographic and quiet:
   Newsreader for reading, DM Mono (all caps only) for labels. */

:root {
  --paper: #f3f0e6;
  --ink: #1d2219;
  --muted: #646a59;
  --rule: rgba(29, 34, 25, 0.16);
  --green: #3f5a34;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'DM Mono', ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --measure: 34rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--green); }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
p { margin: 0; }

.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}
.muted { color: var(--muted); }

/* The frame: header, the statement, the footer, ruled like a page. */
.page { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; padding: 0 var(--gutter); }
.top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 26px 0 22px; border-bottom: 1px solid var(--ink);
}
.wordmark { font-size: 22px; letter-spacing: -0.01em; text-decoration: none; font-weight: 500; }
.wordmark:hover { color: inherit; }

.statement { display: grid; align-content: center; padding: clamp(44px, 7vh, 96px) 0; }
.statement h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 116px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 13ch;
  text-wrap: balance;
}
.statement__grid { display: grid; gap: 36px; margin-top: clamp(40px, 6vw, 72px); padding-top: 26px; border-top: 1px solid var(--rule); }
.lead { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; max-width: var(--measure); }
.first { display: grid; gap: 8px; align-content: start; max-width: var(--measure); }
.first__name { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -0.01em; }

.foot {
  display: grid; gap: 22px; padding: 22px 0 30px; border-top: 1px solid var(--ink);
}
@media (min-width: 860px) { .foot { grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; } }
.foot p:not(.label) { font-size: 15px; line-height: 1.55; }
.foot .label { margin-bottom: 6px; }

/* Booking conditions: one readable column with its contents beside it. */
.doc { padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 110px); display: grid; gap: 40px; }
@media (min-width: 980px) { .doc { grid-template-columns: 15rem minmax(0, 40rem); gap: 72px; justify-content: start; } }
.doc h1 { margin: 10px 0 0; font-weight: 400; font-size: clamp(36px, 5.4vw, 44px); line-height: 1.04; letter-spacing: -0.02em; }
.doc__meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 16px; line-height: 1.6; }
.doc__meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.doc__meta dd { margin: 2px 0 0; }
.toc { position: relative; }
.toc ol { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--rule); counter-reset: toc; }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.toc a { display: grid; grid-template-columns: 2.2em 1fr; padding: 8px 0; font-size: 15px; line-height: 1.35; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--muted); padding-top: 3px; }
@media (max-width: 979px) { .toc ol { columns: 2; column-gap: 24px; } .toc li { break-inside: avoid; } }
@media (max-width: 520px) { .toc ol { columns: 1; } }

.terms section { padding-top: 30px; margin-top: 30px; border-top: 1px solid var(--rule); scroll-margin-top: 20px; }
.terms section:first-child { margin-top: 0; }
.terms h2 { margin: 0 0 12px; font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.005em; display: grid; grid-template-columns: 2.4em 1fr; }
.terms h2 .n { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); padding-top: 6px; }
.terms p, .terms li { font-size: 17px; line-height: 1.6; }
.terms strong { font-weight: 500; }
.terms p + p { margin-top: 12px; }
.terms ul { margin: 12px 0; padding-left: 1.1em; }
.terms li + li { margin-top: 6px; }
.terms li::marker { color: var(--muted); }
.terms .body { padding-left: 0; }
@media (min-width: 640px) { .terms .body { padding-left: 2.4em; } }

/* Arrival: a gentle rise, once. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(14px); animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .rise--2 { animation-delay: 0.12s; }
  .rise--3 { animation-delay: 0.24s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
