:root{--bg:#0B0E14;--panel:rgba(255,255,255,.05);--line:rgba(255,255,255,.10);
--text:#F4F6F8;--dim:rgba(244,246,248,.62);--gold:#C9A227;
--header:rgba(11,14,20,.9);--shadow:rgba(0,0,0,.5);--frame:#000}

/* Light theme. Set explicitly by the toggle, which writes data-theme and
   remembers the choice. */
:root[data-theme="light"]{--bg:#F6F7F9;--panel:rgba(12,16,24,.035);--line:rgba(12,16,24,.13);
--text:#11151C;--dim:rgba(17,21,28,.66);--gold:#8A6A0F;
--header:rgba(246,247,249,.9);--shadow:rgba(12,16,24,.16);--frame:#e6e8ec}

/* Follow the system when the visitor has never chosen. The inline script sets
   data-theme before paint, so this only matters with JavaScript disabled. */
@media (prefers-color-scheme:light){
  :root:not([data-theme="dark"]){--bg:#F6F7F9;--panel:rgba(12,16,24,.035);--line:rgba(12,16,24,.13);
  --text:#11151C;--dim:rgba(17,21,28,.66);--gold:#8A6A0F;
  --header:rgba(246,247,249,.9);--shadow:rgba(12,16,24,.16);--frame:#e6e8ec}
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);transition:background .18s ease,color .18s ease;
font:16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
-webkit-font-smoothing:antialiased}
a{color:var(--gold)}
.wrap{max-width:760px;margin:0 auto;padding:0 22px}
header{border-bottom:1px solid var(--line);padding:18px 0;position:sticky;top:0;
background:var(--header);backdrop-filter:blur(12px);z-index:10}
header .wrap{display:flex;align-items:center;gap:12px}
.brand{font-weight:800;letter-spacing:-.3px;font-size:18px;text-decoration:none;color:var(--text)}
nav{margin-left:auto;display:flex;gap:18px;font-size:14px}
nav a{color:var(--dim);text-decoration:none}
nav a:hover{color:var(--text)}
.hero{padding:70px 0 50px;text-align:center}
.hero h1{font-size:clamp(32px,6vw,50px);line-height:1.1;margin:0 0 14px;letter-spacing:-1px}
.hero p{color:var(--dim);font-size:19px;max-width:560px;margin:0 auto}
.ball{font-size:56px;margin-bottom:14px}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:44px 0}
.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px}
.card h3{margin:0 0 6px;font-size:16px}
.card p{margin:0;color:var(--dim);font-size:14px}
.note{background:var(--panel);border:1px solid var(--line);border-left:3px solid var(--gold);
border-radius:10px;padding:14px 18px;color:var(--dim);font-size:14px;margin:26px 0}
main{padding:44px 0 70px}
main h2{font-size:22px;margin:34px 0 10px;letter-spacing:-.3px}
main h3{font-size:17px;margin:24px 0 6px}
main p,main li{color:var(--dim)}
main li{margin-bottom:7px}
.updated{color:var(--dim);font-size:14px;margin-bottom:26px}
footer{border-top:1px solid var(--line);padding:26px 0;color:var(--dim);font-size:13px;text-align:center}

/* Screenshot galleries. Images are 598×1300 device captures; the frame is CSS
   so no bitmap bezel has to be shipped. Phone screenshots are tall, so they are
   deliberately capped narrow — at full column width three of them tower over
   the rest of the page. */
.shots{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;
max-width:600px;margin:18px auto 6px}
.shots.wide{grid-template-columns:repeat(2,minmax(0,1fr));gap:34px;max-width:460px;margin:26px auto}
.shot{margin:0;text-align:center}
.shot img{width:100%;height:auto;display:block;border-radius:20px;border:1px solid var(--line);
box-shadow:0 16px 36px var(--shadow);background:var(--frame)}
.shot figcaption{color:var(--dim);font-size:12.5px;margin-top:10px;line-height:1.45}
.shot figcaption b{color:var(--text);font-weight:600;display:block;margin-bottom:2px;font-size:13.5px}
.more{text-align:center;margin:16px 0 42px;font-size:14px}

/* A watch capture is near-square; letting it fill a phone-shaped column would
   blow it up out of all proportion. Cap it and centre it in its cell. */
.shots{align-items:start}
.shot.watch img{max-width:172px;margin:0 auto;border-radius:34px}
.shot.watch{align-self:center}
/* Two watch faces in one column: scores above, balls below. */
.shot.watch .pair{display:flex;flex-direction:column;gap:12px;align-items:center}

/* On a phone, three thumbnails would be illegible — show them one at a time. */
@media (max-width:560px){
  .shots,.shots.wide{grid-template-columns:1fr;max-width:250px;gap:30px}
}

/* Theme toggle. Sits in the nav; shows the icon of the theme it switches to. */
.theme{appearance:none;background:var(--panel);border:1px solid var(--line);color:var(--dim);
border-radius:999px;padding:5px 11px;font:inherit;font-size:13px;line-height:1;cursor:pointer;
display:inline-flex;align-items:center;gap:6px}
.theme:hover{color:var(--text);border-color:var(--text)}
.theme .icon{font-size:13px}
