/* Calm editorial · tokens from rounds/r2/design.md */

/* Fonts are self-hosted (SIL OFL, licences in assets/fonts), so pages make no requests to third parties. */

@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/instrument-sans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(assets/fonts/instrument-sans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(assets/fonts/instrument-serif-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #FAFAF8;
  --sand: #EDE8E0;
  --mist: #E4E8EE;
  --ink: #1F1E1C;
  --ink-2: #3E3C38;
  --muted: #5E5B55;
  --line: #DAD7D0;
  --line-cool: #C9CED6;
  --accent: #4D53C9;
  --on-dark: #F3F1EC;
  --muted-dark: #A9A6A0;
  --poster-ph: #DCD6CC;
  --poster-navy: #1F3A5F; /* the Contract Filler icon colour, sampled from the demo poster */

  --sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;

  --gutter: clamp(16px, 5vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --container: 1120px;
}

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

html { color-scheme: light; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
a:hover { text-decoration-color: var(--ink); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.005em; }

/* Placeholders still to be filled with real data */
.ph { background: #FFF1B8; color: var(--ink); padding: 0 3px; border-radius: 3px; }

/* External links open in a new tab: a small arrow shows it, and screen readers hear "opens in new tab". */
.ext-arrow { display: inline-block; margin-left: 0.15em; font-size: 0.85em; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Layout */

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }
.section.paper + .section.paper { border-top: 1px solid var(--line); }
.paper { background: var(--paper); }
.sand { background: var(--sand); }
.mist { background: var(--mist); }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .c-1-4 { grid-column: 1 / 4; }
  .c-4-13 { grid-column: 4 / 13; }
  .c-1-8 { grid-column: 1 / 8; }
  .c-9-13 { grid-column: 9 / 13; }
  .c-1-5 { grid-column: 1 / 5; }
  .c-6-13 { grid-column: 6 / 13; }
  .c-1-13 { grid-column: 1 / 13; }
}

/* Type */

.label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.06; letter-spacing: -0.03em; }
h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -0.01em; }
.lede { margin: 20px 0 0; font-size: clamp(19px, 1.6vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 640px; }
.body { margin: 20px 0 0; color: var(--ink-2); max-width: 640px; }
.small { font-size: 15px; line-height: 1.5; color: var(--muted); }

.head { margin-bottom: clamp(40px, 5vw, 64px); }
.head .label { padding-top: 0.9em; }

/* Buttons */

.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: rgb(31 30 28 / .06); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: #3A3935; }
.btn.small-btn { height: 40px; padding: 0 16px; font-size: 15px; }

.arrow-link { color: var(--accent); text-decoration-color: currentColor; font-weight: 500; }
.arrow-link:hover { color: var(--ink); }

@media (max-width: 479px) {
  .btns .btn { width: 100%; }
}

/* Header */

.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { font-weight: 600; letter-spacing: -0.01em; text-decoration: none; font-size: 17px; }
.site-header nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.site-header nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.site-header nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) {
  .site-header nav a:not(.btn) { display: none; }
}

/* Hero */

.hero { padding: clamp(56px, 8vw, 96px) 0; }
.hero .grid { align-items: center; }
.hero .who { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font-size: 17px; font-weight: 600; }
.hero .who img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--mist); }
.hero .portrait { display: none; }

/* On a phone the face is the small round photo beside the name; from desktop width it moves to a card on the right.
   The cut-out photo is transparent, so the card needs a backdrop. */
@media (min-width: 960px) {
  .hero .who img { display: none; }
  .hero .portrait { display: block; justify-self: end; width: 100%; max-width: 280px; margin: 0; }
  .hero .portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 12px; background: var(--paper); }
}

/* Video frame */

.video {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: var(--poster-ph);
  box-shadow: 0 0 0 1px rgb(31 30 28 / .07), 0 2px 4px rgb(31 30 28 / .04), 0 28px 60px -16px rgb(31 30 28 / .22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video .play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: rgb(250 250 248 / .94);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video .play::before { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--ink); }
.video .play[aria-disabled="true"] { opacity: 0.4; cursor: default; }
.video .ph-text { position: absolute; bottom: 20px; left: 24px; font-size: 15px; color: #4A4741; }
.video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); display: none; }
.video.playing video { display: block; }
.video .play { position: relative; transition: transform .25s ease, background-color .25s ease, box-shadow .25s ease; }
.video.ready:not(.playing) { cursor: pointer; }
.video.ready:not(.playing):hover .play { transform: scale(1.04); }
.video .play:focus-visible { outline: 2px solid var(--poster-navy); outline-offset: 4px; }
.video.ready .ph-text { font-weight: 500; color: var(--ink); }
.video .play, .video .ph-text { z-index: 1; }
.video.playing .play, .video.playing .ph-text { display: none; }

/* Frames with a poster: the poster leaves an empty gap in the middle, between the ID card and the form.
   A plain ink play button sits there, scaling with the frame (8% of its width). No text label: the poster's
   headline already says what the video shows, and the button's aria-label carries the call and the length. */
.video .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video.playing .poster { display: none; }
.video .poster ~ .ph-text { display: none; }
.video .poster ~ .play { width: clamp(52px, 8cqw, 84px); height: auto; aspect-ratio: 1; background: var(--ink); box-shadow: 0 10px 28px -8px rgb(31 30 28 / .45); }
.video .poster ~ .play::before { margin-left: 10%; border-width: .5em 0 .5em .82em; border-left-color: #fff; font-size: clamp(13px, 1.5cqw, 18px); }
.video.ready:not(.playing):hover .poster ~ .play { background: #000; box-shadow: 0 12px 32px -8px rgb(31 30 28 / .55); }
.video .ph-text .len { color: var(--muted); font-variant-numeric: tabular-nums; }

/* A short silent loop of the tool at work (contracts-loop.mp4) plays over the poster while the frame is on screen,
   so it reads as a video while scrolling. It fades in only once it is really playing, so until then (and for
   reduced motion, where video.js never starts it) the poster shows. The full demo replaces it on click. */
.video .loop { display: block; background: transparent; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.video.looping .loop { opacity: 1; }
.video.playing .loop { display: none; }
/* The loop's first frame, drawn by video.js once the loop plays, so a moment without a frame never shows the poster. */
.video .loop-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.video.looping.still .loop-still { opacity: 1; }
.video.playing .loop-still { display: none; }

/* A video cue on poster frames: the length in the bottom-right corner, and a single ring that pulses out of
   the play button the first time the frame comes into view (video.js adds .pulse; reduced motion skips it). */
.video .duration { position: absolute; right: clamp(8px, 1.6cqw, 16px); bottom: clamp(8px, 1.6cqw, 16px); z-index: 1; padding: .3em .65em; border-radius: 6px; background: rgb(31 30 28 / .72); color: #fff; font: 500 clamp(11px, 1.3cqw, 14px)/1.2 var(--sans); font-variant-numeric: tabular-nums; pointer-events: none; }
.video.playing .duration { display: none; }
.video .play::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--ink); opacity: 0; pointer-events: none; }
@keyframes play-ring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@media (prefers-reduced-motion: no-preference) {
  .video.pulse .poster ~ .play::after { animation: play-ring 1s cubic-bezier(.2, .6, .3, 1) .45s forwards; }
}

/* After the last frame the outro stays on screen, with a small button to start again.
   On a phone-width frame it shrinks into the corner so it stays clear of the outro's checklist. */
.video { container-type: inline-size; }
.video .replay { display: none; position: absolute; right: clamp(8px, 1.6cqw, 16px); bottom: clamp(8px, 1.6cqw, 16px); z-index: 1; padding: .55em 1.15em; border: 0; border-radius: 999px; background: var(--poster-navy); color: #fff; font: 600 clamp(11px, 1.4cqw, 14px)/1.2 var(--sans); cursor: pointer; }
.video.ended .replay { display: block; }
.video .replay:focus-visible { outline: 2px solid var(--poster-navy); outline-offset: 3px; }
.video-caption { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* Proof */

.proof-body { margin-top: 48px; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0; }
.facts div { border-top: 1px solid var(--line); padding: 14px 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--serif); font-size: 34px; line-height: 1.15; }

.stats { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 24px; }
@media (min-width: 520px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; border-top: 1px solid var(--line); padding: 16px 16px 0 0; }
.stats dd { margin: 0; font-family: var(--serif); font-size: clamp(48px, 5vw, 64px); line-height: 1; }
.stats dt { margin-top: 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats div { border-top: 0; border-left: 1px solid var(--line); padding: 0 24px; }
}

.quote { margin: 0; border-top: 1px solid var(--line); padding-top: 28px; }
.quote blockquote { margin: 0; max-width: 600px; font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.3; text-indent: -0.42em; }
.quote figcaption { margin-top: 20px; font-size: 15px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }

.proof-link { margin-top: 32px; }

/* Off your desk */

.desk-cols { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 760px) { .desk-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.desk-cols h3 { border-top: 1px solid var(--line-cool); padding-top: 16px; }
.desk-cols ul { list-style: none; margin: 12px 0 0; padding: 0; }
.desk-cols li { padding: 10px 0; font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.desk-cols li + li { border-top: 1px solid rgb(201 206 214 / .6); }
.closing { margin: 48px 0 0; max-width: 640px; color: var(--ink-2); }

/* Steps */

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--muted); }
.steps p { margin: 6px 0 0; color: var(--ink-2); max-width: 640px; }
@media (min-width: 720px) { .steps li { grid-template-columns: 72px 1fr; } }
.ownership { margin: 32px 0 0; max-width: 640px; }

/* Data promises */

.promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0 32px; }
@media (min-width: 760px) { .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.promises li { border-top: 1px solid var(--line); padding: 20px 0 24px; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.promises strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* Builds (other work) */

.builds { list-style: none; margin: 0; padding: 0; }
.builds li { border-top: 1px solid var(--line); padding: 22px 0; }
.builds li:last-child { border-bottom: 1px solid var(--line); }
.builds h3 { font-size: 18px; }
.builds p { margin: 6px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.builds .links { margin-top: 10px; font-size: 15px; display: flex; gap: 6px; flex-wrap: wrap; }
.builds .links a { color: var(--accent); text-decoration-color: currentColor; }
.builds .links span { color: var(--muted); }
.builds-sub { margin: 40px 0 0; }
.builds-sub:first-child { margin-top: 0; }
.builds .studio p { margin-top: 0; }

/* FAQ */

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 40px 20px 0; font-size: 19px; font-weight: 600; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 26px; color: var(--muted); transition: transform 0.15s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 24px; max-width: 640px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* Contact (dark close) */

.contact { background: var(--ink); color: var(--on-dark); padding: var(--section-y) 0 clamp(56px, 7vw, 80px); }
.contact h2 { color: var(--on-dark); }
.contact .lede, .contact .body { color: var(--on-dark); }
.contact .btn { color: var(--on-dark); border-color: #7D7A73; }
.contact .btn:hover { background: rgb(255 255 255 / .08); }
.contact .btn.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.contact .btn.primary:hover { background: var(--sand); }
.contact a:focus-visible { outline-color: var(--on-dark); }
.contact .meta { margin: 0; font-size: 15px; line-height: 1.6; }
.contact .meta div { border-top: 1px solid rgb(255 255 255 / .12); padding: 14px 0; }
.contact .meta dt { color: var(--muted-dark); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.contact .meta dd { margin: 4px 0 0; }
.contact .meta a { color: var(--on-dark); text-decoration-color: rgb(255 255 255 / .3); }
.contact .ph { background: #5A4D1E; color: var(--on-dark); }

/* Contact form on the dark band. It posts to contact.danielregi.com (workers/contact), which emails it on. */
.contact-form { margin-top: 32px; max-width: 600px; display: grid; gap: 18px; }
.contact-form .row { display: grid; gap: 18px; }
@media (min-width: 640px) { .contact-form .row { grid-template-columns: 1fr 1fr; } }
.contact-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; color: var(--on-dark); }
.contact-form .opt { font-weight: 400; color: var(--muted-dark); }
.contact-form .hint { font-size: 14px; font-weight: 400; color: var(--muted-dark); margin-top: -2px; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; font-weight: 400; color: var(--on-dark); background: rgb(255 255 255 / .06); border: 1px solid #7D7A73; border-radius: 6px; padding: 11px 14px; width: 100%; box-sizing: border-box; }
.contact-form textarea { min-height: 136px; resize: vertical; line-height: 1.5; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; border-color: var(--on-dark); }
.contact-form label.check { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; cursor: pointer; }
.contact-form .check input { width: 20px; height: 20px; padding: 0; margin: 2px 0 0; flex: none; accent-color: var(--on-dark); cursor: pointer; }
.contact-form .check input:focus-visible { outline: 2px solid var(--on-dark); outline-offset: 2px; }
.contact-form .btns { margin-top: 6px; }
.contact-form button.btn { font-family: inherit; cursor: pointer; }
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer: one legal row in the same shade as the contact section, so the dark close reads as a single band */

.site-footer { background: var(--ink); color: var(--muted-dark); font-size: 14px; line-height: 1.6; padding: 28px 0 32px; }
.site-footer.joined { padding-top: 0; }
.site-footer.joined .legal { padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); }
.site-footer .legal { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer a { color: var(--on-dark); text-decoration-color: rgb(255 255 255 / .3); }
.site-footer .ph { background: #5A4D1E; color: var(--on-dark); }

/* Landing pages (/contracts, /invoices) */

.byline { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; font-size: 15px; color: var(--muted); }
.byline img { width: 32px; height: 40px; border-radius: 6px; object-fit: cover; object-position: 50% 15%; background: var(--paper); box-shadow: 0 0 0 1px rgb(31 30 28 / .10); }
.byline strong { color: var(--ink); font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--line); padding: 18px 0 20px; color: var(--ink-2); max-width: 720px; }
.list li:last-child { border-bottom: 1px solid var(--line); }
.list strong { color: var(--ink); font-weight: 600; }
.note { margin: 32px 0 0; padding: 20px 24px; background: var(--sand); border-radius: 6px; max-width: 720px; color: var(--ink-2); font-size: 17px; }
.note strong { color: var(--ink); }
.sand .note { background: var(--paper); }

.table-wrap { overflow-x: auto; margin: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 560px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 0 16px 12px 0; vertical-align: bottom; }
.table td { border-top: 1px solid var(--line); padding: 16px 16px 16px 0; vertical-align: top; color: var(--ink-2); }
.table td:first-child { color: var(--ink); font-weight: 500; }
.table.compare td:first-child { font-weight: 400; color: var(--muted); }
.table.compare td:last-child { color: var(--ink); }
@media (max-width: 639px) {
  .table { min-width: 0; }
  .table.compare { font-size: 15px; }
  .table:not(.compare) thead { display: none; }
  .table:not(.compare) tr, .table:not(.compare) td { display: block; }
  .table:not(.compare) tr { border-top: 1px solid var(--line); padding: 16px 0; }
  .table:not(.compare) td { border-top: 0; padding: 0; }
  .table:not(.compare) td + td { margin-top: 8px; }
  .table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.backlink { margin: 40px 0 0; font-size: 15px; }
.contact .backlink a { color: var(--muted-dark); }

/* Articles (How it's built) */

.article { padding: clamp(48px, 7vw, 96px) 0 var(--section-y); }
.article .meta-col { font-size: 14px; line-height: 1.7; color: var(--muted); }
.article .meta-col a { color: var(--accent); text-decoration-color: currentColor; }
.article h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.1; }
.article .standfirst { margin: 20px 0 0; font-size: 21px; line-height: 1.5; color: var(--ink-2); }
.prose { max-width: 680px; }
.prose p { margin: 22px 0 0; font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.prose h2 { font-size: 24px; letter-spacing: -0.015em; margin: 48px 0 0; }
.prose h2 + p { margin-top: 12px; }
.prose .end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 16px; }
.prose h3 { margin: 32px 0 0; font-size: 19px; }
.prose h3 + p { margin-top: 8px; }
.prose ul { margin: 16px 0 0; padding-left: 1.2em; }
.prose li { margin: 8px 0 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); }

/* Privacy and legal notice */

.toc { list-style: none; margin: 12px 0 0; padding: 0; }
.toc li { margin: 4px 0 0; }
.summary { margin: 32px 0 0; padding: 20px 24px; background: var(--sand); border-radius: 6px; }
.summary p { margin: 0; font-size: 17px; }
.summary p + p { margin-top: 10px; }
.details { margin: 20px 0 0; }
.details div { display: grid; grid-template-columns: 1fr; gap: 2px 24px; border-top: 1px solid var(--line); padding: 12px 0; }
.details div:last-child { border-bottom: 1px solid var(--line); }
.details dt { font-size: 15px; color: var(--muted); }
.details dd { margin: 0; font-size: 17px; color: var(--ink-2); }
@media (min-width: 640px) { .details div { grid-template-columns: 200px 1fr; } }
.draft-banner { margin: 0 0 32px; padding: 12px 16px; border-radius: 6px; background: #FFF1B8; font-size: 15px; line-height: 1.5; }
@media (min-width: 960px) {
  .c-4-11 { grid-column: 4 / 11; }
  .c-1-9 { grid-column: 1 / 9; }
}

/* Motion: one subtle reveal, progressive enhancement */

@keyframes reveal { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  /* Smooth only for in-page links (a clicked link holds focus); arriving from another page at index.html#contact jumps straight there. */
  html:focus-within { scroll-behavior: smooth; }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
  }
}
