/* ==========================================================================
   LiveOnwards — shared stylesheet
   Digital succession consulting: preventative (before) and forensic (after)
   work for individuals and organizations.
   ========================================================================== */

:root {
  /* Color tokens — cool, ink-and-paper blues, one warm accent used sparingly */
  --ink:        #101B2A;   /* primary text */
  --ink-soft:   #33445A;   /* secondary text */
  --navy:       #17324F;   /* brand / headings on light */
  --blue:       #2C5F82;   /* links, mid accent */
  --blue-deep:  #0E2A44;   /* dark section background */
  --sky:        #E3ECF2;   /* pale tinted panel background */
  --sky-soft:   #EFF4F7;   /* page background */
  --paper:      #FBFCFD;   /* card background */
  --line:       #C9D6DF;   /* hairline borders */
  --line-soft:  #DCE5EC;
  --brass:      #A9805A;   /* single warm accent — used rarely */
  --brass-soft: #E8D9C7;
  --focus:      #1E6FA8;

  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --content-width: 1120px;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--sky-soft);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 460; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.05rem; font-family: var(--sans); font-weight: 650; color: var(--ink); }

p { margin: 0 0 1em; max-width: 62ch; }
.measure-wide p { max-width: 74ch; }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.45em; }

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--blue);
  font-size: 1.05rem;
  margin: 0 0 0.3em;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--sky-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-text {
  font-family: var(--serif);
  font-size: 1.32rem;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-text .thin { color: var(--ink-soft); font-weight: 400; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--navy);
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.98rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--navy);
  border-bottom-color: var(--brass);
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--line);
    margin-top: 14px;
    padding-top: 14px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-header .container { flex-wrap: wrap; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede {
  font-size: 1.18rem;
  color: var(--ink-soft);
  max-width: 46ch;
}
.hero-art { justify-self: center; }
.hero-art svg { width: 100%; max-width: 340px; }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

@media (max-width: 820px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 220px; margin: 0 auto; }
}

/* ---------- Sections generally ---------- */
section { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.bg-sky { background: var(--sky); }
.bg-deep {
  background: var(--blue-deep);
  color: #DCE6EE;
}
.bg-deep h2, .bg-deep h3, .bg-deep .eyebrow { color: #fff; }
.bg-deep a { color: #BFDCF2; }
.bg-deep p { color: #C9DAE6; }

.section-head { max-width: 62ch; margin-bottom: 34px; }

/* ---------- Diptych (Before / After framing device) ---------- */
.diptych {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.diptych::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.diptych-half {
  padding: 6px 40px;
}
.diptych-half:first-child { padding-left: 4px; }
.diptych-half:last-child { padding-right: 4px; }
.diptych-label {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--blue);
  margin-bottom: 4px;
}
.diptych-half h3 { margin-bottom: 10px; }
.diptych-half ul { list-style: none; padding: 0; margin: 16px 0 0; }
.diptych-half li {
  padding-left: 20px;
  position: relative;
  color: var(--ink-soft);
}
.diptych-half li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--brass);
}

@media (max-width: 760px) {
  .diptych { grid-template-columns: 1fr; }
  .diptych::before { left: 20px; right: 20px; top: auto; bottom: auto; width: auto; height: 1px; top: 50%; }
  .diptych-half { padding: 24px 4px; }
}

/* ---------- Card grid ---------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px;
}
.card .icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--navy); }
.card h4 { margin-bottom: 8px; }
.card p { margin-bottom: 0; color: var(--ink-soft); font-size: 0.97rem; }

.pillar-card {
  border: 1px solid var(--line-soft);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar-card .icon { width: 46px; height: 46px; color: var(--navy); }
.pillar-card .tag {
  font-size: 0.82rem;
  color: var(--blue);
  font-weight: 600;
}
.pillar-card a.arrow-link { align-self: flex-start; margin-top: auto; }

.arrow-link {
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.arrow-link svg { width: 15px; height: 15px; transition: transform 0.15s ease; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Spectrum (depth of involvement) ---------- */
.spectrum { margin-top: 10px; }
.spectrum-track {
  position: relative;
  height: 3px;
  background: var(--line);
  border-radius: 2px;
  margin: 34px 6px 46px;
}
.spectrum-track .dot {
  position: absolute;
  top: 50%;
  width: 11px;
  height: 11px;
  background: var(--navy);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.spectrum-labels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.spectrum-labels .label-point { position: relative; }
.spectrum-labels h4 { margin-bottom: 6px; }
.spectrum-labels p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0; }
@media (max-width: 760px) {
  .spectrum-labels { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- Case study ---------- */
.case-study {
  border-left: 3px solid var(--brass);
  padding: 6px 0 6px 26px;
  margin: 10px 0 30px;
}
.case-study .tag {
  text-transform: none;
  color: var(--brass);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.case-study h3 { margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  padding: 20px 4px;
  font-family: var(--serif);
  font-size: 1.14rem;
  color: var(--navy);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--brass);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-answer { padding: 0 4px 24px; color: var(--ink-soft); max-width: 70ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Checklist ---------- */
.checklist-group { margin-bottom: 40px; }
.checklist-group h3 { display: flex; align-items: center; gap: 12px; }
.checklist-group .icon { width: 28px; height: 28px; color: var(--navy); flex: none; }
.checklist {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.checklist li {
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 4px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.checklist input[type="checkbox"] {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
  flex: none;
}
.checklist .item-text strong { display: block; color: var(--ink); }
.checklist .item-text span { color: var(--ink-soft); font-size: 0.94rem; }

.print-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

/* ---------- Book resources ---------- */
.book-list { display: flex; flex-direction: column; gap: 0; }
.book {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.book:first-child { padding-top: 0; }
.book-cover {
  width: 88px;
  height: 118px;
  border: 1px solid var(--line);
  background: var(--sky);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book-cover svg { width: 34px; height: 34px; color: var(--blue); }
.book h4 { margin-bottom: 2px; }
.book .byline { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 10px; }
.book p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .book { grid-template-columns: 60px 1fr; }
  .book-cover { width: 60px; height: 80px; }
}

/* ---------- Quote / pull statement ---------- */
.pull-statement {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.7rem);
  color: var(--navy);
  max-width: 46ch;
  line-height: 1.4;
}
.pull-statement cite {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Disclaimer / note box ---------- */
.note {
  border: 1px solid var(--line);
  background: var(--paper);
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  border-radius: var(--radius);
  font-size: 0.96rem;
  color: var(--ink-soft);
}
.note strong { color: var(--ink); }

/* ---------- Two column layout helper ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.split.wide-left { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 820px) {
  .split, .split.wide-left { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-deep);
  color: #B9CBD9;
  padding: 52px 0 34px;
  margin-top: 40px;
}
.site-footer a { color: #DCE9F2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
.footer-grid h4 { color: #EAF1F6; font-family: var(--sans); font-size: 0.9rem; letter-spacing: 0.02em; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand svg { width: 26px; height: 26px; }
.footer-brand span { font-family: var(--serif); color: #fff; font-size: 1.15rem; }
.footer-note { font-size: 0.86rem; color: #8FA6B8; border-top: 1px solid #23405A; padding-top: 22px; max-width: 80ch; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.small { font-size: 0.9rem; }
.muted { color: var(--ink-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-list span {
  font-size: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  color: var(--ink-soft);
}

@media print {
  .site-header, .site-footer, .print-bar, .cta-row { display: none !important; }
  body { background: #fff; }
  a { color: inherit; text-decoration: none; }
  .checklist input[type="checkbox"] { accent-color: #000; }
}
