/* ============================================================
   LOWKEY LUCRATIVE - shared brand styles
   Palette + rules: brand_assets/colors.md (Brand Guide v2)
   Fonts: Google stand-ins for licensed brand fonts -
   Archivo Black ≈ Hagrid Text Heavy · Fraunces ≈ The Seasons ·
   Nunito Sans ≈ Avenir Next. Swap via the vars below when licensed.
   ============================================================ */

:root {
  --cobalt: #0D21A5;
  --chartreuse: #D7E64A;
  --peri: #B9C7F8;
  --teal: #20373B;
  --cream: #FFF4D8;
  --paper: #FFFDF2;      /* card surface, slightly lighter than cream */

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'Courier New', monospace;

  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6rem;
  --maxw: 68rem;
  --radius: 14px;
  --border: 3px solid var(--teal);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain over everything, very quiet */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- typography ---------- */

.display {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s2);
  font-weight: 400; /* Archivo Black is a single heavy weight */
}

h1.display { font-size: clamp(2.4rem, 7vw, 4.4rem); }
h2.display { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h3.display { font-size: clamp(1.15rem, 3vw, 1.4rem); }

.serif-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15em;
  line-height: 1.5;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
}

.mono { font-family: var(--font-mono); }

p { margin: 0 0 var(--s2); }

a { color: inherit; }

::selection { background: var(--chartreuse); color: var(--teal); }

/* ---------- layout ---------- */

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }

.band { padding: var(--s5) 0; }
.band--cobalt { background: var(--cobalt); color: var(--cream); }
.band--chartreuse { background: var(--chartreuse); color: var(--teal); }
.band--teal { background: var(--teal); color: var(--cream); }
.band--peri { background: var(--peri); color: var(--teal); }

.cols {
  display: grid;
  gap: var(--s3);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cols-2 { grid-template-columns: 1fr 1fr; }
  .cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- components ---------- */

/* Buttons - chartreuse block, hard offset shadow, moves on press */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  color: var(--teal);
  background: var(--chartreuse);
  border: var(--border);
  border-radius: 10px;
  padding: 1rem 1.9rem;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--teal);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.btn:hover { transform: translate(-2px, -2px); }
.btn:active { transform: translate(3px, 3px); }
.btn:focus-visible { outline: 3px dashed var(--cobalt); outline-offset: 4px; }

/* on dark bands the shadow flips to periwinkle so it reads */
.band--cobalt .btn, .band--teal .btn { box-shadow: 6px 6px 0 var(--peri); border-color: var(--teal); }

.btn--ghost {
  background: transparent;
  color: inherit;
  border: 3px solid currentColor;
  box-shadow: none;
}

.btn--big { font-size: 1.15rem; padding: 1.2rem 2.4rem; }

/* Cards - paper block, teal border, chartreuse offset shadow */
.card {
  background: var(--paper);
  color: var(--teal);
  border: var(--border);
  border-radius: var(--radius);
  padding: var(--s3);
  box-shadow: 8px 8px 0 var(--chartreuse);
  position: relative;
}
.card--peri-shadow { box-shadow: 8px 8px 0 var(--peri); }

/* washi tape strip stuck on a card */
.tape {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 110px;
  height: 26px;
  transform: translateX(-50%) rotate(-3deg);
  background: var(--peri);
  opacity: 0.85;
  border-left: 2px dashed rgba(32, 55, 59, 0.25);
  border-right: 2px dashed rgba(32, 55, 59, 0.25);
}
.tape--chartreuse { background: var(--chartreuse); }

/* Receipt - data as the character */
.receipt {
  background: #FFFEF7;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  border: 2px dashed var(--teal);
  border-radius: 4px;
  padding: var(--s3) var(--s3) var(--s2);
  box-shadow: 10px 10px 0 rgba(13, 33, 165, 0.35);
}
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 0.22rem 0; }
.receipt td:last-child { text-align: right; font-weight: 700; }
.receipt .rule td { border-top: 2px dashed var(--teal); padding-top: 0.5rem; }
.receipt-head {
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px dashed var(--teal);
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

/* Verdict stamp */
.stamp {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  letter-spacing: 0.06em;
  padding: 0.35em 0.7em;
  border: 5px solid currentColor;
  border-radius: 8px;
  transform: rotate(-5deg);
  line-height: 1;
}
.stamp--test { color: var(--cobalt); background: var(--chartreuse); border-color: var(--cobalt); }
.stamp--rework { color: var(--teal); background: var(--peri); border-color: var(--teal); }
.stamp--kill { color: var(--cream); background: var(--teal); border-color: var(--cream); box-shadow: 0 0 0 3px var(--teal); }

/* Sparkle bullet */
.spark::before { content: '✦ '; color: var(--cobalt); }
.band--cobalt .spark::before, .band--teal .spark::before { color: var(--chartreuse); }

/* Forms */
.field-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
input[type='email'], input[type='text'] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
  border: var(--border);
  border-radius: 10px;
  background: var(--paper);
  color: var(--teal);
  flex: 1 1 240px;
  min-width: 0;
}
input:focus-visible { outline: 3px dashed var(--chartreuse); outline-offset: 3px; }
input::placeholder { color: rgba(32, 55, 59, 0.55); }

.form-note { font-size: 0.85rem; opacity: 0.8; margin-top: var(--s1); }

/* Topbar + footer */
.topbar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: var(--s2) 0;
}
.topbar .mark { width: 42px; height: 42px; flex: 0 0 auto; }
.topbar .wordmark {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.topbar .wordmark { white-space: nowrap; }
.topbar nav { margin-left: auto; display: flex; gap: var(--s3); }
.topbar nav a { white-space: nowrap; }
@media (max-width: 480px) {
  .hide-sm { display: none; }
  .topbar .wordmark { font-size: 0.9rem; }
  .topbar .mark { width: 34px; height: 34px; }
  .topbar nav { gap: var(--s2); }
  .topbar nav a { font-size: 0.75rem; }
}
.topbar nav a {
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  padding-bottom: 2px;
}
.topbar nav a:hover, .topbar nav a:focus-visible { border-bottom-color: var(--chartreuse); outline: none; }

footer { font-size: 0.9rem; }
footer a { text-decoration-color: var(--chartreuse); text-decoration-thickness: 2px; }
footer a:hover { color: var(--chartreuse); }
footer a:focus-visible { outline: 2px dashed var(--chartreuse); outline-offset: 3px; }

/* helpers */
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.tight { line-height: 1.45; }
.small { font-size: 0.9rem; }
.rotate-l { transform: rotate(-2deg); }
.rotate-r { transform: rotate(2deg); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .fade-in { transition: none !important; animation: none !important; }
}
