/* RetroColoring.com — REWIND '81
   Values mirror brief/design_handoff_retrocoloring/RetroColoring Site.dc.html */

:root {
  --ink: #07060D;
  --ink-deep: #05040A;
  --surface: #0E0A1C;
  --surface-alt: #0B0916;
  --panel: #120B22;
  --line: #2C1E4A;
  --line-soft: #22163B;
  --input-line: #3A2A5E;
  --pink: #FF2D95;
  --cyan: #00E5FF;
  --yellow: #FFE01B;
  --purple: #9B5CFF;
  --text: #EFE9FF;
  --text-muted: #CFC4E8;
  --text-dim: #9C8FBE;
  --text-faint: #7E719F;
  --display: 'Archivo Black', sans-serif;
  --logo: 'Monoton', cursive;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: 'Space Grotesk', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--pink); }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Page shell ---------- */
.page { min-height: 100vh; position: relative; overflow-x: hidden; padding-bottom: 84px; }
.bg-glow { position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(120% 80% at 50% 0%, rgba(155,92,255,0.28) 0%, rgba(7,6,13,0) 60%), radial-gradient(90% 60% at 50% 100%, rgba(255,45,149,0.18) 0%, rgba(7,6,13,0) 70%); }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(7,6,13,0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line-soft); }
.site-header__inner { max-width: 1120px; margin: 0 auto; padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; justify-content: space-between; }
.logo { font-family: var(--logo); font-size: 22px; letter-spacing: 1px; color: var(--yellow); text-shadow: 0 0 14px rgba(255,224,27,0.45); }
.logo:hover { color: var(--yellow); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--text); border: 1px solid var(--line); }
.nav a:hover { border-color: var(--cyan); color: var(--cyan); }
.nav a[aria-current="page"] { color: var(--cyan); }

main { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 0 18px; }

.site-footer { position: relative; z-index: 1; margin-top: 40px; border-top: 2px solid var(--line-soft); background: var(--ink-deep); }
.site-footer__inner { max-width: 1120px; margin: 0 auto; padding: 26px 18px 34px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; }
.site-footer__copy { color: var(--text-dim); font-size: 14px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }

/* ---------- Type ---------- */
.display { font-family: var(--display); text-transform: uppercase; transform: skewX(-6deg); margin: 0; }
.h-hero { font-size: clamp(38px,8vw,72px); line-height: 0.95; margin: 16px 0 0; background: linear-gradient(180deg,#FFFFFF 0%,#00E5FF 45%,#FF2D95 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-book { font-size: clamp(32px,6.5vw,54px); line-height: 1; background: linear-gradient(180deg,#FFFFFF,#FF2D95); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-section { font-size: clamp(26px,5vw,40px); }
.h-yellow { color: var(--yellow); }
.h-cyan { color: var(--cyan); }

.eyebrow { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.lede { font-size: 18px; line-height: 1.55; color: var(--text-muted); max-width: 46ch; margin: 18px 0 0; }
.meta { font-size: 14px; color: var(--text-dim); margin-top: 14px; }
.section-intro { color: var(--text-muted); margin: 10px 0 22px; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn-buy { display: inline-block; padding: 16px 28px; border-radius: 12px; background: var(--pink); color: #FFFFFF; font-weight: 700; font-size: 18px; letter-spacing: 0.5px; box-shadow: 0 0 0 2px #FF2D95, 0 10px 30px rgba(255,45,149,0.35); cursor: pointer; }
.btn-buy:hover { background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 2px #FFE01B, 0 10px 30px rgba(255,224,27,0.35); }
.btn-buy--lg { margin-top: 22px; padding: 18px 32px; font-size: 19px; letter-spacing: 0; }

/* Not live yet: <a> with no href, so it cannot navigate. */
.btn-buy[aria-disabled="true"],
.buybar__btn[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; }
.btn-buy[aria-disabled="true"]:hover { background: var(--pink); color: #FFFFFF; box-shadow: 0 0 0 2px #FF2D95, 0 10px 30px rgba(255,45,149,0.35); }
.buybar__btn[aria-disabled="true"]:hover { background: var(--pink); color: #FFFFFF; }

.btn-secondary { display: inline-block; padding: 16px 24px; border-radius: 12px; border: 2px solid var(--cyan); color: var(--cyan); font-weight: 700; font-size: 18px; }
.btn-secondary:hover { background: var(--cyan); color: var(--ink); }

/* ---------- Hero / book ---------- */
.hero { padding: 28px 0 8px; }
.split { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 28px; align-items: center; }
.split--top { align-items: start; }

.cover { position: relative; }
.cover__glow { position: absolute; inset: -14px; border-radius: 18px; background: linear-gradient(135deg,#FF2D95,#9B5CFF,#00E5FF); filter: blur(26px); opacity: 0.55; }
.cover__glow--book { inset: -12px; background: linear-gradient(135deg,#00E5FF,#9B5CFF,#FF2D95); filter: blur(24px); opacity: 0.5; }
.cover img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }

.price-line { font-size: 20px; color: var(--yellow); font-weight: 700; margin: 14px 0 0; }
.features { color: var(--text-muted); font-size: 16px; line-height: 1.8; padding-left: 20px; margin: 14px 0 0; }

/* ---------- Samples ---------- */
.section { padding: 48px 0 8px; }
.section--44 { padding-top: 44px; }
.samples { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.samples li { aspect-ratio: 17/22; border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.samples img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-samples { font-size: clamp(24px,5vw,36px); margin: 0 0 18px; }

/* ---------- Series cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); gap: 16px; margin-top: 22px; }
.card { border: 2px solid var(--pink); border-radius: 14px; padding: 20px; background: var(--surface); }
.card--soon { border: 2px dashed var(--line); background: var(--surface-alt); }
.card__label { font-size: 12px; letter-spacing: 2px; color: var(--pink); font-weight: 700; text-transform: uppercase; }
.card--soon .card__label { color: var(--purple); }
.card h3 { font-family: var(--display); font-size: 24px; margin: 8px 0 6px; text-transform: uppercase; }
.card p { color: var(--text-muted); font-size: 15px; line-height: 1.5; margin: 0 0 16px; }
.card--soon p { color: var(--text-dim); margin: 0; }
.card a { font-weight: 700; }

/* ---------- Signup ---------- */
.signup-wrap { padding: 48px 0 24px; }
.signup-wrap--44 { padding-top: 44px; }
.signup { border-radius: 18px; padding: 28px; background: linear-gradient(135deg,#1A0E2E,#2A0F33); border: 2px solid var(--purple); }
.signup--book { padding: 26px; background: var(--panel); }
.signup h2 { font-family: var(--display); font-size: clamp(24px,4.5vw,34px); margin: 0; text-transform: uppercase; color: var(--yellow); }
.signup--book h2 { font-size: clamp(22px,4.5vw,30px); }
.signup__intro { color: var(--text-muted); margin: 10px 0 18px; max-width: 52ch; }

.fine { font-size: 12px; color: var(--text-faint); margin: 14px 0 0; }

/* Beehiiv embed: the slot only. The form inside the iframe is styled in Beehiiv. */
.beehiiv-slot { margin-top: 18px; }
.signup--book .beehiiv-slot { margin-top: 16px; }
.narrow--free .beehiiv-slot { margin-top: 22px; }
/* The embedded form is a fixed 480px; without the cap the iframe stretches to the
   panel width and its own white page background shows beside the form. */
.beehiiv-slot iframe { display: block; width: 100%; max-width: 480px; border: 0; }

/* ---------- Simple pages ---------- */
.narrow { padding: 36px 0 24px; }
.narrow--free { max-width: 640px; }
.narrow--about { max-width: 680px; }
.narrow--privacy { max-width: 700px; }

.h-free { font-size: clamp(32px,7vw,54px); line-height: 1; color: var(--yellow); }
.free-lede { color: var(--text-muted); font-size: 18px; line-height: 1.55; margin: 16px 0 0; }
.download { margin-top: 22px; padding: 20px; border-radius: 14px; border: 2px solid var(--cyan); background: #0C1A20; }
.download p { margin: 0 0 12px; font-weight: 700; color: var(--cyan); }
.btn-download { display: inline-block; padding: 14px 22px; border-radius: 10px; background: var(--cyan); color: var(--ink); font-weight: 700; }
.btn-download:hover { background: var(--yellow); color: var(--ink); }

.h-about { font-size: clamp(32px,7vw,52px); color: var(--cyan); }
.about-p { color: var(--text-muted); font-size: 18px; line-height: 1.7; margin: 16px 0 0; }
.about-p:first-of-type { margin-top: 20px; }
.about-meta { color: var(--text-dim); font-size: 15px; margin: 26px 0 0; }

.notfound { padding: 56px 0 40px; max-width: 640px; }
.notfound .eyebrow { margin: 0; }

.h-privacy { font-family: var(--display); font-size: clamp(28px,6vw,44px); margin: 0; text-transform: uppercase; color: var(--text); }
.updated { color: var(--text-dim); font-size: 14px; margin: 8px 0 22px; }
.policy h2 { font-size: 18px; color: var(--yellow); margin: 22px 0 6px; }
.policy p { color: var(--text-muted); line-height: 1.7; margin: 0; }
.policy p + p { margin-top: 12px; }

/* ---------- Sticky buy bar ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px; background: rgba(7,6,13,0.95); border-top: 2px solid var(--pink); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.buybar__price { font-size: 13px; color: var(--text-muted); line-height: 1.3; }
.buybar__price strong { color: var(--yellow); }
.buybar__btn { flex: 0 1 auto; padding: 12px 20px; border-radius: 10px; background: var(--pink); color: #FFFFFF; font-weight: 700; font-size: 15px; white-space: nowrap; cursor: pointer; }
.buybar__btn:hover { background: var(--yellow); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
