/* ===========================================================
   Best Life By Brooke — "riso" design system
   Risograph-inspired: two-color overprint, paper warmth,
   vivid pink actions, bold blue structure, mono caps labels.
   =========================================================== */

:root {
  /* --- Live-editable palette (the creator recolors the page
         by overriding these five; use them, not raw hex) --- */
  --wp-bg: #F7F1E6;        /* warm risograph paper */
  --wp-surface: #FFFFFF;
  --wp-text: #111827;
  --wp-muted: #4B4636;
  --wp-accent: #F237A1;

  /* Derived accent inks. The raw riso pink under white text is
     only ~3.1:1, so anything carrying white text uses the ink,
     and small accent TEXT on paper uses the deeper one. */
  --wp-accent-ink: #C41F7D;
  --wp-accent-deep: #A3126A;

  /* Secondary structural color (riso's second plate) */
  --blue: #2C40A7;
  --paper-deep: #EFE6D4;

  --r-sm: 4px;
  --r-md: 8px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;

  /* Hard offset "overprint" shadows — no blur, riso registration look */
  --shadow-blue: 6px 6px 0 var(--blue);
  --shadow-pink: 6px 6px 0 var(--wp-accent);
  --shadow-ink: 5px 5px 0 var(--wp-text);

  --maxw: 1120px;
}

@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --wp-accent-ink: color-mix(in srgb, var(--wp-accent) 82%, #3D0026);
    --wp-accent-deep: color-mix(in srgb, var(--wp-accent) 66%, #2E001C);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--wp-text);
  background: var(--wp-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.mono {
  font-family: "Overpass Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-6);
}

a { color: inherit; }

img, svg { max-width: 100%; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  background: var(--wp-surface);
  color: var(--wp-text);
  border: 2px solid var(--wp-text);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: var(--s-4); top: var(--s-4); }

/* ---------- Risograph grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
  mix-blend-mode: multiply;
  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' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: var(--r-md);
  border: 2px solid var(--wp-text);
  background: var(--wp-surface);
  color: var(--wp-text);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  line-height: 1.1;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(2px, 2px); }
.btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.btn-pink {
  background: var(--wp-accent-ink);
  color: #fff;
  border-color: var(--wp-text);
  box-shadow: var(--shadow-ink);
}
.btn-pink:hover { box-shadow: 7px 7px 0 var(--wp-text); }

.btn-ghost {
  background: var(--wp-surface);
  box-shadow: 4px 4px 0 var(--blue);
}
.btn-ghost:hover { box-shadow: 6px 6px 0 var(--blue); }

.btn-lg { padding: 14px 26px; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wp-bg);
  border-bottom: 2px solid var(--wp-text);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;
  font-weight: 700;
}
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--wp-text);
  font-family: "Overpass Mono", monospace;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 var(--wp-accent);
}
.brand-mark.sm { width: 32px; height: 32px; font-size: 0.78rem; box-shadow: 2px 2px 0 var(--wp-accent); }
.brand-name { font-size: 1.05rem; }
.nav-links {
  display: flex;
  gap: var(--s-6);
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--wp-accent);
  transition: width .18s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.nav-cta { padding: 8px 16px; font-size: 0.88rem; box-shadow: 3px 3px 0 var(--wp-text); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 0; }

.eyebrow {
  color: var(--wp-accent-deep);
  margin: 0 0 var(--s-3);
}
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
}
.section-head { max-width: 680px; margin-bottom: var(--s-8); }
.section-lead { font-size: 1.05rem; color: var(--wp-muted); margin: 0; }
.asof { color: var(--blue); }

/* ---------- Frames (image placeholders) ---------- */
.frame {
  position: relative;
  border: 2px solid var(--wp-text);
  border-radius: var(--r-md);
  background: var(--wp-surface);
  padding: 6px;
}
.frame-blue { box-shadow: var(--shadow-blue); }
.frame-pink { box-shadow: var(--shadow-pink); }

.wp-img {
  position: relative;
  border-radius: var(--r-sm);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: var(--paper-deep);
  background-image:
    radial-gradient(var(--blue) 1.4px, transparent 1.4px),
    radial-gradient(var(--wp-accent) 1.4px, transparent 1.4px);
  background-size: 14px 14px, 14px 14px;
  background-position: 0 0, 7px 7px;
}
.wp-img::after {
  content: "+ Add photo";
  font-family: "Overpass Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--wp-text);
  background: var(--wp-surface);
  border: 2px solid var(--wp-text);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  box-shadow: 2px 2px 0 var(--wp-accent);
}
.wp-img.wide { aspect-ratio: 16 / 10; }

/* Once the creator sets a photo the editor stamps data-wp-has-img and
   paints the background — nothing may float over their picture. */
.wp-img[data-wp-has-img] {
  background-image: none;
  background-size: cover;
  background-position: center;
}
.wp-img[data-wp-has-img]::before,
.wp-img[data-wp-has-img]::after { display: none !important; content: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(242, 55, 161, 0.08), transparent 60%),
    var(--wp-bg);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-bottom: clamp(40px, 6vw, 72px);
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: "Overpass Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue);
  background: var(--wp-surface);
  border: 2px solid var(--wp-text);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 var(--s-4);
  box-shadow: 3px 3px 0 var(--wp-accent);
}
.kicker .dot {
  flex: none;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--wp-accent);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--wp-text);
}
.hero-name {
  font-size: clamp(2.5rem, 7.5vw, 4.8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-3);
}
.hero-tag {
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--wp-accent-deep);
  margin: 0 0 var(--s-4);
  line-height: 1.12;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--wp-muted);
  max-width: 46ch;
  margin: 0 0 var(--s-6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin: 0; padding: 0;
}
.hero-meta li {
  font-size: 0.95rem;
  font-weight: 600;
}
.hero-meta .mono {
  display: block;
  color: var(--blue);
  margin-bottom: 2px;
}

.hero-visual { position: relative; }
.hero-img { aspect-ratio: 4 / 5; }
.sticker {
  position: absolute;
  z-index: 3;
  background: var(--wp-accent-ink);
  color: #fff;
  border: 2px solid var(--wp-text);
  border-radius: var(--r-md);
  padding: 7px 12px;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--wp-text);
}
.sticker-1 { top: -14px; left: -14px; transform: rotate(-6deg); background: var(--blue); }
.sticker-2 { bottom: 22px; right: -16px; transform: rotate(5deg); }

/* Decorative overlay must never intercept taps meant for the photo frame
   beneath it (the editor is tap-to-upload). */
.sticker { pointer-events: none; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 2px solid var(--wp-text);
  border-bottom: 2px solid var(--wp-text);
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  padding: 10px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
}
/* The duplicate half is cloned by main.js; without it a -50% scroll
   would slide the single copy clean off the band. */
.marquee-track.is-dup { animation: scroll-x 30s linear infinite; }
.marquee-track span {
  font-family: "Overpass Mono", monospace;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  white-space: nowrap;
  padding-right: 1.5rem;
}
@keyframes scroll-x {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- About ---------- */
.about {
  background: var(--wp-surface);
  border-top: 2px solid var(--wp-text);
  border-bottom: 2px solid var(--wp-text);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.about-images .frame:nth-child(2) { margin-top: var(--s-8); }
.about-body {
  font-size: 1.15rem;
  color: var(--wp-text);
  margin: 0 0 var(--s-6);
}
.about-tags, .social-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.tag {
  font-family: "Overpass Mono", monospace;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 7px 13px;
  border: 2px solid var(--wp-text);
  border-radius: 999px;
  background: var(--wp-bg);
  box-shadow: 2px 2px 0 var(--blue);
}

/* ---------- Links ---------- */
.links { background: var(--wp-bg); }

.link-list {
  display: grid;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.link-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
  text-decoration: none;
  background: var(--wp-surface);
  border: 2px solid var(--wp-text);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: 4px 4px 0 var(--blue);
  transition: transform .14s ease, box-shadow .14s ease;
}
.link-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--blue);
}
.link-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.link-ic {
  display: grid; place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--wp-text);
}
.link-ic svg { width: 22px; height: 22px; display: block; }

.link-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.link-label {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.link-host { color: var(--wp-muted); }
.link-go {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--wp-accent-deep);
  transition: transform .15s ease;
}
.link-card:hover .link-go { transform: translateX(5px); }

/* Featured link — same stack, louder plate */
.link-card--feat {
  padding: 20px;
  box-shadow: var(--shadow-pink);
}
.link-card--feat:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--wp-accent); }
.link-card--feat .link-ic {
  width: 54px; height: 54px;
  background: var(--wp-accent-ink);
  box-shadow: 3px 3px 0 var(--wp-text);
}
.link-card--feat .link-ic svg { width: 27px; height: 27px; }
.link-card--feat .link-label { font-size: 1.4rem; font-weight: 700; line-height: 1.12; }
.link-card--feat .link-go { font-size: 2rem; }
.link-card--feat .link-body { gap: 6px; }
.pill {
  align-self: flex-start;
  font-family: "Overpass Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--wp-text);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.65rem;
  font-weight: 600;
}

.link-note {
  color: var(--wp-muted);
  margin: 0 0 var(--s-8);
  letter-spacing: 0.06em;
  text-transform: none;
}

.link-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
}

/* ---------- Stats ---------- */
.stats { background: var(--wp-surface); border-top: 2px solid var(--wp-text); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.stat-tile {
  background: var(--wp-bg);
  border: 2px solid var(--wp-text);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-4);
  text-align: center;
  box-shadow: 5px 5px 0 var(--blue);
}
.stat-tile--accent {
  background: var(--wp-accent-ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--wp-text);
}
.stat-tile--accent .stat-label { color: rgba(255, 255, 255, 0.94); }
.stat-value {
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-2);
}
.stat-label { margin: 0; color: var(--blue); }

.stats-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.socials .eyebrow { color: var(--wp-accent-deep); }
.social-list { flex-direction: column; gap: var(--s-3); }
.social-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-4);
  text-decoration: none;
  background: var(--wp-bg);
  border: 2px solid var(--wp-text);
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: 4px 4px 0 var(--wp-accent);
  transition: transform .14s ease, box-shadow .14s ease;
}
.social-chip:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--wp-accent); }
.social-chip:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.social-ic {
  display: grid; place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--wp-text);
}
.social-ic svg { width: 22px; height: 22px; display: block; }
.social-handle { font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.social-go { color: var(--wp-accent-deep); font-weight: 700; font-size: 1.25rem; }

.stats-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.stats-images .frame:nth-child(2) { margin-top: var(--s-8); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue);
  color: #fff;
  border-top: 2px solid var(--wp-text);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(242, 55, 161, 0.55) 2px, transparent 2px);
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-3);
}
.cta-sub { font-size: 1.1rem; color: rgba(255, 255, 255, 0.9); margin: 0 0 var(--s-6); }

/* ---------- Footer ---------- */
.site-foot {
  background: var(--wp-bg);
  border-top: 2px solid var(--wp-text);
  padding: var(--s-8) 0;
}
.foot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-4);
  text-align: center;
}
.foot-line {
  color: var(--wp-muted);
  margin: 0;
  text-transform: none;
  letter-spacing: 0.04em;
  line-height: 1.7;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
/* No JS (or reduced motion): never leave content invisible. */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; margin: var(--s-6) auto 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy { order: -1; }
  .stats-lower { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 var(--s-4); }
  .nav-links { display: none; }
  .nav-inner { padding-top: 10px; padding-bottom: 10px; }
  .link-images, .stats-images { grid-template-columns: 1fr; }
  .stats-images .frame:nth-child(2),
  .about-images .frame:nth-child(2) { margin-top: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .link-card { padding: 12px 14px; gap: var(--s-3); }
  .link-go { display: none; }
  .link-card--feat { padding: 16px; }
  .link-card--feat .link-label { font-size: 1.2rem; }
  .foot-inner { flex-direction: column; gap: var(--s-3); }
}

@media (max-width: 400px) {
  .nav-cta { display: none; }
}
