/* StrokeView's site: the app's own colors (Fairway green, the stroke's path orange and face red),
   light and dark like the app. */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --text: #1c1c1e;
  --secondary: #5c5c63;
  --fairway: #0b6e4f;
  --fairway-text: #0a5a27;
  --path: #b85a00;
  --face: #c8322a;
  --line: rgba(60, 60, 67, 0.16);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --text: #f5f5f7;
    --secondary: #a1a1a8;
    --fairway: #137a55;
    --fairway-text: #3dd76b;
    --path: #ff9f1a;
    --face: #ff6450;
    --line: rgba(235, 235, 245, 0.16);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--fairway-text); }
main, header, footer { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { display: flex; align-items: center; gap: 12px; padding-top: 22px; }
header.site img { width: 36px; height: 36px; border-radius: 9px; }
header.site a { color: var(--text); text-decoration: none; font-weight: 600; }

.hero { text-align: center; padding: 56px 0 28px; }
.hero img { width: 128px; height: 128px; border-radius: 29px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); }
.hero h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 24px 0 12px; }
.hero p { color: var(--secondary); font-size: 20px; margin: 0 auto 28px; max-width: 34em; }
.button {
  display: inline-block; background: var(--fairway); color: #fff; text-decoration: none;
  font-weight: 600; padding: 14px 26px; border-radius: 999px;
}
.button.soon { background: var(--card); color: var(--secondary); }
.note { color: var(--secondary); font-size: 14px; margin-top: 12px; }

/* The stroke, drawn as the app draws it: the arc, the ball, the face at impact. */
.stroke { display: block; margin: 8px auto 0; width: min(520px, 100%); height: auto; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 36px 0; }
.card { background: var(--card); border-radius: var(--radius); padding: 22px; }
.card h2 { font-size: 19px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--secondary); font-size: 16px; }

.metrics { background: var(--card); border-radius: var(--radius); padding: 22px; margin-bottom: 36px; }
.metrics h2 { font-size: 19px; margin: 0 0 12px; }
.metrics ul { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 24px; }
.metrics li { padding: 6px 0; border-bottom: 1px solid var(--line); break-inside: avoid; }
.metrics li span { color: var(--secondary); }

article { background: var(--card); border-radius: var(--radius); padding: 28px; margin: 28px 0 40px; }
article h1 { font-size: 32px; line-height: 1.15; margin: 0 0 4px; }
article h2 { font-size: 21px; margin: 30px 0 6px; }
article .updated { color: var(--secondary); margin: 0 0 18px; }
article ul { padding-left: 1.2em; }

footer { color: var(--secondary); font-size: 14px; padding-bottom: 40px; display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--secondary); }

@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .hero p { font-size: 18px; }
  article { padding: 20px; }
}
