/* Urali Chess Academy demo site. System fonts only (no font files). */
:root {
  --teal: #123c3a; --teal-2: #1d5552; --amber: #c8892b; --amber-2: #e2a94b; --cream: #faf6ee; --paper: #ffffff;
  --ink: #1f2a29; --ink-2: #5c6b69; --line: #e7dfcf; --ok: #2f7d4f; --radius: 14px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--teal-2); }
h1, h2, h3 { font-family: var(--serif); color: var(--teal); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* Header */
.top { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand b { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .01em; }
.brand small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-2); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { color: #e6efee; text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 13px; border-radius: 999px; }
nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
nav a.on { background: var(--amber); color: #1b1305; }
@media (max-width: 760px) { .top .wrap { height: auto; padding: 10px 16px; flex-direction: column; align-items: flex-start; } nav a { padding: 6px 10px; font-size: 13.5px; } }

/* Demo ribbon */
.ribbon { background: #fff5df; border-bottom: 1px solid var(--line); color: #6b4a14; font-size: 13.5px; }
.ribbon .wrap { padding: 8px 22px; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(200,137,43,.22), transparent 60%), linear-gradient(160deg, var(--teal) 0%, #0c2928 100%); color: #eef5f4; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 72px 22px 80px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 19px; color: #cfe0de; max-width: 34em; }
.hero .art { aspect-ratio: 1; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.35); background: conic-gradient(#a87b52 25%, #efe3cc 0 50%, #a87b52 0 75%, #efe3cc 0) 0 0 / 25% 25%; position: relative; }
.hero .art span { position: absolute; font-size: clamp(50px, 9vw, 104px); line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.35)); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding: 48px 22px; } .hero .art { max-width: 360px; } }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; text-decoration: none;
  padding: 12px 22px; border-radius: 999px; background: var(--amber); color: #1b1305; transition: transform .08s, background .15s, box-shadow .15s; box-shadow: 0 6px 18px rgba(200,137,43,.3); }
.btn:hover { background: var(--amber-2); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn.ghost:hover { background: rgba(255,255,255,.1); }
.btn.teal { background: var(--teal); color: #fff; box-shadow: 0 6px 18px rgba(18,60,58,.25); }
.btn.teal:hover { background: var(--teal-2); }
.btn.small { padding: 8px 16px; font-size: 14px; box-shadow: none; }
.btn:disabled { opacity: .5; cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Sections and cards */
section { padding: 64px 0; }
section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card.link { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; display: block; }
.card.link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,60,58,.12); }
.card .tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--teal); background: #e3efee; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* Page header */
.pagehead { background: linear-gradient(160deg, var(--teal), #0c2928); color: #d7e6e4; padding: 44px 0 40px; }
.pagehead h1 { color: #fff; font-size: clamp(30px, 4vw, 42px); }
.pagehead .lead { max-width: 46em; font-size: 17px; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; background: var(--amber); color: #1b1305; border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; }

/* Forms and panels */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
select, input[type=number], input[type=text] { font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid #d8cfbd; background: #fff; color: var(--ink); min-width: 0; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.row > div { display: flex; flex-direction: column; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(18,60,58,.06); }
.note { background: #eef5f4; border-radius: 12px; padding: 12px 16px; color: var(--teal); font-size: 14.5px; }
.note.warn { background: #fff5df; color: #6b4a14; }
.err { color: #b42318; font-size: 14px; margin-top: 8px; }
.frame { width: 100%; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 34px rgba(18,60,58,.12); display: block; }
pre.snippet { background: #10201f; color: #d9efe9; padding: 16px 18px; border-radius: 12px; overflow-x: auto; font-size: 13px; line-height: 1.5; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid #d8cfbd; background: #fff; border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer; font: inherit; }
.chip.on { background: var(--teal); color: #fff; border-color: var(--teal); }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li { background: #fbf8f2; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 14px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

footer { background: #0c2928; color: #9fb7b4; font-size: 14px; padding: 34px 0; }
footer a { color: var(--amber-2); }
