/* ==========================================================================
   InventHelp — Site 10
   Colour-blocked reporting. Saturated primaries on white, heavy flat shapes,
   Archivo Black headings, high-contrast band transitions between sections.
   ========================================================================== */

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

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

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

body,
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd, li {
  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:        #111114;
  --ink-soft:   #55555f;
  --ink-faint:  #8b8b96;
  --paper:      #ffffff;
  --wash:       #f2f2f4;
  --line:       #111114;

  --blue:   #1b44ff;
  --red:    #ff3b21;
  --amber:  #ffc402;
  --teal:   #00b48a;
  --violet: #7a2bff;

  /* default accent, overridden by the .a-* modifiers */
  --accent:    var(--blue);
  --on-accent: #ffffff;

  --display: 'Archivo Black', 'Archivo', Impact, 'Haettenschweiler', sans-serif;
  --label:   'Space Grotesk', 'Archivo', 'Segoe UI', Arial, sans-serif;
  --body:    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --measure: 62ch;
  --flank:   7.5rem;
  --gutter:  1.6rem;
  --shift:   1.15rem;   /* offset of the flat colour blocks behind images */

  --step-2: 0.7rem;
  --step-1: 0.8rem;
  --step0:  1.06rem;
  --step1:  1.24rem;
  --step2:  1.55rem;
  --step3:  2.15rem;
  --step4:  3.3rem;
}

/* Accent modifiers — applied per section to drive the colour rhythm */

.a-blue   { --accent: var(--blue);   --on-accent: #ffffff; }
.a-red    { --accent: var(--red);    --on-accent: #ffffff; }
.a-teal   { --accent: var(--teal);   --on-accent: #ffffff; }
.a-violet { --accent: var(--violet); --on-accent: #ffffff; }
.a-amber  { --accent: var(--amber);  --on-accent: #111114; }
.a-ink    { --accent: var(--ink);    --on-accent: #ffffff; }

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

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

::selection {
  background: var(--amber);
  color: var(--ink);
}

a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--blue), var(--blue));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 3px;
  padding-bottom: 0.06em;
}

a:hover {
  background-size: 100% 100%;
  color: #ffffff;
}

a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  background-size: 100% 3px;
  color: var(--ink);
}

strong { font-weight: 600; }

/* --- 4. Shell ------------------------------------------------------------ */

.wrap {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.colorbar {
  display: flex;
  height: 10px;
}

.colorbar span { flex: 1 1 0; }

.colorbar span:nth-child(1) { background: var(--blue); }
.colorbar span:nth-child(2) { background: var(--red); }
.colorbar span:nth-child(3) { background: var(--amber); }
.colorbar span:nth-child(4) { background: var(--teal); }
.colorbar span:nth-child(5) { background: var(--violet); }

.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.5rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.brand {
  flex: 0 0 auto;
  line-height: 0;
  background-image: none;
  padding-bottom: 0;
}

.brand:hover { background-image: none; }

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

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.4rem;
}

.site-nav a {
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background-image: none;
  padding: 0.42em 0.75em;
  border: 2px solid transparent;
}

.site-nav a:hover {
  background-image: none;
  color: var(--ink);
  border-color: var(--ink);
}

.site-nav a[aria-current='page'] {
  background: var(--ink);
  color: #ffffff;
  border-color: var(--ink);
}

/* --- 6. Title band ------------------------------------------------------- */

.masthead {
  background: var(--accent);
  color: var(--on-accent);
  border-bottom: 3px solid var(--line);
  padding: 3.6rem 0 4.4rem;
  overflow: hidden;
}

.masthead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 3.4rem;
  align-items: center;
}

.kicker {
  display: inline-block;
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--ink);
  padding: 0.5em 0.85em;
  margin-bottom: 1.5rem;
}

.masthead.a-amber .kicker { background: var(--ink); color: #ffffff; }

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step4);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.standfirst {
  font-size: var(--step1);
  line-height: 1.5;
  margin-top: 1.6rem;
  max-width: 34rem;
  opacity: 0.92;
}

.byline {
  display: inline-block;
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2.1rem;
  padding-top: 1.1rem;
  border-top: 3px solid currentColor;
}

.masthead-figure {
  position: relative;
  margin: 0;
}

.masthead-figure::before {
  content: '';
  position: absolute;
  left: var(--shift);
  top: var(--shift);
  width: 100%;
  height: 100%;
  background: var(--amber);
}

.masthead.a-amber .masthead-figure::before { background: var(--ink); }

.masthead-figure .frame { position: relative; }

/* --- 7. Article grid ----------------------------------------------------- */

.article {
  display: grid;
  grid-template-columns:
    [full-start] minmax(var(--gutter), 1fr)
    [wide-start] minmax(0, var(--flank))
    [text-start] minmax(0, var(--measure))
    [text-end]   minmax(0, var(--flank))
    [wide-end]   minmax(var(--gutter), 1fr)
    [full-end];
  padding: 3.6rem 0 4rem;
}

.article > * { grid-column: text-start / text-end; }

.article > p { margin-bottom: 1.45rem; }

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

.lead::before {
  content: '';
  display: block;
  width: 4.5rem;
  height: 10px;
  background: var(--red);
  margin-bottom: 1.4rem;
}

/* Section labels and headings */

.eyebrow {
  display: inline-block;
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.45em 0.8em;
  margin-top: 3.4rem;
  margin-bottom: 1rem;
}

.article > h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step3);
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.article > h3 {
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step2);
  line-height: 1.25;
  margin: 2.3rem 0 0.85rem;
}

/* Lists inside the measure */

.article > ul { margin: 0 0 1.7rem; }

.article > ul li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.7rem;
}

.article > ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.9rem;
  height: 0.55rem;
  background: var(--accent);
}

/* The calendar ledger — the site's signature block */

.ledger {
  grid-column: wide-start / wide-end;
  margin: 2.6rem 0 3rem;
  border-top: 4px solid var(--ink);
}

.ledger li {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 0 1.8rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 2px solid var(--ink);
}

.ledger-mark {
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: var(--accent);
}

.ledger li:nth-child(5n+1) { --accent: var(--blue); }
.ledger li:nth-child(5n+2) { --accent: var(--red); }
.ledger li:nth-child(5n+3) { --accent: var(--teal); }
.ledger li:nth-child(5n+4) { --accent: var(--violet); }
.ledger li:nth-child(5n+5) { --accent: var(--ink); }

.ledger p {
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 0;
}

/* Pull quote — a full-width colour band */

.pull {
  grid-column: full-start / full-end;
  background: var(--accent);
  color: var(--on-accent);
  padding: 3.1rem var(--gutter);
  margin: 3.2rem 0 3.4rem;
}

.pull p {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step2);
  line-height: 1.22;
  letter-spacing: -0.012em;
  text-transform: uppercase;
  max-width: 46rem;
  margin: 0 auto;
}

.pull .attrib {
  display: block;
  max-width: 46rem;
  margin: 1.1rem auto 0;
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

/* Figures — flat colour block offset behind each image */

.article > figure { margin: 3rem 0 3.2rem; }

.slab { position: relative; }

.slab::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--accent);
  top: var(--shift);
}

.slab-left::before  { left: calc(-1 * var(--shift)); }
.slab-right::before { left: var(--shift); }

.slab .frame { position: relative; }

.article > .slab-left  { grid-column: wide-start / text-end; }
.article > .slab-right { grid-column: text-start / wide-end; }

.article > .slab-portrait {
  grid-column: text-start / text-end;
  max-width: 27rem;
  margin-left: auto;
  margin-right: auto;
}

.frame {
  overflow: hidden;
  background: var(--wash);
  width: 100%;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ratio-photo { aspect-ratio: 3 / 2; }
.ratio-wide  { aspect-ratio: 16 / 9; }
.ratio-still { aspect-ratio: 4 / 3; }
.ratio-tall  { aspect-ratio: 4 / 5; }

/* Closing line */

.endnote {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 4px solid var(--ink);
  font-family: var(--label);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* --- 8. Footer ----------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: #ffffff;
  border-top: 3px solid var(--line);
  padding: 3rem 0 2.4rem;
}

.site-footer a { color: #ffffff; }

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
  padding-bottom: 2.2rem;
  border-bottom: 2px solid #35353f;
}

.footer-mark {
  line-height: 0;
  background-image: none;
  padding-bottom: 0;
  filter: invert(1) grayscale(1) contrast(1.3);
}

.footer-mark:hover { background-image: none; }

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

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

.footer-nav a {
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background-image: none;
  padding: 0.4em 0.7em;
  border: 2px solid #35353f;
}

.footer-nav a:hover {
  background-image: none;
  background: var(--amber);
  color: var(--ink);
  border-color: var(--amber);
}

/* Injected link columns */

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

.footer-cols h2 {
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffffff;
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
  border-bottom: 4px solid var(--amber);
}

.footer-cols section:nth-child(2) h2 { border-bottom-color: var(--teal); }
.footer-cols section:nth-child(3) h2 { border-bottom-color: var(--red); }

.footer-cols ul li { margin-bottom: 0.5rem; }

.footer-cols a {
  font-family: var(--body);
  font-size: 0.84rem;
  line-height: 1.5;
  color: #c9c9d2;
  background-image: none;
  padding-bottom: 0;
}

.footer-cols a:hover {
  background-image: none;
  color: var(--amber);
  text-decoration: underline;
}

.copyright {
  font-family: var(--label);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9a9aa6;
  border-top: 2px solid #35353f;
  padding-top: 1.5rem;
}

/* --- 9. Responsive ------------------------------------------------------- */

@media (max-width: 1080px) {
  :root { --flank: 4rem; --step4: 2.9rem; }
}

@media (max-width: 900px) {
  :root {
    --step4: 2.5rem;
    --step3: 1.85rem;
    --flank: 1.5rem;
  }

  .masthead {
    padding: 2.8rem 0 3.4rem;
  }

  .masthead-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
  }

  .standfirst { max-width: none; }

  .ledger li { grid-template-columns: 8.5rem minmax(0, 1fr); gap: 0 1.2rem; }

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

@media (max-width: 720px) {
  :root {
    --step0: 1.01rem;
    --step4: 1.95rem;
    --step3: 1.5rem;
    --step2: 1.25rem;
    --gutter: 1.15rem;
    --shift: 0.75rem;
  }

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

  .brand img { width: 168px; }

  .site-nav { gap: 0.4rem 0.35rem; }

  .site-nav a { font-size: 0.72rem; letter-spacing: 0.06em; padding: 0.38em 0.6em; }

  .article { padding-top: 2.5rem; }

  /* Break-out images run to the edges on narrow screens */
  .article > .slab-left,
  .article > .slab-right { grid-column: full-start / full-end; }

  .article > .slab-portrait { max-width: none; }

  .slab-left::before,
  .slab-right::before { left: var(--shift); }

  .article > figure { margin: 2.3rem 0 2.6rem; }

  .ledger { grid-column: full-start / full-end; }

  .ledger li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
    padding: 1rem 0;
  }

  .pull { padding: 2.2rem var(--gutter); margin: 2.6rem 0 2.8rem; }

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

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

@media (max-width: 420px) {
  :root { --step4: 1.72rem; }
  .ratio-photo { aspect-ratio: 4 / 3; }
}

/* --- 10. Motion & print -------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-nav, .site-footer, .colorbar { display: none; }
  body { background: #fff; color: #000; }
  .masthead { background: #fff; color: #000; }
  .slab::before, .masthead-figure::before { display: none; }
}
