/* ==========================================================================
   Social Mania — Base
   Reset · typography · layout primitives · buttons · utilities
   Depends on: tokens.css
   ========================================================================== */

/* ---- Modern reset ---- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-inline: clamp(12px, 1.6vw, 22px);   /* small outer margin, outside the frame lines */
}

/* Frame: thin vertical hairlines down the left & right of the whole site */
.site-frame {
  border-inline: 1px solid var(--line);
  min-height: 100vh;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Image that fills its shaped container (cover-crop) */
.img-cover { width: 100%; height: 100%; object-fit: cover; display: block; }

input, button, textarea, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: 0;
  color: var(--ink);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p { max-width: 68ch; }

strong { font-weight: var(--fw-semibold); }

/* Eyebrow / label — small uppercase kicker above headings */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--fs-label);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--neon-pink);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--neon-pink);
}

/* Highlighted keyword — lime marker that sweeps in on scroll */
.hl {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 88%;
  padding: 0 0.12em;
  transition: background-size var(--dur-slow) var(--ease) 0.15s, color var(--dur) var(--ease) 0.15s;
}
.reveal.is-visible .hl,
.hl.is-visible { background-size: 100% 88%; color: var(--on-accent); }
/* No-JS / reduced motion: show highlight filled */
:root:not(.js) .hl { background-size: 100% 88%; color: var(--on-accent); }
/* period accent */
.dot-pink { color: var(--neon-pink); }

/* Display headline helper (extra large, tight) */
.display {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.005em;
}

.lead {
  font-size: var(--fs-lead);
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Kept for markup compatibility, but neutral now — color lives in imagery, not text */
.accent-text { color: var(--ink); }

/* ---- Layout primitives ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide   { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--section-y);
}
.section--dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }
.section--alt { background: var(--bg-cream-2); }

/* Section header block (eyebrow + title + intro) */
.section-head {
  max-width: 640px;
  margin-bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
  align-items: center;
}

/* Simple responsive grid helper */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95em 1.7em;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.btn .plus { opacity: 0.6; margin-left: 0.2em; }

/* Primary = gold with a hard blue offset shadow (brand colours) */
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 4px 4px 0 var(--brand-blue);
}
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--brand-blue); }
.btn--primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--brand-blue); }

.btn--dark {
  background: var(--ink);
  color: var(--bg-cream);
}
.btn--dark:hover { background: #000; }

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--outline:hover { background: var(--ink); color: var(--bg-cream); }

.section--dark .btn--outline {
  color: var(--on-dark);
  border-color: var(--on-dark-soft);
}
.section--dark .btn--outline:hover {
  background: var(--on-dark);
  color: var(--ink);
}

.btn--lg { padding: 1.05em 2em; font-size: var(--fs-body); }
.btn--sm { padding: 0.6em 1.15em; font-size: var(--fs-label); }
/* Light button — off-white, for use on dark/black sections */
.btn--light { background: var(--ink); color: var(--bg-cream); }
.btn--light:hover { background: var(--white); color: #0D0D0F; }

/* Text link with animated arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  color: var(--ink);
}
.link-arrow svg { transition: transform var(--dur-fast) var(--ease); }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---- Utilities ---- */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.no-scroll { overflow: hidden; }

/* ---- Scroll-reveal ----
   Hidden state only applies when JS is active (html.js), so content is
   always visible if JS is blocked/absent (previews, no-JS). ---- */
.reveal { opacity: 1; }
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
