@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

/* =====================================================
   TOKENS
   ===================================================== */
:root {
  --ink: #1a1a1a;
  --mid: #4a4a4a;
  --paper: #fafaf8;
  --paper-dark: #f0efe9;
  --accent: #1a1a1a;
  --accent-light: #4a4a4a;
  --white: #ffffff;
  --radius: 10px;
  --col-max: 1200px;
  --content-max: 760px;
  --font-head: 'Poiret One', 'Didact Gothic', serif;
  --font-body: 'Didact Gothic', system-ui, -apple-system, sans-serif;
  --grain-opacity: 0.045;
  --nav-h: 56px;
}

/* =====================================================
   RESET / BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px;
  line-height: 1.65;
  scroll-behavior: smooth;
  background: var(--paper);
  color: var(--ink);
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  mix-blend-mode: multiply;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--mid); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

/* Heading span decoration (structure lottery) */
h2 > span, h3 > span {
  display: inline;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 1px;
}

/* =====================================================
   PAGE WRAP
   ===================================================== */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  height: var(--nav-h);
  border-top: 2px solid var(--mid);
  box-shadow: 0 -2px 12px rgba(26,26,26,0.18);
}

.header-brand {
  flex-shrink: 0;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--paper);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 2px 5px;
}

.brand-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}

/* Nav — details > summary + menu > li > a */
.site-nav {
  flex: 1;
  min-width: 0;
}

.nav-details {
  position: relative;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(250,250,248,0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  list-style: none;
  min-height: 40px;
  user-select: none;
}

.nav-toggle::-webkit-details-marker { display: none; }
.nav-toggle::marker { display: none; }

.nav-details[open] .nav-toggle {
  background: var(--mid);
}

.nav-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: var(--ink);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  min-width: 280px;
  max-width: 95vw;
  padding: 0.5rem 0;
  list-style: none;
  box-shadow: 0 -4px 24px rgba(26,26,26,0.35);
  z-index: 210;
}

.nav-menu li {
  margin: 0;
  padding: 0;
}

.nav-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: background 0.1s;
}

.nav-menu li a:hover {
  background: var(--mid);
  color: var(--paper);
}

/* Header CTAs */
.header-ctas {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

/* =====================================================
   CTA BUTTONS
   ===================================================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  text-decoration: none;
  border-radius: 3px;
  padding: 0.5rem 1rem;
  min-height: 40px;
  cursor: pointer;
  text-transform: uppercase;
  transition: none;
  white-space: nowrap;
}

.cta-signup {
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--paper);
}

.cta-signup:hover {
  background: var(--paper-dark);
  color: var(--ink);
}

.cta-login {
  background: transparent;
  color: var(--paper);
  border: 2px solid var(--paper);
}

.cta-login:hover {
  background: rgba(250,250,248,0.12);
  color: var(--paper);
}

/* Dark context CTAs (in content / aside) */
.aside-cta.cta-signup,
.compare-bottom-ctas .cta-signup {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  width: 100%;
  margin-top: 0.5rem;
}

/* =====================================================
   MAIN CONTENT SPACING
   ===================================================== */
.site-main {
  flex: 1;
  padding-bottom: calc(var(--nav-h) + 2rem);
}

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
  padding: 0.75rem 1.5rem;
  font-size: 0.82rem;
  color: var(--mid);
  max-width: var(--col-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.breadcrumb a { color: var(--mid); }
.breadcrumb a:hover { color: var(--ink); }

/* =====================================================
   HERO — HOME
   ===================================================== */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  background: var(--paper);
  padding: 3rem 1.5rem 0;
}

.hero-bg-numeral {
  position: absolute;
  top: 0;
  right: -0.1em;
  font-family: var(--font-head);
  font-size: clamp(8rem, 25vw, 22rem);
  line-height: 0.85;
  color: var(--paper-dark);
  pointer-events: none;
  user-select: none;
  z-index: 0;
  letter-spacing: -0.04em;
  opacity: 0.65;
}

.hero-copy {
  position: relative;
  z-index: 1;
  text-align: right;
  max-width: var(--col-max);
  margin: 0 auto;
  width: 100%;
  padding: 2rem 0 1.5rem;
}

.hero-h1 {
  font-family: var(--font-head);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 55ch;
  margin-left: auto;
  margin-bottom: 1.5rem;
}

.hero-figure {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 38vh;
  overflow: hidden;
  margin-top: 1rem;
}

.hero-figure .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%) contrast(1.05);
}

.hero-figure--placeholder {
  min-height: 120px;
  background: var(--paper-dark);
  border-top: 2px solid var(--ink);
}

/* =====================================================
   RANKING / REVIEW / COMPARE / FAQ / DATA HEROES
   ===================================================== */
.ranking-hero,
.review-hero,
.compare-hero,
.faq-hero,
.data-hero,
.about-hero,
.privacy-hero {
  position: relative;
  padding: 2.5rem 1.5rem 1.5rem;
  max-width: var(--col-max);
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.ranking-hero-copy,
.review-hero-copy,
.compare-hero-copy,
.faq-hero-copy,
.data-hero-copy {
  position: relative;
  z-index: 1;
}

.ranking-hero .hero-bg-numeral,
.compare-hero .hero-bg-numeral,
.faq-hero .hero-bg-numeral,
.data-hero .hero-bg-numeral {
  right: auto;
  left: -0.1em;
  font-size: clamp(6rem, 18vw, 16rem);
  opacity: 0.07;
}

.ranking-hero-figure,
.review-hero-figure,
.compare-hero-figure,
.data-hero-figure {
  margin-top: 1rem;
  border-top: 2px solid var(--ink);
  overflow: hidden;
  max-height: 300px;
}

.ranking-hero-figure .hero-img,
.review-hero-figure .hero-img,
.compare-hero-figure .hero-img,
.data-hero-figure .hero-img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.06);
}

/* =====================================================
   EYEBROW LABELS
   ===================================================== */
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
}

/* =====================================================
   BYLINE
   ===================================================== */
.byline {
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

/* =====================================================
   STAGE LABELS
   ===================================================== */
.stage-label {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
  background: var(--paper-dark);
  color: var(--mid);
  border: 1px solid var(--mid);
}

/* =====================================================
   CONTENT LAYOUT — BODY + ASIDE
   ===================================================== */
.content-section {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  width: 100%;
}

.layout-with-aside {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2.5rem;
  align-items: start;
}

.content-body {
  min-width: 0;
}

/* =====================================================
   ASIDE (right column)
   ===================================================== */
.content-aside {
  position: sticky;
  top: 1.5rem;
  min-width: 0;
}

.aside-inner {
  background: var(--paper-dark);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.25rem;
  /* slight rotation for raw feel */
  transform: rotate(0.4deg);
}

.aside-inner h3 {
  margin-bottom: 0.65rem;
  font-size: 1rem;
}

.aside-links {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
}

.aside-links li { margin-bottom: 0.3rem; }

.aside-links a {
  font-size: 0.88rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0;
  min-height: 32px;
}

.aside-links a::before {
  content: '›';
  opacity: 0.45;
}

.aside-links a:hover { color: var(--mid); }

.aside-cta-block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--mid);
}

.aside-cta-block p {
  font-size: 0.82rem;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

/* =====================================================
   RANK ASIDE
   ===================================================== */
.rank-aside,
.rank-table-aside {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky;
  top: 1.5rem;
  transform: rotate(-0.3deg);
}

.rank-aside h3,
.rank-table-aside h3 {
  color: var(--paper);
  margin-bottom: 0.75rem;
}

.rank-aside h3 > span,
.rank-table-aside h3 > span {
  border-bottom-color: var(--paper);
}

.rank-aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: rank;
}

.rank-aside-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(250,250,248,0.12);
  font-size: 0.88rem;
}

.rank-aside-list li:last-child { border-bottom: none; }

.rank-num {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: rgba(250,250,248,0.4);
  min-width: 1.8rem;
  flex-shrink: 0;
  line-height: 1;
}

/* =====================================================
   PAGE CONTENT
   ===================================================== */
.page-content {
  max-width: var(--content-max);
  line-height: 1.72;
}

.page-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
}

.page-content table th,
.page-content table td {
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--mid);
  text-align: left;
}

.page-content table th {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-head);
  letter-spacing: 0.05em;
}

.page-content table tr:nth-child(even) td {
  background: var(--paper-dark);
}

.page-content blockquote {
  border-left: 3px solid var(--ink);
  padding: 0.5rem 1rem;
  margin: 1.5rem 0;
  color: var(--mid);
  font-style: italic;
  background: var(--paper-dark);
}

/* =====================================================
   CHILD LINKS (structure lottery: sibling a > strong)
   ===================================================== */
.child-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.child-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--paper-dark);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  text-decoration: none;
  flex: 1 1 200px;
  min-width: 160px;
  border: 1px solid var(--ink);
  /* slight skew for raw feel */
  transform: rotate(-0.2deg);
  transition: none;
}

.child-card:nth-child(even) {
  transform: rotate(0.3deg);
}

.child-card:hover {
  background: var(--ink);
  color: var(--paper);
}

.child-card strong {
  font-family: var(--font-head);
  font-size: 0.95rem;
  color: inherit;
  display: block;
}

.child-card span {
  font-size: 0.8rem;
  color: var(--mid);
  line-height: 1.4;
}

.child-card:hover span {
  color: rgba(250,250,248,0.7);
}

/* =====================================================
   TOC (review aside)
   ===================================================== */
.toc-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.toc-list li { margin-bottom: 0.25rem; }
.toc-list a {
  color: var(--mid);
  text-decoration: none;
  display: block;
  padding: 0.15rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.5rem;
}
.toc-list a:hover {
  border-left-color: var(--ink);
  color: var(--ink);
}

/* =====================================================
   AUTHOR SECTION (about layout)
   ===================================================== */
.author-section {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: var(--col-max);
  margin: 0 auto 2rem;
  padding: 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  transform: rotate(-0.25deg);
}

.author-figure {
  flex-shrink: 0;
}

.author-avatar-placeholder {
  width: 72px;
  height: 72px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2rem;
}

.author-bio-aside h2 {
  color: var(--paper);
  margin-bottom: 0.35rem;
}

.author-bio-aside h2 > span {
  border-bottom-color: var(--paper);
}

.author-credentials {
  font-size: 0.82rem;
  color: rgba(250,250,248,0.6);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.author-bio {
  font-size: 0.95rem;
  color: rgba(250,250,248,0.85);
  line-height: 1.6;
}

/* =====================================================
   COMPARE BOTTOM
   ===================================================== */
.compare-bottom-ctas {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--ink);
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: calc(var(--nav-h) + 1rem);
}

/* Large CTA block */
.footer-cta-block {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  border-bottom: 1px solid var(--mid);
}

.footer-cta-headline {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 2rem);
  margin-bottom: 1rem;
  color: var(--paper);
}

.footer-cta-block .cta-signup {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.footer-cta-block .cta-login {
  background: transparent;
  color: var(--paper);
  border-color: var(--paper);
}

/* Four columns */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.footer-col dt {
  font-family: var(--font-head);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,250,248,0.45);
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(250,250,248,0.18);
}

.footer-col dd {
  margin: 0 0 0.4rem 0;
}

.footer-col dd a {
  color: rgba(250,250,248,0.75);
  text-decoration: none;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.1rem 0;
}

.footer-col dd a:hover {
  color: var(--paper);
}

/* Responsible gambling */
.footer-rg {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--mid);
}

.rg-notice {
  font-size: 0.78rem;
  color: rgba(250,250,248,0.5);
  line-height: 1.5;
  margin: 0;
}

/* Copyright line */
.footer-bottom {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(250,250,248,0.1);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(250,250,248,0.3);
  margin: 0;
}

/* =====================================================
   PARALLAX / STAGGER (motion, prefers-reduced-motion aware)
   ===================================================== */
@media (prefers-reduced-motion: no-preference) {
  .stagger-item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.45s ease, transform 0.45s ease;
  }
  .stagger-item.visible {
    opacity: 1;
    transform: none;
  }

  .parallax-hero {
    will-change: transform;
  }
}

/* =====================================================
   RESPONSIVE — TABLET
   ===================================================== */
@media (max-width: 900px) {
  .layout-with-aside {
    grid-template-columns: 1fr;
  }

  .content-aside {
    position: static;
  }

  .rank-aside,
  .rank-table-aside {
    position: static;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .author-section {
    flex-direction: column;
  }
}

/* =====================================================
   RESPONSIVE — MOBILE 375px
   ===================================================== */
@media (max-width: 600px) {
  :root { --nav-h: 60px; }

  html { font-size: 16px; }

  .site-header {
    padding: 0 0.75rem;
    gap: 0.35rem;
  }

  .nav-toggle {
    font-size: 0.75rem;
    padding: 0.3rem 0.55rem;
  }

  .header-ctas {
    gap: 0.3rem;
  }

  .cta {
    font-size: 0.75rem;
    padding: 0.45rem 0.65rem;
    min-height: 40px;
  }

  .hero-section {
    padding: 2rem 1rem 0;
    min-height: 65vh;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-bg-numeral {
    font-size: clamp(5rem, 30vw, 10rem);
    opacity: 0.08;
  }

  .hero-desc {
    margin-left: 0;
    max-width: 100%;
  }

  .ranking-hero,
  .review-hero,
  .compare-hero,
  .faq-hero,
  .data-hero,
  .about-hero,
  .privacy-hero {
    padding: 1.5rem 1rem 1rem;
  }

  .content-section {
    padding: 0 1rem 2rem;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .footer-cta-block {
    padding: 2rem 1rem 1.5rem;
  }

  .child-links {
    flex-direction: column;
  }

  .child-card {
    flex: none;
    transform: none;
  }

  .nav-menu {
    min-width: 240px;
  }

  .footer-rg,
  .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .aside-inner {
    transform: none;
  }

  .author-section {
    padding: 1rem;
    transform: none;
  }
}

/* =====================================================
   PRINT / VERY SMALL
   ===================================================== */
@media (max-width: 380px) {
  .header-ctas .cta-login {
    display: none;
  }
}

/* =====================================================
   UTILITY
   ===================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* Dashed hand-drawn border effect for blocks */
.hand-border {
  border: 2px dashed var(--mid);
  border-radius: 3px;
}

/* Subtle rotated block accent */
.rotated-accent {
  transform: rotate(-0.5deg);
}

/* Oversized numeral decoration used in ranking/home */
.big-num {
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--paper-dark);
  line-height: 1;
  letter-spacing: -0.03em;
  user-select: none;
}

a[data-cta],button[aria-controls]{min-height:44px;min-width:44px;box-sizing:border-box}main p a{text-decoration:underline}