/* rayreader.com — hand-built, not from a shared component kit */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/playfair-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122;
}

:root {
  --forest: #0d542b;
  --forest-edge: #008236;
  --lime: #b9ff78;
  --coral: #f54320;
  --coral-whisper: #ffe3e3;
  --cream: #fcf7ed;
  --ink: #1c1917;
  --black: #000000;
  --stone: #44403b;
  --slate: #292524;
  --ash: #d6d3d1;
  --fog: #e5e7eb;
  --white: #ffffff;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gap-8: 8px; --gap-16: 16px; --gap-24: 24px; --gap-32: 32px; --gap-40: 40px; --gap-48: 48px; --gap-64: 64px;
  --maxw: 1200px;
  --r-card: 8px; --r-pill: 9999px; --r-frame: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--stone);
  font-family: var(--sans); font-size: 16px; line-height: 1.5; letter-spacing: -0.007em;
  font-feature-settings: 'cv11';
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); color: var(--black); margin: 0 0 16px; line-height: 1.1; }
h1 { font-size: clamp(38px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 22px; }
p { max-width: 68ch; }
.stone { color: var(--stone); }

/* ---- header ---- */
.site-header { background: var(--forest); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 24px; }
.logo { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--lime); text-decoration: none; }
.nav-list { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.nav-list a { color: var(--cream); text-decoration: none; font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-list a:hover, .nav-list a[aria-current="page"] { border-bottom-color: var(--lime); }
.burger { display: none; background: none; border: 1.5px solid var(--cream); border-radius: 8px; color: var(--cream); width: 40px; height: 40px; font-size: 20px; cursor: pointer; }

@media (max-width: 760px) {
  .nav-list { position: fixed; inset: 0 0 0 30%; background: var(--forest); flex-direction: column; padding: 88px 24px 24px; transform: translateX(100%); transition: transform .25s ease; z-index: 40; }
  .nav-list.open { transform: translateX(0); }
  .burger { display: block; z-index: 41; }
}

/* ---- hero ---- */
.hero { background: radial-gradient(circle at 50% 20%, var(--forest-edge) 0%, var(--forest) 68%); padding: 72px 0 88px; text-align: center; position: relative; overflow: hidden; }
.hero .eyebrow { font-family: var(--sans); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--lime); }
.hero h1 { color: var(--lime); margin: 12px auto 20px; max-width: 18ch; }
.hero .lead { color: var(--cream); font-size: 19px; max-width: 56ch; margin: 0 auto 32px; }
.hero .stat { display: inline-block; background: rgba(185,255,120,.12); border: 1.5px solid var(--lime); color: var(--lime); border-radius: var(--r-pill); padding: 8px 20px; font-size: 14px; margin-bottom: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: var(--r-card); font-size: 16px; text-decoration: none; font-weight: 600; cursor: pointer; border: none; }
.btn-lime { background: var(--lime); color: var(--ink); }
.btn-lime:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border: 1.5px solid var(--cream); color: var(--cream); }
.btn-ghost:hover { background: var(--cream); color: var(--ink); }

/* ---- sections ---- */
section.block { padding: var(--gap-64) 0; }
section.block.alt { background: var(--white); }
.eyebrow-label { font-family: var(--sans); font-size: 18px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); display: inline-block; position: relative; margin-bottom: 24px; }
.eyebrow-label::after { content: ''; display: block; height: 3px; width: 60%; background: var(--coral); margin-top: 4px; border-radius: 2px; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head p { margin: 0 auto; text-align: left; }

/* ---- catalog cards ---- */
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .catalog-grid { grid-template-columns: 1fr; } }
.game-card { background: var(--white); border: 1px solid var(--fog); border-radius: var(--r-card); overflow: hidden; display: flex; flex-direction: column; }
.game-card .card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.game-card img { aspect-ratio: 16/9; object-fit: cover; }
.game-card .body { padding: 20px; }
.game-card h3 { margin: 0 0 6px; font-size: 19px; }
.game-card .meta { font-size: 13px; color: var(--slate); margin-bottom: 8px; }
.game-card .verdict { font-size: 14px; color: var(--stone); }
.game-card .score { display: inline-block; background: var(--coral-whisper); color: #8a2a12; font-size: 13px; font-weight: 700; border-radius: var(--r-pill); padding: 3px 10px; margin-top: 10px; }

.play-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 10px 20px; border: 1.5px solid var(--ink); border-radius: var(--r-pill); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); transition: background .15s, color .15s; }
.play-link:hover { background: var(--ink); color: var(--white); }
.play-link:focus-visible { outline: 2px solid var(--forest-edge); outline-offset: 2px; }
.game-card > .play-link.play-link-sm { margin: 0 20px 20px; }
.play-link-sm { padding: 7px 14px; font-size: 12.5px; }
.facts-actions { margin: -12px 0 32px; }

/* alternating feature row (image left/right toggles via data attribute) */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.feature-row[data-side="right"] .feature-media { order: 2; }
@media (max-width: 760px) { .feature-row { grid-template-columns: 1fr; } .feature-row[data-side="right"] .feature-media { order: 0; } }
.feature-media { border: 2px solid var(--coral); border-radius: var(--r-frame); overflow: hidden; box-shadow: 0 24px 48px rgba(245,67,32,.15); }
.feature-media img { aspect-ratio: 16/9; object-fit: cover; }

/* ---- comparison table ---- */
.compare-wrap { overflow-x: auto; }
.compare-wrap table { border-collapse: collapse; width: 100%; min-width: 560px; }
.compare-wrap caption { text-align: left; font-size: 14px; color: var(--slate); margin-bottom: 12px; }
.compare-wrap th, .compare-wrap td { text-align: left; padding: 14px 16px; font-size: 15px; }
.compare-wrap thead th { border-bottom: 2px solid var(--ink); font-family: var(--serif); font-size: 17px; }
.compare-wrap tbody tr:nth-child(odd) { background: var(--white); }
.compare-wrap tbody th { font-weight: 600; }

/* ---- pros/cons ---- */
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 620px) { .pc-grid { grid-template-columns: 1fr; } }
.pc-card { border-radius: var(--r-card); padding: 20px; background: var(--white); border: 1px solid var(--fog); }
.pc-card h3 { font-size: 16px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .04em; }
.pc-card ul { margin: 0; padding-left: 20px; }
.pc-card li { margin-bottom: 8px; font-size: 15px; }

/* ---- facts card ---- */
.facts { background: var(--white); border: 1px solid var(--fog); border-radius: var(--r-card); padding: 24px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin: 32px 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--slate); }
.facts dd { margin: 2px 0 0; font-size: 15px; }

/* ---- breadcrumbs ---- */
.crumbs { font-size: 13px; color: var(--slate); padding: 20px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--fog); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-family: var(--serif); font-size: 18px; color: var(--black); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .ic { flex: none; width: 28px; height: 28px; border: 1.5px solid var(--ink); border-radius: 999px; display: flex; align-items: center; justify-content: center; transition: transform .2s; }
.faq-item[open] .faq-q .ic { transform: rotate(45deg); }
.faq-a { padding: 0 0 20px; font-size: 15px; }

/* ---- purchases ---- */
.buy-list { display: grid; gap: 16px; }
.buy-item { border: 1px solid var(--fog); border-radius: var(--r-card); padding: 18px 20px; background: var(--white); }
.buy-item .brand { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--coral); }
.buy-item a { font-family: var(--serif); font-size: 18px; text-decoration: underline wavy var(--coral) 1.5px; text-underline-offset: 4px; }
.buy-note { font-size: 13px; color: var(--slate); margin-top: 6px; }

/* ---- picks list ---- */
.pick-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--fog); }
.pick-item:last-child { border-bottom: none; }
.pick-num { font-family: var(--serif); font-size: 40px; color: var(--coral); }

/* ---- contact / purchases card button ---- */
.contact-card { background: var(--forest); color: var(--cream); border-radius: var(--r-frame); padding: 40px; text-align: center; }
.contact-card a.btn { margin-top: 12px; }

/* ---- cookie banner ---- */
#rr3-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--cream); border-radius: var(--r-card); padding: 20px 22px; font-size: 14px; z-index: 60; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
#rr3-cookie p { max-width: none; margin: 0 0 14px; }
#rr3-cookie .row { display: flex; gap: 12px; flex-wrap: wrap; }
#rr3-cookie[hidden] { display: none; }

/* ---- back to top ---- */
#rr3-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 999px; background: var(--lime); border: none; color: var(--ink); font-size: 18px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
#rr3-top.show { opacity: 1; pointer-events: auto; }

/* ---- footer ---- */
footer.site-footer { background: var(--ink); color: var(--ash); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: repeat(2,1fr); } }
.footer-grid h3 { font-family: var(--sans); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--white); margin: 0 0 14px; font-weight: 700; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--ash); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid #3a3633; margin-top: 40px; padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---- rr3 scroll reveal ---- */
[data-rr3-reveal] { opacity: 0; transition: opacity .8s cubic-bezier(.16,.8,.3,1), transform .8s cubic-bezier(.16,.8,.3,1); transition-delay: calc(var(--rr3-i, 0) * 110ms); }
[data-rr3-reveal="left"] { transform: translateX(-36px); }
[data-rr3-reveal="right"] { transform: translateX(36px); }
[data-rr3-reveal="up"] { transform: translateY(38px); }
[data-rr3-reveal="scale"] { transform: scale(.9) translateY(14px); }
[data-rr3-reveal].rr3-in { opacity: 1; transform: none; }

/* ---- rr3 hero intro (on load, not on scroll) ---- */
.hero .eyebrow, .hero .lead, .hero .stat, .hero > .wrap > div:last-child { opacity: 0; transform: translateY(16px); animation: rr3In .7s cubic-bezier(.16,.8,.3,1) forwards; }
.hero .eyebrow { animation-delay: .05s; }
.hero h1 { animation: rr3Settle .6s cubic-bezier(.16,.8,.3,1) both; animation-delay: .16s; }
.hero .lead { animation-delay: .32s; }
.hero .stat { animation-delay: .46s; }
.hero > .wrap > div:last-child { animation-delay: .6s; }
@keyframes rr3In { to { opacity: 1; transform: none; } }
@keyframes rr3Settle { from { transform: translateY(14px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  [data-rr3-reveal] { transition: none; opacity: 1; transform: none; }
  .hero .eyebrow, .hero h1, .hero .lead, .hero .stat, .hero > .wrap > div:last-child { animation: none; opacity: 1; transform: none; }
}
