/* perchgolf.com/guides (2026-10-16): the host guides index and one page per
   guide. Same tokens as the landing pages; dark by default, light via the
   shared theme toggle. */
:root {
  --cream: #F5F0E8;
  --dark: #1A1A14;
  --gold: #B8975A;
  --gold-light: #D4B07A;
  --muted: #6B6558;
  --soft: #9C9484;
  --text-rgb: 245, 240, 232;
  --gold-rgb: 184, 151, 90;
  --border: rgba(var(--gold-rgb), 0.25);
  --ink: #1a1a14;
  --panel: rgba(245, 240, 232, 0.025);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
}
[data-theme="light"] {
  --dark: #f5f0e8;
  --cream: #1a1a14;
  --gold: #9a7b3c;
  --gold-light: #7d6330;
  --gold-rgb: 154, 123, 60;
  --border: rgba(154, 123, 60, 0.45);
  --muted: #463f34;
  --soft: #5a5346;
  --text-rgb: 26, 26, 20;
  --panel: rgba(26, 26, 20, 0.03);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--cream); font-family: var(--font-body); font-weight: 300; overflow-x: hidden; }
a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.theme-toggle {
  background: transparent; border: 1px solid var(--border);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); padding: 0; cursor: pointer;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun { display: block; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 2.5rem; border-bottom: 1px solid var(--border); }
.nav-home { font-family: var(--font-display); font-size: 1.4rem; font-weight: 400; color: var(--cream); text-decoration: none; letter-spacing: 0.15em; text-transform: uppercase; display: inline-flex; align-items: center; }
.nav-home img { height: 36px; width: 36px; object-fit: contain; margin-right: 10px; }
.nav-home em { color: var(--gold); font-style: normal; margin-left: 0.35em; }
.nav-right { display: flex; align-items: center; gap: 1.25rem; }
.nav-link { color: var(--soft); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; }
.nav-link:hover { color: var(--cream); }
.nav-cta-primary { background: var(--gold); color: var(--ink); text-decoration: none; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.65rem 1.25rem; border-radius: 2px; }
.nav-cta-primary:hover { background: var(--gold-light); }

main { max-width: 1160px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.kicker { color: var(--gold); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 500; }
h1 { margin-top: 1rem; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.3rem); line-height: 1.08; text-wrap: balance; }
h1 em { color: var(--gold); font-style: italic; }
.lede { margin-top: 1.1rem; max-width: 60ch; font-size: 1.05rem; line-height: 1.7; color: rgba(var(--text-rgb), 0.82); }

/* Index */
.index .head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; }
.search { display: flex; flex-direction: column; gap: 0.4rem; width: min(380px, 100%); }
.search label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.search input { height: 48px; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; color: var(--cream); font-family: inherit; font-size: 0.95rem; padding: 0 1rem; }
.groups { margin-top: 3rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.group { display: flex; flex-direction: column; gap: 0.85rem; }
.group[hidden] { display: none; }
/* A short group (Clubs and leagues, 2026-10-17) lays its cards side by side across two columns. */
.group:nth-child(5) { grid-column: 1 / span 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 2rem; align-items: start; }
.group:nth-child(5) h2 { grid-column: 1 / -1; }
.group h2 { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.card { text-decoration: none; color: var(--cream); border: 1px solid var(--border); border-radius: 6px; padding: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; transition: border-color 0.2s ease, background 0.2s ease; }
.card:hover { border-color: rgba(var(--gold-rgb), 0.6); background: var(--panel); }
.card[hidden] { display: none; }
.card .t { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; }
.card .d { font-size: 0.86rem; line-height: 1.55; color: var(--soft); }
.no-match { margin-top: 2rem; color: var(--soft); }

/* One guide */
.guide { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 4rem; align-items: start; }
.side { position: sticky; top: 1.5rem; display: flex; flex-direction: column; gap: 1.3rem; border-right: 1px solid var(--border); padding-right: 1.75rem; }
.side .all { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; }
.side-group { display: flex; flex-direction: column; gap: 0.5rem; }
.side-group p { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.side-group a { font-size: 0.88rem; line-height: 1.4; color: rgba(var(--text-rgb), 0.82); text-decoration: none; }
.side-group a:hover { color: var(--gold); }
.side-group a[aria-current="page"] { color: var(--gold); font-weight: 500; }
article { max-width: 46rem; }
article section { margin-top: 2.2rem; }
article h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.25; }
article section p { margin-top: 0.8rem; font-size: 1rem; line-height: 1.75; color: rgba(var(--text-rgb), 0.86); }
article ol { margin-top: 0.8rem; padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.55rem; }
article li { font-size: 1rem; line-height: 1.7; color: rgba(var(--text-rgb), 0.86); padding-left: 0.3rem; }
article li::marker { color: var(--gold); font-family: var(--font-display); }
.plan { margin-top: 2rem; border: 1px solid var(--border); border-radius: 6px; padding: 0.9rem 1.1rem; font-size: 0.9rem; line-height: 1.6; color: rgba(var(--text-rgb), 0.82); background: var(--panel); }
.prevnext { margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; }
.prevnext a { text-decoration: none; }

/* Closing band */
.closer { margin-top: 4rem; border-top: 1px solid var(--border); padding-top: 2.5rem; text-align: center; }
.closer > p:first-child { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 300; }
.closer > p:first-child em { color: var(--gold); font-style: italic; }
.ctas { margin-top: 1.4rem; display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.cta { background: var(--gold); color: var(--ink); text-decoration: none; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 1rem 1.7rem; border-radius: 2px; }
.cta:hover { background: var(--gold-light); }
.cta-note { margin-top: 0.9rem; color: var(--soft); font-size: 0.85rem; line-height: 1.6; }

footer { border-top: 1px solid var(--border); margin-top: 2rem; padding: 2.25rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer .links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
footer a { color: rgba(var(--text-rgb), 0.6); text-decoration: none; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
footer a:hover { color: var(--gold); }
footer .copy { color: var(--soft); font-size: 0.72rem; line-height: 1.7; }
footer .copy a { text-transform: none; letter-spacing: 0; }

@media (max-width: 900px) {
  nav { padding: 1rem 1.25rem; }
  footer { padding: 1.5rem 1.25rem; }
  .nav-link { display: none; }
  main { padding: 2.5rem 1rem 4rem; }
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide { grid-template-columns: 1fr; gap: 2rem; }
  .side { position: static; border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 1.25rem; }
  .side-group { display: none; }
}
@media (max-width: 560px) {
  .groups { grid-template-columns: 1fr; }
  .group:nth-child(5) { grid-column: auto; grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
