/* ==========================================================================
   InventHelp — Site 16
   Expressive studio sheet · cool porcelain, hard ink, vermilion + lime
   Asymmetric 12-column article grid, offset frames, art-directed rhythm
   ========================================================================== */

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

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

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

body,
h1, h2, h3, h4, p, figure, figcaption, blockquote, ul, ol, 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 {
  --canvas:    #ecedf0;
  --canvas-2:  #e0e1e6;
  --card:      #ffffff;
  --ink:       #131317;
  --ink-mid:   #55555f;
  --rule:      #c4c5cd;

  --accent:    #ff3d18;   /* vermilion — rules, marks, offsets */
  --accent-dk: #c22a08;   /* accessible vermilion for text on light */
  --lime:      #ccf94a;   /* the unexpected one — dark panels only */

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body:    'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  --shell:   min(1240px, 100% - 3rem);
  --gap:     1.4rem;

  --t-1:  0.72rem;
  --t0:   1.075rem;
  --t1:   1.24rem;
  --t2:   1.55rem;
  --t3:   2.2rem;
}

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

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t0);
  line-height: 1.72;
  font-weight: 400;
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

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

.rule-top {
  height: 8px;
  background: var(--accent);
}

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

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

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

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

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

.site-nav a {
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 3px solid transparent;
  color: var(--ink);
}

.site-nav a:hover { border-bottom-color: var(--rule); }

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

/* --- 5. Hero + title block ----------------------------------------------- */

.hero {
  position: relative;
  border-bottom: 2px solid var(--ink);
  background: var(--canvas-2);
}

.hero-figure {
  width: 100%;
  overflow: hidden;
}

.hero-figure img {
  width: 100%;
  height: clamp(300px, 52vh, 560px);
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.title-block {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin-inline: auto;
  margin-top: -5.5rem;
  margin-bottom: 4.5rem;
  max-width: min(60rem, 100%);
  margin-left: max(calc((100% - min(1240px, 100% - 3rem)) / 2), 1.5rem);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 18px 18px 0 var(--accent);
  padding: clamp(1.6rem, 3.6vw, 3rem);
}

.kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: 1.1rem;
}

.kicker::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--accent);
  margin-right: 0.6rem;
  vertical-align: 1px;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6.2vw, 4.6rem);
  line-height: 0.94;
  letter-spacing: -0.038em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

.standfirst {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-mid);
  max-width: 46ch;
  margin-bottom: 1.6rem;
}

.byline {
  display: block;
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
}

/* --- 6. Article grid ----------------------------------------------------- */

.article {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-bottom: 4rem;
}

.article > * { grid-column: 2 / 10; }

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

.article > p a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 100%;
  padding-bottom: 1px;
}

.article > p a:hover {
  color: var(--accent-dk);
  background-size: 100% 100%;
  background-image: linear-gradient(rgba(255, 61, 24, 0.16), rgba(255, 61, 24, 0.16));
}

.lead {
  font-size: clamp(1.2rem, 2.2vw, 1.42rem);
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1.8rem !important;
}

.lead::first-line { letter-spacing: -0.005em; }

.eyebrow {
  grid-column: 1 / 10;
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-top: 2.8rem;
  margin-bottom: 0.7rem;
}

.eyebrow::after {
  content: "";
  display: inline-block;
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
  margin-left: 0.7rem;
  vertical-align: 0.3em;
}

h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.85rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
  text-wrap: balance;
  margin-bottom: 1.2rem;
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--t2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 1.8rem 0 0.7rem;
}

/* --- 7. Figures ---------------------------------------------------------- */

.fig {
  margin: 3rem 0 3.2rem;
}

.fig .frame {
  border: 2px solid var(--ink);
  background: var(--card);
  padding: 8px;
}

.fig img { width: 100%; }

.fig figcaption {
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mid);
  margin-top: 0.9rem;
}

.fig figcaption b {
  color: var(--accent-dk);
  font-weight: 500;
  margin-right: 0.5rem;
}

.fig--right {
  grid-column: 5 / 13;
  transform: rotate(0.9deg);
}

.fig--right .frame { box-shadow: 16px 16px 0 var(--accent); }

.fig--left {
  grid-column: 1 / 9;
  transform: rotate(-0.9deg);
}

.fig--left .frame { box-shadow: -16px 16px 0 var(--ink); }

.fig--wide {
  grid-column: 1 / 13;
}

.fig--wide .frame { box-shadow: 0 16px 0 var(--accent); }

.fig--wide img {
  max-height: 460px;
  object-fit: cover;
}

/* --- 8. Pull quotes ------------------------------------------------------ */

.quote-band {
  grid-column: 1 / 13;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--canvas);
  padding: clamp(2rem, 4.5vw, 3.6rem);
  margin: 3.2rem 0;
}

.quote-band::before {
  content: "\201C";
  position: absolute;
  top: -1.6rem;
  right: 1.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11rem;
  line-height: 1;
  color: var(--lime);
  pointer-events: none;
}

.quote-band p {
  position: relative;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
  max-width: 28ch;
}

.quote-band .attrib {
  display: block;
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
}

.quote-card {
  grid-column: 2 / 11;
  margin: 2.6rem 0 2.8rem;
  padding: 1.4rem 0 1.4rem 1.8rem;
  border-left: 10px solid var(--accent);
}

.quote-card p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.quote-card .attrib {
  display: block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

/* --- 9. Closing ---------------------------------------------------------- */

.closing {
  grid-column: 2 / 11;
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 2px solid var(--ink);
  font-size: var(--t1);
  font-weight: 500;
  line-height: 1.45;
}

.endmark {
  grid-column: 2 / 10;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dk);
}

/* --- 10. Footer ---------------------------------------------------------- */

.site-footer {
  background: var(--canvas-2);
  border-top: 2px solid var(--ink);
  margin-top: 2rem;
}

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

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

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

.footer-word {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mid);
  line-height: 1.6;
}

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

.footer-nav a {
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

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

/* injected partial — classes must stay styled */
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem 2.6rem;
  padding: 2.6rem 0 2.2rem;
}

.footer-cols h2 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: var(--t-1);
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--accent);
}

.footer-cols ul li {
  margin-bottom: 0.55rem;
  line-height: 1.45;
}

.footer-cols a {
  font-family: var(--body);
  font-size: 0.94rem;
  color: var(--ink-mid);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.copyright {
  font-family: var(--mono);
  font-size: var(--t-1);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mid);
  padding: 1.4rem 0 2.6rem;
  border-top: 2px solid var(--ink);
}

/* --- 11. Responsive ------------------------------------------------------ */

@media (max-width: 900px) {
  :root {
    --shell: min(760px, 100% - 2.4rem);
    --gap: 1rem;
  }

  .title-block {
    margin-top: -3.2rem;
    margin-bottom: 3.4rem;
    box-shadow: 12px 12px 0 var(--accent);
    max-width: 100%;
  }

  .article > *,
  .article > .eyebrow,
  .article > .quote-card,
  .article > .closing,
  .article > .endmark { grid-column: 1 / 13; }

  .fig--right,
  .fig--left,
  .fig--wide {
    grid-column: 1 / 13;
    transform: none;
  }

  .fig--right .frame { box-shadow: 12px 12px 0 var(--accent); }
  .fig--left .frame { box-shadow: -12px 12px 0 var(--ink); }
  .fig--wide .frame { box-shadow: 0 12px 0 var(--accent); }

  .quote-band { margin-inline: 0; }
  .quote-band::before { font-size: 8rem; top: -1.1rem; }

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

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 2rem);
    --t0: 1.02rem;
  }

  body { line-height: 1.68; }

  .header-inner { padding: 0.9rem 0; }
  .brand img { width: 152px; }
  .site-nav { gap: 1rem; }
  .site-nav a { letter-spacing: 0.1em; }

  .hero-figure img { height: clamp(230px, 40vh, 340px); }

  .title-block {
    margin-top: -2.2rem;
    box-shadow: 8px 8px 0 var(--accent);
  }

  h1 { letter-spacing: -0.03em; }

  .fig { margin: 2.2rem 0 2.4rem; }
  .fig .frame { padding: 6px; }
  .fig--right .frame,
  .fig--wide .frame { box-shadow: 8px 8px 0 var(--accent); }
  .fig--left .frame { box-shadow: -8px 8px 0 var(--ink); }
  .fig--wide img { max-height: 300px; }

  .quote-band::before { font-size: 6rem; right: 0.8rem; top: -0.8rem; }
  .quote-band p { max-width: 100%; }
  .quote-card { padding-left: 1.1rem; border-left-width: 7px; }

  .footer-top { padding: 1.9rem 0 1.5rem; }
  .footer-mark img { width: 168px; }
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.9rem;
  }
}
