/* EveryChess site: one stylesheet, no build step. Colours follow the app's wooden board. */
:root {
  --bg: #f7f2ea;
  --surface: #efe5d6;
  --ink: #2b2420;
  --muted: #6b5f55;
  --accent: #6b4e31;
  --accent-ink: #ffffff;
  --line: #ddd0bd;
  --radius: 16px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1916;
    --surface: #2a241f;
    --ink: #f1e9df;
    --muted: #b6a999;
    --accent: #d9b58c;
    --accent-ink: #1d1916;
    --line: #3d342c;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

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

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 0 26px; max-width: 34em; }
.phone { justify-self: center; width: min(320px, 100%); border-radius: 28px; overflow: hidden; border: 8px solid var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,0.18); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.btn.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.soon { color: var(--muted); font-size: 15px; }

/* Sections */
section { padding: 36px 0; }
section h2 { font-size: 28px; margin: 0 0 18px; letter-spacing: -0.01em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.showcase.flip > :first-child { order: 2; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.variants { columns: 3 220px; column-gap: 28px; padding-left: 1.1em; margin: 0; }
.variants li { break-inside: avoid; margin: 0 0 4px; }

/* Legal pages */
.doc { padding: 40px 0 60px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; margin: 30px 0 8px; }
.doc p, .doc li { color: var(--ink); }
.summary { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between; }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .top nav .wide { display: none; } /* keep just Privacy and Terms in the phone header */
}
@media (max-width: 820px) {
  .hero .wrap, .showcase { grid-template-columns: 1fr; }
  .showcase.flip > :first-child { order: 0; }
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}
