/* =====================================================================
   THE VIBECODER'S MANIFESTO — Hot AR Summer
   A sun-soaked DIY-zine one-pager. Oversized black type, Netlify teal,
   acid lime, warm yellow, torn paper, stickers, kinetic tickers.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --ink: #16130f;          /* warm off-black */
  --ink-soft: #2b2620;
  --paper: #fbf3e2;        /* sun-bleached cream */
  --paper-2: #f5e7c8;      /* deeper cream wash */
  --teal: #00c7b7;         /* Netlify teal */
  --teal-deep: #017d75;
  --lime: #c5f02c;         /* acid lime */
  --yellow: #ffcf3f;       /* warm yellow */
  --coral: #ff5b45;        /* hot pop */
  --sky: #6fd6ff;          /* cool relief accent */

  --line: 3px;
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-hard-lg: 10px 10px 0 var(--ink);

  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-hand: "Caveat", cursive;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Space Mono", ui-monospace, monospace;

  --maxw: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(15px, 1.05vw + 12px, 18px);
  line-height: 1.55;
  overflow-x: hidden;
  /* layered sun-soaked atmosphere: dotted grid + warm radial glow */
  background-image:
    radial-gradient(circle at 82% -5%, rgba(255,207,63,0.55), transparent 42%),
    radial-gradient(circle at 8% 8%, rgba(0,199,183,0.22), transparent 38%),
    radial-gradient(rgba(22,19,15,0.06) 1.4px, transparent 1.4px);
  background-size: auto, auto, 24px 24px;
  background-attachment: fixed, fixed, fixed;
}

/* Grain overlay — fixed, non-interactive, never on a scroll container */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Utilities ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 5vw, 56px); }
.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;
}
:focus-visible {
  outline: var(--line) solid var(--coral);
  outline-offset: 3px;
}

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; z-index: 10000; font-weight: 700;
  border: var(--line) solid var(--ink); transition: top .18s ease;
}
.skip:focus { top: 12px; }

/* =====================================================================
   TOP TICKER
   ===================================================================== */
.ticker {
  border-top: var(--line) solid var(--ink);
  border-bottom: var(--line) solid var(--ink);
  background: var(--teal);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker--lime { background: var(--lime); }
.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.ticker--rev .ticker__track { animation-direction: reverse; animation-duration: 32s; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.6vw, 44px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  padding: 10px 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  color: var(--ink);
}
.ticker__star { color: var(--ink); font-size: 0.7em; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 18px; padding-block: 18px;
}
.nav__tag {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.16em;
  background: var(--ink); color: var(--paper); padding: 5px 10px;
  transform: rotate(-2deg);
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; padding-block: clamp(28px, 6vw, 70px) clamp(30px, 5vw, 60px); }
.hero__kicker {
  font-family: var(--font-hand);
  font-size: clamp(26px, 4vw, 44px);
  color: var(--teal-deep);
  transform: rotate(-3deg);
  margin: 0 0 4px;
}
.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.005em;
  margin: 0;
  font-size: clamp(58px, 15vw, 200px);
  color: var(--ink);
  text-wrap: balance;
}
.hero__title .line { display: block; }
.hero__title .stroke {
  color: var(--paper);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 6px 6px 0 var(--teal);
}
.hero__title .fill-lime { color: var(--ink); background: var(--lime);
  box-shadow: 0 0 0 6px var(--lime); border-radius: 2px; }

.hero__cry {
  margin: clamp(20px, 3vw, 34px) 0 0;
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: italic;
  font-size: clamp(26px, 5.2vw, 62px);
  line-height: 1.02;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__cry mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
  color: inherit; padding-inline: 2px;
}

.hero__meta {
  margin-top: clamp(22px, 3vw, 34px);
  display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center;
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
}
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta .pip { width: 12px; height: 12px; border: var(--line) solid var(--ink); }
.pip--teal { background: var(--teal); }
.pip--lime { background: var(--lime); }
.pip--yellow { background: var(--yellow); }
.pip--coral { background: var(--coral); }

/* Sticker cluster floating in the hero */
.sticker {
  position: absolute;
  font-family: var(--font-hand);
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 12px 16px;
  line-height: 0.98;
  transition: transform .2s cubic-bezier(.2,1.4,.5,1);
  cursor: default;
  z-index: 3;
}
.sticker:hover { transform: rotate(0deg) scale(1.06) !important; }
.sticker--round { border-radius: 50%; width: 128px; height: 128px; }
.sticker--1 { top: 4%; right: 2%; background: var(--coral); color: var(--paper);
  font-size: 1.7rem; transform: rotate(9deg); }
.sticker--2 { bottom: 12%; right: 6%; background: var(--yellow);
  font-size: 1.5rem; transform: rotate(-6deg); width: 150px; }
.sticker--3 { top: 40%; right: 40%; background: var(--sky);
  font-size: 1.4rem; transform: rotate(-4deg); }

/* CTA button — used in a few places */
.cta {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(18px, 2.4vw, 26px); letter-spacing: 0.01em;
  background: var(--btn-bg); color: var(--btn-fg);
  border: var(--line) solid var(--ink);
  padding: 16px 26px; text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: transform .14s ease, box-shadow .14s ease, background .2s ease;
  position: relative;
}
.cta:hover { transform: translate(-3px,-3px); box-shadow: var(--shadow-hard-lg); }
.cta:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 var(--ink); }
.cta--teal { --btn-bg: var(--teal); --btn-fg: var(--ink); }
.cta__arrow { transition: transform .2s ease; }
.cta:hover .cta__arrow { transform: translateX(6px); }
.hero__cta { margin-top: clamp(26px, 3.4vw, 40px); }

/* =====================================================================
   TORN PAPER DIVIDERS
   ===================================================================== */
.torn {
  height: 34px; width: 100%; display: block; line-height: 0;
}
.torn svg { width: 100%; height: 100%; display: block; }

/* =====================================================================
   TENETS
   ===================================================================== */
.tenets { background: var(--ink); color: var(--paper); padding-block: clamp(46px, 7vw, 92px); position: relative; }
.section-head {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-head__num {
  font-family: var(--font-hand); font-size: clamp(28px,4vw,46px);
  color: var(--teal);
}
.section-head__title {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(32px, 6vw, 78px); line-height: 0.9; margin: 0;
}

.tenet-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(16px, 2vw, 26px);
}
.tenet {
  grid-column: span 6;
  border: var(--line) solid var(--paper);
  background: var(--ink-soft);
  padding: clamp(20px, 2.4vw, 30px);
  position: relative;
  transition: transform .18s ease, background .18s ease;
  opacity: 0;
  transform: translateY(26px);
}
.tenet.in { animation: pop .5s cubic-bezier(.2,.9,.3,1.2) forwards; }
@keyframes pop { to { opacity: 1; transform: translateY(0); } }
.tenet:hover { transform: translateY(-4px) rotate(-.4deg); }
.tenet__no {
  font-family: var(--font-display); font-size: clamp(38px, 5vw, 64px);
  line-height: 1; color: var(--paper);
  -webkit-text-stroke: 2px var(--paper); color: transparent;
  display: block; margin-bottom: 8px;
}
.tenet__lead {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(22px, 3vw, 34px); line-height: 0.98; margin: 0 0 12px;
}
.tenet__body { margin: 0; color: #e7dfce; font-size: 0.98rem; }
.tenet__body b { color: var(--lime); font-weight: 400; }

/* colour-code the accents per card via nth positions */
.tenet:nth-child(4n+1) .tenet__lead { color: var(--teal); }
.tenet:nth-child(4n+2) .tenet__lead { color: var(--lime); }
.tenet:nth-child(4n+3) .tenet__lead { color: var(--yellow); }
.tenet:nth-child(4n+4) .tenet__lead { color: var(--coral); }

/* make a couple of cards span differently for grid-breaking rhythm */
.tenet--wide { grid-column: span 12; }
.tenet--tall { grid-column: span 6; }

.tenet__scribble {
  position: absolute; right: 14px; top: -14px;
  font-family: var(--font-hand); font-size: 1.5rem;
  color: var(--ink); background: var(--yellow);
  border: var(--line) solid var(--paper);
  padding: 2px 12px; transform: rotate(5deg);
  box-shadow: 4px 4px 0 rgba(0,0,0,.4);
}

/* =====================================================================
   THE LOOP (workflow)
   ===================================================================== */
.loop { background: var(--paper-2); padding-block: clamp(46px, 7vw, 92px); }
.loop__intro { max-width: 60ch; font-size: clamp(1rem, 1.6vw, 1.2rem); margin: 0 0 clamp(28px,4vw,44px); }
.loop__intro b { background: var(--teal); padding: 0 6px; }

.steps {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch;
}
.step {
  flex: 1 1 150px;
  border: var(--line) solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  padding: 18px 16px 20px;
  position: relative;
  transition: transform .16s ease, background .16s ease;
}
.step:hover { transform: translateY(-6px) rotate(-1deg); background: var(--yellow); }
.step__k {
  font-family: var(--font-body); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal-deep);
}
.step__name {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 32px); margin: 6px 0 8px; line-height: .95;
}
.step__desc { margin: 0; font-size: .86rem; color: var(--ink-soft); }
.step__arrow {
  position: absolute; right: -20px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 26px; color: var(--ink);
  z-index: 2;
}
.step:last-child .step__arrow { content: none; display: none; }
.loop__again {
  margin-top: 22px; font-family: var(--font-hand);
  font-size: clamp(20px, 2.4vw, 30px); color: var(--teal-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.loop__again .spin { display: inline-block; animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   CREED (who this is for) — pull quotes
   ===================================================================== */
.creed { padding-block: clamp(46px, 7vw, 92px); }
.creed__list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(18px,3vw,34px); }
.creed__item {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.4rem, 4vw, 3rem); line-height: 1.02;
  text-wrap: balance; max-width: 24ch;
}
.creed__item:nth-child(even) { margin-left: auto; text-align: right; }
.creed__item .u { background: var(--lime); box-shadow: 0 0 0 4px var(--lime); }
.creed__item .t { color: var(--teal-deep); }
.creed__item small {
  display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 10px;
}

/* =====================================================================
   CLOSING
   ===================================================================== */
.close {
  background: var(--teal); color: var(--ink);
  padding-block: clamp(50px, 8vw, 110px); position: relative; overflow: hidden;
  border-top: var(--line) solid var(--ink);
}
.close__slogan {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: clamp(40px, 9vw, 128px); line-height: 0.86; margin: 0;
  text-wrap: balance;
}
.close__slogan span { display: block; }
.close__slogan span:nth-child(2) { color: var(--paper); -webkit-text-stroke: 2px var(--ink); }
.close__slogan span:nth-child(3) { color: var(--coral); }
.close__slogan span:nth-child(4) { font-family: var(--font-serif); font-style: italic; text-transform: none; }
.close__cta { margin-top: clamp(30px, 4vw, 52px); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.foot {
  background: var(--ink); color: var(--paper);
  padding-block: clamp(30px, 4vw, 50px);
  display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: space-between;
}
.foot__brand { font-family: var(--font-display); text-transform: uppercase; font-size: 1.4rem; }
.foot small { color: #b9b0a0; font-size: .78rem; letter-spacing: .04em; }
.foot a { color: var(--teal); text-underline-offset: 3px; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
  .tenet, .tenet--tall, .tenet--wide { grid-column: 1 / -1; }
  .tenet-grid { grid-template-columns: 1fr; }
  .sticker--3 { display: none; }
  .step__arrow { display: none; }
  .creed__item:nth-child(even) { margin-left: 0; text-align: left; }
}
@media (max-width: 560px) {
  .sticker--1 { top: 2%; right: -2%; transform: rotate(9deg) scale(.8); }
  .sticker--2 { bottom: 4%; right: -4%; transform: rotate(-6deg) scale(.8); }
  .hero__meta { font-size: .72rem; }
}
