/* Work/Life 2.0 -- paradaice.info
   Fonts are self-hosted on purpose (no third-party requests; see ../GROUND_TRUTH.md). */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-600-800-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/newsreader-400-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-400-normal-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/ibm-plex-mono-500-normal-latin.woff2") format("woff2");
}

/* Two inks carry the whole idea: highlighter yellow marks the people, ultramarine the agents. */
:root {
  --paper: #eef1f4;
  --paper-raised: #f7f8fa;
  --grid: rgba(22, 32, 43, 0.055);
  --ink: #16202b;
  --muted: #566374;
  --rule: #cdd4dd;
  --agent: #2f41c9;
  --agent-soft: rgba(47, 65, 201, 0.09);
  --human: #f2d64b;
  --human-ink: #16202b;
  --human-tick: #c9a227;
  --del: #647080;

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --measure: 64ch;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f141b;
    --paper-raised: #151c25;
    --grid: rgba(230, 234, 240, 0.045);
    --ink: #e6eaf0;
    --muted: #9aa6b5;
    --rule: #2a3440;
    --agent: #9aa7ff;
    --agent-soft: rgba(154, 167, 255, 0.1);
    --human: #e3c843;
    --human-ink: #0f141b;
  --human-tick: #e3c843;
    --del: #7c8795;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f141b;
  --paper-raised: #151c25;
  --grid: rgba(230, 234, 240, 0.045);
  --ink: #e6eaf0;
  --muted: #9aa6b5;
  --rule: #2a3440;
  --agent: #9aa7ff;
  --agent-soft: rgba(154, 167, 255, 0.1);
  --human: #e3c843;
  --human-ink: #0f141b;
  --human-tick: #e3c843;
  --del: #7c8795;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  /* Lab-notebook grid, 24px squares. */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.page {
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: clamp(16px, 5vw, 56px);
  padding-block: 0 48px;
}

a {
  color: inherit;
}
a:focus-visible {
  outline: 2px solid var(--agent);
  outline-offset: 3px;
  border-radius: 2px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

.dim {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 1;
  padding: 8px 12px;
  background: var(--human);
  color: var(--human-ink);
  font-family: var(--mono);
  font-size: 0.875rem;
}
.skip:focus {
  top: 12px;
}

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 28px 0;
}

.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  display: inline-block;
  width: 32px;
  height: 16px;
  margin-inline-end: 8px;
  vertical-align: -1px;
}
.wordmark .slash {
  color: var(--agent);
  padding-inline: 0.04em;
}
.wordmark .ver {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8em;
  background: var(--human);
  color: var(--human-ink);
  padding: 0.05em 0.3em;
  letter-spacing: 0;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.masthead nav a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
}
/* A 44px-tall hit area around 13px links, without changing how they look. */
.masthead nav a::after {
  content: "";
  position: absolute;
  inset: -10px -6px;
}
.masthead nav a:hover {
  color: var(--agent);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0 56px;
  align-items: end;
  padding-block: clamp(36px, 6vw, 72px) clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.hero > .eyebrow,
.hero > h1,
.hero > .lede,
.hero > .facts,
.hero > .actions {
  grid-column: 1;
}
.hero > .diff {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: end;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.agent-ink {
  color: var(--agent);
  font-weight: 600;
}

.lede {
  max-width: var(--measure);
  margin-top: 28px;
  font-size: 1.3125rem;
  line-height: 1.5;
}

/* The one bold device: a changelog diff from 1.0 to 2.0. */
.diff {
  margin: 0;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.875rem;
  line-height: 1.5;
}
.diff figcaption {
  display: flex;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.diff ol {
  list-style: none;
  margin: 0;
  padding: 10px 0;
}
.diff li {
  display: grid;
  grid-template-columns: 2.25em minmax(0, 1fr);
  padding: 5px 16px 5px 0;
}
.diff .sign {
  text-align: center;
  font-weight: 500;
}
.diff .del {
  color: var(--del);
}
.diff .del .txt {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--del);
}
.diff .add {
  background: var(--agent-soft);
  color: var(--ink);
}
.diff .add .sign {
  color: var(--agent);
}
.diff .add + .del {
  margin-top: 8px;
}

/* On load, the 1.0 lines get crossed out one after another. Resting state is crossed out. */
@media (prefers-reduced-motion: no-preference) {
  .diff .del .txt {
    animation: strike 0.5s ease-out both;
  }
  .diff li:nth-child(1) .txt { animation-delay: 0.35s; }
  .diff li:nth-child(3) .txt { animation-delay: 0.75s; }
  .diff li:nth-child(5) .txt { animation-delay: 1.15s; }
  .diff .add {
    animation: land 0.45s ease-out both;
  }
  .diff li:nth-child(2) { animation-delay: 0.6s; }
  .diff li:nth-child(4) { animation-delay: 1s; }
  .diff li:nth-child(6) { animation-delay: 1.4s; }
}
@keyframes strike {
  from { text-decoration-color: transparent; color: var(--ink); }
  to { text-decoration-color: var(--del); color: var(--del); }
}
@keyframes land {
  from { background-color: transparent; }
  to { background-color: var(--agent-soft); }
}

/* ---------- sections ---------- */

.block {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 20px 56px;
  padding-block: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.block > h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.block > :not(h2) {
  grid-column: 2;
}

h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

/* Highlighter pen: the person's ink, drawn under a word. */
.hl {
  background: linear-gradient(transparent 12%, var(--human) 12%, var(--human) 88%, transparent 88%);
  color: var(--human-ink);
  padding-inline: 0.08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* The two inks, as chips: yellow for what you do, ultramarine for what the agents do. */
.chip {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  margin-bottom: 10px;
}
.human .chip {
  background: var(--human);
  color: var(--human-ink);
}
.agent .chip {
  background: var(--agent);
  color: var(--paper);
}

.rules {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 40px;
}
.rules dt {
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 6px;
}
.rules dd {
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
}

.join {
  border-bottom: 0;
}
.join p {
  max-width: var(--measure);
}
.contact {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- footer ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 24px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

/* ---------- narrow screens ---------- */

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .hero > .diff {
    grid-column: 1;
    grid-row: auto;
    margin-top: 40px;
  }
  .block {
    grid-template-columns: minmax(0, 1fr);
  }
  .block > :not(h2) {
    grid-column: 1;
  }
  .rules {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  /* One column is up to 800px wide here; keep the lines readable. */
  .rules > div {
    max-width: 30rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1.0625rem;
  }
  /* The nav is three entries everywhere, so it stays; it simply wraps to its own row. */
  .masthead {
    gap: 10px 20px;
  }
  .masthead nav {
    gap: 8px 18px;
  }
  .lede {
    font-size: 1.1875rem;
  }
}

@media (max-width: 340px) {
  /* Keeps "digital work." on one line on the narrowest phones. */
  h1 {
    font-size: 2.4rem;
  }
}

/* ---------- calls to action ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: 32px;
}
.btn {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  background: var(--human);
  color: var(--human-ink);
  padding: 14px 22px;
  border: 2px solid var(--human-ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}
.btn-quiet {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--agent);
  text-underline-offset: 4px;
}
.masthead nav a.nav-cta {
  color: var(--human-ink);
  background: var(--human);
  padding: 2px 8px;
}
.masthead nav a.nav-cta:hover {
  color: var(--human-ink);
  text-decoration: underline;
}
.join .actions {
  margin-top: 28px;
}
.block > .actions {
  margin-top: 8px;
}
.join .template {
  color: var(--ink);
  background: var(--paper-raised);
  border-left: 3px solid var(--human);
  padding: 12px 16px;
}
/* The address as plain text: one click selects the whole thing, so it can be copied. */
.addr {
  user-select: all;
  -webkit-user-select: all;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.join .contact a {
  color: var(--agent);
  text-underline-offset: 4px;
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn:hover,
  .btn:active {
    transition: none;
    transform: none;
  }
}

/* ---------- 404 ---------- */

.lost {
  display: block;
  border-bottom: 0;
}

/* Three short facts under the lede, in the mono voice of the diff. */
.facts {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 500;
}
.facts li {
  padding-left: 1.1em;
  position: relative;
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.55em;
  height: 2px;
  background: var(--human-tick);
}

/* ---------- privacy (a plain prose page) ---------- */

.prose {
  max-width: var(--measure);
  padding-block: clamp(36px, 6vw, 72px) 48px;
}
.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.prose h2 {
  font-size: 1.3125rem;
  font-weight: 700;
  margin: 40px 0 10px;
}
.prose p + p,
.prose p + ul,
.prose ul + p,
.prose ol + p {
  margin-top: 14px;
}
.prose .plain {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.prose .back {
  margin-top: 40px;
  font-family: var(--mono);
  font-size: 0.875rem;
}


/* ---------- the bet: one bold typographic moment ---------- */

.bet {
  padding-block: clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.bet .eyebrow {
  margin-bottom: 14px;
}
.thesis {
  font-size: clamp(2.3rem, 7.2vw, 5.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-wrap: initial;
}
.tenx {
  display: block;
}
/* The 10x is highlighted the way a person marks the line that matters. */
.x {
  color: var(--human-ink);
  position: relative;
  z-index: 0;
  padding-inline: 0.08em;
  font-variant-numeric: tabular-nums;
}
.x::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0.12em -0.04em 0.06em;
  background: var(--human);
  transform: skew(-8deg) rotate(-1deg);
}
.bet-note {
  max-width: var(--measure);
  margin-top: 28px;
  font-size: 1.3125rem;
  line-height: 1.5;
}
.proof {
  max-width: var(--measure);
  margin-top: 28px;
  padding: 14px 18px;
  border-left: 3px solid var(--agent);
  background: var(--agent-soft);
  font-size: 1.0625rem;
}
.proof .chip {
  margin: 0 8px 0 0;
  background: var(--agent);
  color: var(--paper);
  vertical-align: 0.1em;
}

/* ---------- the lab: a short story, one column ---------- */

.story {
  max-width: var(--measure);
  display: grid;
  gap: 16px;
}
.story .mark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-top: 8px;
}
.story .mark::before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 0.55em;
  margin-right: 0.5em;
  background: var(--human);
  transform: skew(-8deg);
}

/* The factory sketch sits beside the story; a generic drawing, not the real building. */
.lab-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: center;
}
@media (max-width: 860px) {
  .lab-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .lab-grid .factory {
    max-width: 360px;
  }
}
@media (max-width: 600px) {
  .bet-note {
    font-size: 1.1875rem;
  }
}

/* The factory, as a notebook sketch on the grid: sawtooth roof, lit windows (the people), one
   ultramarine window (the agents). Stroke widths are in viewBox units. */
.factory {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.factory .sk-wall,
.factory .sk-chimney rect {
  fill: var(--paper-raised);
}
.factory .sk-glass {
  fill: var(--agent-soft);
  stroke: none;
}
.factory .sk-win rect {
  fill: var(--human);
  stroke: var(--ink);
  stroke-width: 2;
}
.factory .sk-win .sk-agent {
  fill: var(--agent);
}
.factory .sk-door {
  fill: var(--ink);
}
.factory .sk-ground {
  stroke-width: 3;
}
.factory .sk-smoke {
  stroke: var(--muted);
  stroke-width: 2;
  stroke-dasharray: 3 4;
}
/* The windows light up one after another on load; resting state is lit. */
@media (prefers-reduced-motion: no-preference) {
  .factory .sk-win rect {
    animation: light 0.4s ease-out both;
  }
  .factory .sk-win rect:nth-child(1) { animation-delay: 0.3s; }
  .factory .sk-win rect:nth-child(2) { animation-delay: 0.5s; }
  .factory .sk-win rect:nth-child(3) { animation-delay: 0.7s; }
  .factory .sk-win rect:nth-child(4) { animation-delay: 1.5s; }
  .factory .sk-win rect:nth-child(5) { animation-delay: 0.9s; }
  .factory .sk-win rect:nth-child(6) { animation-delay: 1.1s; }
  .factory .sk-win rect:nth-child(7) { animation-delay: 1.3s; }
}
@keyframes light {
  from { fill: var(--paper-raised); }
}

/* Three house rules: one row of three on wide screens, no empty cell. */
@media (min-width: 1000px) {
  #rules .rules {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- Showroom (generated pages; see projects/lab/src/paradaicelab/showroom.py) ------------- */

/* The page you are on keeps its place in the nav instead of disappearing from it. */
.masthead nav a.current {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--human-tick);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* The overview is a gallery, so it is not held to the reading measure; its prose still is. */
.prose.showroom {
  max-width: none;
}
.showroom > .eyebrow,
.showroom > h1,
.showroom > .lede,
.showroom > .tally {
  max-width: var(--measure);
}

.showroom .tally {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-left: 3px solid var(--human);
  background: var(--paper-raised);
  font-size: 1.0625rem;
}
.showroom .tally b {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15em;
}
.showroom .tally a {
  color: var(--agent);
  text-underline-offset: 4px;
}

/* ---- the cards on the overview ---- */

.cards {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr));
  gap: 24px;
}
.card {
  display: flex;
}
.card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-decoration: none;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  box-shadow: 4px 4px 0 var(--rule);
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}
.card-link:hover {
  border-color: var(--agent);
  box-shadow: 6px 6px 0 var(--agent-soft);
  transform: translate(-2px, -2px);
}
.card-link:focus-visible {
  outline: 2px solid var(--agent);
  outline-offset: 3px;
  border-radius: 0;
}
.thumb {
  display: block;
  aspect-ratio: 1400 / 622;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
/* No screenshot is a fact about the project, not a broken image. */
.shot-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 7rem;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--rule) 0 1px,
    transparent 1px 11px
  );
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 20px;
}
.card-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.card-blurb {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--muted);
}
.card-figs {
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
.card-figs b {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-right: 6px;
}
.card-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}
.card-more {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--agent);
  margin-top: 6px;
}
.card-more::after {
  content: " →";
}
.card-link:hover .card-more {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---- one project's own page ---- */

.prose.project {
  max-width: 54rem;
}
.project > .lede,
.project > p:not(.crumb),
.project .verdict,
.project .basis {
  max-width: var(--measure);
}
.crumb {
  font-family: var(--mono);
  font-size: 0.8125rem;
  margin-bottom: 18px;
}
.crumb a {
  color: var(--agent);
  text-decoration: none;
}
.crumb a::before {
  content: "← ";
}
.crumb a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.project h2 {
  margin-top: 44px;
}
.project .live {
  margin-top: 16px;
}

.shot {
  margin: 28px 0 0;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}
/* No screenshot: one hatched line, not a screenshot-sized hole. */
.project > p.nopic {
  max-width: none;
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule);
  background-color: var(--paper-raised);
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
.shot figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
.shot figcaption a {
  color: var(--agent);
  text-underline-offset: 4px;
}

/* The effort figures: one measure per cell, on a single hairline grid. Six cells, so the columns
   are fixed at two or three -- auto-fit left a half-empty last row. */
.mis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.mis > div {
  padding: 14px 16px;
  background: var(--paper-raised);
}
.mis dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.mis dd {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* The two money figures, side by side: what it would cost, and what it is worth. */
.worth {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}
.worth p {
  flex: 1 1 15rem;
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  background: var(--paper-raised);
}
.worth p:first-child {
  border-left: 3px solid var(--human);
}
.worth p:last-child {
  border-left: 3px solid var(--agent);
}
.worth b {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.worth span {
  display: block;
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.verdict {
  margin-top: 14px;
  font-size: 1rem;
  color: var(--muted);
  font-style: italic;
}
.basis,
.no-value {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}
.basis a,
.no-value a {
  color: var(--agent);
  text-underline-offset: 4px;
}
.project .back a {
  color: var(--agent);
  text-underline-offset: 4px;
}
.stamp {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---- how the numbers are made ---- */

.method {
  margin: 64px 0 0;
  padding-top: 28px;
  border-top: 2px solid var(--ink);
}
.method h2 {
  font-size: 1.3125rem;
  font-weight: 700;
}
.method p {
  max-width: var(--measure);
}
.method p + p {
  margin-top: 14px;
}
.method .caveat {
  font-size: 1rem;
}
.method a {
  color: var(--agent);
  text-underline-offset: 4px;
}

@media (max-width: 600px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .worth b {
    font-size: 1.6rem;
  }
  .mis dd {
    font-size: 1.1875rem;
  }
  .card-figs b {
    font-size: 1.3125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-link,
  .card-link:hover {
    transition: none;
    transform: none;
  }
}

/* The line under the bet that sends people to the showroom. */
.bet-see {
  margin: 20px 0 0;
  max-width: var(--measure);
  font-size: 1.0625rem;
}
.bet-see a {
  color: var(--agent);
  text-underline-offset: 4px;
}

/* A link to the running thing, where there is one. */
.project .live a {
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--agent);
  text-underline-offset: 4px;
}
.project .live a::after {
  content: " ↗";
}

@media (min-width: 40rem) {
  .mis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* The prose rule "a paragraph after a paragraph gets a gap" must not offset the second panel. */
.worth p + p {
  margin-top: 0;
}

/* An address that is a link, not just text to copy. `user-select: all` is right for a plain
   address (one click selects the whole thing) and wrong for a link, where that first click
   should follow it. */
a.addr {
  user-select: auto;
  -webkit-user-select: auto;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
a.addr:hover,
a.addr:focus-visible { text-decoration-thickness: 2px; }
