/* ==========================================================================
   InventHelp — Site 3 · "Elegant"
   Restrained luxury editorial: ivory ground, charcoal ink, hairline rules,
   wide letter-spaced small caps, high-contrast display serif, centred
   title blocks and matted image plates.
   ========================================================================== */

/* --- 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, dl, dt, 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 {
  --ivory:       #fcfbf7;
  --ivory-deep:  #f2efe7;
  --charcoal:    #171614;
  --ink:         #1f1e1b;
  --ink-soft:    #63605a;
  --ink-faint:   #8b877f;
  --claret:      #7a2b3a;
  --rule:        #ded9cd;
  --rule-firm:   #b9b2a3;

  --display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans:    'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --measure: 58ch;
  --flank:   6.5rem;
  --gutter:  1.6rem;

  --step-2: 0.64rem;
  --step-1: 0.74rem;
  --step0:  1.045rem;
  --step1:  1.2rem;
  --step2:  1.55rem;
  --step3:  2.15rem;
  --step4:  3.35rem;
}

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

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step0);
  font-weight: 300;
  line-height: 1.82;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--charcoal);
  color: var(--ivory);
}

a {
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-firm);
  padding-bottom: 0.08em;
  transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover {
  color: var(--claret);
  border-bottom-color: var(--claret);
}

a:focus-visible {
  outline: 1px solid var(--claret);
  outline-offset: 4px;
  border-bottom-color: transparent;
}

strong { font-weight: 500; }

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

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

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

.site-header {
  background: var(--ivory);
  border-top: 3px solid var(--charcoal);
  border-bottom: 1px solid var(--rule);
}

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

.brand {
  flex: 0 0 auto;
  line-height: 0;
  border-bottom: 0;
}

.brand:focus-visible { outline-offset: 7px; }

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

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

.site-nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-1);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.45em;
}

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

.site-nav a[aria-current='page'] {
  color: var(--charcoal);
  border-bottom-color: var(--claret);
}

/* --- 6. Title block ------------------------------------------------------ */

.title-block {
  max-width: 47rem;
  margin: 0 auto;
  padding: 5.5rem var(--gutter) 3.2rem;
  text-align: center;
}

.kicker {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--claret);
  margin-bottom: 2rem;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step4);
  line-height: 1.08;
  letter-spacing: -0.004em;
  color: var(--charcoal);
  text-wrap: balance;
}

.standfirst {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step2);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 1.5rem;
  text-wrap: pretty;
}

.byline {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 2.6rem;
}

.byline::before {
  content: '\25C7';
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0;
  color: var(--claret);
  margin-bottom: 1.5rem;
}

/* --- 7. Plates (images) -------------------------------------------------- */

.hero-figure {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.plate {
  border: 1px solid var(--rule-firm);
  padding: 0.55rem;
  background: var(--ivory);
}

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

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

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

figcaption {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-faint);
  text-align: center;
  margin-top: 1.1rem;
}

/* --- 8. Article ---------------------------------------------------------- */

.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.8rem 0 5rem;
}

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

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

.lead {
  font-size: var(--step1);
  line-height: 1.72;
  color: var(--ink);
}

.lead::first-letter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 2.15em;
  line-height: 0.9;
  color: var(--claret);
  padding-right: 0.03em;
}

/* Centred section marks */

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--claret);
  text-align: center;
  border-top: 1px solid var(--rule);
  padding-top: 2.6rem;
  margin-top: 3.4rem;
  margin-bottom: 1.1rem;
}

.article > h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step3);
  line-height: 1.16;
  letter-spacing: -0.003em;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 1.9rem;
  text-wrap: balance;
}

.article > h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step2);
  line-height: 1.3;
  color: var(--charcoal);
  margin: 2.3rem 0 0.85rem;
}

/* Lists */

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

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

.article > ul li::before {
  content: '\25C7';
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.6rem;
  line-height: 3;
  color: var(--claret);
}

/* Ledger — dotted-leader figure rows */

.ledger {
  grid-column: wide-start / wide-end;
  margin: 2.8rem 0 3rem;
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  padding: 0.3rem 0;
}

.ledger .row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.78rem 0.2rem;
  border-bottom: 1px dotted var(--rule-firm);
}

.ledger .row:last-child { border-bottom: 0; }

.ledger dt {
  flex: 1 1 auto;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--ink-soft);
}

.ledger dd {
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--step1);
  line-height: 1.4;
  color: var(--charcoal);
  white-space: nowrap;
}

.article > .ledger-note {
  font-family: var(--sans);
  font-size: var(--step-1);
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.65;
  color: var(--ink-faint);
  text-align: center;
  margin-top: -1.7rem;
  margin-bottom: 2.9rem;
}

/* Pull quotes */

.article > blockquote {
  grid-column: wide-start / wide-end;
  margin: 3.2rem 0 3.4rem;
  padding: 2.4rem 1.5rem 2.2rem;
  border-top: 1px solid var(--charcoal);
  border-bottom: 1px solid var(--charcoal);
  text-align: center;
}

.article > blockquote p {
  font-family: var(--display);
  font-style: italic;
  font-weight: 300;
  font-size: var(--step3);
  line-height: 1.28;
  color: var(--charcoal);
  margin: 0 auto;
  max-width: 34ch;
  text-wrap: balance;
}

.article > blockquote .attrib {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 1.6rem;
}

/* Figures inside the article */

.article > figure {
  grid-column: wide-start / wide-end;
  margin: 3.2rem 0 3.4rem;
}

/* Closing line */

.endmark {
  margin-top: 3.6rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

.endmark::before {
  content: '\25C7';
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0;
  color: var(--claret);
  margin-bottom: 1.3rem;
}

/* --- 9. Footer ----------------------------------------------------------- */

.site-footer {
  background: var(--ivory-deep);
  border-top: 1px solid var(--rule-firm);
  padding: 3.4rem 0 2.8rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 3rem;
  padding-bottom: 2.6rem;
  border-bottom: 1px solid var(--rule-firm);
}

.footer-mark {
  line-height: 0;
  border-bottom: 0;
}

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

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

.footer-nav a {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.3em;
}

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

/* Injected three-column link block */

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

.footer-cols h2 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding-bottom: 1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--rule-firm);
}

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

.footer-cols a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--ink-soft);
  border-bottom: 0;
}

.footer-cols a:hover { color: var(--claret); text-decoration: underline; }

.copyright {
  font-family: var(--sans);
  font-weight: 400;
  font-size: var(--step-2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule-firm);
  padding-top: 1.7rem;
  text-align: center;
}

/* --- 10. Responsive ------------------------------------------------------ */

@media (max-width: 1100px) {
  :root { --flank: 3.6rem; }
}

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

  .title-block { padding-top: 4rem; padding-bottom: 2.6rem; }
  .kicker { letter-spacing: 0.34em; }
  .article { padding-top: 3rem; }
  .article > blockquote { padding: 2rem 1rem 1.8rem; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  :root {
    --step0: 1rem;
    --step1: 1.12rem;
    --step2: 1.34rem;
    --step3: 1.6rem;
    --step4: 2.1rem;
    --gutter: 1.15rem;
    --flank: 0rem;
  }

  body { line-height: 1.76; }

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

  .brand img { width: 168px; }

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

  .site-nav a { font-size: 0.68rem; letter-spacing: 0.16em; }

  .title-block { padding-top: 3rem; text-align: left; }

  .byline::before { margin-left: 0; }

  .hero-figure { padding: 0 var(--gutter); }

  .plate { padding: 0.4rem; }

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

  .article > figure,
  .article > blockquote,
  .ledger { grid-column: full-start / full-end; }

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

  .article > h2 { text-align: left; }

  .eyebrow { text-align: left; letter-spacing: 0.26em; padding-top: 2rem; margin-top: 2.8rem; }

  .article > blockquote p { font-size: var(--step2); max-width: none; }

  .ledger .row { flex-direction: column; align-items: flex-start; gap: 0.15rem; padding: 0.7rem 0; }

  .article > .ledger-note { text-align: left; }

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

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

  .copyright { text-align: left; }
}

/* --- 11. 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 { display: none; }
  body { background: #fff; color: #000; }
  .plate { border-color: #999; }
}
