/* ============================================================
   Jesse J. Camacho — option2 design system
   Locked by Jesse (2026-07-25): pure white #FFFFFF background,
   navy accent, Source Serif 4 headings + Inter body, larger type,
   scroll-based sections, disclosure reserved for recommendations.
   Restraint budget: 2 typefaces · 3 weights · 6 font sizes ·
   1 ink colour · navy carries brand + action · 2px radius.
   ============================================================ */

:root {
  --ink: #15171A;            /* the one ink, every heading and paragraph */
  --navy: #1E3A5F;           /* brand + action */
  --navy-deep: #16304E;      /* hover / pressed */
  --band: #F6F6F4;           /* one quiet alternating band */
  --hairline: #E4E5E2;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* the whole scale — six sizes, written down, nothing else */
  --fs-0: 0.9375rem;   /* 15px  small caps labels, meta, disclaimers */
  --fs-1: 1.0625rem;   /* 17px  secondary text, nav */
  --fs-2: 1.1875rem;   /* 19px  body */
  --fs-3: 1.5rem;      /* 24px  h3 / pull lines */
  --fs-4: 2rem;        /* 32px  h2 */
  --fs-5: 2.75rem;     /* 44px  h1 / display */

  --radius: 2px;
  --measure: 66ch;
  --container: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--sans);
  font-size: var(--fs-2);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: #FFFFFF;
}

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
h1 { font-size: var(--fs-5); letter-spacing: -0.025em; }
h2 { font-size: var(--fs-4); }
h3 { font-size: var(--fs-3); }

p, li, dd, dt { max-width: var(--measure); }

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--navy-deep); }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: var(--radius);
}

strong { font-weight: 600; }

.kicker {
  display: block;
  font-size: var(--fs-0);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.9rem;
}

.lede {
  font-family: var(--serif);
  font-size: var(--fs-3);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

/* ---------- shell ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 99;
}
.skip-link:focus { left: 0; }

header.site {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--hairline);
  z-index: 50;
}
.site-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}
.wordmark {
  font-family: var(--serif);
  font-size: var(--fs-3);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover { color: var(--navy); }

nav.primary { display: flex; gap: 0.5rem; flex-wrap: wrap; }
nav.primary a {
  font-size: var(--fs-1);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.45rem 0.95rem;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
nav.primary a:hover { border-color: var(--navy); color: var(--navy); }
nav.primary a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section + section { border-top: 1px solid var(--hairline); }

.band {
  background: var(--band);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.band-navy {
  background: var(--navy);
  color: #fff;
  border: 0;
}
.band-navy .kicker { color: #fff; }
.band-navy a { color: #fff; }
.band-navy a:hover { color: #fff; opacity: 0.85; }
.band-navy :focus-visible { outline-color: #fff; }

.section-head { margin-bottom: 2.25rem; }
.section-head h2 + p { margin-top: 0.9rem; }

/* interior page banner — compact, never a full screen */
.page-banner {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  border-bottom: 1px solid var(--hairline);
}
.page-banner p {
  margin-top: 1rem;
  font-size: var(--fs-3);
  font-family: var(--serif);
  line-height: 1.45;
}

/* anchor row under a banner — navigation, not decoration */
.anchor-row {
  border-bottom: 1px solid var(--hairline);
  background: #FFFFFF;
}
.anchor-row ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 2rem;
  padding: 1rem 0;
}
.anchor-row a {
  font-size: var(--fs-1);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.anchor-row a:hover { color: var(--navy); text-decoration: underline; }

[id] { scroll-margin-top: 6.5rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-weight: 600;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  padding: 0.75rem 1.5rem;
  transition: background-color 150ms ease;
}
.btn:hover { background: var(--navy-deep); color: #fff; }
.btn:active { transform: translateY(1px); }

.band-navy .btn {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
}
.band-navy .btn:hover { background: var(--band); opacity: 1; }

/* ---------- home hero ---------- */

.hero { padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}
.hero h1 { margin: 0.4rem 0 1.1rem; }
.hero .role {
  font-size: var(--fs-1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero .orientation { margin-top: 1.4rem; font-size: var(--fs-2); }
.hero-portrait {
  justify-self: end;
  align-self: end;
  width: min(100%, 360px);
}
.hero-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 3px solid var(--navy);
}
.hero-portrait figcaption {
  font-size: var(--fs-0);
  margin-top: 0.6rem;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-grid > * {
    animation: rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .hero-grid > *:nth-child(2) { animation-delay: 120ms; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- entry doors ---------- */

.doors {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.doors a {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  color: var(--ink);
  height: 100%;
  transition: border-color 150ms ease;
}
.doors a:hover { border-color: var(--navy); }
.doors a:hover h3 { color: var(--navy); }
.doors svg {
  width: 1.6em;
  height: 1.6em;
  flex: none;
  margin-top: 0.15em;
  stroke: var(--navy);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doors h3 {
  font-size: var(--fs-3);
  transition: color 150ms ease;
}
.doors p { font-size: var(--fs-1); margin-top: 0.35rem; }

/* ---------- fact list ---------- */

.facts {
  list-style: none;
  columns: 2;
  column-gap: 4rem;
  max-width: 60rem;
}
.facts li {
  break-inside: avoid;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: var(--fs-2);
  max-width: none;
}

/* ---------- principle blocks ---------- */

.principle { }
.principle .numeral {
  font-family: var(--serif);
  font-size: var(--fs-0);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--navy);
  display: block;
  margin-bottom: 0.6rem;
}
.principle h2 { margin-bottom: 1rem; }
.punchline {
  font-family: var(--serif);
  font-size: var(--fs-3);
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.principle-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.evidence {
  border-left: 3px solid var(--navy);
  padding-left: 1.4rem;
}
.evidence h3 {
  font-family: var(--sans);
  font-size: var(--fs-0);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
.evidence ul { list-style: none; }
.evidence li {
  font-size: var(--fs-1);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--hairline);
}
.evidence li:last-child { border-bottom: 0; }

blockquote {
  font-family: var(--serif);
  font-size: var(--fs-3);
  line-height: 1.5;
  letter-spacing: -0.01em;
  max-width: var(--measure);
}
blockquote footer {
  font-family: var(--sans);
  font-size: var(--fs-1);
  font-style: normal;
  margin-top: 1.1rem;
}
cite { font-style: normal; font-weight: 600; }

/* ---------- recommendations ---------- */

.rec {
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--hairline);
}
.rec:last-of-type { border-bottom: 0; }
.rec blockquote { font-size: var(--fs-3); }
.rec .who { margin-top: 1.1rem; font-size: var(--fs-1); }
.rec .who strong { display: block; font-size: var(--fs-2); }

details.fulltext { margin-top: 1.2rem; max-width: var(--measure); }
details.fulltext summary {
  cursor: pointer;
  display: inline-block;
  font-size: var(--fs-1);
  font-weight: 600;
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  list-style: none;
}
details.fulltext summary::-webkit-details-marker { display: none; }
details.fulltext summary::after { content: " +"; }
details.fulltext[open] summary::after { content: " \2212"; }
details.fulltext .body { padding-top: 1.1rem; }
details.fulltext .body p + p { margin-top: 1rem; }
@media (prefers-reduced-motion: no-preference) {
  details.fulltext[open] .body { animation: unfold 350ms ease both; }
  @keyframes unfold {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- story blocks (beyond) ---------- */

.story {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 5rem) 0;
}
.story + .story { border-top: 1px solid var(--hairline); }
.story:nth-of-type(even) .story-media { order: -1; }
.story h2 { margin-bottom: 1rem; }
.story p + p { margin-top: 1rem; }

.placeholder {
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  background: var(--band);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}
.placeholder span { font-size: var(--fs-0); max-width: 28ch; }

/* ---------- prose & lists ---------- */

.prose > * + * { margin-top: 1.1rem; }
.prose h3 { margin-top: 2.4rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: 0.5rem; }

ol.steps {
  list-style: none;
  counter-reset: step;
  max-width: var(--measure);
}
ol.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 0 1.4rem 3.4rem;
  border-bottom: 1px solid var(--hairline);
  max-width: none;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 1.3rem;
  font-family: var(--serif);
  font-size: var(--fs-3);
  font-weight: 500;
  color: var(--navy);
}
ol.steps h3 { margin-bottom: 0.4rem; }
ol.steps p { font-size: var(--fs-2); }

/* ---------- definition tables ---------- */

dl.table { max-width: 60rem; }
dl.table > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 1rem 2.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--hairline);
}
dl.table dt { font-weight: 600; max-width: none; }
dl.table dd { max-width: none; }
dl.table dd ul { list-style: none; }
dl.table dd li + li { margin-top: 0.35rem; }

/* matters */
.matter-group { margin-top: 2.5rem; }
.matter-group h3 { margin-bottom: 0.5rem; }
.matter {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--hairline);
  max-width: 60rem;
}
.matter p { max-width: none; }
.matter .meta { font-size: var(--fs-1); margin-top: 0.25rem; }

/* ---------- related / continue exploring ---------- */

.related { border-top: 1px solid var(--hairline); }
.related ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.related a {
  display: inline-block;
  font-size: var(--fs-1);
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  transition: border-color 150ms ease, color 150ms ease;
}
.related a:hover { border-color: var(--navy); color: var(--navy); }

/* ---------- footer ---------- */

footer.site {
  background: var(--navy);
  color: #fff;
  padding: clamp(3rem, 7vw, 4.5rem) 0 2.5rem;
  margin-top: 0;
}
footer.site a { color: #fff; }
footer.site a:hover { opacity: 0.85; }
footer.site :focus-visible { outline-color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.footer-grid h2 {
  font-size: var(--fs-3);
  margin-bottom: 0.6rem;
}
.footer-grid .h {
  font-size: var(--fs-0);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.footer-grid ul { list-style: none; }
.footer-grid li + li { margin-top: 0.5rem; }
.footer-grid a { font-size: var(--fs-1); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.footer-grid p { font-size: var(--fs-1); }
.legal {
  padding-top: 2rem;
  font-size: var(--fs-0);
  line-height: 1.7;
}
.legal p { max-width: 78ch; }
.legal p + p { margin-top: 0.6rem; }

/* ---------- mobile ---------- */

@media (max-width: 820px) {
  :root { --fs-5: 2.125rem; --fs-4: 1.75rem; }
  body { font-size: var(--fs-1); }
  .hero-grid, .principle-body, .story { grid-template-columns: 1fr; }
  .hero-portrait { justify-self: start; order: -1; width: min(70%, 280px); }
  .story:nth-of-type(even) .story-media { order: 0; }
  .doors { grid-template-columns: 1fr; }
  .facts { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  dl.table > div { grid-template-columns: 1fr; gap: 0.25rem; }
  nav.primary a { padding: 0.55rem 0.9rem; }
}
