/* l3t.io — copper on charcoal, IBM Plex Mono, like the tools. */

@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/assets/fonts/plex-mono-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --kupfer: #B4551E;
  --kupfer-hell: #E07A22;
  --kupfer-tief: #8F4218;
  --kohle: #131312;
  --kopf: #1C1C1A;
  --auf-dunkel: #EDEBE6;
  --auf-dunkel-leise: #A9A59C;

  --bg: #F2F1EF;
  --surface: #FFFFFF;
  --line: #DEDCD7;
  --text: #232326;
  --muted: #5D5D64;
  --accent: var(--kupfer);

  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 6px;
  --wrap: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131312;
    --surface: #1C1C1A;
    --line: #34332F;
    --text: #E7E4DD;
    --muted: #A39E93;
    --accent: var(--kupfer-hell);
  }
}

* { 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(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .92em; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
:focus-visible { outline: 2px solid var(--kupfer-hell); outline-offset: 2px; border-radius: 2px; }

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

/* ---------- Header ---------- */

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--kopf) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #2B2A26;
}
.top-inner { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: inline-flex; align-items: center; color: var(--kupfer-hell); }
.brand .logo { height: 24px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.nav a { color: var(--auf-dunkel-leise); text-decoration: none; }
.nav a:hover { color: #FFFFFF; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 20px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--kupfer); color: #FFFFFF; }
.btn-primary:hover { background: var(--kupfer-tief); }
.btn-ghost { border-color: #4A4842; color: var(--auf-dunkel); background: transparent; }
.btn-ghost:hover { border-color: #75726A; color: #FFFFFF; }
.btn-outline { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--muted); }
.nav .btn { height: 34px; padding: 0 14px; font-size: 13px; color: var(--auf-dunkel); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(224, 122, 34, .18), transparent 60%),
    linear-gradient(180deg, var(--kopf) 0%, var(--kohle) 75%);
  color: var(--auf-dunkel);
  padding: 96px 0 104px;
}
.hero-inner > * { max-width: 820px; }
.hero-logo { color: var(--auf-dunkel); margin-bottom: 48px; }
.hero-logo .logo { height: clamp(72px, 11vw, 124px); width: auto; }
.prompt-line { margin: 0 0 18px; font-size: 15px; color: var(--auf-dunkel-leise); }
.prompt { color: var(--kupfer-hell); user-select: none; }
.cursor {
  display: inline-block; width: .55em; height: 1.05em; margin-left: .2em;
  background: var(--kupfer-hell); vertical-align: -.18em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); font-weight: 600; }
.lead { font-size: clamp(16px, 1.9vw, 19px); color: var(--auf-dunkel-leise); margin: 22px 0 0; max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- Sections ---------- */

.section { padding: 96px 0; }
.section + .section { padding-top: 24px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; max-width: 26ch; }
.section-lead { color: var(--muted); font-size: 16px; margin: 14px 0 0; max-width: 64ch; }

/* ---------- Tools ---------- */

.tool {
  margin-top: 44px;
  display: grid; grid-template-columns: 7fr 5fr; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.tool-shot { display: block; align-self: stretch; position: relative; min-height: 380px; background: var(--kohle); overflow: hidden; }
/* Larger than the box and cut off right and bottom: sidebar and grid fill the card */
.tool-shot img {
  position: absolute; left: 28px; top: 28px; width: 150%; max-width: none;
  border-radius: 8px 0 0 0; border: 1px solid #2F2E2A; border-right: 0; border-bottom: 0;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
  transition: transform .3s ease;
}
.tool-shot:hover img { transform: translateY(-4px); }
@media (prefers-reduced-motion: reduce) { .tool-shot img { transition: none; } }
.tool-text { padding: 36px 40px 40px; }
.tool-tag { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.tool h3 { font-size: 28px; font-weight: 600; }
.tool-text > p:not(.tool-tag) { color: var(--muted); margin: 12px 0 0; }

.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; font-size: 14px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before {
  content: ''; position: absolute; left: 2px; top: .4em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.pull {
  display: block; margin-top: 22px; padding: 10px 14px; overflow-x: auto; white-space: nowrap;
  background: var(--kohle); color: var(--auf-dunkel); border-radius: var(--r); font-size: 13px;
}
.tool .cta { margin-top: 22px; }

.next {
  margin-top: 16px; padding: 18px 22px;
  display: flex; gap: 14px; align-items: baseline;
  border: 1px dashed var(--line); border-radius: 10px; color: var(--muted);
}
.next p { margin: 0; }
.next .prompt { color: var(--accent); }

/* ---------- Principles ---------- */

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 24px; }
.card-cmd { margin: 0 0 14px; font-size: 12px; font-weight: 600; color: var(--accent); }
.card-cmd::before { content: '--'; }
.card h3 { font-size: 17px; font-weight: 600; }
.card p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- Support ---------- */

.support {
  max-width: 820px; padding: 22px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.support h3 { font-size: 16px; }
.support p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 52ch; }
.btn-support { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-support:hover { background: var(--kupfer); border-color: var(--kupfer); color: #FFFFFF; }

/* ---------- Footer ---------- */

.foot { background: var(--kohle); color: var(--auf-dunkel-leise); padding: 48px 0 40px; font-size: 13.5px; }
.foot-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand .logo { height: 18px; width: auto; color: var(--kupfer-hell); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--auf-dunkel-leise); text-decoration: none; }
.foot-links a:hover { color: #FFFFFF; }
.foot-legal { grid-column: 1 / -1; margin: 12px 0 0; font-size: 12px; color: #77736A; }

/* ---------- Narrow ---------- */

@media (max-width: 960px) {
  .tool { grid-template-columns: 1fr; }
  .tool-shot { min-height: 320px; }
  .tool-shot img { width: 170%; }
  .cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .hero { padding: 56px 0 72px; }
  .hero-logo { margin-bottom: 36px; }
  .nav a[href^="#"] { display: none; }
  .section { padding: 64px 0; }
  .tool-text { padding: 26px 22px 28px; }
  .tool-shot { min-height: 220px; }
  .tool-shot img { left: 18px; top: 18px; width: 210%; }
  .cards { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */

.hero-404 { min-height: 100vh; padding-top: 22vh; }
