/* ============================================================================
 * site.css — circleofcircles.love additions on top of the Reframe template.
 * Loaded last; everything here may override the template.
 *
 * Type scale note: the template sets the root font-size to 100vw/192 on
 * desktop (≈7.5px at 1440px) and 8px / 6px on small screens, with body text
 * at 3.6rem. Sizes below follow that scale; fixed-pixel values are used only
 * where WCAG needs them (tap targets, focus rings).
 * ========================================================================== */

:root {
  --accent: #e3af00;
  --line: rgba(255, 255, 255, 0.16);
  --muted: rgba(255, 255, 255, 0.7);
  --card: rgba(255, 255, 255, 0.045);
  --tap: 48px;
}

/* Cap the viewport-relative type on very wide monitors (mobile sizes untouched). */
@media (min-width: 801px) {
  html { font-size: clamp(7px, calc(100vw / 192), 10px); }
}

/* ── Menu button: a real <button> with a 48px hit area ──────────────────── */
.m-menu-button {
  appearance: none; -webkit-appearance: none; background: none; border: 0; font: inherit; color: inherit;
  display: block; line-height: 0; box-sizing: content-box;
  padding: 16px; top: calc(6rem - 16px); right: calc(6rem - 16px);
}
.m-menu .main-items li a { min-height: 44px; display: flex; align-items: center; }

/* Focus rings for keyboard users */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* Sections: sane spacing instead of 20rem/80rem padding */
.right-content .section { padding-bottom: 14rem; }
.section h2.section-title { font-size: 5.4rem; line-height: 1.15; font-weight: 300; margin: 0 0 3rem; }
.section h3 { font-size: 3.4rem; font-weight: 400; margin: 0 0 1.4rem; }
.muted { color: var(--muted); }
.small-print { font-size: 2.4rem; color: var(--muted); }
.right-content img { max-width: 100%; height: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: var(--tap); padding: 0 3.6rem; border-radius: 999px;
  font-size: 2.6rem; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid #fff; color: #fff; background: transparent;
  transition: background .18s ease, color .18s ease;
}
.btn:hover { background: rgba(255,255,255,.1); }
.btn.primary { background: #fff; color: #111; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #111; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #1a1400; }
.btn.accent:hover { background: #f4c020; }
.btn.small { min-height: 44px; padding: 0 2.6rem; font-size: 2.3rem; font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
#intro .container { max-width: 100rem; }
.hero-kicker { font-size: 2.2rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 2rem; }
#intro h1 { font-size: clamp(40px, 9vw, 96px); line-height: 1.02; margin: 0 0 2.6rem; }
.hero-hook { font-size: 4rem; line-height: 1.4; font-weight: 300; margin: 0 0 2rem; max-width: 86rem; }
.hero-meta { font-size: 2.3rem; color: var(--muted); margin: 0 0 3.6rem; letter-spacing: .04em; }
.hero-meta span + span::before { content: '·'; margin: 0 .8em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-bottom: 3.2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.6rem 3rem; align-items: center; font-size: 2.3rem; color: var(--muted); }
.hero-trust a { color: #fff; }
.format-badges { display: flex; flex-wrap: wrap; gap: 1rem; }
.format-badges span { border: 1px solid var(--line); border-radius: 999px; padding: .6rem 1.8rem; font-size: 1.9rem; letter-spacing: .06em; text-transform: uppercase; }
.format-badges span.free { border-color: var(--accent); color: var(--accent); }

/* ── Reviews ─────────────────────────────────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(34rem, 1fr)); gap: 2rem; }
.review { margin: 0; padding: 3rem; background: var(--card); border: 1px solid var(--line); border-radius: 2rem; }
.review blockquote { margin: 0 0 1.6rem; font-size: 3rem; line-height: 1.5; font-weight: 300; }
.review figcaption { font-size: 2.2rem; color: var(--muted); }
.review-links { margin-top: 3rem; display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* ── Buy ─────────────────────────────────────────────────────────────────── */
.buy-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(38rem, 1fr)); gap: 2rem; margin-bottom: 5rem; }
.buy-card { display: grid; grid-template-columns: 12rem 1fr; gap: 2.4rem; align-items: center; padding: 2.6rem; background: var(--card); border: 1px solid var(--line); border-radius: 2rem; }
.buy-card img { width: 100%; height: auto; border-radius: .6rem; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.buy-card h3 { margin: 0 0 .4rem; font-size: 3.2rem; }
.buy-card p { margin: 0 0 1.6rem; font-size: 2.3rem; color: var(--muted); }
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: 1.4rem; margin-bottom: 3rem; }
.store-btn {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; min-height: var(--tap); padding: .8rem 2rem;
  border: 1px solid var(--line); border-radius: 1.4rem; background: var(--card); color: #fff; text-decoration: none; text-align: center;
  font-size: 2.6rem; font-weight: 500; transition: border-color .18s ease, background .18s ease;
}
.store-btn:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.store-btn small { margin-left: .5em; color: var(--muted); font-weight: 400; font-size: 1.9rem; }
details.more-stores { margin-top: 1rem; }
details.more-stores summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: .6em; min-height: var(--tap); font-size: 2.6rem; color: #fff; }
details.more-stores summary::-webkit-details-marker { display: none; }
details.more-stores summary::before { content: '+'; display: inline-block; width: 1.2em; text-align: center; color: var(--accent); }
details.more-stores[open] summary::before { content: '–'; }
details.more-stores .tabs { margin-top: 2rem; }
.order-tabs .pills .pill a { display: inline-flex; align-items: center; min-height: 44px; }

/* ── VR callout ──────────────────────────────────────────────────────────── */
.vr-cta { position: relative; padding: 4rem; border-radius: 2.2rem; border: 1px solid var(--accent); background: linear-gradient(135deg, rgba(227,175,0,.12), rgba(227,175,0,.02)); }
.vr-cta h2 { margin-top: 0; }
.vr-cta ul { margin: 0 0 3rem; padding-left: 2.6rem; font-size: 3rem; line-height: 1.6; font-weight: 300; }
.vr-cta .btn + .small-print { display: block; margin-top: 1.8rem; }

/* ── Series ──────────────────────────────────────────────────────────────── */
.series-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); gap: 2rem; }
.series-card { padding: 3rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--card); }
.series-card.current { border-color: #fff; }
.series-card .series-label { font-size: 2rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8rem; }
.series-card h3 { margin: 0 0 1rem; font-size: 3.2rem; }
.series-card .series-status { color: var(--accent); margin: 0 0 .6rem; font-size: 2.5rem; }
.series-card .series-note { color: var(--muted); font-size: 2.3rem; margin: 0; }

/* ── Newsletter ──────────────────────────────────────────────────────────── */
.newsletter-form { display: grid; gap: 2rem; max-width: 80rem; }
.newsletter-form[hidden] { display: none; }
.newsletter-form .field { display: grid; gap: .8rem; }
.newsletter-form label { font-size: 2.3rem; color: var(--muted); }
.newsletter-form input[type="email"] {
  width: 100%; min-height: var(--tap); padding: 0 2.2rem; border-radius: 1.4rem; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); color: #fff; font-size: 2.8rem; font-family: inherit;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form .consent { display: flex; gap: 1.4rem; align-items: flex-start; font-size: 2.3rem; line-height: 1.5; color: var(--muted); cursor: pointer; }
.newsletter-form .consent input { width: 22px; height: 22px; margin-top: .3em; accent-color: var(--accent); flex: none; }
.newsletter-form .consent a { color: #fff; }
.form-status { font-size: 2.3rem; margin: 0; }
.form-status.error { color: #ff8a80; }
.form-status[hidden] { display: none; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.success-box { display: flex; gap: 1.6rem; align-items: flex-start; padding: 3rem; border: 1px solid var(--accent); border-radius: 2rem; }
.success-box[hidden] { display: none; }
.success-box p { margin: 0; }

/* ── Author ──────────────────────────────────────────────────────────────── */
.author { display: grid; grid-template-columns: minmax(22rem, 30rem) 1fr; gap: 3.2rem; align-items: start; }
.author img { width: 100%; height: auto; border-radius: 1.4rem; border: 1px solid #c0c0c0; }
.author .links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.4rem; }
.author .links img { width: 2.2em; height: 2.2em; border: 0; border-radius: .5em; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 4rem 0 6rem; font-size: 2.1rem; line-height: 1.6; color: var(--muted); }
.site-footer .om { font-size: 4.4rem; color: #fff; margin: 0 0 1.6rem; }
.site-footer p { margin: 0 0 1rem; font-size: 2.1rem; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .6rem 2.6rem; margin: 1.6rem 0; }

/* ── Audio sample (excerpt page) ─────────────────────────────────────────── */
.audio-sample { display: grid; gap: 1.4rem; padding: 2.6rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--card); margin: 3rem 0 4rem; }
.audio-sample .label { font-size: 2.4rem; color: var(--muted); margin: 0; }
.audio-sample .toggle-btn { min-width: 44px; min-height: 44px; }
.excerpt-body p { margin: 0 0 1.4em; }
.excerpt-heading { font-size: 2.1rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin: 0 0 1.6rem; }

/* ── Motion preferences ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ── Small screens ───────────────────────────────────────────────────────── */
@media (max-width: 800px) {
  .right-content .section { padding-bottom: 10rem; }
  .m-menu-button { top: calc(4rem - 16px); right: calc(4rem - 16px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .buy-card { grid-template-columns: 10rem 1fr; padding: 2.2rem; }
  .author { grid-template-columns: 1fr; }
  .author img { max-width: 36rem; }
  .vr-cta { padding: 3rem; }
}
