/* ============================================================
   MYTH CHESS — landing page styles
   Self-contained. No external fonts, no frameworks.
   Designed for fast loading and a quiet, board-game tone.
   ============================================================ */

:root {
  --bg:           #0b0d12;
  --bg-elev:      #11141c;
  --bg-card:      #161a24;
  --text:         #e8eaf2;
  --text-dim:     #9aa1b3;
  --text-muted:   #6a7186;
  --accent:       #c89a4a;   /* muted gold — restrained, not flashy */
  --accent-hover: #d8aa55;
  --border:       #232838;
  --shadow:       0 10px 40px rgba(0,0,0,0.45);
  --radius:       6px;
  --maxw:         1100px;
  --serif:        "Iowan Old Style", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  color: var(--text);
}
.brand-mark {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text);
}
.brand-sub {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--text-dim);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.nav-cta {
  color: var(--bg);
  background: var(--accent);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--accent-hover); color: var(--bg); }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-align: center;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg {
  padding: 18px 40px;
  font-size: 16px;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 96px 0 80px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(200, 154, 74, 0.10), transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(80, 110, 180, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 800px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 24px;
  color: var(--text);
}
.hero-sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-dim);
  margin: 0 0 36px;
  max-width: 640px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-foot {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ============ Section base ============ */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.2;
  margin: 0 0 40px;
  color: var(--text);
  letter-spacing: -0.005em;
}

/* ============ About grid ============ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.about-block h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19px;
  margin: 0 0 12px;
  color: var(--text);
}
.about-block p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ============ Mechanics ============ */
.section-mechanics {
  background: var(--bg-elev);
}
.mech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.mech-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.mech-icon {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  font-family: var(--serif);
}
.mech-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 12px;
  color: var(--text);
}
.mech-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* ============ Depth list ============ */
.depth-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}
.depth-list li {
  padding: 18px 0 18px 28px;
  border-left: 2px solid var(--border);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  transition: border-color 0.2s ease;
}
.depth-list li:hover { border-left-color: var(--accent); }
.depth-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ============ Final CTA ============ */
.section-final {
  background:
    radial-gradient(ellipse at 50% 100%, rgba(200, 154, 74, 0.10), transparent 70%),
    var(--bg);
  border-bottom: none;
  padding: 100px 0 120px;
}
.final-inner {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.final-inner .section-title {
  margin-bottom: 20px;
}
.final-sub {
  font-size: 16px;
  color: var(--text-dim);
  margin: 0 0 36px;
  line-height: 1.65;
}
.final-sub strong { color: var(--text); }

/* ============ Footer ============ */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  align-items: center;
}
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-nav a {
  color: var(--text-dim);
  font-size: 14px;
}
.footer-nav a:hover { color: var(--accent); }
.footer-meta {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .site-nav a.nav-cta { padding: 7px 14px; font-size: 13px; }

  .about-grid,
  .mech-grid {
    grid-template-columns: 1fr;
  }
  .depth-list {
    grid-template-columns: 1fr;
  }

  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
  .section-final { padding: 72px 0 80px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .header-row { height: 56px; }
  .hero-title { line-height: 1.2; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1; min-width: 0; }
}
