@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #f7f6f1;
  --mint: #e2f1e7;
  --ink: #17302c;
  --soft: #5b6b67;
  --line: rgba(23, 48, 44, 0.16);
  --forest: #0d5247;
  --pine: #0a2622;
  --saffron: #f2c14e;
  --clay: #ee8a66;
  --sand: #e8e0cc;
  --alert: #a12c1c;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: ui-sans-serif, -apple-system, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --gap: clamp(22px, 4vw, 48px);
  --band: clamp(28px, 4.5vw, 56px);
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 5.8vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(31px, 3.7vw, 48px); line-height: 1.06; }
h3 { font-size: 24px; line-height: 1.18; letter-spacing: -0.01em; }
h4 { font: 600 12px var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin: 44px 0 12px; }
h4:first-child { margin-top: 0; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 2px; }

/* Grid: two vertical hairlines frame the content; every horizontal rule runs the full width of the window. */
.frame { position: relative; max-width: 1240px; margin: 0 auto; min-height: 100vh; }
.frame::before, .frame::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line);
  transform-origin: top; pointer-events: none; z-index: 2;
}
.frame::before { left: -1px; }
.frame::after { right: -1px; }
header, footer, main > section { position: relative; }
header::after, footer::after, main > section::after {
  content: ""; position: absolute; bottom: 0; left: calc(50% - 50vw); width: 100vw; height: 1px;
  background: var(--line); transform-origin: left; pointer-events: none; z-index: 2;
}
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--gap); background: var(--paper);
}
.mark { font: 500 27px/1 var(--serif); letter-spacing: -0.03em; color: var(--ink); }
.mark i { font-style: normal; color: var(--clay); }
nav { display: flex; gap: 30px; font-size: 15px; }
nav a { padding: 4px 0; border-bottom: 1px solid transparent; }
nav a:hover, nav a.on { border-color: var(--ink); }
footer {
  display: flex; align-items: baseline; gap: 28px; padding: 26px var(--gap);
  font-size: 14px; color: var(--soft);
}
footer .mark { font-size: 20px; }
footer a { margin-left: auto; color: var(--ink); border-bottom: 1px solid var(--line); }

.lede { font: 400 clamp(19px, 1.8vw, 23px)/1.36 var(--serif); color: var(--soft); max-width: 32em; }
.lede a { color: var(--ink); border-bottom: 1px solid var(--line); white-space: nowrap; }
.lede a:hover { border-color: var(--ink); }
.lede.under { margin: 18px 0 44px; }
.meta { color: var(--soft); font-size: 14px; }
.text { white-space: pre-wrap; font-size: 18px; line-height: 1.6; max-width: 40em; }
.pad { padding: clamp(48px, 7vw, 84px) var(--gap); }
.narrow { max-width: 780px; }
.narrow .lede { margin: 16px 0 28px; }

.pill {
  display: inline-block; border: 1px solid var(--ink); border-radius: 99px; padding: 10px 22px;
  font: 500 14px var(--sans); background: transparent; color: var(--ink); cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pill:hover, .pill.solid { background: var(--ink); color: var(--paper); }
.pill.solid:hover { background: var(--forest); border-color: var(--forest); }

/* Home */
.hero {
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--gap);
  background: var(--mint); padding: clamp(64px, 10vw, 128px) var(--gap) clamp(48px, 7vw, 84px);
}
.hero .lede { margin: 26px 0 34px; color: var(--ink); }
.hero .pill { margin-right: 10px; }
.figure { text-align: right; padding-bottom: 4px; }
.figure span {
  display: block; font-variant-numeric: lining-nums tabular-nums; font: 300 clamp(64px, 10vw, 132px)/0.9 var(--serif);
  letter-spacing: -0.04em; font-variant-numeric: lining-nums; color: var(--forest);
}
.figure small { display: block; margin-top: 14px; font-size: 14px; color: var(--soft); }
.heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 34px; }
.heading a { font-size: 15px; border-bottom: 1px solid var(--line); }
.heading a:hover { border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 14px; }
.tile {
  display: flex; flex-direction: column; justify-content: space-between; gap: 44px;
  min-height: 340px; padding: 22px; transition: transform 0.2s ease;
}
.tile:hover { transform: translateY(-4px); }
.kind { font-size: 13px; font-weight: 500; margin-bottom: 14px; opacity: 0.85; }
.kind a { border-bottom: 1px solid currentColor; }
.by { font-size: 14px; padding-bottom: 12px; border-bottom: 1px solid currentColor; }
.foot { display: flex; align-items: baseline; gap: 12px; padding-top: 14px; }
.amount { font: 400 31px/1 var(--serif); letter-spacing: -0.02em; font-variant-numeric: lining-nums tabular-nums; }
.note { font-size: 13px; opacity: 0.85; }
.arrow { margin-left: auto; font-size: 20px; transition: transform 0.2s ease; }
a:hover > .arrow, a:hover .foot .arrow { transform: translateX(5px); }
.right { margin-left: auto; }

.green { background: var(--forest); color: #f0f7f2; }
.saffron { background: var(--saffron); color: var(--pine); }
.clay { background: var(--clay); color: var(--pine); }
.sand { background: var(--sand); color: var(--pine); }
.pine { background: var(--pine); color: #f0f4ef; }

.dark { background: var(--pine); color: #f0f4ef; padding: clamp(56px, 8vw, 96px) var(--gap); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps li { border-top: 1px solid rgba(255, 255, 255, 0.28); padding-top: 18px; }
.steps span { font: 400 16px var(--serif); color: var(--saffron); }
.steps h3 { margin: 26px 0 10px; }
.steps p { font-size: 15px; opacity: 0.75; max-width: 26em; }

.split { display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--band); }
/* Empty bands above and below, each closed off by its own full-width rule */
.split::before, main:has(> .split)::after {
  content: ""; position: absolute; top: 0; left: calc(50% - 50vw); width: 100vw; height: 1px;
  background: var(--line); transform-origin: left; pointer-events: none; z-index: 2;
}
.split a { display: flex; flex-direction: column; padding: clamp(40px, 6vw, 72px) var(--gap); transition: background 0.2s; }
.split a + a { border-left: 1px solid var(--line); }
.split a:hover { background: var(--mint); }
.split p { color: var(--soft); margin: 18px 0 30px; max-width: 24em; }
.split .arrow { margin-left: 0; font-size: 24px; }

main:has(> .split) { position: relative; padding-bottom: var(--band); }
main:has(> .split)::after { top: auto; bottom: 0; }

/* Search and field filter */
.find { display: flex; gap: 10px; max-width: 720px; margin-bottom: 18px; }
.find input[type="search"] { flex: 1; border-radius: 99px; padding: 11px 20px; }
.find .pill { flex: none; margin: 0; align-self: stretch; padding-block: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.chip {
  border: 1px solid var(--line); border-radius: 99px; padding: 7px 15px; font-size: 14px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.count { margin: 34px 0 14px; }
.count a { color: var(--ink); border-bottom: 1px solid var(--line); }
.chips + h4 { margin-top: 40px; }

/* Bounties list */
.rows { border-top: 1px solid var(--ink); }
.row {
  display: grid; grid-template-columns: 12px 1fr auto 28px; align-items: center; gap: 22px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.row.closed { opacity: 0.6; }
.row:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.dot { width: 12px; height: 12px; }
.row h3 { margin-bottom: 6px; }
.sum { text-align: right; }
.sum .note { display: block; margin-top: 6px; color: var(--soft); opacity: 1; }
.row .arrow { margin: 0; text-align: right; }

/* Bounty page */
.banner { padding: clamp(40px, 6vw, 72px) var(--gap) 24px; }
.banner h1 { font-size: clamp(33px, 4.5vw, 56px); max-width: 17em; margin: 10px 0 clamp(40px, 7vw, 84px); }
.banner .foot { border-top: 1px solid currentColor; padding-top: 18px; flex-wrap: wrap; align-items: center; }
.banner .amount { font-size: 44px; }
.banner .pill { color: inherit; border-color: currentColor; margin-left: 12px; }
.banner .pill:hover { background: rgba(255, 255, 255, 0.22); color: inherit; }
.two { display: grid; grid-template-columns: 1fr 1.1fr; }
.two > div { padding: clamp(36px, 5vw, 64px) var(--gap); }
.two > div + div { border-left: 1px solid var(--line); }
.two.top h1, .two.top h2 { margin-bottom: 20px; }

/* Forms */
form { display: grid; gap: 18px; }
form.inline { display: inline-block; margin: 14px 8px 0 0; }
label { display: grid; gap: 6px; }
label > span { font-size: 14px; font-weight: 500; }
label small { color: var(--soft); font-size: 13px; }
input:not([type="radio"]), textarea, select {
  width: 100%; font: inherit; color: inherit; background: #fff;
  border: 1px solid var(--line); border-radius: 4px; padding: 11px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:not([type="radio"]):hover, textarea:hover, select:hover { border-color: rgba(23, 48, 44, 0.4); }
input:not([type="radio"]):focus, textarea:focus, select:focus {
  outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(13, 82, 71, 0.16);
}
input:user-invalid, textarea:user-invalid { border-color: var(--alert); box-shadow: 0 0 0 3px rgba(161, 44, 28, 0.12); }
textarea { resize: vertical; }
form > .pill { justify-self: start; margin-top: 4px; }
.pair { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.error {
  color: var(--alert); font-size: 15px; font-weight: 500; margin-bottom: 20px;
  padding: 12px 14px; border-left: 3px solid var(--alert); background: rgba(161, 44, 28, 0.07);
}
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: background 0.15s, border-color 0.15s;
}
.choice:hover { border-color: rgba(23, 48, 44, 0.4); }
.choice input { accent-color: var(--forest); margin: 0; }
.choice:has(input:checked) { background: var(--mint); border-color: var(--forest); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(13, 82, 71, 0.16); }

/* Review */
.card { border: 1px solid var(--line); background: #fff; padding: 20px; margin-bottom: 12px; }
.card h2 { font: 600 18px/1.3 var(--sans); letter-spacing: 0; margin: 4px 0; }
.card p { margin-top: 8px; overflow-wrap: anywhere; }
.card a { border-bottom: 1px solid var(--line); }
details { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 20px; }
summary { cursor: pointer; font-weight: 500; margin-bottom: 20px; }

/* ---------- Big type, lit statement, colour wipes, giant footer ---------- */
.hero { display: block; padding: clamp(56px, 8vw, 104px) var(--gap) clamp(40px, 5vw, 64px); }
.hero h1 {
  font-size: clamp(50px, 8.6vw, 118px); line-height: 0.96; letter-spacing: -0.04em;
  max-width: 12em; text-wrap: balance;
}
.below { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--gap); margin-top: clamp(36px, 5vw, 64px); }
.hero .lede { margin: 0 0 28px; }
.figure span { font-size: clamp(54px, 7vw, 96px); }


.dark h4 { color: var(--saffron); margin-bottom: 28px; }
.say {
  font: 400 clamp(32px, 4.6vw, 62px)/1.1 var(--serif); letter-spacing: -0.025em;
  max-width: 17em; margin-bottom: clamp(56px, 8vw, 104px);
}
.js .say .w { opacity: 0.2; transition: opacity 0.35s ease; }
.js .say .w.lit { opacity: 1; }

/* Rows: the category colour wipes up on hover */
.rows { margin-inline: calc(var(--gap) * -1); border-top: 0; }
.rows::before { content: ""; display: block; height: 1px; margin-inline: var(--gap); background: var(--ink); }
.row { position: relative; padding-inline: var(--gap); border-bottom: 0; isolation: isolate; transition: color 0.25s; }
.row::after { content: ""; position: absolute; left: var(--gap); right: var(--gap); bottom: 0; height: 1px; background: var(--line); }
.row::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wipe, var(--sand));
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s cubic-bezier(0.7, 0, 0.2, 1);
}
.row:hover::before { transform: scaleY(1); }
.row:hover h3 { text-decoration: none; }
.row:hover, .row:hover .meta, .row:hover .sum .note { color: var(--pine); }
.w-green { --wipe: var(--forest); }
.w-saffron { --wipe: var(--saffron); }
.w-clay { --wipe: var(--clay); }
.w-pine { --wipe: var(--pine); }
.row:is(.w-green, .w-pine):hover, .row:is(.w-green, .w-pine):hover .meta, .row:is(.w-green, .w-pine):hover .sum .note { color: #f0f7f2; }
.row .dot { transition: opacity 0.2s; }
.row:hover .dot { opacity: 0; }

/* Footer: one giant wordmark */
footer { display: block; padding: 0; background: var(--pine); color: #f0f4ef; overflow: hidden; }
footer::after { display: none; }
.base { display: flex; justify-content: space-between; gap: 24px; padding: 28px var(--gap) 0; font-size: 14px; }
.base span:first-child { opacity: 0.6; }
.base a, footer a { margin-left: 26px; color: inherit; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }
.base a:hover { border-color: #fff; }
.giant {
  padding: 0 var(--gap); font: 500 min(31vw, 380px)/1 var(--serif); letter-spacing: -0.06em;
  white-space: nowrap; overflow: hidden; margin-top: clamp(24px, 4vw, 56px); padding-bottom: 0.04em;
}
.giant > span { display: inline-block; }
.giant i { font-style: normal; color: var(--clay); }

/* Motion: quiet, short, and off entirely for anyone who asks for reduced motion. */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.28s; }
header { view-transition-name: header; }

@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes draw-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.js main > section:first-child :is(.lede, .figure, .kind, .foot),
.js .hero .below p:last-child {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.js main > section:first-child .lede { animation-delay: 0.08s; }
.js .hero .below p:last-child { animation-delay: 0.16s; }
.js main > section:first-child :is(.figure, .foot) { animation-delay: 0.24s; }

.js :is(.tile, .steps li, .row, .split a):not(.in) { opacity: 0; }
.js :is(.tile, .steps li, .row, .split a).in {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--d, 0ms) backwards;
}

.first .frame::before, .first .frame::after { animation: draw-y 1.3s cubic-bezier(0.65, 0, 0.35, 1) both; }
.first header::after, .first footer::after, .first main > section::after,
.first .split::before, .first main:has(> .split)::after {
  animation: draw-x 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  @view-transition { navigation: none; }
}

@media (max-width: 760px) {
  .below, .steps, .split, .two, .pair { grid-template-columns: 1fr; }
  .base span:first-child { display: none; }
  .base a:first-child { margin-left: 0; }
  .figure { text-align: left; margin-top: 12px; }
  .split a + a, .two > div + div { border-left: 0; border-top: 1px solid var(--line); }
  footer span + span { display: none; }
  .right { margin-left: 0; width: 100%; }
  .banner .pill { margin-left: 0; }
  .row { grid-template-columns: 12px 1fr; row-gap: 12px; align-items: start; }
  .dot { margin-top: 9px; }
  .sum { grid-column: 2; text-align: left; display: flex; align-items: baseline; gap: 10px; }
  .row .arrow { display: none; }
}

/* Hidden field that only bots fill in */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
