/* alexandrachess.com: a plain, light chess-coaching site. No framework, no build, no third-party calls. */
:root {
  --paper: #f6f2ea; --paper-2: #ece5d8; --ink: #1d1b18; --ink-2: #4a463f; --ink-3: #7a7468;
  --green: #1f5a45; --green-2: #17463a; --line: rgba(29,27,24,.12);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 clamp(18px, 5vw, 48px); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5.6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 24px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 36em; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(246,242,234,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font: 20px var(--serif); color: var(--ink); text-decoration: none; }
.knight { color: var(--green); }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--ink); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 6px; background: var(--green); color: #fff; font-weight: 600; text-decoration: none; transition: background .2s; }
.btn:hover { background: var(--green-2); }
nav .btn { color: #fff; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn.line { background: none; color: var(--ink); border: 1px solid var(--ink-3); }
.btn.line:hover { border-color: var(--ink); }

/* hero, with a faint board behind it */
.hero { padding: clamp(40px, 8vw, 96px) 0; background:
  repeating-conic-gradient(rgba(31,90,69,.045) 0 25%, transparent 0 50%) 0 0 / 88px 88px; }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.kicker { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.proof { font-size: 14px; color: var(--ink-3); }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border-radius: 10px; box-shadow: 0 24px 60px rgba(29,27,24,.18); aspect-ratio: 4 / 5; object-fit: cover; }

/* sections */
.band, .steps-band, .book { padding: clamp(56px, 8vw, 96px) 0; }
.steps-band { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 12px; }
.card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.card p { margin: 0; color: var(--ink-2); }
.piece { display: block; font-size: 40px; line-height: 1; margin-bottom: 14px; color: var(--green); }
.note { margin-top: 22px; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 12px 0 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; color: var(--ink-2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 50%; background: var(--green); color: #fff; font: 18px var(--serif); }
.steps strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
/* about: a short wiki, with its fact box */
.wiki-in { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }
.wiki-body p { color: var(--ink-2); max-width: 40em; }
.wiki-body h3 { margin: 30px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 22px; }
.wiki-lead { font-size: 19px; }
.wiki-body q { font-style: italic; }
.press { margin: 0; padding-left: 20px; color: var(--ink-2); }
.press li { margin: 0 0 8px; }
.infobox { position: sticky; top: 84px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.infobox img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.infobox h3 { margin: 14px 0 10px; text-align: center; font-size: 22px; }
.infobox dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0 0 16px; }
.infobox dt { color: var(--ink-3); }
.infobox dd { margin: 0; }
.social { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.social a { display: block; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-decoration: none; text-align: center; }
.social a:hover { border-color: var(--green); color: var(--green); }
.book { background: var(--green); color: #fff; text-align: center; }
.book .lead { color: rgba(255,255,255,.85); margin: 0 auto 28px; }
.book .btn { background: #fff; color: var(--green); }
.book .btn:hover { background: var(--paper); }
.small-print { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.7); }
.foot { padding: 28px 0; font-size: 14px; color: var(--ink-3); }

@media (max-width: 820px) {
  .hero-in, .wiki-in { grid-template-columns: 1fr; }
  .infobox { position: static; max-width: 420px; }
  .infobox img { display: none; }
  .hero-photo { max-width: 360px; }
  .cards, .steps { grid-template-columns: 1fr; }
  nav a:not(.btn) { display: none; }
}
