/* Every Swing — web palette, lifted from the app's AcColors tokens
   (app/packages/auto_caddie_ui/lib/src/theme/ac_colors.dart).
   Monochrome on full dark; the only colour is the shot-source green. */

:root {
  --bg: #0a0a0b;
  --surface: #151517;
  --surface-2: #1d1d20;
  --border: #2a2a2e;
  --border-soft: #202023;

  --fg: #fafafa;
  --muted: #a1a1aa;
  --subtle: #71717a;

  --accent: #34d399;
  --link: #3b9eff;

  --page: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 20px 72px;
}

/* Masthead — the wordmark, on every page, linking home. */

.masthead {
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 40px;
}

.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  margin-bottom: 0;
}

.wordmark {
  color: var(--fg);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wordmark .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.masthead nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.masthead nav a {
  color: var(--subtle);
  text-decoration: none;
}

.masthead nav a:hover,
.masthead nav a[aria-current='page'] { color: var(--fg); }

/* Type */

h1 {
  color: var(--fg);
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 6px;
}

h2 {
  color: var(--fg);
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
  margin: 36px 0 10px;
}

p, li { margin: 0 0 14px; }

ul { padding-left: 20px; margin: 0 0 14px; }

li { margin-bottom: 8px; }

strong { color: var(--fg); font-weight: 600; }

a { color: var(--link); text-decoration: none; }

a:hover { text-decoration: underline; }

.updated {
  color: var(--subtle);
  font-size: 14px;
  margin: 0 0 32px;
}

.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

/* Landing page */

.hero { padding: 48px 0 8px; }

.hero h1 { font-size: 44px; }

.hero .tagline {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 12px;
  margin: 40px 0 8px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card h3 {
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  font-size: 15px;
  color: var(--subtle);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 36px 0 0;
}

.links a {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
}

.links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

/* Footer */

footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 56px;
  padding-top: 24px;
  color: var(--subtle);
  font-size: 14px;
}

footer a { color: var(--subtle); }

@media (max-width: 620px) {
  /* Below three-across, one-across reads better than two-and-an-orphan. */
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 34px; }
  h1 { font-size: 27px; }
  .masthead nav { gap: 14px; }
}
