/* devwhateverops.com — one dark manifesto page. Tokens on :root; no light theme on purpose. */
:root {
  --bg: #0a0a0a;
  --bg-2: #121211;
  --line: #262624;
  --fg: #ecebe6;
  --muted: #9a9993;
  --accent: #ff5c4d;
  --accent-ink: #0a0a0a;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; }

/* Bar */
.bar { position: sticky; top: 0; z-index: 5; background: rgba(10, 10, 10, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 15px/1 var(--mono); letter-spacing: -.01em; }
.mark { border-radius: 6px; }
.nav { display: flex; gap: 6px; }
.nav a { display: flex; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 8px; text-decoration: none; font: 500 14px/1 var(--mono); color: var(--muted); }
.nav a:hover { color: var(--fg); background: var(--bg-2); }
.rn { font-family: var(--mono); color: var(--accent); font-weight: 600; }

/* Hero */
.hero { position: relative; padding: clamp(64px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, #262624 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 20%, transparent 75%); }
.kicker { margin: 0 0 28px; font: 500 13px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kicker .sep { color: var(--accent); margin: 0 .4em; }
h1 { margin: 0; max-width: 13ch; font-size: clamp(44px, 9vw, 124px); line-height: .95; letter-spacing: -.045em; font-weight: 800; text-wrap: balance; }
h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 32px 0 0; max-width: 34ch; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.45; color: var(--muted); }

.intro { margin: 20px 0 0; max-width: 52ch; font-size: 17px; line-height: 1.6; color: #cfcec8; border-left: 2px solid var(--accent); padding-left: 16px; }
.pillars { list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pillars a { display: grid; gap: 10px; height: 100%; padding: 26px 24px 28px; background: var(--bg); text-decoration: none; transition: background .2s; }
.pillars a:hover { background: var(--bg-2); }
.pillars .rn { font-size: 14px; }
.pillars b { font-size: 24px; letter-spacing: -.02em; }
.pillars span:last-child { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Chapters */
.chapter { padding-bottom: clamp(56px, 9vw, 120px); }
.band { position: relative; margin: 0 0 clamp(40px, 6vw, 72px); }
.band img { width: 100%; height: clamp(260px, 52vw, 620px); object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.05) 30%, rgba(10,10,10,.92) 100%); }
.band figcaption { position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vw, 44px); z-index: 1; }
.band .rn { display: block; margin-bottom: 8px; font-size: clamp(18px, 2vw, 24px); }
.band .rn.small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(40px, 7.5vw, 96px); line-height: .95; letter-spacing: -.045em; font-weight: 800; }

.grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.tag { position: sticky; top: 92px; margin: 0; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: var(--accent); text-wrap: balance; }
.prose { max-width: 64ch; }
.prose p { margin: 0 0 1.15em; color: #cfcec8; }
.prose p.big { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; color: var(--fg); font-weight: 600; letter-spacing: -.01em; }

.reading { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.reading li { border-bottom: 1px solid var(--line); }
.reading a { display: block; padding: 14px 28px 14px 0; position: relative; text-decoration: none; font-weight: 600; color: var(--fg); }
.reading a::after { content: "\2197"; position: absolute; right: 4px; color: var(--accent); }
.reading a:hover { color: var(--accent); }
/* Footer: same structure as humancopilot.eu (brand, personal projects, elsewhere, legal line). */
footer { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1.6fr 1fr; gap: 40px; padding-bottom: 40px; }
.foot-brand .brand { color: var(--fg); }
.foot-brand p { margin: 14px 0 0; line-height: 1.6; }
.foot-brand p a { color: var(--fg); }
.foot-col { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-col h2 { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 4px; }
.foot-col a { text-decoration: none; color: #cfcec8; }
.foot-col a:hover, .foot-col a:hover b { color: var(--accent); }
.foot-col a b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; color: var(--fg); }
.foot-col a span { display: block; font-size: 13px; color: var(--muted); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 24px; border-top: 1px solid var(--line); font: 13px/1.6 var(--mono); }
.foot-legal a { color: var(--fg); }

/* Reveal: content stays visible without JS; site.js adds .js to <html>. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* 404 */
.page { padding: clamp(80px, 14vw, 160px) 0; min-height: 70vh; }
.btn { display: inline-block; margin-top: 32px; padding: 14px 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .tag { position: static; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .nav a { padding: 8px; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
