/* ── On Tap Golf — palette drawn from a course at first light ──────────── */

:root {
  --fairway-deep: #14432e;
  --fairway: #2d6a4f;
  --fairway-mid: #3e8f65;
  --turf-light: #95d5b2;
  --sand: #e7d3a1;
  --sand-light: #f6eaca;
  --sky: #c4e1ea;
  --sky-deep: #4a7c94;
  --dawn: #e0a94f;
  --flag: #d9603f;

  --bg: #fbf9f3;
  --surface: #ffffff;
  --surface-tint: #f2f6f1;
  --ink: #12261d;
  --ink-soft: #4a6357;
  --line: #dfe5dd;

  --shadow-sm: 0 1px 2px rgba(18, 38, 29, 0.06), 0 2px 8px rgba(18, 38, 29, 0.05);
  --shadow-md: 0 6px 16px rgba(18, 38, 29, 0.08), 0 2px 4px rgba(18, 38, 29, 0.05);
  --shadow-lg: 0 18px 40px rgba(18, 38, 29, 0.14);

  --radius: 14px;
  --wrap: 1120px;

  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1710;
    --surface: #10241a;
    --surface-tint: #0e2017;
    --ink: #e7f0e9;
    --ink-soft: #a3bdae;
    --line: #1f3a2b;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.55);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  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(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

:focus-visible {
  outline: 3px solid var(--dawn);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Header ────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-accent {
  color: var(--fairway-mid);
  margin-left: 0.28em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  color: var(--fairway-deep) !important;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .nav-cta {
    color: var(--turf-light) !important;
  }
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 660px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

/* Scrim so display type stays legible over the sky/turf gradient. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(8, 26, 18, 0.05) 0%,
    rgba(8, 26, 18, 0.2) 42%,
    rgba(8, 26, 18, 0.56) 100%
  );
}

/* Narrow screens crop to the busiest slice of the scene (treeline + fairway),
   so the copy needs a heavier scrim than it does on desktop. */
@media (max-width: 700px) {
  .hero::after {
    background: linear-gradient(
      to bottom,
      rgba(8, 26, 18, 0.1) 0%,
      rgba(8, 26, 18, 0.44) 45%,
      rgba(8, 26, 18, 0.68) 100%
    );
  }
}

.hero-inner {
  padding-block: 88px 76px;
  color: #f4f8f2;
  max-width: 780px;
  margin-inline: auto;
  width: 100%;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.5vw, 4.1rem);
  margin-bottom: 20px;
  text-shadow: 0 2px 20px rgba(6, 22, 15, 0.45);
}

.lede {
  font-size: clamp(1.05rem, 2.1vw, 1.22rem);
  max-width: 62ch;
  color: #dfe9e0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--sand-light);
  color: var(--fairway-deep);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  border: 1.5px solid rgba(244, 248, 242, 0.55);
  color: #f4f8f2;
}

.btn-ghost:hover {
  background: rgba(244, 248, 242, 0.12);
  border-color: rgba(244, 248, 242, 0.8);
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.08rem;
}

/* ── Sections ──────────────────────────────────────────────────────────── */

.section {
  padding-block: clamp(64px, 9vw, 104px);
}

.section-tint {
  background: var(--surface-tint);
  border-block: 1px solid var(--line);
}

.eyebrow-dark {
  color: var(--fairway-mid);
}

.section h2 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 16px;
}

.section-lede {
  color: var(--ink-soft);
  max-width: 60ch;
  font-size: 1.06rem;
}

/* ── Cards ─────────────────────────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  margin-top: 44px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.card h3 {
  font-size: 1.32rem;
}

.card-domain {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.83rem !important;
  color: var(--fairway-mid) !important;
  letter-spacing: -0.01em;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--fairway-mid);
}

.card-live {
  border-top: 3px solid var(--fairway-mid);
}

.card-open {
  border-top: 3px solid var(--dawn);
}

.card-soon {
  border-top: 3px solid var(--sky-deep);
}

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.badge-live {
  background: color-mix(in srgb, var(--fairway-mid) 16%, transparent);
  color: var(--fairway);
  border-color: color-mix(in srgb, var(--fairway-mid) 38%, transparent);
}

@media (prefers-color-scheme: dark) {
  .badge-live {
    color: var(--turf-light);
  }
}

.card-link {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fairway-mid);
  text-decoration: none;
}

.card-link.muted {
  color: var(--ink-soft);
  font-weight: 500;
}

/* ── Features ──────────────────────────────────────────────────────────── */

.features {
  list-style: none;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px 40px;
}

.features h3 {
  font-size: 1.16rem;
  margin-bottom: 8px;
  padding-left: 16px;
  border-left: 3px solid var(--fairway-mid);
}

.features p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  padding-left: 19px;
}

/* ── CTA ───────────────────────────────────────────────────────────────── */

.cta {
  background: linear-gradient(160deg, var(--fairway-deep) 0%, #1d5c3f 55%, var(--fairway) 100%);
  color: #f2f8f3;
  padding-block: clamp(64px, 9vw, 100px);
}

.cta-inner {
  text-align: center;
  max-width: 660px;
}

.cta h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.cta p {
  color: #cfe2d5;
  margin-bottom: 32px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 34px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}

.footer-brand {
  font-size: 1.1rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.93rem;
}

.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-note {
  color: var(--ink-soft);
  font-size: 0.87rem;
}

/* Below ~640px the two section links can't share a row with the brand and CTA
   without wrapping to two lines each, which triples the header height. It's a
   single scrolling page, so drop them and keep brand + CTA on one row. */
@media (max-width: 640px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
  .site-nav {
    gap: 14px;
  }
}

@media (max-width: 560px) {
  .hero-inner {
    padding-block: 64px 56px;
  }
  .btn {
    flex: 1 1 auto;
  }
}
