/* Bad Bradford — brand tokens pulled from the logo */
:root {
  --green: #0a564a;
  --green-deep: #063d34;
  --lime: #cfdd26;
  --lime-deep: #b7c41a;
  --cream: #f5f5e9;
  --cream-deep: #e9e9d6;
  --ink: #0b2f29;
  --ink-soft: rgba(11, 47, 41, 0.72);
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --measure: 34rem;
  --wrap: 68rem;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.05; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--lime); color: var(--ink); padding: .5rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 0.5rem; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.hero :focus-visible, .signup :focus-visible, .pattern :focus-visible { outline-color: var(--cream); }
.share :focus-visible { outline-color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; position: relative; }

/* ---- type roles ---- */
.eyebrow {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn-lime:hover { background: var(--lime-deep); border-color: var(--lime-deep); }
.btn-ghost { background: transparent; color: var(--cream); border-color: rgba(245,245,233,.55); }
.btn-ghost:hover { border-color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn-dark:hover { background: var(--green); border-color: var(--green); }
.btn-sm { padding: 0.65rem 1.1rem; font-size: 0.9rem; }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--green);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem var(--pad);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img { width: 132px; height: auto; }
.topnav { display: flex; align-items: center; gap: 1.5rem; }
.topnav a:not(.btn) { color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: .9; }
.topnav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 560px) { .topnav a:not(.btn) { display: none; } }

/* ---- hero ---- */
.hero {
  background: var(--green);
  color: var(--cream);
  padding: clamp(3.5rem, 9vw, 7rem) var(--pad) clamp(3rem, 7vw, 5.5rem);
  position: relative;
  overflow: hidden;
}
.hero .eyebrow { color: var(--lime); }
.hero-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 15ch;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  max-width: var(--measure);
  margin-top: 1.75rem;
  color: rgba(245,245,233,.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.countdown {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  display: flex; align-items: baseline; gap: .75rem;
  border-top: 1px solid rgba(245,245,233,.2);
  padding-top: 1.5rem;
}
.cd-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--lime);
  line-height: 1;
}
.cd-label { font-size: 1rem; color: rgba(245,245,233,.8); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }
.hero-art.has-photo { display: grid; }
.hero-art.has-photo .hero-photo { width: 100%; max-width: 680px; justify-self: end; margin-bottom: -34%; position: relative; z-index: 0; }
.hero-art.has-photo .hero-logo { position: relative; z-index: 1; width: 100%; justify-self: start; filter: drop-shadow(0 6px 0 rgba(3,30,26,.45)); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; margin: -1rem 0 1.5rem; max-width: 460px; }
  .hero-art.has-photo .hero-photo { width: 80%; margin-bottom: -26%; }
}

.badfor { display: inline-flex; align-items: baseline; gap: .55em; flex-wrap: wrap; }

/* ---- the BAD sticker: the signature element ---- */
.bad { display: inline-block; width: auto; height: 1em; vertical-align: -0.12em; }
.hero-title .bad { height: 1.05em; margin: 0 .05em; }
.badfor .bad { height: 2.4rem; }
.stamp-for {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--green);
}
.tick .bad { height: 1.5rem; vertical-align: -0.3em; margin-right: .25rem; }

/* ---- ticker: BAD for ___, repeating ---- */
.ticker { background: var(--green-deep); color: var(--cream); overflow: hidden; border-block: 3px solid var(--lime); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.tick {
  padding: .7rem 1.6rem;
  white-space: nowrap;
  font-family: var(--display); font-weight: 800;
  font-size: 1.25rem;
}
.tick b { font-family: var(--sans); font-stretch: 125%; font-weight: 900; font-style: normal; letter-spacing: .1em; margin-right: .1em; }
.tick::after { content: "·"; margin-left: 1.6rem; opacity: .5; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---- risks ---- */
.risks {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(2rem, 5vw, 4rem);
}
.risk {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-top: 2px solid var(--ink);
}
.risk:first-of-type { border-top: 0; padding-top: 0; }
.risk-head { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.count { font-stretch: 125%; font-weight: 900; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.risk-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.risk-body { font-size: 1.1rem; max-width: var(--measure); }
.risk-body p:last-child { margin-bottom: 0; }
.risk-main { grid-column: 1; }
.risk-body { margin-top: 1.5rem; }
.closer {
  margin: 1.5rem 0 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.02em;
  color: var(--green);
}
.closer .bad { height: 1.15em; vertical-align: -0.2em; margin: 0 .05em; }
.record {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  background: #fff;
  border: 2px solid var(--ink);
  padding: 1.25rem 1.4rem 1rem;
  box-shadow: 6px 6px 0 var(--lime);
}
.record-label {
  font-family: var(--sans);
  font-stretch: 125%; font-weight: 900;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .75rem;
  display: flex; align-items: center; gap: .5rem;
}
.record-label::before { content: ""; width: .7rem; height: .7rem; background: var(--lime); border: 1.5px solid var(--ink); }
.record-list { list-style: none; margin: 0; padding: 0; counter-reset: rec; }
.record-list li {
  counter-increment: rec;
  padding: .75rem 0 .75rem 1.9rem;
  border-top: 1px solid var(--cream-deep);
  position: relative;
  font-size: .97rem;
}
.record-list li::before {
  content: counter(rec);
  position: absolute; left: 0; top: .85rem;
  font-stretch: 125%; font-weight: 900; font-size: .75rem;
  color: var(--green);
}
.record-list li:first-child { border-top: 0; }
.rec-text { display: block; margin-bottom: .25rem; }
.src { font-size: .82rem; font-weight: 600; color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.src::after { content: " ↗"; font-weight: 400; }

@media (max-width: 760px) {
  .risk { grid-template-columns: 1fr; gap: 1.25rem; }
  .risk-main, .record { grid-column: 1; grid-row: auto; }
  .record { margin-top: .5rem; }
}

/* ---- the pattern ---- */
.pattern {
  background: var(--green-deep);
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6.5rem) var(--pad);
}
.pattern .eyebrow { color: var(--lime); }
.pattern-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-wrap: balance;
}
.pattern-body { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: var(--measure); margin-top: 1.5rem; color: rgba(245,245,233,.86); }

/* ---- share ---- */
.share {
  background: var(--lime);
  color: var(--ink);
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}
.share-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.share-body { margin-top: 1rem; max-width: var(--measure); font-size: 1.1rem; }
.share-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.share-row .btn { font-size: .95rem; }

/* ---- signup ---- */
.signup {
  background: var(--green);
  color: var(--cream);
  padding: clamp(3.5rem, 8vw, 6rem) var(--pad);
}
.signup-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  letter-spacing: -0.02em;
}
.signup-body { margin-top: 1rem; max-width: var(--measure); font-size: 1.1rem; color: rgba(245,245,233,.86); }
.signup-form { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; max-width: 34rem; }
.signup-form input[type="email"] {
  flex: 1 1 14rem;
  font: inherit;
  padding: .9rem 1.1rem;
  border-radius: 999px;
  border: 2px solid rgba(245,245,233,.4);
  background: rgba(255,255,255,.06);
  color: var(--cream);
}
.signup-form input[type="email"]::placeholder { color: rgba(245,245,233,.55); }
.signup-form input[type="email"]:focus { border-color: var(--lime); }
.hp { display: none; }
.form-msg { margin-top: 1rem; font-weight: 600; color: var(--lime); min-height: 1.5em; }
.fineprint { margin-top: 1.5rem; font-size: .85rem; color: rgba(245,245,233,.65); max-width: var(--measure); }

/* ---- footer ---- */
.footer {
  background: var(--ink);
  color: rgba(245,245,233,.75);
  font-size: .875rem;
  padding: 2rem var(--pad) 2.5rem;
}
.footer p { margin-bottom: .6rem; }
.authorized { color: var(--cream); font-weight: 600; }
.footer .social a { margin-right: 1rem; }
