/* ==========================================================================
   InventHelp — Site 8
   "Open notebook" · soft blue + warm yellow · rounded cards, chunky sans
   ========================================================================== */

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

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

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

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:        #17202e;
  --ink-mid:    #47546b;
  --ink-soft:   #6b7789;

  --sky:        #eef4fd;   /* page ground */
  --sky-deep:   #dde9fa;   /* tints, image beds */
  --card:       #ffffff;

  --blue:       #2f6bcf;
  --blue-deep:  #1b478f;
  --blue-ink:   #14315f;

  --sun:        #f5b53c;   /* warm yellow accent */
  --sun-deep:   #b9791a;   /* accessible yellow-brown for small text */
  --sun-wash:   #fdf3dd;

  --line:       #dbe4f1;

  --head: 'Outfit', 'Segoe UI', system-ui, sans-serif;
  --body: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --measure: 40rem;
  --radius:  22px;
  --radius-s: 14px;
  --gutter:  1.5rem;

  --shadow:      0 2px 4px rgba(23, 32, 46, 0.04), 0 14px 34px rgba(23, 49, 95, 0.07);
  --shadow-soft: 0 1px 2px rgba(23, 32, 46, 0.04), 0 8px 20px rgba(23, 49, 95, 0.06);
  --shadow-lift: 0 4px 8px rgba(23, 32, 46, 0.05), 0 22px 48px rgba(23, 49, 95, 0.11);

  --s-1: 0.8rem;
  --s0:  1.06rem;
  --s1:  1.24rem;
  --s2:  1.55rem;
  --s3:  2rem;
  --s4:  2.85rem;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--blue-ink);
}

a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(47, 107, 207, 0.32);
  transition: color 0.16s ease, text-decoration-color 0.16s ease, background-color 0.16s ease;
}

a:hover {
  color: var(--blue-ink);
  text-decoration-color: var(--sun);
}

a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 4px;
  text-decoration: none;
}

strong { font-weight: 700; color: var(--ink); }

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

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

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

/* --- 5. Header ----------------------------------------------------------- */

.site-header {
  background: var(--sky);
  padding: 1.1rem 0 0.4rem;
  position: relative;
  z-index: 2;
}

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

.brand {
  flex: 0 0 auto;
  line-height: 0;
  text-decoration: none;
}

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

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

.site-nav a {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  line-height: 1.3;
}

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

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

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

.hero {
  padding: 2.6rem 0 0.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 3rem;
}

.hero-figure { margin: 0; }

.hero-figure .shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky-deep);
  box-shadow: var(--shadow-lift);
  aspect-ratio: 4 / 5;
}

.hero-figure .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title block */

.title-block { max-width: 34rem; }

.kicker {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun-deep);
  background: var(--sun-wash);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  line-height: 1.4;
  margin-bottom: 1.4rem;
}

h1 {
  font-size: var(--s4);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.standfirst {
  font-size: var(--s1);
  line-height: 1.65;
  color: var(--ink-mid);
  margin-top: 1.35rem;
  font-weight: 400;
}

.byline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 1.8rem;
}

.byline::before {
  content: '';
  width: 30px;
  height: 4px;
  border-radius: 4px;
  background: var(--sun);
}

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

.article {
  padding: 2.6rem 0 3.6rem;
}

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

.lead {
  font-size: var(--s1);
  line-height: 1.7;
  color: var(--ink-mid);
  padding-left: 1.2rem;
  border-left: 5px solid var(--sun);
  border-radius: 3px;
  margin-bottom: 1.9rem !important;
}

/* Section cards */

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.4rem 2.6rem 2.1rem;
  margin: 1.8rem 0;
}

.card > *:last-child { margin-bottom: 0; }

.card p { margin-bottom: 1.35rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--sky-deep);
  border-radius: 999px;
  padding: 0.36rem 0.9rem;
  line-height: 1.4;
  margin-bottom: 0.9rem !important;
}

.article h2 {
  font-size: var(--s3);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.article h3 {
  font-size: var(--s2);
  line-height: 1.3;
  margin: 2rem 0 0.8rem;
}

/* Lists */

.article ul,
.article ol { margin-bottom: 1.5rem; }

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

.article ul li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.78em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--sun);
}

.article ol { counter-reset: q; }

.article ol li { counter-increment: q; }

.article ol li::before {
  content: counter(q);
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: var(--sky-deep);
  color: var(--blue-deep);
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.76rem;
  line-height: 1.45rem;
  text-align: center;
}

/* Checklist panel */

.checklist {
  background: var(--sun-wash);
  border-radius: var(--radius-s);
  padding: 1.6rem 1.8rem 1.3rem;
  margin: 1.7rem 0;
}

.checklist h3 {
  font-size: 1.05rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sun-deep);
  margin: 0 0 0.9rem;
}

.checklist ul { margin-bottom: 0; }

.checklist li:last-child { margin-bottom: 0; }

/* Pull quote */

blockquote {
  background: var(--blue-ink);
  color: #eaf1fc;
  border-radius: var(--radius);
  padding: 2.2rem 2.4rem 1.9rem;
  margin: 2.4rem 0;
  box-shadow: var(--shadow);
}

blockquote p {
  font-family: var(--head);
  font-weight: 600;
  font-size: var(--s2);
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 0 !important;
}

blockquote .attrib {
  display: block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.73rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sun);
  margin-top: 1.1rem;
}

/* Figures */

figure.shot-figure { margin: 2rem 0; }

.shot {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sky-deep);
  box-shadow: var(--shadow);
}

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

.ratio-wide  { aspect-ratio: 3 / 2; }
.ratio-tall  { aspect-ratio: 3 / 4; }

figcaption {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  padding-left: 0.2rem;
}

/* Split figure + text band */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
  margin: 2.2rem 0;
}

.split.flip .split-media { order: 2; }

.split-media { margin: 0; }

.split-text p:last-child { margin-bottom: 0; }

/* Closing line */

.endnote {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 2.6rem;
  padding-top: 1.6rem;
  border-top: 2px dotted var(--line);
}

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

.site-footer {
  background: var(--blue-ink);
  color: #c8d8f0;
  padding: 3.2rem 0 2.4rem;
  margin-top: 1rem;
  border-radius: 34px 34px 0 0;
}

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

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-mark {
  line-height: 0;
  text-decoration: none;
  display: inline-block;
  background: #fff;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
}

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

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

.footer-nav a {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.84rem;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.3;
}

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

/* Injected link columns */

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

.footer-cols h2 {
  font-family: var(--head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sun);
  padding-bottom: 0.8rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

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

.footer-cols a {
  font-family: var(--body);
  font-size: 0.84rem;
  color: #b9cdea;
  text-decoration: none;
}

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

.copyright {
  font-family: var(--head);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #93aed4;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.4rem;
}

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

@media (max-width: 1040px) {
  .hero-grid { gap: 2.2rem; }
  .card { padding: 2.1rem 2.1rem 1.8rem; }
}

@media (max-width: 900px) {
  :root { --s4: 2.35rem; --s3: 1.78rem; --s2: 1.4rem; }

  .hero { padding-top: 2rem; }

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

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

  .title-block { max-width: none; }

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

  .split.flip .split-media { order: 0; }

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

@media (max-width: 720px) {
  :root {
    --s0: 1.02rem;
    --s1: 1.14rem;
    --s2: 1.28rem;
    --s3: 1.52rem;
    --s4: 1.95rem;
    --gutter: 1.1rem;
    --radius: 18px;
  }

  body { line-height: 1.78; }

  .header-inner {
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.1rem;
  }

  .brand img { width: 164px; }

  .site-nav { gap: 0.3rem; }

  .site-nav a { font-size: 0.83rem; padding: 0.36rem 0.75rem; }

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

  .card {
    padding: 1.6rem 1.35rem 1.3rem;
    margin: 1.4rem 0;
    border-radius: 18px;
  }

  blockquote { padding: 1.6rem 1.4rem 1.4rem; }

  .checklist { padding: 1.3rem 1.2rem 1rem; }

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

  .site-footer { border-radius: 24px 24px 0 0; padding-top: 2.4rem; }

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

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

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

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

@media print {
  .site-nav, .site-footer { display: none; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid var(--line); }
}
