:root {
  color-scheme: dark;
  --bg: #111211;
  --surface: #191b19;
  --surface-2: #20231f;
  --text: #ecece5;
  --muted: #a7aaa1;
  --line: #30332e;
  --accent: #c8a96b;
  --accent-2: #9d8bc5;
  --pebol: #9b9a91;
  --pebol-shadow: #77766f;
  --max: 1120px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1eee6;
  --surface: #faf8f2;
  --surface-2: #e8e3d8;
  --text: #20211e;
  --muted: #676a62;
  --line: #d8d2c5;
  --accent: #896c32;
  --accent-2: #6f5c9a;
  --pebol: #aaa79d;
  --pebol-shadow: #8c8981;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.025) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.018) 0 1px, transparent 1.5px),
    var(--bg);
  background-size: 37px 41px, 53px 47px, auto;
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }
.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.55rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -.04em;
  margin-right: auto;
}
.brand span, .footer-brand span { color: var(--accent); }
nav { display: flex; gap: 24px; }
nav a, .text-link {
  color: var(--muted);
  text-decoration: none;
}
nav a:hover, .text-link:hover { color: var(--text); }

.controls { display: flex; gap: 8px; }
.controls button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  min-width: 38px;
  height: 36px;
  cursor: pointer;
}
main { overflow: hidden; }

.hero {
  width: min(calc(100% - 40px), var(--max));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 70px;
}
.hero-copy { max-width: 590px; }
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 750;
  color: var(--accent);
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -.035em; }
h1 { font-size: clamp(3.5rem, 8vw, 6.5rem); margin: 0 0 20px; }
h1 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 12px; }
h3 { font-size: 1.2rem; margin: 12px 0 8px; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 540px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-block;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  background: var(--surface);
}
.button.primary { background: var(--accent); color: #17150f; border-color: var(--accent); }

.pebol-wrap { position: relative; min-height: 360px; display: grid; place-items: center; }
.pebol {
  width: 270px;
  height: 155px;
  background: var(--pebol);
  border-radius: 52% 48% 45% 55% / 55% 52% 48% 45%;
  transform: rotate(-5deg);
  box-shadow: inset -18px -12px 0 rgba(0,0,0,.12), 0 28px 45px rgba(0,0,0,.22);
  position: relative;
}
.eye {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--text);
  position: absolute;
  top: 44px;
}
.eye::after {
  content: "";
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #151613;
  position: absolute;
  left: 13px; top: 14px;
}
.pebol .left { left: 66px; }
.pebol .right { right: 66px; }
.mouth {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  font-size: 28px;
  color: #272822;
  line-height: 1;
}
.thought {
  position: absolute;
  right: 0;
  top: 18px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 15px 40px rgba(0,0,0,.16);
  color: var(--muted);
  font-size: .95rem;
}
.thought span { display: block; font-size: 1.3rem; margin-bottom: 5px; }

.section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 105px 0;
  border-top: 1px solid var(--line);
}
.section-heading { max-width: 650px; margin-bottom: 34px; }
.section-heading > p:last-child, .about > p:last-child { color: var(--muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 25px;
  transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: #4b4e47; }
.card-icon { font-size: 1.6rem; }
.card p { color: var(--muted); min-height: 75px; }
.card a { color: var(--accent); text-decoration: none; font-weight: 650; }

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}
.quote {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  max-width: 700px;
  color: var(--text);
}
.stone-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 25px;
}
.mini-pebol {
  width: 105px; height: 60px;
  background: var(--pebol);
  border-radius: 50%;
  position: relative;
  margin-bottom: 22px;
}
.mini-pebol .eye { width: 18px; height: 18px; top: 17px; }
.mini-pebol .eye::after { width: 6px; height: 6px; left: 6px; top: 6px; }
.mini-pebol .eye:first-child { left: 26px; }
.mini-pebol .eye:nth-child(2) { right: 26px; }
.mini-pebol .mouth { bottom: 11px; font-size: 14px; }
.stone-note p { margin-bottom: 8px; }
.stone-note small { color: var(--muted); }

.game-preview {
  padding: 50px;
  border: 1px dashed var(--line);
  border-radius: 24px;
  text-align: center;
  background: var(--surface);
}
.pebble-row { font-size: 2rem; letter-spacing: 6px; }
.game-preview p { color: var(--muted); }

.about { max-width: 800px; margin-left: max(20px, calc((100% - var(--max)) / 2)); }
.about > p:last-child { font-size: 1.15rem; }

footer {
  border-top: 1px solid var(--line);
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 50px 0 70px;
  color: var(--muted);
}
.footer-brand { font-weight: 750; color: var(--text); font-size: 1.4rem; }
footer p { margin: 6px 0; }
footer a { color: inherit; }

@media (max-width: 800px) {
  .site-header { flex-wrap: wrap; padding: 15px 0; gap: 12px; }
  nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 5px; }
  .hero, .split { grid-template-columns: 1fr; gap: 35px; }
  .hero { padding: 70px 0; min-height: auto; }
  .pebol-wrap { order: -1; min-height: 290px; }
  .thought { right: 4%; top: 0; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 75px 0; }
}
