/* ============================================================
   engleader.tools — design tokens
   inherited from less software: warm monochrome, paper & ink
   ============================================================ */
:root {
  --paper:    #ece4d0;
  --paper-2:  #e3dac4;
  --paper-3:  #d8cfb8;
  --ink:      #1a1714;
  --ink-2:    #3d3833;
  --ink-3:    #6f675c;

  --serif: "Spectral", "Editorial New", Georgia, serif;
  --sans:  "Inter Tight", "Söhne", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --sp-1:4px; --sp-2:8px; --sp-3:16px; --sp-4:24px;
  --sp-5:32px; --sp-6:48px; --sp-7:64px; --sp-8:96px; --sp-9:128px;
}

* { box-sizing:border-box; margin:0; padding:0; }
html, body { background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.55 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.18'/></svg>");
  mix-blend-mode: multiply; opacity: .35;
}
::selection { background: var(--ink); color: var(--paper); }

a { color: inherit; text-decoration: none; }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity .15s; }
.link:hover { opacity: .65; }
.link-d { border-bottom: 1px dashed currentColor; padding-bottom: 1px; transition: border-bottom-style .15s; }
.link-d:hover { border-bottom-style: solid; }

em { font-style: italic; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: var(--paper-2);
  padding: 1px 5px;
  border-radius: 2px;
}

.eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-3);
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--sp-6); position: relative; z-index: 2; }
@media (max-width: 720px) { .wrap { padding: 0 var(--sp-4); } }

/* ===== topbar ===== */
.topbar {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto;
  padding: var(--sp-4) var(--sp-6);
}
@media (max-width: 720px) { .topbar { padding: var(--sp-3) var(--sp-4); } }
.topbar .mark {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.topbar .mark em { font-style: normal; font-weight: 400; color: var(--ink-3); }
.topbar .mark svg { flex-shrink: 0; }
.topbar nav {
  display: flex; gap: var(--sp-5);
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
}
.topbar nav a { padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color .15s; }
.topbar nav a:hover { border-bottom-color: var(--ink); }
.topbar .status {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-3);
}
.topbar .status .dot {
  width: 7px; height: 7px; background: var(--ink);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (max-width: 880px) { .topbar nav { display: none; } }

/* ===== hero ===== */
.hero { padding: var(--sp-5) 0 var(--sp-8); position: relative; z-index: 2; }
.hero-frame {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  min-height: 480px;
}
.hero-side {
  position: relative;
  padding: var(--sp-7) var(--sp-6);
  display: flex; flex-direction: column;
}
.hero-side.left { border-right: 1px solid var(--ink); }
.hero-side.right { background: var(--ink); color: var(--paper); }

.hero-side .eyebrow { display: block; }
.hero-side.right .eyebrow { color: var(--paper-3); }

.hero-side h1 {
  margin-top: var(--sp-5);
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

.hero-side p.lede {
  margin-top: var(--sp-4);
  max-width: 36ch;
  font-size: 17px; line-height: 1.5;
  color: var(--ink-2);
}

.hero-side .actions {
  margin-top: auto;
  padding-top: var(--sp-6);
  display: flex; gap: var(--sp-4);
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
}
.hero-side .actions a {
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.hero-side .actions a .arr { transition: transform .15s; }
.hero-side .actions a:hover .arr { transform: translateX(3px); }

/* terminal in hero */
.terminal {
  margin-top: var(--sp-5);
  background: #0d0c0b;
  border: 1px solid #3d3833;
  border-radius: 6px;
  overflow: hidden;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.term-bar {
  display: flex; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #2a2622;
}
.term-bar span {
  width: 10px; height: 10px; border-radius: 50%;
  background: #3d3833;
}
.terminal pre {
  padding: var(--sp-4);
  margin: 0;
  flex: 1;
}
.terminal code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper-3);
  background: none;
  padding: 0;
  border-radius: 0;
}
.terminal .prompt { color: var(--ink-3); user-select: none; margin-right: 8px; }
.terminal-note {
  margin-top: var(--sp-3);
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--paper-3);
}

@media (max-width: 880px) {
  .hero-frame { grid-template-columns: 1fr; min-height: 0; }
  .hero-side { padding: var(--sp-6) var(--sp-4) var(--sp-7); }
  .hero-side.left { border-right: 0; border-bottom: 1px solid var(--ink); }
}

/* ===== statement ===== */
.statement {
  padding: var(--sp-8) 0 var(--sp-8);
  border-top: 1px solid var(--ink);
  position: relative; z-index: 2;
}
.statement .line {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  max-width: 14ch;
}
.statement .line em { font-style: italic; font-weight: 400; }
.statement .line .ghost {
  color: transparent; -webkit-text-stroke: 1px var(--ink); font-style: italic;
}
.statement .statement-sub {
  margin-top: var(--sp-5);
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-2);
}

/* ===== install ===== */
.install {
  padding: var(--sp-7) 0 var(--sp-8);
  border-top: 1px solid var(--ink);
  position: relative; z-index: 2;
}
.install header {
  display: grid; grid-template-columns: 240px 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-6);
  align-items: baseline;
}
.install header h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.015em; line-height: 1.1;
  max-width: 18ch;
}
@media (max-width: 720px) { .install header { grid-template-columns: 1fr; gap: var(--sp-3); } }

.install-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--ink);
  align-items: stretch;
}
.install-grid > * { min-width: 0; }
.install-cell {
  padding: var(--sp-5) var(--sp-4);
  border-right: 1px solid var(--ink);
  display: flex; flex-direction: column;
  min-height: 0;
}
.install-cell:last-child { border-right: 0; }
.install-cell.invert { background: var(--ink); color: var(--paper); }
.install-cell.invert .num { color: var(--paper-3); }

.install-cell .num {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-3);
  display: flex; justify-content: space-between;
  margin-bottom: var(--sp-4);
}
.install-cell h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-4);
}
.install-cell pre {
  background: rgba(0,0,0,0.06);
  padding: var(--sp-3);
  border-radius: 3px;
  overflow-x: auto;
  margin-top: var(--sp-4);
}
.install-cell.invert pre { background: rgba(255,255,255,0.08); }
.install-cell pre code {
  font-size: 12px;
  line-height: 1.6;
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: pre;
}

.prereqs {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--ink-3);
}
.prereqs .eyebrow { display: block; margin-bottom: var(--sp-2); }
.prereqs p { font-size: 14px; color: var(--ink-2); }
.prereqs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  font-size: 14px;
  color: var(--ink-2);
}
.prereqs ul li + li::before {
  content: "\00b7\00a0";
  color: var(--ink-3);
}

@media (max-width: 880px) {
  .install-grid { grid-template-columns: 1fr; }
  .install-cell { border-right: 0; border-bottom: 1px solid var(--ink); }
  .install-cell:last-child { border-bottom: 0; }
}

/* ===== commands ===== */
.commands {
  padding: var(--sp-7) 0 var(--sp-8);
  border-top: 1px solid var(--ink);
  position: relative; z-index: 2;
}
.commands header {
  margin-bottom: var(--sp-6);
}
.commands header .eyebrow { display: block; margin-bottom: var(--sp-3); }
.commands header h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.015em; line-height: 1.1;
}
.commands header .sub {
  margin-top: var(--sp-3);
  color: var(--ink-2);
  font-size: 15px;
  max-width: 50ch;
}

.cmd-group {
  margin-bottom: var(--sp-6);
}
.cmd-group h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-2);
}
.cmd-group .group-note {
  font-size: 13.5px; color: var(--ink-3);
  margin-bottom: var(--sp-3);
}

.cmd-list { list-style: none; }
.cmd-list li {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-4); align-items: baseline;
  padding: var(--sp-2) 0;
  border-top: 1px solid var(--paper-3);
  transition: padding-left .2s, background .2s;
  cursor: pointer;
}
.cmd-list li:last-child { border-bottom: 1px solid var(--paper-3); }
.cmd-list li:hover { padding-left: var(--sp-2); background: var(--paper-2); }
.cmd-list .cmd {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  color: var(--ink);
}
.cmd-list .desc { color: var(--ink-2); font-size: 14px; }

.cmd-list li .example-output {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .3s ease, opacity .3s ease, margin .2s ease;
  margin-top: 0;
}
.cmd-list li .example-output > .terminal {
  overflow: hidden;
}
.cmd-list li.open .example-output {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: var(--sp-2);
}
.cmd-list li.open {
  padding-bottom: var(--sp-3);
}

.example-output .terminal {
  background: #0d0c0b;
  border: 1px solid #3d3833;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}
.example-output .term-bar {
  display: flex; gap: 6px;
  padding: 8px 14px;
  border-bottom: 1px solid #2a2622;
}
.example-output .term-bar span {
  width: 8px; height: 8px; border-radius: 50%;
  background: #3d3833;
}
.example-output pre {
  padding: var(--sp-3) var(--sp-4);
  margin: 0;
  overflow-x: auto;
}
.example-output code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--paper-3);
  background: none;
  padding: 0;
  border-radius: 0;
  white-space: pre;
}

@media (max-width: 720px) {
  .cmd-list li { grid-template-columns: 1fr; gap: var(--sp-1); }
}

.csv-note {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px dashed var(--ink-3);
}
.csv-note .eyebrow { display: block; margin-bottom: var(--sp-2); }
.csv-note p { font-size: 14px; color: var(--ink-2); }

/* ===== philosophy ===== */
.philosophy {
  padding: var(--sp-8) 0 var(--sp-8);
  border-top: 1px solid var(--ink);
  position: relative; z-index: 2;
}
.philosophy .grid {
  display: grid; grid-template-columns: 280px 1fr;
  gap: var(--sp-7);
  align-items: start;
}
.philosophy .meta-col .eyebrow { display: block; margin-bottom: var(--sp-3); }
.philosophy .meta-col h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.015em; line-height: 1.05;
  max-width: 12ch;
}
.philosophy .meta-col .quote {
  margin-top: var(--sp-5);
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.45;
  color: var(--ink-2);
  max-width: 26ch;
  border-left: 1px solid var(--ink);
  padding-left: var(--sp-3);
}

.philosophy .copy-col p {
  font-family: var(--serif);
  font-size: 21px; line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 38ch;
  color: var(--ink);
}
.philosophy .copy-col p + p {
  margin-top: var(--sp-4);
  color: var(--ink-2);
  font-size: 17px; line-height: 1.6;
  font-family: var(--sans);
  letter-spacing: 0;
}

@media (max-width: 880px) {
  .philosophy .grid { grid-template-columns: 1fr; gap: var(--sp-5); }
}

/* ===== about — bifurcated ===== */
.about {
  border-top: 1px solid var(--ink);
  position: relative; z-index: 2;
}
.about .about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
}
.about .col { padding: var(--sp-8) var(--sp-6); position: relative; min-height: 320px; }
.about .col.left { border-right: 1px solid var(--ink); }
.about .col.right { background: var(--ink); color: var(--paper); }
.about .col .eyebrow { display: block; margin-bottom: var(--sp-4); }
.about .col.right .eyebrow { color: var(--paper-3); }

.about h3 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: var(--sp-4);
}
.about p {
  max-width: 36ch;
  color: var(--ink-2);
  font-size: 15px;
}
.about .col.right p { color: var(--paper-3); }

.about .meta-rows {
  margin-top: var(--sp-6);
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.about .col.right .meta-rows { color: var(--paper-3); }
.about .meta-rows .row {
  display: flex; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-top: 1px dashed currentColor;
}
.about .meta-rows .row:last-child { border-bottom: 1px dashed currentColor; }
.about .meta-rows .row .v { color: var(--ink); }
.about .col.right .meta-rows .row .v { color: var(--paper); }

@media (max-width: 880px) {
  .about .about-grid { grid-template-columns: 1fr; }
  .about .col.left { border-right: 0; border-bottom: 1px solid var(--ink); }
  .about .col { padding: var(--sp-6) var(--sp-4); min-height: 0; }
}

/* ===== footer ===== */
footer.foot {
  max-width: 1280px; margin: 0 auto;
  padding: var(--sp-5) var(--sp-6);
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-3);
  position: relative; z-index: 2;
  flex-wrap: wrap;
  border-top: 1px solid var(--ink);
}
footer.foot a:hover { color: var(--ink); }
@media (max-width: 720px) { footer.foot { padding: var(--sp-4) var(--sp-4); } }
