/* IT Through Invisibility — calm, minimal, ink on paper */
:root {
  --paper: #f7f4ec;
  --paper-2: #efeadd;
  --stone: #d9d3c3;
  --mist: #ebe6f3;
  --ink: #1b2550;
  --ink-2: #2e3a6e;
  --text: #262f4a;
  --muted: #555d7a;      /* 5.9:1 on --paper */
  --accent: #4a5799;     /* 6.1:1 on --paper */
  --accent-soft: #c9cce3;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --measure: 38rem;
  --wrap: 72rem;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -3rem;
  background: var(--ink); color: var(--paper);
  padding: .5rem .9rem; border-radius: 8px; z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--paper); }

.wrap { width: min(100% - 3rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 600; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -0.015em; font-weight: 500; font-style: italic; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.01em; font-weight: 500; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 1.1rem;
}

/* ---------- Header ---------- */
.site-header { padding: 1.5rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.brand img { width: 30px; height: 30px; }
.site-nav ul { list-style: none; display: flex; gap: 1.75rem; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: .93rem; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.nav-cta { color: var(--ink); border-bottom: 1px solid var(--accent-soft); padding-bottom: 2px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.2rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.45rem; border-radius: 999px;
  font-family: var(--sans); font-size: .98rem; font-weight: 600; text-decoration: none;
  border: 1px solid var(--ink); transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-2); color: var(--paper); border-color: var(--ink-2); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--stone); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 1.05em; height: 1.05em; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 8rem); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.hero-lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34rem; margin-top: 1.6rem; }
.hero-art { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; }
.hero-art svg { width: 100%; height: 100%; }
.enso-ink { fill: var(--ink); opacity: .9; }
.enso-echo { fill: none; stroke: var(--accent-soft); stroke-width: 1.25; }
.hero-note {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1rem; line-height: 1.4;
  pointer-events: none;
}

/* ---------- Sections ---------- */
section { scroll-margin-top: 1rem; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head .sub { color: var(--muted); margin-top: 1.1rem; font-size: 1.1rem; max-width: var(--measure); }

.divider { display: flex; justify-content: center; padding: 0; }
.divider svg { width: 44px; height: 44px; opacity: .5; }

/* The idea */
.idea { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.idea-body { max-width: var(--measure); }
.idea-body p:first-of-type { font-family: var(--serif); font-size: 1.32rem; line-height: 1.55; color: var(--ink); }
.pullquote {
  margin: 0; padding: 2rem 0 2rem 2rem;
  border-left: 2px solid var(--accent-soft);
  font-family: var(--serif); font-size: clamp(1.35rem, 2.3vw, 1.7rem); line-height: 1.45; color: var(--ink);
}
.pullquote p { margin: 0; }
.pullquote .small { display: block; margin-top: 1.2rem; font-family: var(--sans); font-size: .95rem; line-height: 1.6; color: var(--muted); }
.contrast { list-style: none; margin: 2.2rem 0 0; padding: 0 0 0 2rem; display: grid; gap: .7rem; }
.contrast li { display: grid; grid-template-columns: 11rem auto 1fr; gap: .8rem; align-items: baseline; font-size: .98rem; }
.contrast .from { color: var(--muted); }
.contrast .arrow { color: var(--accent); }
.contrast .to { color: var(--ink); font-weight: 500; }

/* Principles */
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.principles li { grid-column: span 2; }
.principles li:nth-child(4), .principles li:nth-child(5) { grid-column: span 3; }
.card {
  height: 100%; background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius);
  padding: 2rem 1.8rem 1.8rem;
}
.card-mark { width: 40px; height: 40px; margin-bottom: 1.3rem; color: var(--accent); }
.card-kicker { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 .35rem; }
.card h3 { margin-bottom: .8rem; }
.card p { color: var(--text); font-size: 1rem; margin: 0; }

/* Who it's for */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.audience-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--stone); }
.audience-list li { padding: 1.05rem 0; border-bottom: 1px solid var(--stone); display: flex; gap: 1rem; align-items: baseline; }
.audience-list .dot { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--accent); transform: translateY(-1px); }
.audience-list strong { color: var(--ink); font-weight: 600; }
.audience-list span.desc { color: var(--muted); }
.about-line { margin-top: 2.2rem; font-size: .95rem; color: var(--muted); max-width: var(--measure); }

/* CTA */
.cta { text-align: center; }
.cta .wrap { max-width: 44rem; }
.cta-enso { width: 88px; height: 88px; margin: 0 auto 2rem; }
.cta p.lede { color: var(--muted); font-size: 1.12rem; margin: 1.2rem auto 0; max-width: 34rem; }
.cta .actions { justify-content: center; }
.cta .fine { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--stone); padding: 2.2rem 0 2.6rem; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.site-footer .credit { flex-basis: 100%; font-size: .82rem; margin: 0; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 3rem 0; }
.lost .enso-404 { width: 160px; height: 160px; margin: 0 auto 2rem; }
.lost p { color: var(--muted); max-width: 30rem; margin: 1rem auto 0; }
.lost .actions { justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .principles { grid-template-columns: 1fr 1fr; }
  .principles li, .principles li:nth-child(4) { grid-column: span 1; }
  .principles li:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 820px) {
  .hero .wrap, .idea, .audience { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(70%, 280px); }
  .hero { padding-top: 1.5rem; }
  .site-nav li:not(:last-child) { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .wrap { width: min(100% - 2.5rem, var(--wrap)); }
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li:nth-child(4), .principles li:nth-child(5) { grid-column: auto; }
  .btn { width: 100%; justify-content: center; }
  .pullquote { padding: 1.2rem 0 1.2rem 1.3rem; }
  .contrast { padding-left: 0; }
  .contrast li { grid-template-columns: 1fr; gap: 0; }
  .contrast .from { text-align: left; }
  .contrast .arrow { display: none; }
  .contrast .to::before { content: "→ "; color: var(--accent); }
  .contrast li { padding-bottom: .5rem; border-bottom: 1px dashed var(--stone); }
  .brand span { font-size: 1rem; }
}

@media print {
  .site-nav, .actions, .hero-art, .skip-link { display: none; }
  body { background: #fff; }
}
.site-footer .copyright { margin: 0; }
