/* ==========================================================================
   InventHelp — Site 2
   Warm magazine · cream and terracotta ground · rounded card rhythm
   Humanist sans headings (Nunito Sans) over a readable serif body (Lora)
   ========================================================================== */

/* --- 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 {
  --cream:      #fdf6ec;   /* page ground */
  --oat:        #f6e9d8;   /* recessed ground */
  --card:       #fffdf8;   /* raised card */
  --ink:        #34251d;   /* cocoa text */
  --ink-soft:   #7a6759;
  --clay:       #c0562c;   /* terracotta accent */
  --clay-deep:  #97401d;
  --clay-wash:  #f7e2d5;
  --sage:       #6f7d5b;   /* quiet second accent */
  --edge:       #ead9c4;

  --sans:  'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;

  --measure: 46rem;   /* wide, relaxed single column */
  --bleed:   5.5rem;  /* how far figures spill past the measure */
  --gutter:  1.6rem;

  --r-lg: 34px;
  --r-md: 22px;
  --r-sm: 14px;
  --r-pill: 999px;

  --lift: 0 18px 40px -26px rgba(72, 42, 22, 0.55);
  --lift-soft: 0 10px 26px -20px rgba(72, 42, 22, 0.5);

  --step-2: 0.72rem;
  --step-1: 0.84rem;
  --step0:  1.09rem;
  --step1:  1.3rem;
  --step2:  1.62rem;
  --step3:  2.05rem;
  --step4:  2.85rem;
}

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

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

::selection {
  background: var(--clay-wash);
  color: var(--clay-deep);
}

a {
  color: var(--clay-deep);
  text-decoration: none;
  background-image: linear-gradient(var(--clay) 0 0);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  padding-bottom: 0.08em;
  transition: background-size 0.18s ease, color 0.18s ease;
}

a:hover {
  color: var(--ink);
  background-size: 100% 0.62em;
}

a:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
  background-size: 100% 2px;
}

strong { font-weight: 600; }

em { font-style: italic; }

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

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

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

.site-header {
  background: var(--cream);
  padding: 1.4rem 0 1.2rem;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r-pill);
  padding: 0.85rem 1.6rem;
  box-shadow: var(--lift-soft);
}

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

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

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

.site-nav a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step-1);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background-image: none;
  padding: 0.42rem 0.95rem;
  border-radius: var(--r-pill);
  transition: background-color 0.18s ease, color 0.18s ease;
}

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

.site-nav a[aria-current='page'] {
  background-color: var(--clay);
  color: var(--cream);
}

/* --- 6. Hero and title card ---------------------------------------------- */

.hero {
  margin: 0.6rem 0 0;
}

.hero-media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--oat);
  aspect-ratio: 21 / 9;
  box-shadow: var(--lift);
}

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

/* Hero frame for an upright source image — shallower crop */

.hero-media.upright { aspect-ratio: 3 / 2; }

.hero-media.upright img { object-position: center 45%; }

.title-card {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  margin: -5.5rem auto 0;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
  padding: 2.6rem 2.9rem 2.4rem;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-deep);
  background: var(--clay-wash);
  border-radius: var(--r-pill);
  padding: 0.42em 1.05em;
  margin-bottom: 1.35rem;
}

h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step4);
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

.standfirst {
  font-size: var(--step1);
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 1.3rem;
  max-width: 38rem;
}

.byline {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.9rem;
  padding-top: 1.25rem;
  border-top: 2px dotted var(--edge);
}

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

.article {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3.2rem var(--gutter) 4.6rem;
}

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

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

.lead::first-letter {
  float: left;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 3.5em;
  line-height: 0.9;
  color: var(--clay);
  padding: 0.06em 0.12em 0 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-2);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--sage);
  background: #eef0e6;
  border-radius: var(--r-pill);
  padding: 0.4em 1em;
  margin: 3.1rem 0 1rem;
}

.article > h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step3);
  line-height: 1.18;
  letter-spacing: -0.018em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

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

/* Rounded note card — used for the checklists */

.card-list {
  background: var(--oat);
  border-radius: var(--r-md);
  padding: 1.9rem 2.1rem 1.7rem;
  margin: 2.2rem 0 2.4rem;
}

.card-list h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--clay-deep);
  margin: 0 0 1rem;
}

.card-list ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.7rem;
  line-height: 1.65;
}

.card-list ul li:last-child { margin-bottom: 0; }

.card-list ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 50%;
  background: var(--clay);
}

.card-list ol { counter-reset: seq; }

.card-list ol li {
  position: relative;
  counter-increment: seq;
  padding-left: 2.4rem;
  margin-bottom: 0.85rem;
  line-height: 1.65;
}

.card-list ol li:last-child { margin-bottom: 0; }

.card-list ol li::before {
  content: counter(seq);
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--clay);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 800;
  font-size: 0.78rem;
  line-height: 1.6rem;
  text-align: center;
}

/* Pull quote — soft card with a heavy clay spine */

.article > blockquote {
  position: relative;
  background: var(--clay-wash);
  border-left: 8px solid var(--clay);
  border-radius: var(--r-md);
  padding: 2rem 2.2rem 1.7rem;
  margin: 2.8rem 0 3rem;
}

.article > blockquote p {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step2);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--clay-deep);
  margin-bottom: 0;
}

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

/* Figures spill past the measure into rounded frames */

.article > figure {
  margin: 2.9rem calc(-1 * var(--bleed)) 3.1rem;
}

.shot {
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--oat);
  box-shadow: var(--lift);
  width: 100%;
}

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

/* Portrait plates sit inside the measure rather than spilling past it */

.article > figure.narrow {
  margin-left: auto;
  margin-right: auto;
  max-width: 30rem;
}

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

/* Two portrait plates side by side */

.plates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.plates .shot { aspect-ratio: 4 / 5; }

/* Closing line */

.endnote {
  margin-top: 3.2rem;
  padding: 1.5rem 1.8rem;
  background: var(--oat);
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
}

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

.site-footer {
  background: var(--oat);
  border-top: 2px dotted var(--edge);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 3.2rem 0 2.4rem;
  margin-top: 1rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.4rem;
  padding-bottom: 2.2rem;
  border-bottom: 2px dotted var(--edge);
}

.footer-mark {
  line-height: 0;
  background-image: none;
  padding-bottom: 0;
}

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

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

.footer-nav a {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--ink-soft);
  background-image: none;
  padding: 0.38rem 0.9rem;
  border-radius: var(--r-pill);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.footer-nav a:hover {
  background-color: var(--card);
  color: var(--ink);
}

/* Injected three-column link block */

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

.footer-cols h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay-deep);
  padding-bottom: 0.85rem;
  margin-bottom: 1rem;
  border-bottom: 2px dotted var(--edge);
}

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

.footer-cols a {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  background-image: none;
  padding-bottom: 0;
}

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

.copyright {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 2px dotted var(--edge);
  padding-top: 1.5rem;
}

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

@media (max-width: 1080px) {
  :root { --bleed: 2.5rem; }
}

@media (max-width: 900px) {
  :root {
    --step4: 2.35rem;
    --step3: 1.82rem;
    --step2: 1.42rem;
    --bleed: 1rem;
  }

  .hero-media { aspect-ratio: 16 / 9; }

  .title-card {
    margin-top: -3.5rem;
    padding: 2.2rem 2.1rem 2rem;
  }

  .article { padding-top: 2.8rem; }

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

@media (max-width: 720px) {
  :root {
    --step0: 1.04rem;
    --step1: 1.18rem;
    --step4: 1.96rem;
    --step3: 1.55rem;
    --step2: 1.28rem;
    --gutter: 1.15rem;
    --bleed: 0rem;
    --r-lg: 22px;
    --r-md: 16px;
  }

  body { line-height: 1.72; }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    border-radius: var(--r-md);
    padding: 1.1rem 1.2rem;
  }

  .brand img { width: 168px; }

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

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

  .hero-media { aspect-ratio: 3 / 2; }

  .hero-media.upright { aspect-ratio: 4 / 5; }

  .title-card {
    margin-top: -2.2rem;
    padding: 1.7rem 1.35rem 1.6rem;
  }

  .article { padding-top: 2.2rem; }

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

  .card-list { padding: 1.5rem 1.4rem 1.3rem; }

  .article > blockquote {
    padding: 1.5rem 1.4rem 1.3rem;
    border-left-width: 6px;
  }

  .lead::first-letter { font-size: 3.1em; }

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

  .plates .shot { aspect-ratio: 3 / 2; }

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

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

  .endnote { padding: 1.25rem 1.2rem; }
}

@media (max-width: 420px) {
  .lead::first-letter { font-size: 2.8em; }
  .brand img { width: 150px; }
}

/* --- 10. Motion and 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; }

  .title-card,
  .header-inner,
  .shot { box-shadow: none; }
}
