/* ============================================================
   InventHelp — Site 14
   Neo-brutalist: thick black rules, hard offset shadows,
   raw high-contrast colour, oversized grotesque headings.
   ============================================================ */

:root {
  --ink: #0B0B0B;
  --ink-soft: #34332E;
  --paper: #FFFBF0;
  --panel: #FFFFFF;
  --acid: #E4FF3F;
  --flare: #FF4A22;
  --blue: #1F3CFF;
  --lilac: #C6B4FF;
  --mint: #38E0A6;

  --rule: 4px;
  --rule-thin: 3px;

  --display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --sans: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;

  --step0: 1.06rem;
  --step1: 1.22rem;
  --step2: 1.6rem;
  --h2: clamp(1.75rem, 3.6vw, 2.75rem);
  --h1: clamp(2.4rem, 7.4vw, 5.1rem);
}

/* ---------- reset ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  background-image:
    linear-gradient(90deg, rgba(11, 11, 11, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step0);
  line-height: 1.68;
  font-weight: 400;
}

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

h1, h2, h3 { margin: 0; font-weight: 400; }

p { margin: 0 0 1.35rem; }

ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 34px;
}

/* ---------- header ---------- */

.site-header {
  background: var(--acid);
  border-bottom: 6px solid var(--ink);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: 1.1rem 34px;
  flex-wrap: wrap;
}

.brand {
  display: block;
  line-height: 0;
  border: var(--rule-thin) solid var(--ink);
  background: var(--panel);
  padding: 9px 13px;
  box-shadow: 5px 5px 0 var(--ink);
}

.brand img { width: 176px; height: auto; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.site-nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--panel);
  border: var(--rule-thin) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.55rem 0.85rem;
  transition: transform 0.08s linear, box-shadow 0.08s linear, background 0.08s linear;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--flare);
  color: var(--panel);
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--ink);
  color: var(--acid);
}

/* ---------- hero ---------- */

main { display: block; padding-bottom: 3rem; }

.hero-figure {
  margin: 3rem auto 0;
  max-width: 1220px;
  padding: 0 34px;
}

.hero-frame {
  border: 6px solid var(--ink);
  box-shadow: 16px 16px 0 var(--blue);
  background: var(--ink);
  overflow: hidden;
}

.hero-frame img {
  width: 100%;
  height: clamp(260px, 46vw, 560px);
  object-fit: cover;
  filter: saturate(1.06) contrast(1.04);
}

/* ---------- title block ---------- */

.title-block {
  max-width: 1000px;
  margin: -3.4rem auto 3.6rem;
  position: relative;
  z-index: 2;
  background: var(--panel);
  border: 6px solid var(--ink);
  box-shadow: 14px 14px 0 var(--ink);
  padding: 2.6rem 2.9rem 2.4rem;
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--acid);
  border: var(--rule-thin) solid var(--ink);
  padding: 0.4rem 0.8rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--display);
  font-size: var(--h1);
  line-height: 0.92;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.standfirst {
  font-size: clamp(1.1rem, 2vw, 1.36rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-soft);
  border-left: 8px solid var(--flare);
  padding-left: 1.1rem;
  margin-bottom: 1.6rem;
}

.byline {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--acid);
  border: var(--rule-thin) solid var(--ink);
  padding: 0.35rem 0.7rem;
}

/* ---------- article ---------- */

.article {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 34px;
}

.lead {
  font-size: var(--step1);
  line-height: 1.58;
  font-weight: 500;
}

.lead::first-line { font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--flare);
  color: var(--panel);
  border: var(--rule-thin) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.4rem 0.8rem;
  margin: 3.2rem 0 1.1rem;
}

.article h2 {
  font-family: var(--display);
  font-size: var(--h2);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 6px solid var(--ink);
}

.article p a {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--acid), var(--acid)) 0 88% / 100% 42% no-repeat;
  box-shadow: inset 0 -2px 0 var(--ink);
  padding: 0 2px;
}

.article p a:hover,
.article p a:focus-visible {
  background: var(--ink);
  color: var(--acid);
  box-shadow: none;
}

/* stat strip */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: var(--rule) solid var(--ink);
  box-shadow: 10px 10px 0 var(--mint);
  margin: 2.4rem 0 2.8rem;
  background: var(--panel);
}

.stat-strip div {
  padding: 1.3rem 1.2rem;
  border-right: var(--rule) solid var(--ink);
}

.stat-strip div:last-child { border-right: 0; }

.stat-strip b {
  display: block;
  font-family: var(--display);
  font-size: 1.85rem;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.stat-strip span {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* slab: blunt highlighted block of prose */

.slab {
  background: var(--lilac);
  border: var(--rule) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  padding: 1.6rem 1.7rem 0.5rem;
  margin: 2.4rem 0 2.8rem;
  font-weight: 500;
}

.slab.slab-acid { background: var(--acid); }
.slab.slab-mint { background: var(--mint); }

/* ---------- figures ---------- */

.shot {
  margin: 2.9rem 0 3rem;
}

.shot .frame {
  border: 6px solid var(--ink);
  background: var(--ink);
  overflow: hidden;
}

.shot img {
  width: 100%;
  height: clamp(220px, 34vw, 400px);
  object-fit: cover;
}

.shot-blue .frame { box-shadow: 13px 13px 0 var(--blue); }
.shot-flare .frame { box-shadow: 13px 13px 0 var(--flare); }
.shot-lilac .frame { box-shadow: 13px 13px 0 var(--lilac); }
.shot-mint .frame { box-shadow: 13px 13px 0 var(--mint); }

.shot-wide {
  max-width: 1090px;
  margin-left: calc(50% - 545px);
  margin-right: calc(50% - 545px);
  width: auto;
}

/* ---------- pull quotes ---------- */

blockquote {
  margin: 3.2rem 0;
  background: var(--blue);
  color: var(--panel);
  border: 6px solid var(--ink);
  box-shadow: 14px 14px 0 var(--acid);
  padding: 2rem 2.1rem 1.6rem;
}

blockquote.q-flare {
  background: var(--flare);
  box-shadow: 14px 14px 0 var(--ink);
}

blockquote p {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

blockquote .attrib {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 0.8rem;
  border-top: var(--rule-thin) solid currentColor;
}

/* ---------- closing ---------- */

.endmark {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--acid);
  border: var(--rule) solid var(--ink);
  box-shadow: 8px 8px 0 var(--flare);
  padding: 0.9rem 1.1rem;
  margin: 3rem 0 1rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--acid);
  border-top: 8px solid var(--ink);
  padding: 3rem 0 2.4rem;
  margin-top: 4rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding-bottom: 2rem;
  border-bottom: var(--rule) solid var(--ink);
}

.footer-mark {
  display: block;
  line-height: 0;
  background: var(--panel);
  border: var(--rule-thin) solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 9px 13px;
}

.footer-mark img { width: 168px; height: auto; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-nav a {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--panel);
  border: var(--rule-thin) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.5rem 0.8rem;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  background: var(--ink);
  color: var(--acid);
}

/* injected link columns */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem 2.6rem;
  padding: 2.4rem 0 2.2rem;
  border-bottom: var(--rule) solid var(--ink);
}

.footer-cols h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--acid);
  background: var(--ink);
  border: var(--rule-thin) solid var(--ink);
  padding: 0.45rem 0.75rem;
  margin: 0 0 1.1rem;
}

.footer-cols ul li {
  margin-bottom: 0.45rem;
  padding-left: 0.9rem;
  position: relative;
}

.footer-cols ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.footer-cols a {
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-cols a:hover,
.footer-cols a:focus-visible {
  color: var(--ink);
  background: var(--panel);
  box-shadow: 0 2px 0 var(--ink);
}

.copyright {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 1.8rem 0 0;
}

/* ---------- focus ---------- */

a:focus-visible {
  outline: var(--rule-thin) solid var(--ink);
  outline-offset: 3px;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .wrap, .header-inner, .hero-figure, .article { padding-left: 24px; padding-right: 24px; }

  .header-inner { gap: 1rem; }
  .brand img { width: 148px; }

  .title-block {
    margin: -2.2rem auto 2.8rem;
    padding: 2rem 1.8rem 1.8rem;
    box-shadow: 10px 10px 0 var(--ink);
  }

  .hero-frame { box-shadow: 11px 11px 0 var(--blue); }

  .shot-wide {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-strip div { border-bottom: var(--rule) solid var(--ink); }
  .stat-strip div:nth-child(2n) { border-right: 0; }
  .stat-strip div:last-child { border-bottom: 0; }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root {
    --step0: 1.01rem;
    --rule: 3px;
  }

  body { background-size: 26px 26px; }

  .wrap, .header-inner, .hero-figure, .article { padding-left: 16px; padding-right: 16px; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-nav { gap: 0.45rem; }
  .site-nav a { font-size: 0.66rem; padding: 0.45rem 0.6rem; box-shadow: 3px 3px 0 var(--ink); }

  .hero-figure { margin-top: 1.8rem; }
  .hero-frame { border-width: 4px; box-shadow: 8px 8px 0 var(--blue); }

  .title-block {
    border-width: 4px;
    margin: -1.6rem auto 2.2rem;
    padding: 1.5rem 1.2rem 1.4rem;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .standfirst { border-left-width: 6px; padding-left: 0.9rem; }

  .article h2 { border-bottom-width: 4px; }

  .shot .frame { border-width: 4px; }
  .shot-blue .frame { box-shadow: 8px 8px 0 var(--blue); }
  .shot-flare .frame { box-shadow: 8px 8px 0 var(--flare); }
  .shot-lilac .frame { box-shadow: 8px 8px 0 var(--lilac); }
  .shot-mint .frame { box-shadow: 8px 8px 0 var(--mint); }

  blockquote {
    border-width: 4px;
    padding: 1.4rem 1.2rem 1.1rem;
    box-shadow: 8px 8px 0 var(--acid);
  }

  blockquote.q-flare { box-shadow: 8px 8px 0 var(--ink); }

  .slab { padding: 1.2rem 1.1rem 0.3rem; box-shadow: 7px 7px 0 var(--ink); }

  .stat-strip {
    grid-template-columns: minmax(0, 1fr);
    box-shadow: 7px 7px 0 var(--mint);
  }

  .stat-strip div { border-right: 0; }

  .footer-cols { grid-template-columns: minmax(0, 1fr); }

  .footer-top { flex-direction: column; align-items: flex-start; }
}
