/* Pawn Island Academy — redesign v2 core.
   Modernized production design system: production tokens, motion and glass
   removed, one gold (#FFD700), Georgia display / system sans, 8px radius,
   1120px container. Composed into every per-page bundle (Sprint 12 keeps
   exactly one bundle-*.css per page); page-specific sections follow. */
:root {
  --black: #141414;
  --panel: #202020;
  --panel-2: #292929;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #ffd700;
  --white: #ffffff;
  --body: #e9e9e9;
  --muted: rgba(255, 255, 255, 0.76);
  --faint: rgba(255, 255, 255, 0.55);
  --radius: 8px;
  --container: 1120px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  /* Legacy token aliases (production --pia-* / scheduler names) */
  --pia-black: var(--black);
  --pia-panel: var(--panel);
  --pia-panel-strong: var(--panel-2);
  --pia-line: var(--line);
  --pia-gold: var(--gold);
  --pia-white: var(--white);
  --pia-muted: var(--muted);
  --pia-radius: var(--radius);
  --pia-container: var(--container);
  --pia-font-body: var(--font-body);
  --pia-font-display: var(--font-display);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--body); font-family: var(--font-body); font-size: 16.5px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--gold); }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; fill: currentColor; flex: none; }

/* Skip link */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold); color: var(--black); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: var(--radius); text-decoration: none; transition: top 0.15s ease; }
.skip-link:focus { top: 12px; color: var(--black); }

/* Header (shell partial: partials/navbar.html) */
.chess-navbar { background: var(--black); border-bottom: 1px solid var(--line); position: relative; z-index: 40; }
.chess-navbar.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.navbar-container { display: flex; align-items: center; gap: 28px; max-width: var(--container); margin: 0 auto; padding: 14px 24px; }
.brand-section { flex: none; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand-logo { display: grid; place-items: center; width: 38px; height: 38px; background: var(--gold); border-radius: var(--radius); overflow: hidden; flex: none; }
.brand-img { width: 31px; height: 31px; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; white-space: nowrap; color: var(--white); }
.nav-links { display: flex; gap: 30px; margin-left: auto; align-items: center; }
.nav-link { color: var(--body); text-decoration: none; font-size: 11.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.nav-link:hover { color: var(--gold); }
.nav-link.is-current, .nav-link[aria-current="page"] { color: var(--gold); }
.nav-book { background: var(--gold); color: var(--black); font-size: 12px; font-weight: 700; letter-spacing: 0.18em; padding: 11px 20px; border-radius: var(--radius); border: 1px solid transparent; white-space: nowrap; }
.nav-book:hover { color: var(--black); background: #ffe14d; }
.nav-book.is-current, .nav-book[aria-current="page"] { color: var(--black); box-shadow: inset 0 0 0 2px var(--black); }
.mobile-menu-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 11px; cursor: pointer; }
.hamburger { display: grid; gap: 5px; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); }
.mobile-menu-toggle.active .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-toggle.active .hamburger span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-overlay { display: none; border-top: 1px solid var(--line); background: var(--panel); }
.mobile-menu-overlay.active { display: block; }
.mobile-menu { max-width: var(--container); margin: 0 auto; padding: 18px 24px 26px; }
.mobile-menu-header { margin-bottom: 10px; }
.mobile-brand { display: flex; align-items: center; gap: 10px; }
.mobile-logo { width: 30px; height: 30px; object-fit: contain; background: var(--gold); border-radius: 6px; padding: 3px; }
.mobile-brand-text { font-family: var(--font-display); font-weight: 700; color: var(--white); font-size: 17px; }
.mobile-nav-links { display: grid; }
.mobile-nav-link { color: var(--body); text-decoration: none; font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover, .mobile-nav-link.is-current, .mobile-nav-link[aria-current="page"] { color: var(--gold); }
.mobile-book { color: var(--gold); }
body.has-open-menu { overflow: hidden; }

/* Buttons & type */
.btn { white-space: nowrap; display: inline-block; text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; padding: 15px 26px; border-radius: var(--radius); border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #ffe14d; color: var(--black); }
.btn-outline { border-color: rgba(255, 255, 255, 0.35); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-black { background: var(--black); color: var(--gold); }
.btn-black:hover { color: #ffe14d; }
.btn-sm { padding: 11px 20px; }
.text-link { color: var(--muted); font-size: 14.5px; }
.text-link:hover { color: var(--gold); }
.kicker { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; margin-bottom: 18px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--white); line-height: 1.15; font-weight: 700; }
h1 { font-size: 58px; }
h2 { font-size: 38px; margin-bottom: 16px; }
h3 { font-size: 23px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.55; }
.section { padding: 76px 0; border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }
.section-head .kicker { margin-bottom: 14px; }

/* Hero */
.hero { padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 56px; align-items: center; }
.hero-actions { display: flex; gap: 16px; align-items: center; margin-top: 36px; flex-wrap: wrap; }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; top: -24px; right: -24px; width: 55%; height: 55%; background: repeating-conic-gradient(var(--panel-2) 0% 25%, #1e1e1e 0% 50%) 0 0 / 94px 94px; z-index: 0; }
.hero-photo img { position: relative; border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: 440px; object-fit: cover; }
.hero-simple { max-width: 760px; }
.badge-line { display: inline-block; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 6px 16px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; margin-bottom: 22px; }

/* Stats */
.stats-band { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: repeat(3, 1fr); padding: 34px 48px; margin-top: 56px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 44px; }
.stat-num { font-family: var(--font-display); font-size: 44px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.stat-label { color: var(--faint); font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-top: 8px; }

/* Layout helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: start; }

/* Cards & panels */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .card-link { margin-top: auto; padding-top: 26px; }
.card-link a { color: var(--gold); text-decoration: none; font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.card-link a:hover { text-decoration: underline; }
.tag { color: var(--gold); font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 14px; }
.card ul, .list-panel ul { list-style: none; margin-top: 14px; }
.card ul li, .list-panel ul li { color: var(--muted); font-size: 15px; padding: 5px 0 5px 20px; position: relative; }
.card ul li::before, .list-panel ul li::before { content: "—"; color: var(--gold); position: absolute; left: 0; }
.list-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.prose p { color: var(--muted); margin-bottom: 18px; max-width: 68ch; }
.prose p strong, .prose h3 { color: var(--white); }

/* Quote */
.quote-panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 36px; }
.quote-panel blockquote { font-family: var(--font-display); font-style: italic; font-size: 22.5px; line-height: 1.45; color: #f5f5f5; }
.quote-rule { width: 48px; height: 2px; background: var(--gold); margin: 28px 0 14px; }
.quote-attr { color: var(--gold); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }

/* Steps */
.step-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--gold); margin-bottom: 10px; }
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Train rows (coaching) */
.train-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; padding: 34px 0; border-bottom: 1px solid var(--line); }
.train-row:last-child { border-bottom: none; }
.train-row img { border-radius: var(--radius); border: 1px solid var(--line); width: 100%; height: 240px; object-fit: cover; }
.train-row p { color: var(--muted); margin: 10px 0 16px; }

/* Approach list */
.approach-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.approach-item:last-child { border-bottom: none; }
.approach-item h3 { font-size: 20px; margin-bottom: 6px; }
.approach-item p { color: var(--muted); font-size: 15.5px; }

/* Testimonials (static cards) */
.testimonial .result { font-family: var(--font-display); color: var(--gold); font-size: 19px; margin-bottom: 12px; }
.testimonial blockquote { color: var(--body); font-size: 16px; line-height: 1.6; margin-bottom: 20px; }
.testimonial .who { display: flex; gap: 14px; align-items: center; margin-top: auto; }
.testimonial .who img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.who-name { color: var(--white); font-weight: 600; font-size: 15px; }
.who-role { color: var(--faint); font-size: 13px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item h3 { font-size: 20px; margin-bottom: 8px; }
.faq-item p { color: var(--muted); max-width: 72ch; }

/* Timeline (about) */
.timeline-item { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.timeline-item:last-child { border-bottom: none; }
.timeline-when { color: var(--gold); font-family: var(--font-display); font-size: 19px; }
.timeline-item p { color: var(--muted); margin-top: 6px; }

/* CTA band */
.cta-band { background: var(--gold); border-radius: var(--radius); padding: 52px 48px; margin: 76px 0; }
.cta-band h2 { color: var(--black); margin-bottom: 12px; }
.cta-band p { color: #2e2e2e; font-size: 17px; max-width: 62ch; margin-bottom: 30px; }
.cta-band .kicker { color: var(--black); opacity: 0.65; }
.cta-center { text-align: center; }
.cta-center p { margin-left: auto; margin-right: auto; }

/* Footer (shell partial: partials/footer.html) */
.chess-footer { padding: 64px 0 40px; }
.footer-container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr; gap: 48px; }
.footer-brand { font-family: var(--font-display); font-size: 21px; font-weight: 700; color: var(--white); }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--gold); margin: 8px 0 16px; }
.footer-contact { color: var(--muted); font-size: 14.5px; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--gold); }
.footer-col h4 { color: var(--gold); font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); }
.footer-link { display: block; color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 4px 0; }
.footer-link:hover, .footer-link.is-current, .footer-link[aria-current="page"] { color: var(--gold); }
.footer-copyright { color: var(--faint); font-size: 12px; margin-top: 48px; }
.footer-copyright p { margin: 0; }

/* 404 */
.notfound { text-align: center; padding: 110px 0; }
.notfound .pieces { font-size: 30px; letter-spacing: 0.4em; color: var(--gold); margin: 34px 0 10px; }

/* Back to top (created by site-core.js) */
.site-back-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 215, 0, 0.45); background: var(--panel); color: var(--gold); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
.site-back-to-top svg { width: 20px; height: 20px; }
.site-back-to-top.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 960px) {
  h1 { font-size: 42px; }
  h2 { font-size: 31px; }
  .hero-grid, .split, .grid-2, .train-row, .timeline-item { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; gap: 26px; padding: 30px; }
  .stat + .stat { border-left: none; padding-left: 0; }
  .nav-links { display: none; }
  .mobile-menu-toggle { display: block; }
  .navbar-container { gap: 12px; padding: 12px 16px; }
  .brand-name { font-size: 16.5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo img { height: 320px; }
  .cta-band { padding: 38px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
