/* ===================================================================
   BowlRevolution — Design System
   Editorial-with-spark: trustworthy reference base, confident accent.
   =================================================================== */

/* ---- Fonts: distinctive display + refined body ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,900;1,9..144,500&family=Newsreader:ital,wght@0,400;0,500;0,600;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---- Design tokens ---- */
:root {
  /* Color — warm paper base, ink text, electric "revolution" accent */
  --paper:        #f7f4ee;
  --paper-2:      #efeae0;
  --ink:          #1a1916;
  --ink-soft:     #4a4740;
  --ink-faint:    #8a857a;
  --line:         #d9d3c6;
  --accent:       #e8420c;   /* revolution red-orange */
  --accent-deep:  #b8330a;
  --accent-soft:  #fbe6dc;
  --gold:         #c89a3c;    /* lane-wood warmth for highlights */
  --white:        #ffffff;

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body:    'Newsreader', Georgia, serif;
  --mono:    'IBM Plex Mono', ui-monospace, monospace;

  /* Space + measure */
  --measure: 68ch;
  --radius:  3px;
  --shadow:  0 1px 2px rgba(26,25,22,.06), 0 8px 28px rgba(26,25,22,.06);
  --shadow-lift: 0 4px 12px rgba(26,25,22,.10), 0 18px 50px rgba(26,25,22,.10);

  /* Layout */
  --nav-h: 64px;
  --maxw:  1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.65;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.08; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.1em; max-width: var(--measure); }
a  { color: var(--accent-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
small, .small { font-size: .85rem; color: var(--ink-faint); }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: .02em; }
.eyebrow {
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-deep);
}

/* ---- Layout primitives ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); position: relative; z-index: 2; }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.lede { font-size: 1.3rem; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(247,244,238,.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.5rem; height: 100%; }
.brand { display: flex; align-items: baseline; gap: .15rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 900; font-size: 1.3rem; letter-spacing: -.02em; }
.brand .rev { color: var(--accent); }
.brand__mark {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: .55rem;
  border-radius: 50%; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-weight: 500; font-size: .9rem;
  transform: translateY(2px); transition: transform .4s cubic-bezier(.34,1.56,.64,1);
}
.brand:hover .brand__mark { transform: translateY(2px) rotate(360deg); }
.nav__links { display: flex; gap: 1.2rem; margin-left: auto; align-items: center; }
.nav__links a { color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500; font-family: var(--body); }
.nav__links a:hover { color: var(--accent-deep); }
.nav__cta {
  background: var(--ink); color: var(--paper) !important;
  padding: .5rem .9rem; border-radius: var(--radius); font-weight: 600 !important;
}
.nav__cta:hover { background: var(--accent-deep); }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1.1rem,4vw,2.5rem) 1.2rem;
    transform: translateY(-120%); transition: transform .35s ease; box-shadow: var(--shadow);
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { padding: .7rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-top: .6rem; }
  .nav__toggle { display: block; margin-left: auto; }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero { position: relative; padding-block: clamp(3.5rem, 9vw, 7rem) clamp(2.5rem,6vw,4rem); overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: min(46vw, 540px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent) 0%, var(--accent-deep) 55%, #7a2107 100%);
  opacity: .14; filter: blur(2px); z-index: 0;
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 16ch; }
.hero h1 .spin { color: var(--accent); font-style: italic; }
.hero .lede { margin-top: 1.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--body); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: var(--radius); text-decoration: none;
  border: 1.5px solid var(--ink); cursor: pointer; transition: .2s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

/* ===================================================================
   CARDS / GRID
   =================================================================== */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--accent-soft); }
.card:hover::before { transform: scaleY(1); }
.card__num { font-family: var(--mono); font-size: .75rem; color: var(--ink-faint); }
.card h3 { margin: 0; font-size: 1.3rem; }
.card p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.card__tag { margin-top: auto; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }

/* section heading block */
.shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; border-bottom: 2px solid var(--ink); padding-bottom: .8rem; }
.shead h2 { margin: 0; }
.shead a { font-family: var(--mono); font-size: .8rem; text-decoration: none; white-space: nowrap; }

/* ---- breadcrumb ---- */
.crumb { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); margin-bottom: 1.2rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { color: var(--accent-deep); }

/* ---- article body ---- */
.article { max-width: var(--measure); }
.article h2 { margin-top: 2.2rem; }
.article h3 { margin-top: 1.6rem; }
.article ul, .article ol { padding-left: 1.3rem; max-width: var(--measure); }
.article li { margin-bottom: .5rem; }
.article blockquote { border-left: 3px solid var(--accent); margin: 1.5rem 0; padding: .3rem 0 .3rem 1.2rem; font-style: italic; color: var(--ink-soft); }
.callout { background: var(--accent-soft); border: 1px solid #f3c6b6; border-radius: var(--radius); padding: 1.2rem 1.4rem; margin: 1.6rem 0; }
.callout .eyebrow { margin-bottom: .3rem; }

/* ===================================================================
   AFFILIATE DISCLOSURE + FOOTER
   =================================================================== */
.disclosure {
  background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: .82rem; color: var(--ink-soft); padding: .8rem 0;
}
.disclosure .wrap { display: flex; gap: .6rem; align-items: baseline; }
.disclosure strong { color: var(--ink); font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.footer { background: var(--ink); color: var(--paper-2); margin-top: 4rem; padding-block: 3rem 2rem; }
.footer a { color: var(--paper-2); text-decoration: none; opacity: .8; }
.footer a:hover { opacity: 1; color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__brand { font-family: var(--display); font-weight: 900; font-size: 1.4rem; color: #fff; }
.footer__brand .rev { color: var(--accent); }
.footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .5rem; font-size: .92rem; }
.footer__bottom { border-top: 1px solid #34322d; margin-top: 2.4rem; padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .8rem; opacity: .65; }

/* ---- reveal-on-load stagger ---- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.d1{animation-delay:.05s}.d2{animation-delay:.15s}.d3{animation-delay:.25s}.d4{animation-delay:.35s}.d5{animation-delay:.45s}.d6{animation-delay:.55s}
@media (prefers-reduced-motion: reduce){ .reveal{animation:none;opacity:1;transform:none} *{scroll-behavior:auto} }

/* ===================================================================
   REVIEW COMPONENTS
   =================================================================== */
.verdict {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); padding: 1.4rem 1.6rem; margin: 1.8rem 0; box-shadow: var(--shadow);
}
.verdict__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.verdict__rating { font-family: var(--display); font-weight: 900; font-size: 1.8rem; color: var(--accent-deep); white-space: nowrap; }
.verdict__rating small { font-family: var(--mono); font-size: .7rem; color: var(--ink-faint); font-weight: 400; }
.verdict h3 { margin: 0; }
.verdict .bestfor { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: .3rem 0 .6rem; }
.verdict p { margin: .4rem 0 0; }
.verdict .btn { margin-top: 1rem; }

.dots { display: inline-flex; gap: 3px; vertical-align: middle; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: inline-block; }
.dots i.on { background: var(--accent); }

.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin: 1.6rem 0; }
@media (max-width: 620px){ .proscons { grid-template-columns: 1fr; } }
.proscons .col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.proscons h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .6rem; }
.proscons .pro h4 { color: #2e7d32; }
.proscons .con h4 { color: var(--accent-deep); }
.proscons ul { margin: 0; padding-left: 1.1rem; }
.proscons li { margin-bottom: .4rem; font-size: .96rem; }

.spectable { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.spectable th, .spectable td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.spectable th { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); width: 38%; vertical-align: top; }
.spectable tr:last-child td, .spectable tr:last-child th { border-bottom: 0; }

/* ===================================================================
   COMPARISON TABLE (multi-column, horizontal scroll on mobile)
   =================================================================== */
.cmp-wrap { overflow-x: auto; margin: 1.6rem 0; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; background: var(--white); }
.cmp th, .cmp td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--ink); color: var(--paper); font-family: var(--display); font-weight: 600; font-size: 1rem; border-bottom: 0; position: sticky; top: 0; }
.cmp thead th:first-child { background: var(--ink); }
.cmp tbody th { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); width: 22%; white-space: nowrap; }
.cmp tbody tr:last-child td, .cmp tbody tr:last-child th { border-bottom: 0; }
.cmp .rate { font-family: var(--display); font-weight: 900; color: var(--accent-deep); font-size: 1.1rem; }
.cmp .cta-row td { background: var(--paper); }
.cmp .btn { padding: .45rem .9rem; font-size: .82rem; }
.cmp-scroll-hint { font-family: var(--mono); font-size: .72rem; color: var(--ink-faint); margin: -.8rem 0 1.4rem; display: none; }
@media (max-width: 680px){ .cmp-scroll-hint { display: block; } }

/* ===================================================================
   BLOG / JOURNAL
   =================================================================== */
.postmeta { font-family: var(--mono); font-size: .76rem; letter-spacing: .04em; color: var(--ink-faint); margin-bottom: 1.2rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.postmeta .cat { color: var(--accent-deep); text-transform: uppercase; letter-spacing: .1em; }
.postmeta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); display: inline-block; }

.postlist { display: flex; flex-direction: column; gap: 0; margin-top: 2rem; }
.postlist a.post { display: grid; grid-template-columns: 1fr; gap: .3rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding-left .2s ease; }
.postlist a.post:hover { padding-left: .5rem; }
.postlist a.post:first-child { border-top: 1px solid var(--line); }
.postlist .post__cat { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); }
.postlist .post__title { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.15; margin: .15rem 0; }
.postlist .post__excerpt { color: var(--ink-soft); font-size: 1rem; max-width: 60ch; }
.postlist .post__date { font-family: var(--mono); font-size: .74rem; color: var(--ink-faint); margin-top: .2rem; }

.post-cta { background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 2rem 0; }
.post-cta .eyebrow { margin-bottom: .3rem; }
.post-cta p { margin: 0; }
