/* onepager-md site: "print proof". Concrete grey, ink black, and the four process colours
   (cyan, magenta, yellow, key) used the way a print shop uses them: marks, bars and rules.
   Keep the focus ring, the skip link and the 3-width check (npm run shots). */
:root {
  --bg: #e3e5e8;
  --panel: #f2f3f4;
  --ink: #0d1013;
  --muted: #444b54;
  --line: #bcc1c8;
  --cyan: #0098dc;
  --magenta: #e4007c;
  --yellow: #ffd400;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --text: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains 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(--bg); color: var(--ink); font: 18px/1.55 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--magenta); text-decoration-thickness: 2px; text-underline-offset: .2em; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; margin: 0; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h2 em, h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
h3 { font-size: 21px; letter-spacing: -.015em; line-height: 1.15; }
p { margin: 0; }
code, pre { font-family: var(--mono); font-size: .86em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 10; }
.skip:focus { top: 12px; }
.tag { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* header */
.top { border-bottom: 2px solid var(--ink); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.wordmark:hover { color: var(--ink); }
.reg { width: 24px; height: 24px; flex: none; }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { text-decoration: underline; }

section { padding: clamp(64px, 9vw, 120px) 0; }
.band { background: var(--panel); border-block: 2px solid var(--ink); }
.dark { background: var(--ink); color: #eceef0; }
.dark a { color: #fff; }
.section-lede { color: var(--muted); margin-top: 18px; max-width: 58ch; font-size: 19px; }
.dark .section-lede { color: #a9b0b8; }
.head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); }

/* hero */
.hero { padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(56px, 8vw, 96px); overflow-x: clip; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(48px, 7.4vw, 104px); margin-top: 18px; line-height: .92; }
.lede { font-size: clamp(19px, 2vw, 23px); color: var(--ink); margin-top: 26px; max-width: 36ch; line-height: 1.4; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 14px 24px; font-weight: 700; font-size: 16px; border: 2px solid var(--ink); box-shadow: 5px 5px 0 var(--magenta); transition: transform .12s, box-shadow .12s; }
.btn:hover { color: #fff; transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--magenta); }
.btn-quiet { background: transparent; color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn-quiet:hover { color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.one-liner { margin-top: 28px; }
.one-liner code { display: inline-block; background: var(--ink); color: #fff; padding: 9px 13px; overflow-wrap: anywhere; }

.fan { position: relative; aspect-ratio: 1 / 1.04; }
.fan a { position: absolute; display: block; width: 56%; background: #fff; box-shadow: 0 2px 3px rgba(13, 16, 19, .12), 0 26px 50px rgba(13, 16, 19, .22); transition: transform .25s; }
.fan .a { left: 0; top: 9%; transform: rotate(-7deg); }
.fan .b { right: 0; top: 0; transform: rotate(6deg); }
.fan .c { left: 20%; bottom: 0; transform: rotate(-1deg); z-index: 2; }
.fan a:hover { transform: rotate(0) translateY(-6px); z-index: 3; }

.bar { display: flex; height: 14px; }
.bar i { flex: 1; }
.bar i:nth-child(1) { background: var(--cyan); }
.bar i:nth-child(2) { background: var(--magenta); }
.bar i:nth-child(3) { background: var(--yellow); }
.bar i:nth-child(4) { background: var(--ink); }

/* formats */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); align-items: start; }
.format { display: grid; gap: 18px; }
.format .shots { display: grid; gap: 14px; align-items: end; padding: 28px; border: 2px solid var(--ink); background: var(--bg); position: relative; }
.format .shots.two { grid-template-columns: 1fr 1fr; }
.format .shots img { background: #fff; box-shadow: 0 1px 2px rgba(13, 16, 19, .12), 0 14px 28px rgba(13, 16, 19, .18); }
.format h3 { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.format h3 span { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; color: var(--muted); }
.format p { color: var(--muted); font-size: 17px; }
.format a.cap { font-weight: 700; font-size: 15px; }

/* how */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--ink); padding-top: 18px; display: grid; gap: 10px; align-content: start; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--magenta); }
.steps li:nth-child(2)::before { color: var(--cyan); }
.steps li:nth-child(3)::before { color: #b89a00; }
.steps p { color: var(--muted); font-size: 17px; }
.ask { margin: clamp(32px, 4vw, 48px) 0 0; font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px); line-height: 1.18; max-width: 26em; padding-left: 22px; border-left: 6px solid var(--magenta); }

/* honest by design */
.rules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border: 2px solid #3a4048; }
.rules li { padding: 26px; border-inline-end: 2px solid #3a4048; color: #a9b0b8; font-size: 17px; }
.rules li:last-child { border-inline-end: 0; }
.rules b { display: block; color: #fff; font-family: var(--display); font-size: 22px; letter-spacing: -.02em; margin-bottom: 8px; line-height: 1.15; }
.rules .k { display: block; font-family: var(--mono); font-size: 12px; margin-bottom: 14px; letter-spacing: .1em; text-transform: uppercase; }
.rules li:nth-child(1) .k { color: var(--cyan); }
.rules li:nth-child(2) .k { color: var(--magenta); }
.rules li:nth-child(3) .k { color: var(--yellow); }
.rules li:nth-child(4) .k { color: #fff; }

/* themes */
.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.themes figure { margin: 0; display: grid; gap: 12px; align-content: start; }
.themes img { background: #fff; box-shadow: 0 1px 2px rgba(13, 16, 19, .12), 0 12px 26px rgba(13, 16, 19, .16); }
.themes figcaption { font-size: 14px; color: var(--muted); line-height: 1.4; }
.themes figcaption b { display: block; font-family: var(--mono); font-size: 13px; color: var(--ink); margin-bottom: 3px; }

/* examples */
.examples { width: 100%; border-collapse: collapse; margin-top: 8px; }
.examples th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 14px 10px 0; border-bottom: 2px solid var(--ink); }
.examples td { padding: 18px 14px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.examples td:first-child { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1.15; }
.examples td span { display: block; font-family: var(--text); font-weight: 400; font-size: 15px; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.examples .m { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.examples .links { white-space: nowrap; font-size: 15px; font-weight: 700; }

/* install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.install h3 { color: #fff; }
.install pre { margin: 14px 0 0; background: #181c21; border: 2px solid #3a4048; color: #f2f3f4; padding: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { color: #a9b0b8; margin-top: 26px; font-size: 16px; }

/* footer */
.foot { border-top: 2px solid var(--ink); padding: 44px 0 64px; font-size: 15px; color: var(--muted); }
.foot-row { display: grid; gap: 10px; }
.foot .wordmark { color: var(--ink); }

.lost { min-height: 60vh; display: flex; align-items: center; }
.lost h1 { font-size: clamp(44px, 7vw, 88px); margin-top: 14px; }

@media (max-width: 1000px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .formats { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .fan { max-width: 520px; width: 100%; margin: 0 auto; }
  .steps, .install { grid-template-columns: minmax(0, 1fr); }
  .rules li { border-inline-end: 0; border-bottom: 2px solid #3a4048; }
  .rules li:last-child { border-bottom: 0; }
}
@media (max-width: 720px) {
  .examples thead { display: none; }
  .examples, .examples tbody, .examples tr, .examples td { display: block; width: 100%; }
  .examples tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .examples td { padding: 2px 0; border: 0; }
  .examples td:first-child { margin-bottom: 4px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .nav { gap: 16px; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format .shots { padding: 18px; }
  .btn { padding: 13px 20px; }
}
