/* Launchblog: a broadsheet in newsprint grey and ink. Fraktur only for the masthead; Newsreader for everything a paper
   prints, from headlines to the folio lines and the figures; a monospace only where a value is a machine string (a CA).
   One colour each for up and down, on numbers only. */
:root {
  --paper: #ecebe5;
  --paper-2: #e3e1d9;
  --field: #f5f4ef;
  --ink: #111110;
  --ink-2: #3b3a36;
  --ink-3: #64625b;
  --rule: #1a1a18;
  --hair: #b9b6ac;
  --down: #9e2a1f;
  --up: #1f6a3a;
  --serif: "Newsreader", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --turn-ms: 950ms;
  --pad: 36px;
}
* { box-sizing: border-box; }
html { background: #d8d6ce; scrollbar-color: #8f8c83 #d8d6ce; scrollbar-width: thin; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); font: 400 18px/1.5 var(--serif); font-optical-sizing: auto; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; caret-color: var(--ink); }
::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
img { max-width: 100%; }

/* the folio lines and labels a paper sets in tracked capitals */
.caps, .topline, .runhead, .sections, .th, .fld > span, .ear b, .figures h3, .block-head h3, .inside h3, .notices h3, .terms h3, .terms-h, .births-head, .foot, .pager, .notice .label {
  font-family: var(--serif); font-weight: 600; text-transform: uppercase; letter-spacing: 0.11em;
}

/* ---- the book: only the current page is in the flow; a turning page lies on top of it -------------------------------- */
.book { position: relative; max-width: 1240px; margin: 22px auto 96px; perspective: 2600px; perspective-origin: 50% 30%; }
.page { position: relative; display: none; background: var(--paper); padding: 0 var(--pad) 34px; min-height: calc(100vh - 118px); box-shadow: 0 1px 0 rgb(0 0 0 / 0.04), 0 22px 60px -30px rgb(0 0 0 / 0.35); cursor: pointer; }
.page.is-current, .page.is-under { display: block; }
/* the dog-eared corner says the page turns */
.page::after { content: ""; position: absolute; right: 0; bottom: 0; width: 26px; height: 26px; background: linear-gradient(135deg, var(--paper-2) 0 50%, #cfccc2 50% 100%); box-shadow: -2px -2px 4px rgb(0 0 0 / 0.08); transform-origin: 100% 100%; transition: transform 260ms cubic-bezier(.2,.7,.2,1); }
.page:hover::after { transform: scale(1.55); }
.leaf { position: absolute; left: 0; top: 0; width: 100%; z-index: 3; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.leaf > .page { display: block; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf > .back { position: absolute; inset: 0; background: linear-gradient(90deg, #dddbd3, #e9e8e2 60%, #e4e2da); transform: rotateY(180deg); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.leaf > .shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / 0) 0%, rgb(0 0 0 / 0.28) 100%); opacity: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.under-shadow { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgb(0 0 0 / 0.22), rgb(0 0 0 / 0) 55%); }
.leaf.fwd { animation: turn-fwd var(--turn-ms) cubic-bezier(.42,.06,.18,1) forwards; }
.leaf.back-turn { animation: turn-back var(--turn-ms) cubic-bezier(.42,.06,.18,1) forwards; }
.leaf.fwd > .shade { animation: shade-in var(--turn-ms) ease-in forwards; }
.leaf.back-turn > .shade { animation: shade-out var(--turn-ms) ease-out forwards; }
.under-shadow.fwd { animation: under-fwd var(--turn-ms) ease-out forwards; }
.under-shadow.back-turn { animation: under-back var(--turn-ms) ease-in forwards; }
@keyframes turn-fwd { 0% { transform: rotateY(0deg); } 45% { transform: rotateY(-78deg) skewY(-1.2deg) scaleX(0.985); } 100% { transform: rotateY(-180deg); } }
@keyframes turn-back { 0% { transform: rotateY(-180deg); } 55% { transform: rotateY(-102deg) skewY(1.2deg) scaleX(0.985); } 100% { transform: rotateY(0deg); } }
@keyframes shade-in { 0% { opacity: 0; } 60% { opacity: 1; } 100% { opacity: 1; } }
@keyframes shade-out { 0% { opacity: 1; } 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes under-fwd { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes under-back { 0% { opacity: 0; } 100% { opacity: 1; } }

.pager { position: fixed; right: 18px; bottom: 18px; z-index: 10; display: flex; align-items: center; gap: 2px; background: var(--ink); color: var(--paper); padding: 5px; font-size: 12px; box-shadow: 0 10px 30px -12px rgb(0 0 0 / 0.5); }
.pager span { padding: 0 12px; min-width: 112px; text-align: center; font-variant-numeric: tabular-nums; }
.pager button { display: grid; place-items: center; width: 38px; height: 34px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.pager button:hover:not(:disabled) { background: #2a2a27; }
.pager button:disabled { opacity: 0.3; cursor: default; }
.pager button:focus-visible { outline: 2px solid var(--paper); outline-offset: -3px; }

/* ---- the front page -------------------------------------------------------------------------------------------------- */
.topline { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0 10px; font-size: 11.5px; color: var(--ink-2); border-bottom: 1px solid var(--hair); }
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 16px 0 10px; border-bottom: 4px double var(--rule); }
.title-wrap { text-align: center; }
.title { margin: 0; font: 400 clamp(56px, 9vw, 118px)/0.95 "UnifrakturMaguntia", serif; letter-spacing: -0.005em; }
.subtitle { margin: 7px 0 0; font: 600 12.5px/1 var(--serif); text-transform: uppercase; letter-spacing: 0.24em; color: var(--ink-2); }
.ear { font: 400 13.5px/1.35 var(--serif); color: var(--ink-2); border: 1px solid var(--rule); padding: 10px 12px; max-width: 220px; }
.ear b { display: block; font-size: 11.5px; color: var(--ink); margin-bottom: 6px; }
.ear--right { justify-self: end; text-align: right; }
.ear--right .ca { display: block; font: 500 11.5px/1.35 var(--mono); word-break: break-all; color: var(--ink); }
.ear button { display: inline-block; margin-top: 8px; font: 600 12px/1 var(--serif); background: var(--ink); color: var(--paper); border: 0; padding: 7px 10px; cursor: pointer; }

/* the launch desk box: the paper's one offer, set like a lead story with tomorrow's edition beside it */
.desk-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding: 24px 0 22px; border-bottom: 1px solid var(--rule); }
.desk-copy h2 { margin: 0; font: 600 clamp(36px, 4.6vw, 60px)/1.02 var(--serif); letter-spacing: -0.02em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.desk-deck { margin: 14px 0 0; font-size: clamp(18px, 1.7vw, 20.5px); line-height: 1.45; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }
.desk-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 22px 0 0; }
.press { display: inline-block; font: 600 18px/1 var(--serif); letter-spacing: 0.01em; padding: 16px 22px; background: var(--ink); color: var(--paper); border: 0; cursor: pointer; text-decoration: none; transition: background 160ms ease-out; }
.press:hover { background: #2c2c29; }
.press:disabled { opacity: 0.45; cursor: default; }
.press:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.desk-more { font-weight: 600; }
.desk-fine { margin: 14px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); max-width: 52ch; }
.desk-paper { margin: 0; }
.paper3d { position: relative; height: clamp(320px, 40vw, 470px); cursor: grab; touch-action: pan-y; }
.paper3d:active { cursor: grabbing; }
.paper3d canvas { display: block; width: 100% !important; height: 100% !important; }
.desk-paper figcaption { margin-top: 4px; text-align: center; font-size: 13px; font-style: italic; color: var(--ink-3); }

.sections { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.sections a { text-decoration: none; }
.sections a:hover { text-decoration: underline; }

.front { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; padding: 24px 0 26px; border-bottom: 1px solid var(--rule); }
.headline { margin: 0; font: 500 clamp(32px, 4vw, 52px)/1.04 var(--serif); letter-spacing: -0.015em; font-variation-settings: "opsz" 72; text-wrap: balance; }
.dek { margin: 12px 0 0; font: 400 clamp(18px, 1.8vw, 21px)/1.4 var(--serif); color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.body { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hair); }
.cols { columns: 3 220px; column-gap: 26px; column-rule: 1px solid var(--hair); }
.body p { margin: 0 0 10px; text-align: justify; hyphens: auto; font-size: 17px; line-height: 1.52; }
.dateline { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.82em; }
.num { font-variant-numeric: lining-nums tabular-nums; font-weight: 600; white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }

.figures { border-left: 1px solid var(--rule); padding-left: 24px; }
.figures h3, .block-head h3 { margin: 0; font-size: 12.5px; }
.figures h3 { padding-bottom: 9px; border-bottom: 2px solid var(--rule); }
.figures table { width: 100%; border-collapse: collapse; margin-top: 2px; }
.figures th, .figures td { padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 15.5px; vertical-align: baseline; }
.figures th { text-align: left; font-weight: 400; color: var(--ink-2); }
.figures td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
.fine { font: 400 13.5px/1.45 var(--serif); color: var(--ink-3); }

.frontfoot { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; padding: 18px 0 0; }
.inside h3, .notices h3 { margin: 0 0 8px; font-size: 12px; }
.inside ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
.inside li { padding: 8px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.35; }
.inside li b { display: block; font-weight: 600; }
.inside li span { color: var(--ink-3); font-size: 13.5px; }
.notices { border-left: 1px solid var(--rule); padding-left: 24px; }
a.notice { display: block; text-decoration: none; border: 1px solid var(--rule); padding: 10px 12px; font-size: 15px; line-height: 1.35; }
a.notice b { display: block; margin-top: 6px; font-size: 18px; }
.notice .label { font-size: 11px; color: var(--ink-3); }
.notice-empty { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.notice-empty a { font-weight: 600; }
.jump { margin: 18px 0 0; text-align: right; font-style: italic; font-size: 15px; padding-right: 48px; }

/* ---- inner pages ------------------------------------------------------------------------------------------------------ */
.runhead { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 10px; font-size: 11.5px; color: var(--ink-2); border-bottom: 4px double var(--rule); }
.runhead a { text-decoration: none; }
.page-title { margin: 0; font: 600 clamp(28px, 3vw, 38px)/1.05 var(--serif); letter-spacing: -0.01em; }
.standfirst { margin: 14px 0 8px; font: italic 400 20px/1.4 var(--serif); color: var(--ink-2); max-width: 60ch; }
.block { padding: 22px 0 18px; border-bottom: 1px solid var(--rule); }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 4px; border-bottom: 2px solid var(--rule); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.split .block + .block { border-left: 1px solid var(--rule); padding-left: 32px; margin-left: -1px; }
.table { display: grid; }
.tr { display: grid; grid-template-columns: 34px minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.tr:hover:not(.th) { background: var(--paper-2); }
.th { padding: 8px 0 6px; font-size: 11px; color: var(--ink-3); }
.tr .r { text-align: right; }
.tr img, .tr .ph { width: 34px; height: 34px; object-fit: cover; filter: grayscale(1) contrast(1.05); border: 1px solid var(--hair); background: var(--paper-2); }
.coin b { display: block; font: 700 17px/1.15 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin span { font-size: 13px; color: var(--ink-3); }
.cell { font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cell small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; font-style: italic; }
.empty { padding: 14px 0; font-style: italic; color: var(--ink-3); }
.births { margin: 14px 0 18px; }
.births-head { margin: 6px 0 4px; font-size: 12px; }
.births-empty { margin: 4px 0 0; padding: 12px 14px; border: 1px solid var(--hair); font-style: italic; color: var(--ink-2); }
.births-empty a { font-style: normal; font-weight: 600; }
.method p { max-width: 75ch; margin: 10px 0 0; font-size: 16px; color: var(--ink-2); }
.archive { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; }
.archive a[aria-current] { font-weight: 700; text-decoration: none; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 0; font-size: 11.5px; color: var(--ink-2); }
.foot .links { display: flex; gap: 18px; }

/* ---- the launch desk and the record ------------------------------------------------------------------------------------- */
.desk, .record { cursor: default; }
.desk::after, .record::after { display: none; }
.desk-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 30px; align-items: center; padding: 20px 0 16px; border-bottom: 1px solid var(--rule); }
.desk-intro .page-title { font-size: clamp(36px, 4.6vw, 58px); }
.desk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; padding: 22px 0 10px; }
.desk-form { display: grid; gap: 14px; align-content: start; }
.fld { display: grid; gap: 6px; }
.fld > span { font-size: 11px; color: var(--ink-3); }
.fld input, .fld textarea { font: 400 17px/1.4 var(--serif); color: var(--ink); background: var(--field); border: 1px solid var(--hair); padding: 11px 12px; border-radius: 0; width: 100%; }
.fld input[type="file"] { padding: 9px; font-size: 15px; color: var(--ink-3); cursor: pointer; }
.fld input[type="file"]::file-selector-button { font: 600 14px/1 var(--serif); color: var(--paper); background: var(--ink); border: 0; border-radius: 0; padding: 9px 14px; margin-right: 12px; cursor: pointer; }
.fld input[type="file"]:hover::file-selector-button { background: var(--ink-2); }
.fld input::placeholder, .fld textarea::placeholder { color: #8a877f; }
.fld input:focus, .fld textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: var(--ink); }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wallets { display: flex; flex-wrap: wrap; gap: 8px; }
.wbtn { display: inline-flex; align-items: center; gap: 8px; font: 600 15px/1 var(--serif); padding: 10px 13px; background: transparent; border: 1px solid var(--rule); cursor: pointer; }
.wbtn:hover { background: var(--paper-2); }
#status { min-height: 1.4em; }
#status.bad { color: var(--down); }
.terms { border-left: 1px solid var(--rule); padding-left: 24px; scroll-margin-top: 20px; }
.terms h3, .terms-h { margin: 0 0 8px; font-size: 12px; }
.terms dl { margin: 0 0 12px; }
.terms dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.terms dt { color: var(--ink-2); }
.terms dd { margin: 0; font-weight: 600; text-align: right; }
.gets { margin: 0 0 14px; padding: 0; list-style: none; }
.gets li { padding: 8px 0; border-top: 1px solid var(--hair); font-size: 15px; line-height: 1.4; }
.mono { font-family: var(--mono); font-size: 0.88em; }
.rec { padding: 22px 0; }
.rec-head { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.rec-img { width: 120px; height: 120px; object-fit: cover; border: 1px solid var(--rule); filter: grayscale(1) contrast(1.05); }
.tick { font-size: 0.55em; font-weight: 500; color: var(--ink-3); }
.rec-figures { margin: 12px 0; }
.rec-figures table { width: 100%; border-collapse: collapse; }
.rec-figures th, .rec-figures td { padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.rec-figures th { text-align: left; font-weight: 400; color: var(--ink-2); }
.rec-figures td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---- phones ------------------------------------------------------------------------------------------------------------ */
@media (max-width: 900px) {
  :root { --pad: 16px; }
  .book { margin: 0 auto calc(64px + env(safe-area-inset-bottom)); perspective: 1600px; }
  .page { min-height: 100vh; box-shadow: none; }
  .page::after { display: none; }
  .pager { left: 0; right: 0; bottom: 0; justify-content: space-between; padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgb(0 0 0 / 0.5); }
  .pager button { width: 48px; height: 40px; }
  .topline { font-size: 11px; }
  .masthead { grid-template-columns: 1fr; gap: 6px; padding: 12px 0 10px; }
  .subtitle { font-size: 11px; letter-spacing: 0.14em; text-wrap: balance; }
  .ear--left { display: none; }
  .ear--right { justify-self: center; text-align: center; max-width: none; padding: 7px 12px; }
  .desk-box { grid-template-columns: 1fr; gap: 6px; padding: 18px 0 14px; }
  .desk-copy h2 { font-size: clamp(34px, 9.6vw, 44px); }
  .desk-deck { font-size: 17.5px; }
  .desk-cta { margin-top: 18px; }
  .desk-cta .press { flex: 1 1 100%; text-align: center; }
  .paper3d { height: min(108vw, 470px); }
  .sections { justify-content: flex-start; gap: 8px 18px; font-size: 11px; }
  .front { grid-template-columns: 1fr; gap: 20px; }
  .cols { columns: 1; }
  .figures { border-left: 0; padding-left: 0; }
  .frontfoot { grid-template-columns: 1fr; }
  .inside ol { grid-template-columns: 1fr; }
  .notices { border-left: 0; padding-left: 0; }
  .jump { padding-right: 0; }
  .split { grid-template-columns: 1fr; }
  .split .block + .block { border-left: 0; padding-left: 0; margin-left: 0; }
  .tr { grid-template-columns: 30px minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tr .hide-sm, .hide-sm { display: none; }
  .tr img, .tr .ph { width: 30px; height: 30px; }
  .desk-intro { grid-template-columns: 1fr; gap: 4px; }
  .runhead { font-size: 11px; }
  .runhead span:nth-child(2) { display: none; }
  .desk-grid { grid-template-columns: 1fr; gap: 24px; }
  .terms { border-left: 0; padding-left: 0; border-top: 2px solid var(--rule); padding-top: 14px; }
  .fld-row { grid-template-columns: 1fr; }
  .fld input, .fld textarea { font-size: 16px; }
  .rec-head { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .rec-img { width: 72px; height: 72px; }
}
@media (prefers-reduced-motion: reduce) { :root { --turn-ms: 1ms; } .page::after { transition: none; } }
