/* Portfolio site: a darkroom. Near-black ground, a red safelight accent, paper-white sections,
   a high-contrast serif for headlines. The fan of pages in the hero is real engine output. */
:root {
  --night: #0e1018;
  --night-2: #171a26;
  --paper: #f4f1ea;
  --paper-2: #e9e4d8;
  --ink: #14151c;
  --fog: #a9adbb;
  --safe: #ff5a36;
  --safe-ink: #12090a;
  --line: #2a2e3d;
  --display: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: #f2efe8; font: 17px/1.6 var(--text); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--safe); outline-offset: 3px; border-radius: 2px; }
.light :focus-visible { outline-color: #b02a0c; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -.01em; }
h3 { font-size: 26px; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--safe); color: var(--safe-ink); padding: 8px 14px; z-index: 20; font-weight: 600; }
.skip:focus { top: 12px; }

.top { position: relative; z-index: 5; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-weight: 600; font-size: 15px; text-decoration: none; letter-spacing: -.01em; }
.mark { width: 22px; height: 22px; border: 2px solid currentColor; position: relative; display: inline-block; }
.mark::after { content: ""; position: absolute; inset: 4px; background: var(--safe); }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { font-size: 14px; color: var(--fog); text-decoration: none; }
.nav a:hover { color: #fff; text-decoration: underline; }

.eyebrow, .kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--safe); }
.light .kicker { color: #b02a0c; }

/* hero */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 80px); overflow-x: clip; background:
  radial-gradient(900px 420px at 80% 96%, rgba(255, 90, 54, .16), transparent 70%), var(--night); }
.hero h1 { font-size: clamp(40px, 6.6vw, 88px); letter-spacing: -.02em; margin-top: 18px; max-width: 17em; }
.hero h1 em { font-style: italic; color: var(--safe); }
.hero-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: end; margin-top: 32px; }
.lede { font-size: 19px; color: var(--fog); max-width: 38em; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.btn { display: inline-block; background: var(--safe); color: var(--safe-ink); text-decoration: none; padding: 13px 22px; border-radius: 4px; font-weight: 600; border: 1px solid var(--safe); }
.btn:hover { background: #fff; border-color: #fff; }
.btn-quiet { background: transparent; color: #f2efe8; border-color: #4a4f63; }
.btn-quiet:hover { background: #f2efe8; color: var(--night); }

.fan { position: relative; height: clamp(300px, 46vw, 560px); margin-top: clamp(32px, 5vw, 64px); }
.fan .pg { position: absolute; width: clamp(200px, 30vw, 400px); bottom: 0; box-shadow: 0 2px 4px rgba(0,0,0,.4), 0 30px 60px rgba(0,0,0,.55); background: #000; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.fan .pg img { width: 100%; }
.fan .p1 { left: 4%; transform: rotate(-7deg) translateY(2%); }
.fan .p2 { left: 19%; transform: rotate(-3.5deg) translateY(-6%); z-index: 2; }
.fan .p3 { left: 35%; transform: rotate(0deg) translateY(-12%); z-index: 3; }
.fan .p4 { left: 51%; transform: rotate(3.5deg) translateY(-6%); z-index: 2; }
.fan .p5 { left: 66%; transform: rotate(7deg) translateY(2%); }
.fan .pg:hover { transform: rotate(0deg) translateY(-18%) scale(1.04); z-index: 6; }
.fan-note { margin-top: 20px; font-size: 14px; color: var(--fog); }

/* paper sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
.hero { padding-bottom: clamp(40px, 6vw, 80px); }
.light { background: var(--paper); color: var(--ink); }
.light h2 { color: var(--ink); }
.light .section-lede, .light p { color: #3d3f4a; }
.section-lede { margin-top: 12px; max-width: 54ch; }
.light h2 + * { margin-top: 0; }

.outs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 44px; align-items: start; }
.out h3 { margin-top: 18px; }
.out p { margin-top: 8px; font-size: 16px; }
.shot { display: block; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 36px rgba(20,21,28,.18); transition: transform .3s; }
.shot:hover { transform: translateY(-4px); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ask { margin: 24px 0 0; font-family: var(--display); font-size: 30px; line-height: 1.25; border-left: 3px solid var(--safe); padding-left: 22px; color: #f2efe8; }
.ask code { font-size: .7em; background: var(--night-2); padding: 2px 8px; border-radius: 4px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--line); color: var(--fog); }
.steps li:first-child { padding-top: 0; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--display); font-size: 34px; color: var(--safe); line-height: 1; }
.steps li:first-child::before { top: -4px; }
.steps b { color: #f2efe8; font-weight: 600; }
.layouts { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.layouts ul { list-style: none; padding: 0; margin: 20px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 28px; }
.layouts li { color: var(--fog); font-size: 15.5px; }
.layouts b { display: block; font-family: var(--mono); font-size: 14px; color: #fff; font-weight: 600; margin-bottom: 2px; }
.layouts p { color: var(--fog); font-size: 15.5px; }

.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; margin-top: 44px; }
.theme { margin: 0; }
.theme img { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 14px 30px rgba(20,21,28,.16); transition: transform .3s; }
.theme a:hover img { transform: translateY(-4px); }
.theme figcaption { margin-top: 14px; font-size: 15.5px; color: #3d3f4a; }
.theme figcaption b { font-family: var(--mono); font-size: 14px; color: var(--ink); margin-right: 8px; }

.lightbox { background: var(--night-2); }
.body { color: var(--fog); margin-top: 18px; max-width: 46ch; }
.lb-shot { display: block; box-shadow: 0 30px 60px rgba(0,0,0,.5); border: 1px solid var(--line); }

.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 36px; }
.install h3 { font-size: 22px; font-family: var(--text); font-weight: 600; }
.install pre { margin: 12px 0 0; background: #05060a; border: 1px solid var(--line); color: #f2efe8; padding: 16px; border-radius: 8px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { color: var(--fog); margin-top: 22px; font-size: 15px; max-width: 70ch; }

.examples { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid #cfc9b9; }
.examples li { display: flex; gap: 8px 18px; align-items: baseline; flex-wrap: wrap; padding: 16px 0; border-bottom: 1px solid #cfc9b9; color: #3d3f4a; }
.examples b { font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--ink); flex: 1 1 14em; }
.examples a { font-family: var(--mono); font-size: 13px; color: var(--ink); background: var(--paper-2); padding: 4px 12px; border-radius: 99px; text-decoration: none; border: 1px solid #cfc9b9; }
.examples a:hover { background: var(--ink); color: var(--paper); }
.phone { margin: 48px 0 0; max-width: 280px; }
.phone img { border-radius: 28px; border: 6px solid var(--ink); box-shadow: 0 24px 48px rgba(20,21,28,.25); }
.phone figcaption { margin-top: 12px; font-size: 14px; color: #3d3f4a; }

.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; font-size: 15px; color: var(--fog); }
.foot-row { display: grid; gap: 10px; }
.foot .wordmark { color: #f2efe8; }
.foot a { color: #f2efe8; }

.lost { min-height: 60vh; display: flex; align-items: center; }
.lost h1 { font-size: clamp(36px, 5vw, 64px); margin-top: 12px; }
.lost .lede { margin-top: 16px; }
.lost .cta { justify-content: flex-start; margin-top: 28px; }

@media (max-width: 900px) {
  .hero-row, .two-col { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cta { justify-content: flex-start; }
  .outs, .themes { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .install { grid-template-columns: minmax(0, 1fr); }
  .fan .pg { width: 34vw; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .nav { gap: 14px; }
  .outs, .themes { grid-template-columns: minmax(0, 1fr); }
  .fan { height: 56vw; }
  .fan .pg { width: 44vw; }
  .fan .p1 { left: -2%; } .fan .p2 { left: 12%; } .fan .p3 { left: 28%; } .fan .p4 { left: 44%; } .fan .p5 { left: 56%; }
  .ask { font-size: 24px; }
  .examples b { font-size: 23px; }
}
