/* Boulder Oak Disc Golf — one stylesheet, no build step. */

/* Fonts are hosted here, not on Google, so the page never waits on a third party.
   Both are variable fonts under the SIL Open Font License; latin subset only. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("/fonts/big-shoulders-display.woff2") format("woff2");
  font-weight: 700 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --forest-950: #0c1a16;
  --forest-900: #0f1f1b;
  --forest-800: #16302a;
  --forest-700: #1f3d34;
  --moss: #8fae7b;
  --granite: #b9b3a6;
  --sun: #f4b86a;
  --disc: #e8662a;
  --disc-deep: #c24f18;
  --wood: #6e4b2e;
  --wood-dark: #4f341f;

  --bg: #f6f1e7;
  --surface: #fffdf8;
  --text: #1a2420;
  --muted: #4d5a54;
  --line: rgba(26, 36, 32, .14);
  --band: #e7e1d4;

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101814;
    --surface: #17221d;
    --text: #ece6da;
    --muted: #a9b2a9;
    --line: rgba(236, 230, 218, .14);
    --band: #18231e;
  }
}
:root[data-theme="dark"] {
  --bg: #101814;
  --surface: #17221d;
  --text: #ece6da;
  --muted: #a9b2a9;
  --line: rgba(236, 230, 218, .14);
  --band: #18231e;
}

*, *::before, *::after { box-sizing: border-box; }
/* The page's own backdrop is the footer's colour, not the cream. On an iPhone,
   Safari shows this colour past the last line of the page: when you bounce at
   the bottom and in the strip under its floating toolbar. Cream there looks
   like a big white gap under a dark footer. Body still paints the cream. */
html { background: #0c1a16; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { font-family: var(--display); font-weight: 800; line-height: .95; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
h2 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); }
p { margin: 0; }
section[id] { scroll-margin-top: 1rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--disc); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.eyebrow {
  font: 700 .8rem/1 var(--body);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--sun);
  margin-bottom: 1rem;
}
.eyebrow-dark { color: var(--disc-deep); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow-dark { color: var(--sun); } }
:root[data-theme="dark"] .eyebrow-dark { color: var(--sun); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .8rem 1.5rem;
  border-radius: 999px;
  background: var(--disc); color: #fff;
  font: 700 1rem/1 var(--body); text-decoration: none;
  border: 2px solid var(--disc);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 18px -8px rgba(232, 102, 42, .8);
}
.btn:hover { background: var(--disc-deep); border-color: var(--disc-deep); transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.btn-ghost { background: transparent; border-color: rgba(255, 248, 232, .55); color: #fff8e8; box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 248, 232, .1); border-color: #fff8e8; }
.btn-sm { white-space: nowrap; min-height: 2.5rem; padding: .55rem 1.1rem; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  color: #fff8e8;
  background:
    linear-gradient(180deg, #0b1624 0%, #15293a 30%, #3b4a5c 52%, #a2654f 72%, #eba76a 88%, #f4c083 100%);
  overflow: hidden;
  overflow: clip;
  contain: paint; /* the parallax layers must never add length to the page */
  isolation: isolate;
}
.sky { position: absolute; inset: 0 0 auto; height: 55%; z-index: -1; }
.stars { width: 100%; height: 100%; }
.stars circle { animation: twinkle 5s ease-in-out infinite alternate; }
.stars circle:nth-child(3n) { animation-delay: -2s; animation-duration: 7s; }
.stars circle:nth-child(4n) { animation-delay: -4s; }
@keyframes twinkle { to { opacity: .15; } }

.topbar {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 0 auto;
  padding-block: 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
  position: relative; z-index: 2;
}
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.mark { width: 2.4rem; height: 2.4rem; flex: none; }
.navlinks { display: flex; gap: 1.5rem; list-style: none; margin: 0 0 0 auto; padding: 0; }
.navlinks a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .85; }
.navlinks a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 47rem) {
  .navlinks { display: none; }
  .topbar .btn { margin-left: auto; }
}

.hero-copy {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 0 auto;
  padding-top: clamp(2rem, 9vh, 6rem);
  position: relative; z-index: 2;
}
.hero h1 {
  font-size: clamp(3.8rem, 13vw, 9.5rem);
  font-weight: 900;
  text-shadow: 0 4px 30px rgba(8, 16, 24, .45);
}
.hero h1 span {
  display: block;
  font-size: .42em;
  letter-spacing: .32em;
  color: var(--sun);
  margin-top: .35em;
}
.lede { max-width: 34rem; font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin-top: 1.5rem; color: rgba(255, 248, 232, .9); }

.range {
  position: absolute; left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: clamp(300px, 62vh, 700px);
  z-index: 1;
  pointer-events: none;
  overflow: visible; /* lets the sun's glow spill into the sky instead of stopping at a hard edge */
}
.flight { animation: dash 1.2s linear infinite; opacity: .55; }
@keyframes dash { to { stroke-dashoffset: -24; } }
@media (prefers-reduced-motion: reduce) {
  .flight, .stars circle { animation: none; }
}
/* Keep the words clear of the mountains on short, wide screens. */
@media (max-height: 44rem) and (min-width: 47rem) { .range { height: 52vh; } }
@media (max-width: 47rem) { .hero-copy { padding-bottom: 44vh; } }
@media (min-width: 47rem) { .hero-copy { padding-bottom: 50vh; } }
/* On a proper desktop the whole scene, basket included, fits the first screen. */
@media (min-width: 64rem) and (min-height: 40rem) {
  .hero-copy { padding-top: clamp(1.5rem, 5vh, 3.5rem); padding-bottom: 0; }
  .hero h1 { font-size: clamp(5rem, 9vw, 8.5rem); }
  .range { height: 54vh; }
}

/* ---------- Stats strip ---------- */
.stats { background: var(--forest-950); color: #fff8e8; padding: .5rem 0 2.75rem; }
.stats ul {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin: 0 auto; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 248, 232, .15);
}
.stats li { padding: 1.5rem 1rem 0; text-align: center; min-width: 0; }
.stats li + li { border-left: 1px solid rgba(255, 248, 232, .15); }
.stats b { display: block; font: 900 clamp(2.4rem, 7vw, 4rem)/1 var(--display); color: var(--sun); }
.stats span { display: block; margin-top: .4rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
@media (max-width: 36rem) {
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-left: 0; }
}

/* ---------- Shared section layout ---------- */
.course, .know { padding-block: clamp(4rem, 10vw, 7.5rem); }
.split { display: grid; gap: 2rem 4rem; grid-template-columns: 1fr; }
.split > * { min-width: 0; }
@media (min-width: 56rem) { .split { grid-template-columns: 5fr 7fr; } }
.prose p + p { margin-top: 1.1rem; }
.prose p { font-size: 1.15rem; color: var(--text); }
.section-lede { max-width: 40rem; margin-top: 1.25rem; font-size: 1.15rem; }
.aside { margin-top: 1.25rem; color: var(--muted); max-width: 26rem; }

/* ---------- Holes ---------- */
.holes {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(143, 174, 123, .16), transparent 55%),
    var(--forest-800);
  color: #fff8e8;
  padding-top: clamp(4rem, 10vw, 7rem);
  padding-bottom: clamp(7rem, 14vw, 10rem);
}
.holes .section-lede { color: rgba(255, 248, 232, .82); }

.signs {
  list-style: none; margin: 3.5rem 0 0; padding: 0;
  display: grid; gap: 2.5rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.sign { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.board {
  position: relative; width: 100%;
  padding: 1.6rem 1.6rem 1.8rem;
  border-radius: 10px;
  color: #f7ecd8;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(90deg, transparent 0 88px, rgba(0, 0, 0, .12) 88px 90px),
    linear-gradient(180deg, var(--wood) 0%, var(--wood-dark) 100%);
  box-shadow:
    inset 0 0 0 3px rgba(247, 236, 216, .12),
    inset 0 -6px 0 rgba(0, 0, 0, .18),
    0 18px 30px -18px rgba(0, 0, 0, .8);
  transition: transform .25s ease;
}
.sign:hover .board { transform: rotate(-1.2deg) translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .sign:hover .board { transform: none; } }
.board::before, .board::after {
  content: ""; position: absolute; top: .8rem; width: .55rem; height: .55rem; border-radius: 50%;
  background: #2b1d11; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.board::before { left: .8rem; }
.board::after { right: .8rem; }
.hole-label { display: block; font: 700 .8rem/1 var(--body); letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.hole-num { display: block; font: 900 6.5rem/.9 var(--display); color: var(--sun); margin-top: .3rem; text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.board dl { display: flex; gap: 2rem; margin: 1rem 0 0; }
.board dt { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.board dd { margin: 0; font: 800 2rem/1.1 var(--display); }

/* Tee to basket, drawn to scale: hole 1 is 300 ft, the others 220. */
.fairway { position: relative; height: 22px; margin-top: 1.4rem; }
.fairway i {
  position: absolute; left: 0; top: 50%;
  width: calc(var(--len) * 100%);
  border-top: 2px dashed rgba(247, 236, 216, .5);
}
.fairway::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--disc); box-shadow: 0 0 0 3px rgba(232, 102, 42, .3);
}
.fairway i::after {
  content: ""; position: absolute; right: -4px; top: -13px;
  width: 16px; height: 22px;
  background:
    linear-gradient(var(--disc), var(--disc)) top / 100% 4px no-repeat,
    linear-gradient(#f7ecd8, #f7ecd8) 50% 0 / 2px 100% no-repeat,
    linear-gradient(#f7ecd8, #f7ecd8) bottom / 100% 6px no-repeat;
}
.post {
  width: 1.1rem; height: 3.25rem;
  background: linear-gradient(90deg, #3b2716, #5a3d24 50%, #3b2716);
  border-radius: 0 0 3px 3px;
}

.treeline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(72px, 8vw, 120px); color: var(--bg); }

/* ---------- Good to know ---------- */
.board-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.board-list li {
  display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 1.5rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.board-list .k { font-weight: 700; }
.board-list .v { color: var(--muted); }
@media (max-width: 40rem) {
  .board-list li { grid-template-columns: 1fr; gap: .15rem; }
}

/* ---------- UDisc ---------- */
.udisc { background: var(--band); padding-block: clamp(3.5rem, 8vw, 6rem); }
.udisc-inner { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.udisc-inner > * { min-width: 0; }
@media (min-width: 47rem) { .udisc-inner { grid-template-columns: 9rem 1fr; gap: 3rem; } }
.udisc-disc { width: 7rem; height: 7rem; animation: spin 14s linear infinite; }
@media (min-width: 47rem) { .udisc-disc { width: 9rem; height: 9rem; } }
@keyframes spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .udisc-disc { animation: none; } }
.udisc p { max-width: 38rem; margin-top: 1rem; font-size: 1.1rem; }
.udisc .btn { margin-top: 1.75rem; }

/* ---------- Stay ---------- */
.stay {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 100%, rgba(244, 184, 106, .2), transparent 60%),
    var(--forest-900);
  color: #fff8e8;
  padding-bottom: clamp(4rem, 10vw, 7rem);
}
.ridge-top { width: 100%; height: clamp(50px, 9vw, 130px); color: var(--band); }
.stay-inner { padding-top: clamp(2rem, 6vw, 4rem); }
.stay h2 { max-width: 48rem; }
.stay .section-lede { color: rgba(255, 248, 232, .85); }
.facts {
  list-style: none; margin: 2.5rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 8rem)); gap: 1rem;
}
.facts li { border-left: 3px solid var(--disc); padding-left: .9rem; }
.facts b { display: block; font: 900 2.6rem/1 var(--display); color: var(--sun); }
.facts span { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
@media (max-width: 36rem) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Footer ---------- */
.foot { background: var(--forest-950); color: rgba(255, 248, 232, .8); padding-block: 2.5rem; font-size: .95rem; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.foot .brand { color: #fff8e8; font-size: 1.15rem; }
.foot .mark { width: 2rem; height: 2rem; }
.foot a { text-underline-offset: 3px; }

/* ---------- Not found ---------- */
.lost { min-height: 100svh; }
.lost .hero-copy { padding-bottom: 50vh; }
