/* Level Four — l4is.ai
   Palette: copper #A85C36 / ink #131A21 / paper #F6F5F2 (per logo/README.md)
   Type: Syne 800 (display, per wordmark) · Archivo (body + descriptor) */

:root {
  --paper:   #F6F5F2;
  --wash:    #EDEAE3;
  --line:    #DCD6CB;
  --ink:     #131A21;
  --slate:   #4A545D;
  --copper:  #A85C36;
  --copper-soft: rgba(168, 92, 54, 0.10);

  --ground:  var(--paper);
  --surface: #FFFFFF;
  --raised:  var(--wash);
  --text:    var(--ink);
  --muted:   var(--slate);
  --rule:    var(--line);
  --accent:  var(--copper);
  --accent-wash: var(--copper-soft);
  --mark-bar: var(--ink);

  --measure: 34rem;
  --page: 72rem;

  --f-display: "Syne", "Trebuchet MS", sans-serif;
  --f-body: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:  #10161C;
    --surface: #171F26;
    --raised:  #1C262E;
    --text:    #ECE8E1;
    --muted:   #9BA6B0;
    --rule:    #2A353E;
    --accent:  #D07C4E;
    --accent-wash: rgba(208, 124, 78, 0.12);
    --mark-bar: #ECE8E1;
  }
}

:root[data-theme="dark"] {
  --ground:  #10161C;
  --surface: #171F26;
  --raised:  #1C262E;
  --text:    #ECE8E1;
  --muted:   #9BA6B0;
  --rule:    #2A353E;
  --accent:  #D07C4E;
  --accent-wash: rgba(208, 124, 78, 0.12);
  --mark-bar: #ECE8E1;
}

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--f-display); font-weight: 800; text-wrap: balance; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.12; }
h3 { font-size: 1.06rem; line-height: 1.25; font-family: var(--f-body); font-weight: 700; letter-spacing: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.measure { max-width: var(--measure); }

.eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}
.eyebrow.plain { color: var(--muted); }

/* ---------- logo lockup (asset-pack E10, colours driven by CSS vars) ---------- */
.lockup { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.lockup-svg { height: 3em; width: auto; display: block; }
.lockup--sm { font-size: 14px; }   /* ~42px tall, ~148px wide — above the 130px minimum */
.lockup--xs { font-size: 13px; }   /* ~39px tall, ~138px wide */

/* ---------- header ---------- */
.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--ground);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; flex-wrap: wrap; }
.nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.nav a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding-block: 0.4rem; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- sections ---------- */
main { display: block; }
section { padding-block: clamp(3rem, 7vw, 5.5rem); border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: 0; }
.hero { padding-block: clamp(3.5rem, 9vw, 7rem); }
.stack { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.stack.tight { gap: 0.75rem; }
.stack.loose { gap: 2rem; }
.cta-stack { gap: 1.1rem; }

.lede { font-size: clamp(1.05rem, 2.1vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 40rem; }
.body-copy { color: var(--muted); }
.body-copy strong { color: var(--text); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--accent); color: var(--paper); text-decoration: none;
  font-weight: 700; font-size: 0.92rem; letter-spacing: 0.01em;
  padding: 0.8rem 1.4rem; border: 1px solid var(--accent);
}
.btn:hover { background: transparent; color: var(--accent); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent); color: var(--paper); }

/* ---------- grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid > * { background: var(--surface); border: 1px solid var(--rule); padding: clamp(1.3rem, 2.6vw, 1.7rem); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }

.cols { display: grid; gap: clamp(2rem, 5vw, 4rem); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .cols.side { grid-template-columns: 12rem minmax(0, 1fr); } }

.card .eyebrow { margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; }

/* ---------- numbered / defined lists ---------- */
.deliverables { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.deliverables li { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: 1rem; padding-block: 1.05rem; border-top: 1px solid var(--rule); }
.deliverables li:last-child { border-bottom: 1px solid var(--rule); }
.deliverables .tag { font-family: var(--f-display); font-weight: 800; color: var(--accent); font-size: 0.95rem; padding-top: 0.1rem; }
.deliverables h3 { margin-bottom: 0.2rem; }
.deliverables p { color: var(--muted); font-size: 0.93rem; }

.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.plain-list li { padding-left: 1.3rem; position: relative; color: var(--muted); }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.55rem; height: 2px; background: var(--accent); }
.plain-list strong { color: var(--text); font-weight: 700; }

/* ---------- the 0-4 scale ---------- */
.scale { display: flex; gap: 0.5rem; align-items: stretch; width: 100%; max-width: 32rem; }
.scale .step { flex: 1; display: grid; grid-template-rows: auto 2rem auto; gap: 0.5rem; }
.scale .bar { align-self: end; height: 0.5rem; background: var(--rule); }
.scale .step.on .bar { background: var(--accent); height: 2rem; }
.scale .n { font-family: var(--f-display); font-weight: 800; font-size: 0.9rem; color: var(--muted); }
.scale .step.on .n { color: var(--accent); }
.scale .lbl { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.scale .step.on .lbl { color: var(--text); }

/* ---------- crosswalk chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-size: 0.78rem; font-weight: 600; color: var(--text);
  border: 1px solid var(--rule); background: var(--raised);
  padding: 0.42rem 0.7rem; letter-spacing: 0.01em;
}

/* ---------- pull panel ---------- */
.panel { background: var(--raised); border: 1px solid var(--rule); padding: clamp(1.5rem, 3.5vw, 2.4rem); }
.panel.accent { border-left: 3px solid var(--accent); }
.panel .panel-h { font-size: 1.4rem; margin-bottom: 0.8rem; }
.panel .panel-eyebrow { margin-bottom: 0.9rem; }
.panel .btn-row { margin-top: 1.4rem; }
.panel p + p { margin-top: 0.9rem; }

.fineprint { font-size: 0.86rem; line-height: 1.6; color: var(--muted); }
.fineprint strong { color: var(--text); }

.kv { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; }
.kv div { display: grid; grid-template-columns: 11rem minmax(0,1fr); gap: 1rem; padding-block: 0.85rem; border-top: 1px solid var(--rule); font-size: 0.93rem; }
.kv div:last-child { border-bottom: 1px solid var(--rule); }
.kv dt { font-weight: 700; color: var(--text); margin: 0; }
.kv dd { margin: 0; color: var(--muted); }
@media (max-width: 40rem) { .kv div { grid-template-columns: minmax(0,1fr); gap: 0.25rem; } }

.status-strip {
  display: inline-flex; align-items: center; gap: 0.65rem;
  border: 1px solid var(--rule); background: var(--accent-wash);
  padding: 0.5rem 0.85rem; font-size: 0.82rem; color: var(--text); font-weight: 600;
}
.status-strip .dot { width: 0.5rem; height: 0.5rem; background: var(--accent); border-radius: 50%; flex: none; }

pre.txt {
  background: var(--surface); border: 1px solid var(--rule); padding: 1.1rem;
  overflow-x: auto; font-size: 0.82rem; line-height: 1.6; margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text);
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--rule); background: var(--raised); padding-block: 3rem; }
.site-foot .cols { gap: 2.5rem; }
@media (min-width: 55rem) { .site-foot .foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; } }
.foot-blurb { margin-top: 1.2rem; max-width: 24rem; }
.site-foot h4 { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.9rem; font-weight: 700; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.site-foot a { color: var(--text); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.colophon { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
