@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --ink: #1a1714;
  --ink-soft: #4a4642;
  --ink-muted: #8a837c;
  --paper: #faf9f7;
  --paper-warm: #f3f1ec;
  --accent: #c8602a;
  --accent-light: #f0d9cc;
  --accent-dark: #8f3f18;
  --rule: #e0dbd4;
  --sidebar-w: 240px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ── */
.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--paper-warm);
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 10;
  padding: 2rem 0;
}

.sidebar-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.5rem 2rem;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
}

.sidebar-logo img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  opacity: 0.75;
  filter: invert(35%) sepia(40%) saturate(800%) hue-rotate(340deg) brightness(80%);
}

.sidebar-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.sidebar-logo-text span { color: var(--accent); }

.sidebar-tagline {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

nav.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.nav-item {
  display: block;
  padding: 0.6rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
  border-left: 2px solid transparent;
  transition: all 0.15s;
}

.nav-item:hover {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}

.nav-item.active {
  color: var(--accent);
  font-weight: 500;
  border-left-color: var(--accent);
  background: var(--accent-light);
}

/* Games dropdown */
.nav-games-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  user-select: none;
}

.nav-games-toggle:hover,
.nav-games-toggle.active {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}

.nav-games-toggle.active { font-weight: 500; }

.nav-games-arrow {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.nav-games-toggle.open .nav-games-arrow {
  transform: rotate(180deg);
}

.nav-games-children {
  display: none;
  flex-direction: column;
  background: rgba(200,96,42,0.04);
}

.nav-games-children.open { display: flex; }

.nav-games-children .nav-item {
  padding-left: 2.75rem;
  font-size: 0.825rem;
  color: var(--ink-muted);
}

.nav-games-children .nav-item:hover,
.nav-games-children .nav-item.active {
  color: var(--accent);
}

.sidebar-footer {
  padding: 1.5rem 1.75rem 0;
  border-top: 1px solid var(--rule);
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.6;
}

/* ── MAIN CONTENT ── */
.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
}

/* ── PAGE SECTIONS ── */
.page-hero {
  padding: 5rem 4rem 4rem;
  border-bottom: 1px solid var(--rule);
}

.page-body {
  padding: 4rem;
}

.section {
  padding: 4rem;
  border-bottom: 1px solid var(--rule);
}

.section:last-child { border-bottom: none; }

.container { max-width: 760px; }
.container-wide { max-width: 960px; }

/* ── TYPOGRAPHY ── */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.page-title em { font-style: italic; color: var(--accent); }

.page-intro {
  font-size: 1.1rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 600px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1rem;
}

.body-text {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.8;
  max-width: 640px;
}

.body-text + .body-text { margin-top: 1rem; }

.rule-accent {
  width: 2.5rem;
  height: 2px;
  background: var(--accent);
  margin: 1.5rem 0;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-ghost:hover { border-color: var(--ink-soft); }

/* ── CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5px;
  background: var(--rule);
  border: 1.5px solid var(--rule);
  margin-top: 2.5rem;
}

.card {
  background: var(--paper);
  padding: 1.75rem;
}

.card-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.65;
}

/* ── LESSONS ── */
.lesson {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.lesson:last-child { border-bottom: 1px solid var(--rule); }

.lesson-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lesson-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lesson-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.lesson-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.lesson-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 580px;
}

.lesson-hook {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ── TESTIMONIALS ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  padding: 1.75rem;
  position: relative;
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

.testimonial-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4rem;
  line-height: 1;
  color: var(--accent-light);
  position: absolute;
  top: 0.75rem;
  right: 1.25rem;
}

.testimonial-author {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
}

.testimonial-role {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin-top: 0.1rem;
}

/* ── CONTACT ── */
.contact-line {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-line:first-child { border-top: 1px solid var(--rule); }

.contact-key {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.contact-val {
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-val a { color: var(--accent); text-decoration: none; }
.contact-val a:hover { text-decoration: underline; }

/* ── GAME EMBED ── */
.game-frame-wrapper {
  border: 1px solid var(--rule);
  background: var(--paper);
  margin-top: 2rem;
}

.game-frame-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-warm);
}

.game-frame-title {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.game-frame-tag {
  font-size: 0.72rem;
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
  font-weight: 500;
}

.game-frame-wrapper iframe {
  width: 100%;
  height: 640px;
  border: none;
  display: block;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { opacity: 0; animation: fadeUp 0.65s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .page-hero, .page-body, .section { padding: 2.5rem 1.5rem; }
}
