/*
 * SelfTaxed (working name). The room: a kitchen table in April.
 * A white tax worksheet with red drop-out ink rules, typed figures,
 * and a kraft envelope where the tax money goes.
 * Surface lane: pressed (3px, hairlines in form red, almost no shadow),
 * except the worksheet and the envelope, which are paper objects on the desk.
 * Rhyme: the envelope flap V. It appears on the envelope, the h2 mark,
 * the select chevron and the footer notch.
 */
:root {
  /* the paper and the desk */
  --sheet: #ffffff;
  --desk: #eceee9;
  --desk-deep: #dfe2dc;

  /* the ink */
  --ink: #14161a;
  --carbon: #33383f;
  --pencil: #575d66;

  /* drop-out red: the ink IRS forms print their boxes in */
  --dropout: #c4122f;
  --dropout-deep: #9b0d24;
  --dropout-wash: #fcedef;

  /* the envelope */
  --kraft: #c69b62;
  --kraft-light: #f1e4cf;
  --kraft-deep: #6b4518;

  /* what you keep */
  --ledger: #1d6a46;
  --ledger-wash: #e5f2eb;

  --border: rgba(196, 18, 47, 0.16);
  --border-mid: rgba(196, 18, 47, 0.38);
  --rule: rgba(20, 22, 26, 0.12);
  --rule-soft: rgba(20, 22, 26, 0.06);

  --shadow-sheet: 2px 3px 0 rgba(20, 22, 26, 0.05), 6px 16px 34px -14px rgba(20, 22, 26, 0.32);
  --shadow-envelope: 2px 4px 14px -4px rgba(107, 69, 24, 0.35), inset 0 0 44px rgba(107, 69, 24, 0.10);

  --font-display: 'Archivo', 'Archivo Fallback', 'Arial', sans-serif;
  --font-ui: 'Public Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'Consolas', monospace;

  --r-sm: 3px;
  --r-md: 6px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.08  0 0 0 0 0.09  0 0 0 0 0.10  0 0 0 0.06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --grain-kraft: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='k'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='5' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.42  0 0 0 0 0.27  0 0 0 0 0.09  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23k)'/></svg>");
  --flap-v: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1.2 7 7.6 13 1.2' fill='none' stroke='%23c4122f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

/* Metric-matched fallback so the wide display face doesn't reflow on load */
@font-face {
  font-family: 'Archivo Fallback';
  src: local('Arial Black'), local('Arial');
  size-adjust: 104%;
  ascent-override: 88%;
  descent-override: 22%;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--desk);
  background-image: var(--grain);
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: rgba(198, 155, 98, 0.45); color: var(--ink); }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  padding: 10px 14px;
  font-weight: 700; color: var(--sheet);
  background: var(--ink); border-radius: var(--r-sm);
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-head {
  position: relative;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule);
}
.site-head__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 2px;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 1.35rem; font-weight: 800; font-stretch: 118%;
  letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.brand__dot { color: var(--dropout); }
.nav { display: flex; gap: 2px; margin: 0 -10px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav__link {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 10px;
  font-size: 0.9375rem; font-weight: 600; white-space: nowrap;
  color: var(--carbon); text-decoration: none;
  border-radius: var(--r-sm);
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nav__link:hover { color: var(--dropout-deep); background: var(--dropout-wash); }
.nav__link[aria-current="page"] { color: var(--ink); background: var(--desk); }

@media (max-width: 719px) {
  .site-head__inner { padding-bottom: 4px; }
  .nav { width: calc(100% + 20px); }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
  .hero__copy { position: sticky; top: 28px; }
}
.hero__title {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 4.6vw, 3.45rem); font-weight: 800; font-stretch: 112%;
  line-height: 1.0; letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero__lede { max-width: 34rem; margin: 0 0 1.5rem; font-size: 1.125rem; color: var(--carbon); }
.hero__lede strong { color: var(--ink); }

/* Facts about the tool itself, as a small form strip rather than badges */
.facts {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start;
  margin: 0; padding: 0;
  border: 1px solid var(--rule); border-radius: var(--r-sm);
  background: var(--sheet);
  width: fit-content; max-width: 100%;
}
.facts__item { padding: 10px 16px; border-right: 1px solid var(--rule); }
.facts__item:last-child { border-right: 0; }
.facts dt {
  margin: 0 0 2px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--pencil);
}
.facts dd { margin: 0; font-size: 0.9375rem; font-weight: 700; color: var(--ink); }
@media (max-width: 420px) {
  .facts { grid-template-columns: 1fr 1fr; width: 100%; }
  .facts__item:nth-child(2) { border-right: 0; }
  .facts__item:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
}

/* ---------- The worksheet ---------- */
.sheet {
  position: relative; z-index: 2;
  background: var(--sheet);
  border: 1px solid rgba(20, 22, 26, 0.55);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sheet);
}
.sheet__head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: stretch;
  border-bottom: 2px solid var(--ink);
}
.sheet__code {
  display: flex; flex-direction: column; justify-content: center;
  padding: 10px 14px;
  border-right: 1px solid var(--ink);
}
.sheet__code small {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--carbon);
}
.sheet__code b { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; font-stretch: 118%; line-height: 1; }
.sheet__title { display: flex; flex-direction: column; justify-content: center; padding: 10px 14px; }
.sheet__title strong { font-family: var(--font-display); font-size: 1.0625rem; font-weight: 800; font-stretch: 108%; line-height: 1.15; }
.sheet__title span { font-size: 0.8125rem; color: var(--carbon); }
.sheet__year {
  display: grid; place-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--ink);
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; font-stretch: 125%;
  color: var(--dropout);
}
@media (max-width: 420px) {
  .sheet__code { padding: 8px 10px; }
  .sheet__title { padding: 8px 10px; }
  .sheet__year { padding: 0 10px; font-size: 1.2rem; }
  .sheet__title span { display: none; }
}

/* Boxes: a hairline grid in drop-out red */
.boxes {
  display: grid; gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
@media (min-width: 560px) { .boxes--2 { grid-template-columns: 1fr 1fr; } .box--wide { grid-column: 1 / -1; } }
.box {
  position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px 10px 44px;
  background: var(--sheet);
  transition: background .18s var(--ease);
}
.box:focus-within { background: #fff8f9; }
.box__num {
  position: absolute; left: 12px; top: 13px;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  font-size: 0.75rem; font-weight: 700;
  color: var(--dropout); border: 1px solid var(--border-mid); border-radius: 2px;
}
.box__label { font-size: 0.875rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.box__hint { font-size: 0.8125rem; line-height: 1.35; color: var(--pencil); }
.money { position: relative; display: flex; align-items: baseline; }
.money__sign { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 500; color: var(--carbon); }
.field {
  width: 100%; min-height: 44px; margin: 0; padding: 4px 4px 2px;
  font-family: var(--font-mono); font-size: 1.375rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink); caret-color: var(--dropout);
  background: transparent;
  border: 0; border-bottom: 1px dashed rgba(20, 22, 26, 0.28);
  border-radius: 0;
  transition: border-color .18s var(--ease);
}
.field::placeholder { color: rgba(20, 22, 26, 0.32); }
.field:focus { outline: none; border-bottom: 1px solid var(--dropout); }
.field--plain { font-size: 1.125rem; }
.box.is-invalid .field { border-bottom-color: var(--dropout); }
.box__error { display: none; font-size: 0.8125rem; font-weight: 600; color: var(--dropout-deep); }
.box.is-invalid .box__error { display: block; }
.box.is-shaking { animation: shake .36s var(--ease); }
@keyframes shake { 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-2px); } 80% { transform: translateX(2px); } }

.check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding-top: 6px; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--dropout); flex-shrink: 0; }

/* Filing status: springy segments, pressed lane */
.seg {
  position: relative; isolation: isolate;
  display: inline-flex; flex-wrap: nowrap;
  max-width: 100%; padding: 3px;
  background: var(--desk);
  border: 1px solid var(--rule); border-radius: var(--r-sm);
}
.seg__pill {
  position: absolute; z-index: -1; top: 3px; bottom: 3px; left: 3px;
  width: 60px;
  background: var(--sheet);
  border: 1px solid rgba(20, 22, 26, 0.5); border-radius: 2px;
  box-shadow: 1px 2px 0 rgba(20, 22, 26, 0.08);
  will-change: transform, width;
}
.seg__btn {
  appearance: none; min-height: 44px; padding: 0 12px;
  font: 600 0.875rem/1 var(--font-ui); white-space: nowrap;
  color: var(--carbon); background: none; border: 0; border-radius: 2px;
  cursor: pointer; transition: color .2s var(--ease);
}
.seg__btn[aria-pressed="true"] { color: var(--ink); }
.seg__btn:active { transform: scale(0.97); }
/* On phones the three options share the row equally and wrap their words */
@media (max-width: 520px) {
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .seg__btn { min-height: 46px; padding: 6px 6px; white-space: normal; line-height: 1.15; font-size: 0.8125rem; }
}

/* ---------- The envelope (the star) ---------- */
.envelope {
  position: relative; z-index: 1;
  margin: -6px 10px 0;
  padding: 44px clamp(16px, 4vw, 26px) 22px;
  background-color: var(--kraft-light);
  background-image: var(--grain-kraft);
  border-radius: 0 0 var(--r-md) var(--r-md);
  box-shadow: var(--shadow-envelope);
  transform: rotate(-0.35deg);
}
/* The flap, drawn as the fold lines of an opened envelope */
.envelope__flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 34px;
  pointer-events: none;
}
.envelope__flap path { fill: rgba(107, 69, 24, 0.08); stroke: rgba(107, 69, 24, 0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.envelope__label {
  margin: 0 0 2px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--kraft-deep);
}
.envelope__amount {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8vw, 4rem); font-weight: 800; font-stretch: 112%;
  line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--ink);
}
.envelope__rate { margin: 8px 0 18px; font-size: 1rem; color: var(--ink); }
.envelope__rate b { font-weight: 700; }
.envelope__rate [data-out] { font-family: var(--font-mono); font-weight: 600; }

.split { display: flex; height: 14px; overflow: hidden; border-radius: 2px; background: rgba(107, 69, 24, 0.12); }
.split__seg { height: 100%; transition: flex-basis .5s var(--ease); flex: 0 0 0%; }
.split__seg--se { background: var(--dropout); }
.split__seg--income { background: var(--carbon); }
.split__seg--keep { background: var(--ledger); }

.legend { display: grid; gap: 0; margin: 14px 0 0; padding: 0; }
.legend__row {
  display: grid; grid-template-columns: 14px 1fr auto; align-items: baseline; gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(107, 69, 24, 0.16);
}
.legend__row:last-child { border-bottom: 0; }
.legend__swatch { width: 10px; height: 10px; border-radius: 2px; transform: translateY(1px); }
.legend dt { font-size: 0.9375rem; color: var(--ink); }
.legend dd { margin: 0; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

.envelope__foot {
  display: grid; gap: 1px; margin-top: 16px;
  background: rgba(107, 69, 24, 0.22);
  border: 1px solid rgba(107, 69, 24, 0.22); border-radius: var(--r-sm);
  overflow: hidden;
}
@media (min-width: 480px) { .envelope__foot { grid-template-columns: 1fr 1fr; } }
.envelope__cell { padding: 10px 12px; background: rgba(255, 255, 255, 0.55); }
.envelope__cell span { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kraft-deep); }
.envelope__cell b { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.envelope__note { margin: 12px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--carbon); }

.num-tick { display: inline-block; }
.num-tick.is-ticking { animation: tick .32s var(--ease-spring); }
@keyframes tick { 0% { transform: translateY(3px); opacity: .6; } 100% { transform: none; opacity: 1; } }

/* ---------- Sections ---------- */
.section { padding: clamp(2.75rem, 7vw, 5rem) 0; }
.section--sheet { background: var(--sheet); border-block: 1px solid var(--rule); }
.section__title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.2rem); font-weight: 800; font-stretch: 108%;
  line-height: 1.08; letter-spacing: -0.02em;
  text-wrap: balance;
}
/* The flap V: the rhyme from the envelope */
.section__title::before {
  content: ''; flex-shrink: 0;
  width: 14px; height: 9px;
  background: var(--flap-v) no-repeat center / contain;
}
.section__intro { max-width: 40rem; margin: 0 0 2rem; color: var(--carbon); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .two-col { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }
.prose h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1875rem; font-weight: 700; line-height: 1.3; }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose li > a:only-child { display: inline-block; padding: 11px 0; }
.prose a, .link { font-weight: 700; color: var(--dropout-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover, .link:hover { color: var(--ink); text-decoration-color: var(--dropout); }

/* Label/value rows */
.kv { margin: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
.kv__row {
  display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: baseline;
  padding: 12px 16px;
  border-bottom: 1px solid var(--rule-soft);
}
.kv__row:nth-child(odd) { background: rgba(20, 22, 26, 0.018); }
.kv__row:last-child { border-bottom: 0; }
.kv__row--total { background: var(--kraft-light) !important; }
.kv dt { font-size: 0.9375rem; color: var(--ink); }
.kv dt small { display: block; font-size: 0.8125rem; color: var(--pencil); }
.kv dd { margin: 0; font-family: var(--font-mono); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.kv__row--total dt, .kv__row--total dd { font-weight: 700; }
.kv__row--minus dd::before { content: '− '; color: var(--pencil); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sm); }
.table { width: 100%; min-width: 520px; border-collapse: collapse; }
.table caption { padding: 12px 16px; font-size: 0.875rem; text-align: left; color: var(--carbon); caption-side: bottom; border-top: 1px solid var(--rule-soft); }
.table th {
  padding: 12px 16px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: right;
  color: var(--pencil);
  border-bottom: 1px solid var(--ink);
}
.table th:first-child, .table td:first-child { text-align: left; }
.table td {
  padding: 11px 16px;
  font-family: var(--font-mono); font-size: 0.9375rem; font-variant-numeric: tabular-nums; text-align: right;
  color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.table tbody tr:nth-child(even) td { background: rgba(20, 22, 26, 0.018); }
.table tbody tr:hover td { background: var(--kraft-light); }
.table td.is-strong { font-weight: 600; }

/* Calculator directory: hairline grid */
.tools { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
@media (min-width: 720px) { .tools { grid-template-columns: repeat(3, 1fr); } }
.tool {
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 20px 20px;
  color: var(--ink); text-decoration: none;
  background: var(--sheet);
  transition: background .2s var(--ease);
}
.tool:hover { background: var(--dropout-wash); }
.tool:active { background: #f9dfe3; }
.tool__code { font-family: var(--font-mono); font-size: 0.8125rem; font-weight: 600; color: var(--dropout-deep); }
.tool__name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; font-stretch: 106%; line-height: 1.15; }
.tool__desc { font-size: 0.9375rem; color: var(--carbon); }
.tool__go { display: inline-flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 8px; font-size: 0.875rem; font-weight: 700; color: var(--dropout-deep); transition: gap .3s var(--ease); }
.tool:hover .tool__go { gap: 12px; }

/* Due dates */
.due { margin: 0; padding: 0; list-style: none; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
.due__row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: baseline; padding: 13px 16px; border-bottom: 1px solid var(--rule-soft); }
.due__row:last-child { border-bottom: 0; }
.due__date { font-weight: 700; color: var(--ink); }
.due__covers { font-size: 0.875rem; color: var(--pencil); }
.due__state { font-size: 0.8125rem; font-weight: 700; color: var(--pencil); }
.due__row.is-past .due__date { color: var(--carbon); text-decoration: line-through; text-decoration-color: rgba(20, 22, 26, 0.35); }
.due__row.is-next { background: var(--kraft-light); }
.due__row.is-next .due__state { color: var(--kraft-deep); }

/* Callout: a tint, never a side stripe */
.note { padding: 16px 18px; background: var(--dropout-wash); border-radius: var(--r-sm); }
.note p { margin: 0; }
.note p + p { margin-top: 0.6rem; }
.note--kraft { background: var(--kraft-light); }

/* Three trip-ups, hairline grid */
.trips { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-sm); overflow: hidden; }
@media (min-width: 820px) { .trips { grid-template-columns: repeat(3, 1fr); } }
.trip { padding: 22px 20px; background: var(--sheet); }
.trip .trip__fig { margin: 0 0 6px; font-family: var(--font-display); font-size: 2rem; font-weight: 800; font-stretch: 112%; line-height: 1; font-variant-numeric: lining-nums; color: var(--dropout); }
.trip h3 { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.trip p { margin: 0; font-size: 0.9375rem; color: var(--carbon); }

/* Page header for inner pages */
.crumbs { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.875rem; color: var(--pencil); }
.crumbs a { display: inline-block; margin: -14px 0; padding: 14px 0; color: var(--carbon); font-weight: 600; text-decoration: none; }
.crumbs a:hover { color: var(--dropout-deep); text-decoration: underline; }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--pencil); }

.updated { margin: 0 0 1.25rem; font-size: 0.875rem; color: var(--pencil); }
.updated b { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-foot { position: relative; margin-top: 0; padding: 3rem 0 2.5rem; color: #e9ebe6; background: var(--ink); }
/* A notch at the top edge, the envelope V once more */
.site-foot::before {
  content: ''; position: absolute; left: 50%; top: -1px;
  width: 34px; height: 12px; transform: translateX(-50%);
  background: var(--desk);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.foot__grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot__brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; font-stretch: 118%; color: #fff; }
.foot__text { max-width: 30rem; margin: 10px 0 0; font-size: 0.9375rem; color: #c9ccd2; }
.foot__head { margin: 0 0 8px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #aeb3bb; }
.foot__list { margin: 0; padding: 0; list-style: none; }
.foot__list a { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.9375rem; color: #fff; text-decoration: none; }
.foot__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__legal { margin: 2rem 0 0; padding-top: 1.25rem; font-size: 0.8125rem; color: #aeb3bb; border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* One orchestrated entrance, the hero only */
.hero__title, .hero__lede, .facts { animation: rise .7s var(--ease) both; }
.hero__lede { animation-delay: .08s; }
.facts { animation-delay: .16s; }
.hero .sheet { animation: rise .8s var(--ease) .1s both; }
.hero .envelope { animation: slide-out .9s var(--ease) .45s both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes slide-out { from { opacity: 0; transform: translateY(-26px) rotate(-0.35deg); } to { opacity: 1; transform: rotate(-0.35deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Quarterly page: the last segment is a bill still to pay, not money kept */
.split--bill .split__seg--se { background: var(--carbon); }
.split--bill .split__seg--income { background: var(--dropout); }
.split--bill .split__seg--keep { background: var(--kraft); }

.page-head { padding: clamp(1.75rem, 5vw, 3rem) 0 0; }
