/* Tokemetrics, the public site (version 2, preview).

   The app's typeface, IBM Plex Sans, and the first design's parts, on warm
   paper by default. Dark is a switch in the header, remembered on this
   device. One surface throughout: no bands alternating between light and
   dark. Shared by index.html and news.html once approved. */

:root{
  /* Light, the default: warm paper rather than a white box. */
  --ink:#F3EFE6;
  --ink-2:#FBF9F4;
  --ink-3:#ECE6D9;
  --line:#DDD5C4;
  --line-2:#C7BDA9;
  --text:#16140F;
  --muted:#5F594D;
  --faint:#8C8576;
  --head-bg:rgba(243,239,230,.9);
  --shadow:rgba(60,48,25,.28);

  --paper:#F5F4F0;         /* warm, so it reads as paper rather than a white box */
  --paper-2:#EAE8E1;
  --paper-line:#D9D6CC;
  --paper-text:#14141A;
  --paper-muted:#55535E;

  --brand:#4851C4;
  --brand-lift:#4851C4;
  --pos:#1E8F63;
  --pos-dark:#1D7A55;
  --neg:#C23B40;
  --neg-dark:#B5383C;

  --display:"IBM Plex Sans",system-ui,sans-serif;   /* one family for everything, as in the app */
  --sans:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --wordmark:"IBM Plex Sans",system-ui,sans-serif;
}

/* Dark, by choice: the app's own night palette. */
:root[data-theme="dark"]{
  --ink:#07070A;--ink-2:#0E0E13;--ink-3:#15151C;--line:#1E1E28;--line-2:#2A2A36;
  --text:#F3F3F6;--muted:#8B8B9B;--faint:#5C5C6B;
  --brand-lift:#7A7DF0;--pos-dark:#33C88F;--neg-dark:#E5565B;
  --head-bg:rgba(7,7,10,.86);--shadow:rgba(0,0,0,.9);
  color-scheme:dark;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  overflow-x:clip;transition:background .2s,color .2s;
  background:var(--ink);color:var(--text);font-family:var(--sans);
  font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;
}
a{color:inherit}
img{max-width:100%}
.n{font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.wordmark{font-family:var(--wordmark);font-weight:600;letter-spacing:-.018em}

/* The measure everything sits in. Asymmetric on purpose: an argument column
   and a narrower margin column, like a broadsheet. */
.wrap{max-width:1140px;margin:0 auto;padding:0 28px}
@media (max-width:640px){.wrap{padding:0 20px}}

.skip{position:absolute;left:-9999px}
.skip:focus{left:20px;top:12px;z-index:60;background:var(--ink-3);color:var(--text);
  border:1px solid var(--brand);border-radius:8px;padding:9px 14px;text-decoration:none;font-size:14px}

/* ---------------------------------------------------------------- header */
.masthead{position:sticky;top:0;z-index:40;background:var(--head-bg);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.masthead .bar{display:flex;align-items:center;gap:18px;padding-top:15px;padding-bottom:15px}  /* not the shorthand: it would cancel .wrap's side gutter */
.brandmark{display:flex;align-items:center;gap:9px;text-decoration:none;flex-shrink:0}
.brandmark span{font-size:17.5px}
.masthead nav{display:flex;gap:20px;margin-left:auto;font-size:14px;color:var(--muted)}
.masthead nav a{text-decoration:none;padding:2px 0;border-bottom:1px solid transparent;transition:color .15s,border-color .15s}
.masthead nav a:hover{color:var(--text);border-color:var(--line-2)}
.masthead nav a[aria-current="page"]{color:var(--text);border-color:var(--brand)}
.enter{flex-shrink:0;text-decoration:none;font-size:14px;font-weight:500;color:var(--text);
  border:1px solid var(--line-2);border-radius:10px;padding:8px 14px;transition:border-color .15s,background .15s}
.enter:hover{border-color:var(--brand);background:var(--ink-3)}
@media (max-width:820px){.masthead nav{display:none}.masthead .cur{margin-left:auto}}

/* Which currency the price strip is quoted in. Deliberately small: it belongs
   to the masthead rather than being a control in its own right. */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cur{flex-shrink:0;display:flex}
.cur select{
  font:inherit;font-size:12.5px;font-weight:500;letter-spacing:.04em;color:var(--muted);
  background:transparent;border:1px solid var(--line);border-radius:9px;
  padding:7px 8px 7px 10px;cursor:pointer;outline:none;
  -webkit-appearance:none;appearance:none;padding-right:24px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%238B8B9B' d='M0 0h8L4 5z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 9px center;
  transition:border-color .15s,color .15s;
}
.cur select:hover{color:var(--text);border-color:var(--line-2)}
.cur select:focus-visible{border-color:var(--brand);color:var(--text)}
.cur option{background:var(--ink-2);color:var(--text)}

/* A strip of live prices that actually moves. Two identical runs sit side by
   side inside the track; the track slides left by exactly one run's width and
   then snaps back to zero, at which point the second run is sitting precisely
   where the first one started — so the repeat is invisible. site.js measures a
   run and sets --tape-w and --tape-dur, and adds further copies if one pair
   would not cover a very wide screen. */
.tape{border-bottom:1px solid var(--line);background:var(--ink-2);overflow:hidden}
.tape-track{display:flex;width:max-content}
.tape-track.rolling{animation:tape-roll var(--tape-dur,42s) linear infinite}
.tape:hover .tape-track.rolling,
.tape:focus-within .tape-track.rolling{animation-play-state:paused}
@keyframes tape-roll{
  from{transform:translateX(0)}
  to{transform:translateX(calc(-1 * var(--tape-w,50%)))}
}
.tape-run{display:flex;gap:28px;list-style:none;padding:9px 14px;margin:0;
  font-size:13px;color:var(--muted)}
.tape li{display:flex;gap:8px;align-items:baseline;white-space:nowrap}
.tape b{font-weight:600;color:var(--text);letter-spacing:.02em}
.tape .up{color:var(--pos-dark)}
.tape .down{color:var(--neg-dark)}
.tape .tag{color:var(--faint);letter-spacing:.06em;text-transform:uppercase;font-size:11px}

/* Nobody who has asked for less movement should get a marquee. One run, wrapped
   onto as many lines as it needs, standing still. */
@media (prefers-reduced-motion:reduce){
  .tape-track{animation:none!important;width:100%}
  .tape-track .tape-run + .tape-run{display:none}
  .tape-run{flex-wrap:wrap;row-gap:5px;padding:9px 20px;width:100%}
}

/* ------------------------------------------------------------------ hero */
.hero{padding-top:86px;padding-bottom:64px;border-bottom:1px solid var(--line)}
.hero .cols{display:grid;grid-template-columns:1.15fr .85fr;gap:56px;align-items:start}
@media (max-width:940px){.hero{padding-top:64px;padding-bottom:48px}.hero .cols{grid-template-columns:1fr;gap:44px}}

h1{font-family:var(--display);font-weight:600;letter-spacing:-.028em;
  font-size:clamp(36px,4.6vw,54px);line-height:1.06;max-width:17ch}
h1 em{font-style:normal;color:var(--brand-lift)}
.standfirst{margin-top:22px;font-size:clamp(17px,1.6vw,19px);color:var(--muted);max-width:46ch;line-height:1.62}
.standfirst strong{color:var(--text);font-weight:500}

.kicker{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--faint);
  display:flex;align-items:center;gap:10px;margin-bottom:20px}
.kicker::after{content:"";flex:1;height:1px;background:var(--line)}

/* Three lines under the hero's paragraph: what it does, for a first glance. */
.points{list-style:none;margin-top:20px;display:grid;gap:8px;max-width:46ch;font-size:15px;color:var(--text)}
.points li{position:relative;padding-left:26px}
.points li::before{content:"";position:absolute;left:3px;top:.42em;width:11px;height:6px;
  border-left:2px solid var(--pos-dark);border-bottom:2px solid var(--pos-dark);transform:rotate(-45deg)}
.points a{color:var(--brand-lift);text-decoration:none;border-bottom:1px solid currentColor}

/* --------------------------------------------------------- the app, drawn */
/* A miniature of the real holdings screen, built in markup rather than
   screenshotted, so it cannot go stale and costs nothing to load. */
.device{background:var(--ink-2);border:1px solid var(--line);border-radius:18px;padding:18px;
  box-shadow:0 30px 60px -30px var(--shadow)}
.device .top{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.device .label{font-size:10.5px;letter-spacing:.13em;text-transform:uppercase;color:var(--faint)}
.device .total{font-family:var(--wordmark);font-weight:600;font-size:31px;letter-spacing:-.03em;margin-top:5px}
.device .since{font-size:13px;color:var(--muted);margin-top:3px}
.device .delta{font-size:13px;font-weight:600;color:var(--pos-dark)}
.device .rows{margin-top:18px;display:grid;gap:11px}
.device .row{display:grid;grid-template-columns:26px 1fr auto;gap:11px;align-items:center}
.device .coin{width:26px;height:26px;border-radius:26px;display:flex;align-items:center;
  justify-content:center;font-size:9.5px;font-weight:700;color:#0B0B10}
/* The coin's artwork sits over its lettered circle. If the image can't load,
   site.js removes it and the letters underneath are what shows. */
.device .coin{position:relative;overflow:hidden}
.device .coin img{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;
  object-fit:cover;background:var(--ink-2)}
.device .name{font-size:13.5px}
.device .qty{font-size:11.5px;color:var(--faint)}
.device .val{text-align:right;font-size:13.5px}
.device .pct{font-size:11.5px}
.device .bar{grid-column:1 / -1;height:4px;border-radius:4px;background:var(--ink-3);position:relative;margin-top:2px}
.device .bar i{position:absolute;top:0;height:100%;border-radius:4px;left:50%}
.device .bar u{position:absolute;top:-3px;left:50%;width:1px;height:10px;background:var(--line-2)}
.device .foot{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);
  font-size:11.5px;color:var(--faint);display:flex;justify-content:space-between;gap:10px}

/* ------------------------------------------------- the app, in a phone */
/* Photographs of the app, each in a frame the shape of an iPhone, the second
   set a little behind the first. On a narrow screen there is room for one. */
.phones{display:flex;justify-content:center;align-items:flex-start;min-width:0}
.iphone{position:relative;flex:0 0 auto;width:min(258px,58%);min-width:0;z-index:2;border-radius:42px;padding:9px;
  background:#16161c;border:1px solid #32323d;box-shadow:0 40px 80px -42px rgba(0,0,0,.95),inset 0 0 0 1.5px #050507}
.iphone + .iphone{margin-top:74px;margin-left:-44px;z-index:1}
.iphone .screen{border-radius:34px;overflow:hidden;background:var(--ink);aspect-ratio:393/852;display:flex;flex-direction:column}
.iphone .status{flex:0 0 auto;height:8.2%;display:flex;align-items:flex-end;justify-content:space-between;
  padding:0 9% 1.6%;font-size:11px;font-weight:600;line-height:1;color:var(--text);position:relative}
.iphone .status::before{content:"";position:absolute;left:50%;top:22%;transform:translateX(-50%);width:30%;height:52%;
  border-radius:99px;background:#000}
.iphone .status i{display:block;width:17px;height:8px;border:1px solid var(--text);border-radius:3px;position:relative;opacity:.9}
.iphone .status i::after{content:"";position:absolute;inset:1px;right:4px;background:var(--text);border-radius:1px}
.iphone img{display:block;width:100%;height:auto;flex:1 1 auto;min-height:0;object-fit:cover;object-position:top}
.phonenote{margin-top:16px;text-align:center;font-size:12px;color:var(--faint)}
@media (max-width:940px){
  .iphone + .iphone{display:none}
  .iphone{width:min(290px,78%)}
}

/* --------------------------------------------- the tax report, as a page */
/* The PDF's first page as a sheet of paper, in the PDF's own typeface
   whatever the site is set in, because that is what the file looks like. */
.sheetwrap{min-width:0}
.sheet{background:#fff;color:#16191D;border-radius:4px;padding:26px 28px 18px;max-width:460px;margin-left:auto;
  font:400 11px/1.45 Helvetica,Arial,sans-serif;box-shadow:0 30px 70px -34px var(--shadow)}
.sheet p{margin:0}
.sheet .top{display:flex;justify-content:space-between;align-items:center;padding-bottom:9px;border-bottom:1px solid #CDD2D9}
.sheet .top b{display:flex;align-items:center;gap:7px;font-size:13px}
.sheet .top span{font-size:9px;color:#5C6470}
.sheet .title{font-size:21px;font-weight:700;margin:18px 0 3px;letter-spacing:-.01em}
.sheet .yr{color:#5C6470;font-size:11px}
.sheet dl{display:grid;grid-template-columns:96px 1fr;gap:3px 0;margin:14px 0;font-size:10px}
.sheet dt{color:#5C6470}
.sheet .tot{background:#F4F5F7;padding:10px 12px;display:grid;grid-template-columns:1fr auto;gap:5px 10px;font-size:10.5px}
.sheet .tot span:nth-child(odd){color:#5C6470}
.sheet .tot .s{font-weight:700;color:#16191D}
.sheet .neg{color:#A8322B}
.sheet .sub{font-size:12px;font-weight:700;margin:16px 0 6px}
.sheet table{width:100%;border-collapse:collapse;font-size:10px;font-variant-numeric:tabular-nums}
.sheet th{font-weight:400;color:#828A94;font-size:9px;text-align:right;padding-bottom:4px;border-bottom:1px solid #16191D}
.sheet th:nth-child(-n+2),.sheet td:nth-child(-n+2){text-align:left}
.sheet td{text-align:right;padding:5px 0;border-bottom:1px solid #DDE1E5}
.sheet tfoot td{font-weight:700;border-bottom:0;border-top:1.2px solid #16191D}
.sheet .fine{margin-top:12px;font-size:9px;line-height:1.45;color:#5C6470}
.sheet .foot{margin-top:14px;padding-top:7px;border-top:1px solid #CDD2D9;display:flex;justify-content:space-between;gap:8px;font-size:8.5px;color:#5C6470}
.sheetlink{margin-top:14px;text-align:right;font-size:13.5px}
.sheetlink a{color:var(--brand-lift);text-decoration:none;border-bottom:1px solid currentColor}
@media (max-width:940px){.sheet{margin:0 auto}.sheetlink{text-align:center}}
@media (max-width:420px){
  .sheet{padding:18px 16px 14px}
  .sheet th:nth-child(3),.sheet td:nth-child(3){display:none}
}

/* ------------------------------------------------ the watchlists screen, drawn */
/* The app's Watchlists card: list chips, then one row per coin with its price,
   the 24-hour change and the Favourites star. */
.preview{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.watch{min-width:0}
.watch .dhead{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.watch .dnote{font-size:11.5px;color:var(--muted)}
.wchips{display:flex;gap:6px;margin-top:14px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.wchips::-webkit-scrollbar{display:none}
.wchips span{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:500;
  color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:5px 11px;white-space:nowrap}
.wchips span.on{color:var(--text);background:var(--ink-3);border-color:var(--line-2)}
.wchips span.on svg{color:#F2B84B}
.wchips span.new{border-style:dashed;border-color:var(--line-2)}
.wchips b{font-weight:500;color:var(--faint)}
.wrows{margin-top:12px;display:grid;gap:4px}
.wrow{display:grid;grid-template-columns:30px 1fr auto 28px;gap:10px;align-items:center;padding:5px 0 5px 2px}
.watch .coin{width:30px;height:30px;font-size:9.5px}
.wname{min-width:0;display:flex;flex-direction:column;line-height:1.35}
.wname b{font-size:13.5px;font-weight:500}
.wname span{font-size:11.5px;color:var(--faint);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wprice{display:flex;flex-direction:column;align-items:flex-end;font-size:13.5px;line-height:1.35}
.wprice .up,.wprice .down{font-size:11.5px}
.wprice .up{color:var(--pos-dark)}
.wprice .down{color:var(--neg-dark)}
.wrow .star{color:#F2B84B;display:flex;justify-content:center}

/* The app's light palette, applied to a drawn screen. The drawings are built
   from the page's own colour variables, so redefining them on the element is
   enough to repaint everything inside it. */
.device[data-theme="light"]{
  --ink-2:#FFFFFF;--ink-3:#F1F1F5;--line:#E5E5EC;--line-2:#D3D3DE;
  --text:#0D0D12;--muted:#5E5E70;--faint:#8A8A99;--pos-dark:#07784E;--neg-dark:#C3363C;
  color:var(--text);box-shadow:0 30px 60px -34px rgba(0,0,0,.6)}
.device{color:var(--text);transition:background .2s,border-color .2s}

.themeswitch{justify-self:end;display:flex;gap:2px;padding:2px;border:1px solid var(--line);
  border-radius:11px;background:var(--ink-2)}
.themeswitch[hidden]{display:none}
.themeswitch button{font:inherit;font-size:12.5px;font-weight:500;color:var(--muted);background:transparent;
  border:1px solid transparent;border-radius:9px;padding:6px 14px;cursor:pointer}
.themeswitch button[aria-pressed="true"]{color:var(--text);background:var(--ink-3);border-color:var(--line-2)}

/* The currencies, as the short codes the app uses. */
.chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.chips li{font-size:12.5px;font-weight:600;letter-spacing:.06em;color:var(--text);
  border:1px solid var(--line-2);border-radius:8px;padding:5px 10px;font-variant-numeric:tabular-nums}

@media (max-width:420px){
  .wrow{grid-template-columns:28px 1fr auto 22px;gap:8px}
  .watch .coin{width:28px;height:28px}
}

/* --------------------------------------------------------------- contact */
.contact{display:grid;gap:14px;min-width:0}
.contact .field{display:grid;gap:6px;min-width:0}
.contact label{font-size:13px;font-weight:500;color:var(--muted)}
.contact input,.contact textarea{width:100%;min-width:0;background:var(--ink-3);border:1px solid var(--line-2);
  border-radius:11px;padding:12px 14px;color:var(--text);font:inherit;font-size:15px;outline:none;
  transition:border-color .15s}
.contact textarea{resize:vertical;min-height:130px;line-height:1.5}
.contact input:focus,.contact textarea:focus{border-color:var(--brand)}
.contact [aria-invalid="true"]{border-color:var(--neg-dark)}
.contact .err{font-size:12.5px;color:var(--neg-dark);min-height:0}
.contact .err:empty{display:none}
.contact .captcha{min-height:0;max-width:100%;overflow:hidden}
.contact button[type=submit]{justify-self:start}
.contact button[disabled]{opacity:.55;cursor:not-allowed}
.contact .fine:empty{display:none}
.contact .fine.ok{color:var(--pos-dark)}
.contact .fine.bad{color:var(--neg-dark)}
@media (max-width:640px){.contact button[type=submit]{justify-self:stretch}}

/* ---------------------------------------------------------------- signup */
.signup{margin-top:38px;max-width:490px}
.signup .row{display:flex;gap:8px;flex-wrap:wrap}
/* The page's main action, and a quieter one beside it. Links, drawn to match
   the form's button. */
.cta{display:inline-flex;align-items:center;justify-content:center;background:var(--brand);color:#fff;
  border:1px solid var(--brand);border-radius:11px;padding:13px 22px;font-size:15px;font-weight:600;
  text-decoration:none;transition:opacity .15s,border-color .15s}
.cta:hover{opacity:.93}
.cta.ghost{background:transparent;color:var(--text);border-color:var(--line-2)}
.cta.ghost:hover{border-color:var(--brand);opacity:1}
.formlabel{font-size:14px;font-weight:500;color:var(--text);margin-bottom:10px}
#updates{margin-top:34px;padding-top:26px;border-top:1px solid var(--line)}
@media (max-width:420px){.cta{flex:1 1 100%}}
input[type=email]{flex:1 1 230px;min-width:0;background:var(--ink-3);border:1px solid var(--line-2);
  border-radius:11px;padding:13px 15px;color:var(--text);font:inherit;font-size:15px;outline:none;
  transition:border-color .15s}
input[type=email]:focus{border-color:var(--brand)}
input::placeholder{color:var(--faint)}
button[type=submit]{background:var(--brand);color:#fff;border:0;border-radius:11px;padding:13px 20px;
  font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:opacity .15s,transform .1s}
button[type=submit]:hover{opacity:.93}
button[type=submit]:active{transform:scale(.99)}
.consent{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:13px;
  color:var(--muted);line-height:1.5;cursor:pointer}
.consent input{margin-top:2px;width:16px;height:16px;accent-color:var(--brand);flex-shrink:0;cursor:pointer}
.fine{margin-top:12px;font-size:12.5px;color:var(--faint);line-height:1.6}
.fine a{color:var(--muted)}
.hp{position:absolute;left:-9999px}

/* -------------------------------------------------------------- sections */
section{padding:76px 0;border-bottom:1px solid var(--line)}
/* One surface throughout: .paper no longer changes the colours. */

h2{font-family:var(--display);font-weight:600;letter-spacing:-.022em;
  font-size:clamp(25px,2.9vw,35px);line-height:1.16;max-width:20ch}
h2 em{font-style:normal;color:var(--brand)}
.lede{margin-top:16px;color:var(--muted);max-width:56ch;font-size:16.5px}

/* The argument column plus a narrow margin column. */
.two{display:grid;grid-template-columns:1.25fr .75fr;gap:52px;align-items:start}
@media (max-width:940px){.two{grid-template-columns:1fr;gap:34px}}
.marginalia{font-size:14px;line-height:1.65;border-left:2px solid var(--brand);padding-left:18px}
section.paper .marginalia{border-color:var(--brand)}
.marginalia p + p{margin-top:12px}

/* A numbered list with rules, instead of a grid of identical cards. */
.ledger{margin-top:40px;border-top:1px solid var(--line)}
section:not(.paper) .ledger{border-color:var(--line)}
.ledger .item{display:grid;grid-template-columns:44px 1fr 1.05fr;gap:26px;padding:22px 0;
  border-bottom:1px solid var(--line);align-items:baseline}
section:not(.paper) .ledger .item{border-color:var(--line)}
.ledger .num{font-size:13px;font-weight:600;color:var(--faint);font-variant-numeric:tabular-nums;letter-spacing:.02em}
section:not(.paper) .ledger .num{color:var(--faint)}
.ledger h3{font-size:16.5px;font-weight:600;letter-spacing:-.01em}
.ledger p{font-size:14.5px;line-height:1.6}
@media (max-width:820px){
  .ledger .item{grid-template-columns:30px 1fr;gap:14px}
  .ledger p{grid-column:2}
}

/* Plain statements of what this is and is not. */
.stance{margin-top:34px;display:grid;gap:0;max-width:680px;border-top:1px solid var(--line)}
.stance div{display:flex;gap:14px;align-items:baseline;padding:15px 2px;border-bottom:1px solid var(--line);font-size:15px}
.stance .no{color:var(--neg-dark);font-weight:600;flex-shrink:0;width:34px}
.stance .yes{color:var(--pos-dark);font-weight:600;flex-shrink:0;width:34px}
.stance p{color:var(--muted)}
.stance strong{color:var(--text);font-weight:500}

/* A one-line pointer to the contact form, kept quieter than the text around it. */
.nudge{margin-top:22px;font-size:14px;color:var(--faint)}
.nudge a{color:var(--brand-lift);text-decoration:none;border-bottom:1px solid transparent;white-space:nowrap}
.nudge a:hover{border-color:var(--brand-lift)}
section.paper .nudge{color:var(--muted)}
section.paper .nudge a:hover{border-color:var(--brand)}

/* ------------------------------------------------------------------ news */
/* A heading with a small link set against it. .sechead is the same thing on
   a section that isn't the news. */
.newshead,.sechead{display:flex;align-items:baseline;justify-content:space-between;gap:18px;flex-wrap:wrap}
.newshead a,.sechead a{font-size:14px;color:var(--brand);text-decoration:none;border-bottom:1px solid transparent}
.newshead a:hover,.sechead a:hover{border-color:var(--brand)}
.stories{margin-top:30px;column-gap:44px}
.stories.two-col{columns:2}
@media (max-width:820px){.stories.two-col{columns:1}}
.story{break-inside:avoid;display:block;text-decoration:none;padding:16px 0;border-bottom:1px solid var(--line)}
section:not(.paper) .story{border-color:var(--line)}
.story:first-child{padding-top:0}
.story .head{font-size:16.5px;font-weight:500;line-height:1.4;letter-spacing:-.005em}
.story:hover .head{color:var(--brand)}
.story .meta{margin-top:6px;font-size:12.5px;color:var(--faint);letter-spacing:.02em}
section:not(.paper) .story .meta{color:var(--faint)}
.story .source{font-weight:600}
.newsnote{margin-top:22px;font-size:13px;color:var(--faint)}
.placeholder{height:13px;border-radius:7px;background:var(--ink-3);margin:20px 0}
section:not(.paper) .placeholder{background:var(--ink-3)}
.placeholder:nth-of-type(2){width:78%}
.placeholder:nth-of-type(3){width:88%}

/* --------------------------------------------------------------- answers */
.answers{margin-top:34px;max-width:780px;border-top:1px solid var(--line)}
.answers details{border-bottom:1px solid var(--line);padding:18px 2px}
.answers summary{cursor:pointer;font-size:16px;font-weight:500;list-style:none;display:flex;
  justify-content:space-between;gap:16px;align-items:baseline}
.answers summary::-webkit-details-marker{display:none}
.answers summary::after{content:"+";color:var(--faint);font-weight:400}
.answers details[open] summary::after{content:"–"}
.answers p{margin-top:12px;color:var(--muted);font-size:15px;max-width:62ch}
.answers p + p{margin-top:10px}

/* ---------------------------------------------------------------- footer */
footer{padding:46px 0 60px;font-size:13px;color:var(--faint)}
footer .cols{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:34px}
@media (max-width:720px){footer .cols{grid-template-columns:1fr 1fr}}
footer h4{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:var(--faint);
  font-weight:500;margin-bottom:12px}
footer ul{list-style:none;display:grid;gap:9px}
footer a{color:var(--muted);text-decoration:none}
footer a:hover{color:var(--text)}
footer .about{max-width:40ch;line-height:1.7}
footer .legal{margin-top:34px;padding-top:22px;border-top:1px solid var(--line);line-height:1.7;max-width:70ch}

@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* ------------------------------------------------- version 2 additions */

/* The light/dark switch in the header. */
.themebtn{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:36px;height:34px;
  background:transparent;border:1px solid var(--line-2);border-radius:9px;color:var(--muted);cursor:pointer}
.themebtn:hover{color:var(--text);border-color:var(--brand)}
.themebtn .moon{display:block}.themebtn .sun{display:none}
:root[data-theme="dark"] .themebtn .moon{display:none}
:root[data-theme="dark"] .themebtn .sun{display:block}

/* Each picture of the app in both palettes; the page shows the one that
   matches its own. A hidden lazy image is never fetched. */
:root:not([data-theme="dark"]) .for-dark{display:none!important}
:root[data-theme="dark"] .for-light{display:none!important}
.iphone{background:#1b1b22}
:root:not([data-theme="dark"]) .iphone{background:#E9E4D8;border-color:#CFC6B3;
  box-shadow:0 40px 70px -40px var(--shadow),inset 0 0 0 1.5px #F7F4EC}
:root:not([data-theme="dark"]) .iphone .status::before{background:#16140F}
:root:not([data-theme="dark"]) .iphone .screen{background:#F4F4F6}

/* The two tax years, big. */
.years{border-bottom:1px solid var(--line)}
.years .wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.year{padding:30px 0}
.year + .year{padding-left:36px;border-left:1px solid var(--line)}
.year .who{font-size:14px;color:var(--muted)}
.year .when{margin-top:4px;font-weight:600;font-size:clamp(24px,2.8vw,34px);letter-spacing:-.025em;line-height:1.15}
@media (max-width:700px){.years .wrap{grid-template-columns:minmax(0,1fr)}.year + .year{padding-left:0;border-left:0;border-top:1px solid var(--line)}}

/* The working papers, as the files in the zip. */
.files{margin-top:26px;border-top:1px solid var(--line-2);font-size:14px;max-width:520px}
.files li{list-style:none;display:flex;justify-content:space-between;gap:16px;padding:9px 0;border-bottom:1px solid var(--line)}
.files li span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.files li span:last-child{color:var(--faint);white-space:nowrap;font-size:13px}

/* More of the app: a row of phones, side by side, scrolling sideways on a
   narrow screen rather than shrinking to nothing. */
.gallery{margin-top:40px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:26px}
.gallery figure{margin:0;min-width:0}
.gallery .iphone{width:100%;border-radius:34px;padding:7px}
.gallery .iphone .screen{border-radius:28px}
.gallery figcaption{margin-top:14px;font-size:14px;color:var(--muted);line-height:1.5}
.gallery figcaption b{display:block;color:var(--text);font-weight:600}
@media (max-width:900px){
  .gallery{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:16px;padding-bottom:10px;
    margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px;scrollbar-width:none}
  .gallery::-webkit-scrollbar{display:none}
  .gallery figure{flex:0 0 62%;scroll-snap-align:start}
}
.swipe{display:none;margin-top:6px;font-size:13px;color:var(--faint)}
@media (max-width:900px){.swipe{display:block}}

/* The header has one more button than it did; on a phone the gaps give way
   so it still fits without pushing the page sideways. */
@media (max-width:440px){
  .masthead .bar{gap:10px}
  .brandmark span{font-size:16.5px}
  .enter{padding:8px 11px}
}
/* A column may be narrower than its longest unbroken line; the file names
   shorten with an ellipsis instead of widening the page. */
.two > *{min-width:0}
