/* Chessosaurus website. System fonts only and no outside requests: nothing is loaded from other sites. */
:root {
  --orange: #d2541e;
  --orange-dark: #a83f12;
  --green: #2e5a1e;
  --green-mid: #4f7d33;
  --leaf: #8db65a;
  --cream: #f6f1e3;
  --paper: #fffdf7;
  --sky: #bfe3f4;
  --ink: #2a2118;
  --muted: #5d5246;
  --line: #e2d8c3;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(46, 90, 30, .14);
  --font: "Segoe UI Rounded", "SF Pro Rounded", ui-rounded, "Nunito", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 14px; z-index: 10; }

/* Header */
.site-head {
  background: var(--green);
  color: #fff;
  position: sticky; top: 0; z-index: 5;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 22px; letter-spacing: .2px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand:hover { color: #fff; }
nav.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
nav.main-nav a {
  display: block; color: #fff; text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 8px 14px; border-radius: 999px;
}
nav.main-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
nav.main-nav a[aria-current="page"] { background: var(--orange); }

/* Hero */
.hero {
  background:
    radial-gradient(1200px 400px at 50% 110%, var(--leaf) 0 40%, transparent 41%),
    linear-gradient(180deg, var(--sky), #e6f4ec 70%, var(--cream));
  padding: 56px 0 72px;
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.05; margin: 0 0 8px; color: var(--green); font-weight: 900; }
.tagline { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: var(--orange-dark); margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--muted); max-width: 40ch; margin: 0 0 24px; }
.hero-art { justify-self: center; position: relative; }
.hero-art img { width: min(380px, 80vw); border-radius: 48px; box-shadow: var(--shadow); transform: rotate(-3deg); }
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 18px; font-weight: 700; font-size: 16px;
}
.soon small { display: block; font-weight: 500; opacity: .8; font-size: 12px; line-height: 1.2; }
.pill {
  display: inline-block; background: var(--paper); border: 2px solid var(--green-mid); color: var(--green);
  border-radius: 999px; padding: 6px 14px; font-weight: 800; font-size: 15px;
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--paper); border-block: 1px solid var(--line); }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; color: var(--green); margin: 0 0 12px; font-weight: 900; }
h3 { font-size: 21px; margin: 0 0 6px; color: var(--ink); }
.intro { color: var(--muted); max-width: 60ch; margin: 0 0 28px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 4px 0 var(--line);
}
section.alt .card { background: var(--cream); }
.card .emoji { font-size: 34px; line-height: 1; margin-bottom: 10px; display: block; }
.card p { margin: 0; color: var(--muted); font-size: 17px; }

/* Screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 240px); gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 26px; border: 6px solid var(--ink); box-shadow: var(--shadow); background: #000; }
.shots figcaption { text-align: center; font-weight: 700; color: var(--muted); font-size: 15px; margin-top: 10px; }

/* Ladder */
.ladder { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; counter-reset: rung; }
.ladder li {
  counter-increment: rung; background: var(--paper); border: 2px solid var(--line); border-radius: 999px;
  padding: 8px 16px 8px 8px; font-weight: 800; display: flex; align-items: center; gap: 10px;
}
.ladder li::before {
  content: counter(rung); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--orange); color: #fff; font-size: 15px;
}

/* Promise */
.promise {
  background: var(--green); color: #fff; border-radius: 32px; padding: 36px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
}
.promise h2 { color: #fff; }
.promise p { color: #e8f0e1; margin: 0 0 18px; }
.promise ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.promise li { background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 10px 14px; font-weight: 700; }
.promise li::before { content: "✓"; color: #ffd36a; margin-right: 10px; font-weight: 900; }
.btn {
  display: inline-block; background: var(--orange); color: #fff; text-decoration: none; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 4px 0 var(--orange-dark);
}
.btn:hover { color: #fff; background: var(--orange-dark); }
.btn.light { background: #fff; color: var(--green); box-shadow: 0 4px 0 #cfd9c6; }
.btn.light:hover { color: var(--green); background: #f1f6ec; }

/* Text pages */
.page-head { background: linear-gradient(180deg, var(--sky), var(--cream)); padding: 48px 0 28px; }
.page-head h1 { font-size: clamp(34px, 5vw, 50px); color: var(--green); margin: 0 0 8px; font-weight: 900; line-height: 1.1; }
.page-head p { margin: 0; color: var(--muted); font-size: 19px; max-width: 60ch; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose h3 { margin-top: 26px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.note {
  background: var(--paper); border: 2px solid var(--line); border-left: 8px solid var(--orange);
  border-radius: 16px; padding: 16px 20px; margin: 20px 0;
}
.toc { background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 16px 22px; margin: 0 0 8px; }
.toc ol { margin: 6px 0 0; padding-left: 22px; }
.toc a { color: var(--orange-dark); font-weight: 700; }
table { border-collapse: collapse; width: 100%; margin: 16px 0; background: var(--paper); border-radius: 12px; overflow: hidden; font-size: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eef3e6; color: var(--green); }
details { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; margin-bottom: 12px; }
summary { font-weight: 800; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-foot { background: var(--ink); color: #d9cfbf; padding: 36px 0; font-size: 16px; margin-top: 40px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-foot a { color: #ffd36a; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap, .promise { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; text-align: center; }
  .lead { margin-inline: auto; }
  .badges { justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .site-head .wrap { justify-content: center; }
  nav.main-nav a { padding: 6px 10px; font-size: 15px; }
  .promise { padding: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: bob 5s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-10px); } }
}
