/* Kobra Blood — kobrablood.com
   Palette comes from the can: black, bare aluminum, blood. */

@font-face { font-family: 'Big Shoulders Display'; font-weight: 900; font-style: normal; font-display: swap; src: url(fonts/bsd-900.woff2) format('woff2'); }
@font-face { font-family: 'Big Shoulders Display'; font-weight: 800; font-style: normal; font-display: swap; src: url(fonts/bsd-800.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/archivo-400.woff2) format('woff2'); }
@font-face { font-family: 'Archivo'; font-weight: 600; font-style: normal; font-display: swap; src: url(fonts/archivo-600.woff2) format('woff2'); }

:root {
  --black: #000;
  --aluminum: #D7D8DB;   /* headings, primary text */
  --soft: #C4C6CA;       /* body copy */
  --ash: #9A9CA2;        /* fine print */
  --steel: #8E9096;      /* borders */
  --blood: #D0101F;      /* the one accent */
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Helvetica Neue', sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pad: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--aluminum);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: none; }

/* The hero photo is wider than a phone screen; clip it here so the page never scrolls sideways. */
main { overflow-x: hidden; overflow-x: clip; }

/* Page-width container. Sections set only their block padding so this never fights them. */
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Header ---------- */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }

.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--aluminum); text-decoration: none; }
.brand img { display: block; }
.brand-name { font: 900 26px/1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.tm { margin-left: 3px; font: 600 10px/1 var(--body); vertical-align: 13px; }

.btn-ghost {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--steel); border-radius: 4px;
  color: var(--aluminum); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.btn-ghost:hover { border-color: #fff; color: #fff; }
.brand:focus-visible, .btn-ghost:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- Hero ---------- */

/* Two columns when there's room, one when there isn't. The can spans both rows on the
   right; on a phone the order becomes headline, can, pitch + form. */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  column-gap: 40px;
  row-gap: clamp(20px, 3vw, 36px);
  padding-block: clamp(8px, 2vw, 24px) clamp(24px, 3vw, 40px);
}

/* The three headline lines are each sized to span the column exactly.
   Sizes are 100 / (ink width in em) for Big Shoulders Display Black, in container units. */
.hero-title { container-type: inline-size; width: 100%; max-width: 600px; align-self: end; }
.hero-title h1 {
  margin: 0;
  font: 900 clamp(56px, 9vw, 120px)/0.8 var(--display);   /* fallback where cqw isn't supported */
  font-kerning: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.fit { display: block; line-height: 0.8; }
.fit-1 { font-size: 20.29cqw; margin-left: -0.04em; }
.fit-2 { font-size: 27.01cqw; margin-left: -0.035em; margin-top: 0.12em; }
.fit-3 { font-size: 30.01cqw; margin-left: -0.025em; margin-top: 0.11em; }

/* The photo fades to pure black at its edges, so it can run wider than its column. */
.hero-shot { grid-row: span 2; align-self: center; min-width: 0; }
.hero-shot img { display: block; position: relative; left: 50%; transform: translateX(-50%); width: max(112%, 480px); height: auto; }

.hero-pitch { width: 100%; max-width: 600px; align-self: start; }
.lede { margin: 0 0 24px; max-width: 44ch; color: var(--soft); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.45; text-wrap: pretty; }

/* ---------- Signup form ---------- */

.signup { scroll-margin-top: 24px; }
.signup-form { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; }
.field--email { flex: 3 1 220px; }
.field--zip { flex: 1 1 104px; }

.input {
  width: 100%; height: 52px; padding: 0 14px;
  border: 1.5px solid var(--steel); border-radius: 4px;
  background: var(--black); color: #fff;
  font: 400 17px var(--body);
}
.input::placeholder { color: #7C7E84; opacity: 1; }
.input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-color: #fff; }

.btn {
  flex: 1 1 150px; height: 52px; padding: 0 20px;
  border: 0; border-radius: 4px;
  background: var(--blood); color: #fff;
  font: 600 17px var(--body); cursor: pointer;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* Honeypot: off-screen field that only bots fill in. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fineprint { margin: 12px 0 0; color: var(--ash); font-size: 14px; line-height: 1.45; }
.signup-error { margin: 12px 0 0; color: #FF9A9E; font-size: 15px; font-weight: 600; }
.signup-done { margin: 0; padding-top: 18px; border-top: 1.5px solid var(--steel); font-size: 20px; font-weight: 600; line-height: 1.4; }
.signup-done:focus { outline: none; }

/* Form on the red band: white fields, black button. */
.signup--light .input { border-color: #fff; background: #fff; color: #000; }
.signup--light .input::placeholder { color: #6B6D72; }
.signup--light .input:focus-visible { outline: 3px solid #000; border-color: #fff; }
.signup--light .btn { background: #000; }
.signup--light .btn:focus-visible { outline-color: #000; }
.signup--light .fineprint, .signup--light .signup-error { color: #fff; }
.signup--light .signup-done { border-top-color: #fff; }

/* ---------- The can ---------- */

.can {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  align-items: center;
  gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(16px, 3vw, 40px) clamp(56px, 8vw, 112px);
}
.can-shot { display: block; width: 100%; height: auto; border-radius: 4px; }
.can-copy { max-width: 560px; }
.can-copy h2 { margin: 0; font: 800 clamp(44px, 5.4vw, 76px)/0.94 var(--display); text-transform: uppercase; }
.can-copy h2 span { display: block; }
.can-copy p { margin: 22px 0 0; max-width: 46ch; color: var(--soft); font-size: 18px; line-height: 1.55; text-wrap: pretty; }

/* ---------- Red band ---------- */

.band { background: var(--blood) url(scales.png) 0 0 / 44px 55px; color: #fff; }
.band-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  align-items: end;
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(48px, 7vw, 96px);
}
.band h2 { margin: 0; font: 900 clamp(52px, 7.2vw, 108px)/0.88 var(--display); text-transform: uppercase; text-wrap: balance; }
.band .signup { width: 100%; max-width: 600px; }

/* ---------- Footer ---------- */

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-block: 28px 40px; color: var(--ash); font-size: 14px; }

/* ---------- Standalone message page (signup.php without JavaScript) ---------- */

.notice { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding-block: 48px; }
.notice h1 { margin: 0; font: 900 clamp(52px, 9vw, 112px)/0.9 var(--display); text-transform: uppercase; text-wrap: balance; }
.notice p { margin: 0; max-width: 44ch; color: var(--soft); font-size: 20px; line-height: 1.45; }
.notice a { color: var(--aluminum); font-weight: 600; text-underline-offset: 3px; }
.notice a:hover { color: #fff; }
