:root { color-scheme: light; --paper: #f3f0e8; --card: #e8e5dc; --ink: #23271f; --muted: #62665b; --accent: #b9361d; --hairline: #23271f30; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.page { max-width: 1240px; min-height: 100svh; margin: auto; padding: 0 6%; display: flex; flex-direction: column; }

/* Header */
header { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 36px 0; border-bottom: 1px solid var(--hairline); }
.wordmark { font-size: 28px; font-weight: 750; letter-spacing: -1.7px; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--accent); }
.topnav { display: flex; align-items: center; gap: 26px; font-size: 13px; }
.topnav a { text-decoration: none; color: var(--muted); }
.topnav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.topnav a.apify { color: var(--accent); font-weight: 700; }

/* Type helpers */
.eyebrow { font-family: 'Courier New', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; margin: 0 0 30px; color: var(--muted); }
h1 { font-size: clamp(54px, 6.4vw, 96px); line-height: .98; letter-spacing: -.065em; margin: 0; font-weight: 500; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.035em; margin: 0; font-weight: 600; }
h3 { font-size: 17px; letter-spacing: -.01em; margin: 0 0 8px; font-weight: 700; }
.accent { color: var(--accent); }
.description { margin: 30px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 34em; }
.note { display: flex; align-items: center; gap: 14px; margin-top: 48px; font-family: 'Courier New', monospace; font-size: 11px; font-weight: 600; letter-spacing: .3px; }
.line { width: 34px; height: 1px; background: var(--ink); }

/* Hero */
.intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 7%; padding: 76px 0 84px; }
.intro-copy { min-width: 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-block; padding: 13px 22px; border-radius: 3px; background: var(--accent); color: #f3f0e8; font-size: 14px; font-weight: 700; text-decoration: none; letter-spacing: .01em; }
.button:hover { background: #9c2c16; }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.secondary:hover { background: #23271f12; }
.art { min-width: 0; max-width: 460px; width: 100%; justify-self: end; }
.art svg { display: block; width: 100%; height: auto; }
.art-caption { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; color: var(--muted); font-family: 'Courier New', monospace; font-size: 10px; font-weight: 600; letter-spacing: 1px; }

/* How it works */
.how { padding: 64px 0 72px; border-top: 1px solid var(--hairline); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 44px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 20px; }
.step-num { display: block; font-family: 'Courier New', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--accent); margin-bottom: 14px; }
.steps p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }

/* Catalogue */
.catalogue { padding: 64px 0 32px; border-top: 1px solid var(--hairline); }
.section-lede { margin: 22px 0 0; font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 44em; }
.group { margin-top: 56px; }
.group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; }
.group-num { font-family: 'Courier New', monospace; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--accent); }
.group-head h3 { font-size: 21px; letter-spacing: -.02em; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.card { border: 1px solid #23271f26; background: var(--card); border-radius: 3px; padding: 18px 18px 16px; display: flex; flex-direction: column; }
.card h4 { margin: 0 0 8px; font-size: 15px; letter-spacing: -.01em; }
.card h4 a { text-decoration: none; }
.card h4 a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.card p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.more-link { margin: 56px 0 32px; font-size: 15px; color: var(--ink); }
.more-link a { color: var(--accent); font-weight: 700; }

/* Custom */
.custom { margin-top: 24px; padding: 64px 6% 76px; border-top: 1px solid var(--hairline); background: var(--card); }
.custom .eyebrow { margin-bottom: 22px; }
.custom-lede { margin: 24px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 42em; }

/* Footer */
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 24px 0 28px; border-top: 1px solid var(--hairline); font-size: 11px; color: var(--muted); }
footer > :first-child { color: var(--ink); font-weight: 700; }
footer a { color: var(--accent); text-decoration: none; font-weight: 700; }
footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Wide screens */
@media (min-width: 1400px) { .intro { padding-top: 90px; padding-bottom: 104px; } }

/* Mobile */
@media (max-width: 860px) {
  .page { padding: 0 7%; }
  header { padding: 22px 0; gap: 12px; flex-wrap: wrap; }
  .wordmark { font-size: 24px; }
  .topnav { gap: 16px; font-size: 12px; }
  .intro { grid-template-columns: minmax(0, 1fr); gap: 44px; padding: 52px 0 48px; }
  h1 { font-size: clamp(46px, 11.5vw, 84px); }
  .eyebrow { font-size: 10px; margin-bottom: 22px; }
  .description { font-size: 16px; margin-top: 22px; }
  .note { margin-top: 28px; }
  .art { max-width: 340px; justify-self: center; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 34px; }
  .how, .catalogue { padding-top: 48px; }
  .group { margin-top: 42px; }
  .custom { margin-left: -8.1%; margin-right: -8.1%; padding-left: 8.1%; padding-right: 8.1%; }
  footer { font-size: 10px; gap: 12px; padding-bottom: 24px; }
  footer > :nth-child(2) { width: 100%; order: 3; }
}
