/* Minutes MD: the committee table. Deep baize green, brass, and sheets of paper laid on top.
   Newsreader for headings, Hanken Grotesk for text, DM Mono for refs and commands. */
:root {
  --baize: #0b211b;
  --baize-2: #12312a;
  --baize-3: #1a4337;
  --ink: #0b1b17;
  --light: #eef2ee;
  --text-on-dark: #e9f0ea;
  --muted-on-dark: #9db5ab;
  --muted-on-light: #4c635a;
  --brass: #e2b455;
  --brass-dk: #8a6416;
  --line-dark: rgba(233, 240, 234, .14);
  --line-light: rgba(11, 27, 23, .16);
  --display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "DM 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(--baize); color: var(--text-on-dark); font: 17px/1.6 var(--text); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brass); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 3px; }
.light :focus-visible { outline-color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.012em; }
h2 { font-size: clamp(32px, 4vw, 50px); }
h3 { font-size: 24px; }
p { margin: 0; }
em { font-style: italic; }
code, pre { font-family: var(--mono); font-size: .86em; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } .fan a:hover.f-front, .themes a.shot:hover, .btn:active { transform: none; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: 12px; top: -56px; background: var(--brass); color: var(--ink); padding: 8px 14px; z-index: 10; border-radius: 4px; }
.skip:focus { top: 12px; }

/* Header */
.top { border-bottom: 1px solid var(--line-dark); }
.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; min-height: 44px; font-family: var(--mono); font-weight: 500; font-size: 15px; color: var(--text-on-dark); text-decoration: none; }
.wordmark::before { content: ""; width: 12px; height: 12px; background: var(--brass); box-shadow: 4px 4px 0 var(--baize-3); }
.nav { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { color: var(--text-on-dark); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
.nav a:hover { color: var(--brass); }

/* Sections */
section { padding: clamp(64px, 9vw, 112px) 0; }
.light { background: var(--light); color: var(--ink); }
.light a { color: var(--brass-dk); }
.dark-2 { background: var(--baize-2); }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.light .kicker { color: var(--brass-dk); }
.section-lede { color: var(--muted-on-dark); margin-top: 14px; max-width: 62ch; font-size: 18px; }
.light .section-lede { color: var(--muted-on-light); }

/* Hero */
.hero { padding-top: clamp(44px, 7vw, 92px); padding-bottom: clamp(56px, 8vw, 104px); overflow-x: clip;
  background: radial-gradient(900px 520px at 78% 38%, #1d4f3f 0%, rgba(29, 79, 63, 0) 70%), var(--baize); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -.02em; margin-top: 18px; }
.hero h1 em { color: var(--brass); white-space: nowrap; }
.lede { font-size: 20px; color: var(--muted-on-dark); margin-top: 22px; max-width: 46ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; transition: background .15s ease, transform .1s ease; background: var(--brass); color: var(--ink); text-decoration: none; padding: 13px 22px; border-radius: 4px; font-weight: 700; font-size: 16px; border: 1.5px solid var(--brass); }
.btn:hover { background: #f1c970; border-color: #f1c970; }
.btn:active { transform: translateY(1px); }
.btn-quiet { background: transparent; color: var(--text-on-dark); border-color: var(--line-dark); }
.btn-quiet:hover { background: rgba(255, 255, 255, .06); border-color: var(--muted-on-dark); }
.one-liner { margin-top: 26px; }
.one-liner code { display: inline-block; background: rgba(0, 0, 0, .28); border: 1px solid var(--line-dark); padding: 9px 14px; border-radius: 4px; color: var(--text-on-dark); overflow-wrap: anywhere; }
.proof { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 28px 0 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-on-dark); }
.proof li::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--brass); margin-right: 8px; vertical-align: .1em; }

.fan { position: relative; aspect-ratio: 1 / 1.02; }
.fan a { position: absolute; display: block; width: 54%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 30px 60px rgba(0, 0, 0, .5); transition: transform .25s ease; }
.fan a:hover { z-index: 5; }
.fan .f-back { left: 0; top: 4%; transform: rotate(-7deg); }
.fan .f-mid { right: 0; top: 0; transform: rotate(6deg); }
.fan .f-front { left: 23%; top: 15%; width: 56%; transform: rotate(-1deg); z-index: 3; }
.fan a:hover.f-front { transform: rotate(-1deg) translateY(-6px); }

/* Rough in, minutes out */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 44px; }
.code { margin: 0; background: var(--ink); color: #dbe7df; padding: 22px 24px; border-radius: 6px; line-height: 1.65; overflow-x: auto; white-space: pre; box-shadow: 0 24px 48px rgba(11, 27, 23, .22); }
.code .c { color: #7f9a8e; }
.code .k { color: var(--brass); }
.arrow { font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-dk); margin: 0 0 12px; }
.sheet-shot { background: #fff; border-radius: 6px; box-shadow: 0 1px 2px rgba(11, 27, 23, .1), 0 24px 48px rgba(11, 27, 23, .18); overflow: hidden; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-dark); padding-top: 22px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-style: italic; font-size: 64px; line-height: 1; color: var(--brass); margin-bottom: 14px; }
.steps h3 { font-size: 26px; margin-bottom: 10px; }
.steps p { color: var(--muted-on-dark); }
.term { margin: 16px 0 0; background: rgba(0, 0, 0, .34); border: 1px solid var(--line-dark); border-radius: 6px; padding: 16px 18px; line-height: 1.6; color: #cfe0d6; white-space: pre-wrap; overflow-wrap: anywhere; }
.term .p { color: var(--brass); }
.term .w { color: #f0c36b; }
.term .e { color: #ff9c86; }
.ask { margin: 16px 0 0; font-family: var(--display); font-style: italic; font-size: 21px; line-height: 1.4; color: var(--text-on-dark); border-left: 2px solid var(--brass); padding-left: 16px; }

/* On the page */
.crops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; margin-top: 48px; }
.crops figure { margin: 0; }
.crops figcaption { margin-top: 14px; color: var(--muted-on-light); font-size: 16px; }
.crops figcaption b { color: var(--ink); }
.crops .wide { grid-column: 1 / -1; }

/* Themes */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 36px; margin-top: 52px; }
.themes figure { margin: 0; }
.themes a.shot { display: block; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 26px 52px rgba(0, 0, 0, .42); transition: transform .2s ease; }
.themes a.shot:hover { transform: translateY(-4px); }
.themes figcaption { margin-top: 18px; color: var(--muted-on-dark); font-size: 16px; }
.themes figcaption b { display: block; font-family: var(--display); font-size: 26px; font-weight: 400; color: var(--text-on-dark); margin-bottom: 4px; }
.themes figcaption code { color: var(--brass); font-size: 13px; }

/* Install */
.install { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.install > div { background: #fff; border: 1px solid var(--line-light); border-radius: 6px; padding: 22px; min-width: 0; }
.install h3 { font-size: 22px; }
.install pre { margin: 14px 0 0; background: var(--ink); color: #dbe7df; padding: 16px; border-radius: 4px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.note { color: var(--muted-on-light); margin-top: 22px; font-size: 15px; }

/* Examples */
.examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 44px 0 0; padding: 0; list-style: none; }
.examples li { border: 1px solid var(--line-dark); border-radius: 6px; padding: 22px; background: rgba(0, 0, 0, .16); display: flex; flex-direction: column; gap: 10px; }
.examples h3 { font-size: 23px; }
.examples p { color: var(--muted-on-dark); font-size: 15.5px; }
.examples .tag { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass); }
.examples .links { margin-top: auto; padding-top: 6px; display: flex; gap: 4px 18px; flex-wrap: wrap; font-size: 15px; }
.examples .links a { display: inline-flex; align-items: center; min-height: 44px; }
/* Footer */
.foot { border-top: 1px solid var(--line-dark); padding: 44px 0 60px; font-size: 15px; color: var(--muted-on-dark); background: var(--baize); }
.foot-row { display: grid; gap: 10px; }
.foot .wordmark { margin-bottom: 4px; }

/* 404: the page fills the viewport; the footer sits at the bottom with no strip below it */
body:has(.lost) { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.lost { flex: 1; display: flex; align-items: center; }
.lost h1 { font-size: clamp(38px, 5.4vw, 64px); margin-top: 14px; }

@media (max-width: 960px) {
  .hero-grid, .pair { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .fan { max-width: 520px; width: 100%; margin: 0 auto; }
  .steps, .install, .examples { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { gap: 0 16px; }
  .top-row { padding-bottom: 6px; }
  .lede { font-size: 18px; }
  .themes, .crops { grid-template-columns: minmax(0, 1fr); }
  .themes { gap: 36px; }
  .code { padding: 16px; font-size: 12.5px; }
  .ask { font-size: 19px; }
}
