/* Kim's Game Developing — developer site
   Palette and display face are lifted from Athens Virtual Golf itself
   (www/css/style.css) so the site reads as the same product family.
   No external requests: the font is self-hosted, there is no CDN,
   no analytics and no third-party script anywhere on this site. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/PlayfairDisplay-latin.woff2") format("woff2");
}

:root {
  --pine:    #0c2b16;
  --pine-2:  #143a20;
  --turf:    #2e6b34;
  --cream:   #f3ecd8;
  --leather: #c9a648;
  --ink:     #10130e;

  --bg:      var(--ink);
  --surface: #16241a;
  --text:    var(--cream);
  --muted:   rgba(243, 236, 216, 0.66);
  --line:    rgba(243, 236, 216, 0.14);

  --disp: "Playfair Display", Georgia, serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

/* The game is dark by nature, so dark is the default. Light mode keeps the
   same pine/cream relationship inverted rather than switching palettes. */
@media (prefers-color-scheme: light) {
  :root {
    --bg:      #f6f1e2;
    --surface: #fffdf6;
    --text:    #10130e;
    --muted:   rgba(16, 19, 14, 0.68);
    --line:    rgba(12, 43, 22, 0.16);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- masthead ---------------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0; }
.top-mark {
  font-family: var(--disp); font-weight: 800; letter-spacing: 0.12em;
  font-size: 0.92rem; text-transform: uppercase; text-decoration: none;
}
.top-nav { margin-left: auto; display: flex; gap: 1.1rem; }
.top-nav a {
  font-size: 0.86rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.top-nav a:hover, .top-nav a:focus-visible { color: var(--text); }

/* ---------------- hero ---------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(46, 107, 52, 0.42), transparent 62%),
    radial-gradient(90% 80% at 100% 20%, rgba(201, 166, 72, 0.16), transparent 60%),
    linear-gradient(180deg, var(--pine) 0%, var(--pine-2) 55%, var(--bg) 100%);
  color: var(--cream);
}
.hero-grid {
  display: grid; gap: clamp(1.5rem, 4vw, 2.75rem);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 760px) { .hero-grid { grid-template-columns: 128px 1fr; } }

.hero-icon {
  width: 112px; height: 112px; border-radius: 26px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}
.eyebrow {
  font-family: var(--disp); letter-spacing: 0.24em; text-transform: uppercase;
  font-size: 0.74rem; color: var(--leather); margin: 0 0 0.5rem;
}
.hero h1 {
  font-family: var(--disp); font-weight: 900; line-height: 1.05;
  font-size: clamp(2.1rem, 6.4vw, 3.5rem); margin: 0 0 0.65rem;
}
.lede {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: rgba(243, 236, 216, 0.86); margin: 0 0 1.5rem; max-width: 46ch;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--disp); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.85rem; text-decoration: none;
  padding: 0.8rem 1.35rem; border-radius: 999px;
  border: 1.5px solid rgba(243, 236, 216, 0.5); color: var(--cream);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }
.btn-primary {
  background: var(--leather); border-color: var(--leather); color: #211a06;
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #d8b862; border-color: #d8b862;
}
.hero-meta {
  margin: 1.25rem 0 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.15rem;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(243, 236, 216, 0.6);
}

/* ---------------- sections ---------------- */
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section-head { max-width: 54ch; margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem); }
.section-head h2 {
  font-family: var(--disp); font-weight: 800; line-height: 1.15;
  font-size: clamp(1.5rem, 3.6vw, 2.1rem); margin: 0 0 0.5rem;
}
.section-head p { margin: 0; color: var(--muted); }

/* screenshot rail: horizontal scroll on small screens, grid on large */
.shots {
  display: grid; grid-auto-flow: column; gap: 1rem;
  grid-auto-columns: minmax(190px, 46vw);
  overflow-x: auto; padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img {
  width: 100%; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}
.shots figcaption {
  margin-top: 0.55rem; font-size: 0.78rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--muted);
}
@media (min-width: 900px) {
  .shots {
    grid-auto-flow: row; grid-template-columns: repeat(4, 1fr);
    grid-auto-columns: auto; overflow-x: visible;
  }
}

.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.35rem 1.4rem;
}
.card h3 {
  font-family: var(--disp); font-size: 1.12rem; letter-spacing: 0.04em;
  margin: 0 0 0.5rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card ul { margin: 0.5rem 0 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.95rem; }
.card li + li { margin-top: 0.25rem; }

/* ---------------- support / prose ---------------- */
.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--disp); font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 2rem 0 0.6rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--leather); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose ol, .prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.callout {
  border-left: 3px solid var(--leather); background: var(--surface);
  border-radius: 0 12px 12px 0; padding: 0.9rem 1.1rem; margin: 1.25rem 0;
}
.callout p { margin: 0; }

/* ---------------- footer ---------------- */
.foot {
  border-top: 1px solid var(--line); padding: 2.25rem 0 2.75rem;
  font-size: 0.9rem; color: var(--muted);
}
.foot-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.foot-brand {
  font-family: var(--disp); font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text); margin: 0 0 0.35rem;
}
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--text); text-decoration: underline; }
.fine { margin: 1.5rem 0 0; font-size: 0.8rem; color: var(--muted); }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
