/* ==========================================================================
   InventHelp — Site 11 · Flat system stylesheet
   Solid colour fields, no shadows, no gradients, geometric sans, hard alignment
   ========================================================================== */

/* --- 1. Reset ------------------------------------------------------------ */

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

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

body,
h1, h2, h3, p, figure, figcaption, blockquote, ul, ol, li, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 0;
}

a { color: inherit; }

/* --- 2. Tokens ----------------------------------------------------------- */

:root {
  --ink:        #14181a;
  --ink-mid:    #47545a;
  --ink-soft:   #6b787e;

  --paper:      #ffffff;
  --wash:       #edf1ef;
  --wash-deep:  #dfe6e2;

  --field:      #0e3d3c;
  --field-deep: #082726;
  --field-line: rgba(255, 255, 255, 0.16);

  --accent:     #dd4f26;
  --accent-ink: #a83814;

  --rule:       #ccd6d1;

  --display: 'Space Grotesk', 'Archivo', Helvetica, Arial, sans-serif;
  --body:    'IBM Plex Sans', 'Segoe UI', Helvetica, Arial, sans-serif;
  --mono:    'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --rail:    11.5rem;
  --measure: 66ch;
  --gap:     3rem;

  --s-1: 0.76rem;
  --s0:  1.0625rem;
  --s1:  1.22rem;
  --s2:  1.55rem;
  --s3:  2rem;
  --s4:  2.85rem;
}

/* --- 3. Base ------------------------------------------------------------- */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--s0);
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(1160px, 100% - 3rem);
  margin-inline: auto;
}

p { max-width: var(--measure); }

p + p { margin-top: 1.15rem; }

strong { font-weight: 600; }

/* --- 4. Header ----------------------------------------------------------- */

.site-header {
  background: var(--field);
  color: #fff;
  border-bottom: 6px solid var(--accent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  flex-wrap: wrap;
}

.brand {
  display: block;
  flex: 0 0 auto;
  line-height: 0;
}

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

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

.site-nav a {
  font-family: var(--mono);
  font-size: 0.735rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  padding-bottom: 0.3rem;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover { color: #fff; }

.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--accent);
}

/* --- 5. Masthead --------------------------------------------------------- */

.masthead {
  background: var(--field);
  color: #fff;
  padding: 4.5rem 0 4rem;
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--field);
  background: var(--accent);
  padding: 0.4rem 0.75rem;
  margin-bottom: 1.6rem;
}

.masthead h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.05rem, 5.2vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.022em;
  max-width: 20ch;
}

.standfirst {
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 54ch;
  margin-top: 1.5rem;
}

.byline {
  display: block;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 2.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--field-line);
  max-width: 22rem;
}

/* --- 6. Hero ------------------------------------------------------------- */

.hero {
  background: var(--field);
  border-bottom: 10px solid var(--accent);
}

.hero img {
  width: 100%;
  aspect-ratio: 3 / 2;
  max-height: 34rem;
  object-fit: cover;
}

.plate figcaption {
  font-family: var(--mono);
  font-size: var(--s-1);
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
  margin-top: 0.85rem;
  padding-left: 1.05rem;
  border-left: 4px solid var(--accent);
  max-width: 46ch;
}

/* --- 7. Article scaffolding ---------------------------------------------- */

.article {
  padding: 3.75rem 0 1rem;
}

.lead {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.22rem, 2.4vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.012em;
  color: var(--ink);
  max-width: 44ch;
  padding-bottom: 2.25rem;
  border-bottom: 4px solid var(--ink);
  margin-bottom: 2.75rem;
}

.sec {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  column-gap: var(--gap);
  padding: 2.5rem 0;
}

.sec > * { grid-column: 2; }

.sec > .eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.sec > h2 { grid-row: 1; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  line-height: 1.5;
  padding-top: 0.65rem;
  border-top: 3px solid var(--accent);
  align-self: start;
}

.sec h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.1vw, 2.05rem);
  line-height: 1.16;
  letter-spacing: -0.018em;
  max-width: 24ch;
  margin-bottom: 1.5rem;
}

.sec p + h3 { margin-top: 1.9rem; }

.sec h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--s1);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

/* Alternating solid field */

.band {
  background: var(--wash);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.band .sec { padding: 3.25rem 0; }

/* --- 8. Links ------------------------------------------------------------ */

.article a {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 1px;
  font-weight: 500;
}

.article a:hover {
  background: var(--accent);
  color: #fff;
  border-bottom-color: var(--accent);
}

/* --- 9. Lists ------------------------------------------------------------ */

.spec-list {
  max-width: var(--measure);
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--rule);
}

.spec-list li {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--rule);
  line-height: 1.6;
}

.spec-list li b {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  padding-top: 0.22rem;
}

.band .spec-list,
.band .spec-list li { border-color: var(--wash-deep); }

/* --- 10. Figures --------------------------------------------------------- */

.plate {
  position: relative;
  margin: 2.6rem 0 0.5rem;
  max-width: 46rem;
}

.plate .frame {
  position: relative;
  z-index: 1;
  background: var(--wash);
}

.plate::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  right: -1.15rem;
  top: 1.15rem;
  bottom: 1.15rem;
  background: var(--accent);
  z-index: 0;
}

.plate.alt::before { background: var(--field); }

.plate img {
  width: 100%;
  object-fit: cover;
}

.plate .r-wide img  { aspect-ratio: 3 / 2; }
.plate .r-still img { aspect-ratio: 16 / 10; }
.plate .r-tall  img { aspect-ratio: 3 / 4; }

.plate.narrow { max-width: 24rem; }

.plate figcaption { position: relative; z-index: 1; }

/* --- 11. Pull quotes ----------------------------------------------------- */

.pull {
  margin: 2.9rem 0 0.75rem;
  background: var(--field);
  color: #fff;
  padding: 2.4rem 2.2rem;
  max-width: 46rem;
}

.pull p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.18rem, 2.5vw, 1.55rem);
  line-height: 1.34;
  letter-spacing: -0.014em;
  max-width: 30ch;
}

.pull .attrib {
  display: block;
  font-family: var(--mono);
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--field-line);
}

.pull.accent {
  background: var(--accent);
  color: #fff;
}

.pull.accent .attrib {
  color: rgba(255, 255, 255, 0.85);
  border-top-color: rgba(255, 255, 255, 0.35);
}

/* --- 12. Close ----------------------------------------------------------- */

.closing {
  padding: 2.75rem 0 4.5rem;
}

.closing p {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.15rem, 2.3vw, 1.4rem);
  line-height: 1.45;
  letter-spacing: -0.012em;
  max-width: 46ch;
  padding-top: 2rem;
  border-top: 4px solid var(--ink);
}

.endmark {
  font-family: var(--mono);
  font-size: var(--s-1);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-top: 1.6rem;
}

/* --- 13. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--field-deep);
  color: rgba(255, 255, 255, 0.72);
  border-top: 6px solid var(--accent);
  padding: 3.25rem 0 2.5rem;
  font-size: 0.94rem;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--field-line);
}

.footer-mark {
  display: block;
  line-height: 0;
}

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

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

.footer-nav a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav a:hover { color: var(--accent); }

/* Injected link block */

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  padding: 2.5rem 0;
}

.footer-cols h2 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.85rem;
  margin-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent);
}

.footer-cols ul li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--field-line);
  line-height: 1.45;
}

.footer-cols a {
  font-size: 0.86rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
}

.footer-cols a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding-top: 2rem;
  border-top: 1px solid var(--field-line);
  max-width: none;
}

/* --- 14. Responsive ------------------------------------------------------ */

@media (max-width: 900px) {
  :root {
    --gap: 2rem;
    --measure: 62ch;
  }

  .wrap { width: min(1160px, 100% - 2.5rem); }

  .masthead { padding: 3.5rem 0 3rem; }

  .masthead h1 { max-width: 100%; }

  .sec {
    display: block;
    padding: 2.25rem 0;
  }

  .band .sec { padding: 2.75rem 0; }

  .sec .eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
  }

  .sec h2 { max-width: 100%; }

  .plate::before {
    left: 0.85rem;
    right: -0.85rem;
    top: 0.85rem;
    bottom: 0.85rem;
  }

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

@media (max-width: 720px) {
  body { font-size: 1rem; }

  .wrap { width: min(1160px, 100% - 2rem); }

  .header-inner {
    gap: 1rem;
    padding: 1rem 0;
  }

  .brand img,
  .footer-mark img { height: 24px; }

  .site-nav { gap: 1.15rem; }

  .site-nav a { font-size: 0.7rem; }

  .masthead { padding: 2.75rem 0 2.5rem; }

  .hero img { aspect-ratio: 4 / 3; }

  .article { padding: 2.5rem 0 0.5rem; }

  .lead {
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
  }

  .plate {
    margin-top: 2rem;
    max-width: 100%;
  }

  .plate::before {
    left: 0.6rem;
    right: -0.6rem;
    top: 0.6rem;
    bottom: 0.6rem;
  }

  .plate.narrow { max-width: 100%; }

  .plate .r-tall img { aspect-ratio: 4 / 5; }

  .pull { padding: 1.85rem 1.5rem; }

  .spec-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.3rem;
  }

  .closing { padding: 2rem 0 3.5rem; }

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