/* Layout: a hanging scroll. Ink-black mounting, equal parchment plates stacked down it.
   On every plate the headline sits top-left, the supporting text bottom-right,
   and a brush drawing fills one of the two empty corners. */
:root {
  --ink: #141312;          /* sumi, full strength */
  --ink-2: #34312d;        /* body text on paper */
  --ink-3: #6f6b64;        /* diluted ink, secondary */
  --ink-4: #a39e95;        /* pale wash */
  --paper: #e7e2d7;        /* aged parchment, greyed */
  --paper-hi: #f1ede4;     /* the unpainted highlight */
  --mount: #121110;        /* scroll mounting behind the plates */
  --mount-2: #1d1b19;
  --mount-text: #b9b4aa;
  --brick: #9b3b2b;        /* brick-red ink, only for a few important points */
  --bar: #ffffff;          /* the toolbar */
  --bar-line: #dcd8d0;

  --display: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --body: "Zilla Slab", "Rockwell", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --plate-h: 700px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--mount); }
body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 20% -10%, var(--mount-2), transparent 70%),
    var(--mount);
  color: var(--mount-text);
  font: 500 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--paper-hi); outline-offset: 3px; }
.plate :focus-visible { outline-color: var(--ink); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter-l); top: 8px; z-index: 50; background: var(--paper); color: var(--ink); padding: 8px 12px; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Toolbar: white, as on fotosafe.net ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bar); }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--bar); color: var(--ink); color-scheme: light;
  border-bottom: 1px solid var(--bar-line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.top-in {
  max-width: 1280px; margin: 0 auto;
  padding-block: 8px; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: flex; align-items: center; gap: 28px;
}
.top :focus-visible { outline-color: var(--ink); }
/* the logo, then the wordmark with its O drawn as a brick-red camera lens */
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.mark-logo { width: 4rem; height: auto; display: block; margin-block: -6px; }
.mark-word { font: 700 2.05rem/1 var(--display); letter-spacing: -0.02em; }
.mark-o { display: inline-block; width: 0.6em; height: 0.6em; margin: 0 0.015em 0 0.02em; vertical-align: -0.045em; color: var(--brick); overflow: visible; }
.nav { display: flex; align-items: center; gap: 22px; flex: 1; font: 500 0.95rem/1 var(--body); }
.nav a { color: var(--ink-3); text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav-sep { width: 1px; height: 18px; background: var(--bar-line); }
.nav .app { color: var(--ink-3); }
/* account bar: markup and ids are owned by /app/account.js */
.account-bar { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-left: auto; }
.account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.account-line {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px;
  margin: 0; max-width: 30rem; font: 500 0.85rem/1.35 var(--body); color: var(--ink-3); text-align: right;
}
.account-line .button, .account-actions .button { padding: 0.55rem 0.95rem; }
#usage { font: 500 0.75rem/1.3 var(--mono); color: var(--ink-3); }

/* the sign-in dialog and the delete panel are small parchment sheets */
.account-dialog { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); }
.account-dialog::backdrop { background: rgba(10, 9, 8, .72); backdrop-filter: blur(2px); }
.account {
  display: grid; gap: 12px; margin: 0;
  color: var(--ink-2); font: 500 0.95rem/1.45 var(--body);
}
.account-dialog .account, .account-panel {
  position: relative; isolation: isolate;
  width: min(25rem, calc(100vw - 32px));
  padding: 30px 28px 26px;
}
.account-dialog .account::before, .account-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grain), radial-gradient(120% 90% at 50% 40%, var(--paper-hi), var(--paper) 70%, #d6d0c3);
  box-shadow: inset 0 0 40px rgba(70, 60, 46, .28), 0 18px 50px rgba(0, 0, 0, .45);
  filter: url(#deckle);
}
.account-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 3; }
.account h2, #account-title { margin: 0; font: 700 2rem/1 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.account-hint { margin: 0; color: var(--ink-3); font-size: 0.9rem; }
.account label { display: grid; gap: 4px; font: 500 0.72rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.account input:not([type="checkbox"]) {
  font: 500 1rem/1.3 var(--body); color: var(--ink); text-transform: none; letter-spacing: 0;
  background: rgba(255, 255, 255, .45); border: 0; border-bottom: 2px solid var(--ink); border-radius: 0;
  padding: 0.55rem 0.2rem;
}
.account input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.account .review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 0; }
.account .button { background: var(--ink); color: var(--paper-hi); padding: 0.7rem 1.1rem; }
.account .button:hover { background: var(--ink-2); }
.account .button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.account .button-quiet:hover { background: rgba(20, 19, 18, .06); }
.account .button-google { display: flex; gap: 0.65rem; width: 100%; background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px #747775; }
.button-google svg { width: 1.1rem; height: 1.1rem; flex: none; }
.account-or { margin: 0; text-align: center; font: 500 0.72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.account-agree { display: flex !important; gap: 0.55rem; align-items: flex-start; font: 500 0.88rem/1.4 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ink-2) !important; }
.account-agree input { margin-top: 0.2rem; accent-color: var(--ink); }
.account-agree a, .account a { color: var(--ink); font-weight: 700; }
.account-switch { justify-self: start; padding: 0; border: 0; background: none; color: var(--ink); font: 700 0.88rem/1.3 var(--body); cursor: pointer; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
#account-error, .delete-error { margin: 0; color: var(--brick); font-weight: 700; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 0.9rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 0.6rem 1rem; border: 0; border-radius: 2px;
  background: var(--paper); color: var(--ink);
}
.top .button { background: var(--ink); color: var(--bar); }
.top .button:hover { background: var(--ink-2); }
.top .button-quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.top .button-quiet:hover { background: #f1efea; }
.menu-btn { display: none; margin-left: auto; font: 700 0.9rem/1 var(--body); background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 0.55rem 0.9rem; border-radius: 2px; cursor: pointer; }

/* ---------- The scroll ---------- */
main {
  max-width: 1280px; margin: 0 auto;
  padding-block: 36px 56px; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: grid; gap: 34px;
}

.plate {
  position: relative; isolation: isolate;
  min-height: var(--plate-h);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  column-gap: 24px;
  padding: clamp(28px, 4.4vw, 64px);
  color: var(--ink-2);
}
/* the sheet itself: texture, foxing, darkened edges, torn outline */
.plate::before, .sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    var(--fibres),
    var(--grain),
    radial-gradient(380px 260px at 88% 14%, rgba(120, 108, 90, .14), transparent 70%),
    radial-gradient(300px 220px at 8% 92%, rgba(95, 86, 72, .16), transparent 70%),
    radial-gradient(160px 120px at 62% 78%, rgba(130, 118, 98, .10), transparent 70%),
    radial-gradient(120% 90% at 50% 45%, var(--paper-hi), var(--paper) 62%, #d6d0c3 100%);
  box-shadow: inset 0 0 90px rgba(70, 60, 46, .30), inset 0 0 18px rgba(70, 60, 46, .25);
  filter: url(#deckle);
}
.plate::after { /* faint fold crease, like a scroll that has been rolled */
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 2px;
  background: linear-gradient(to bottom, transparent, rgba(80, 70, 56, .09) 20%, rgba(80, 70, 56, .06) 80%, transparent);
}
:root {
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .24 0 0 0 0 .21 0 0 0 0 .17 0 0 0 .42 -.08'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  --fibres: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .27 0 0 0 0 .22 0 0 0 .42 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
}

.plate .head { grid-column: 1 / 9; grid-row: 1; display: grid; gap: 18px; align-content: start; position: relative; z-index: 2; }
.plate .support { grid-column: 8 / 13; grid-row: 3; align-self: end; display: grid; gap: 16px; position: relative; z-index: 2; min-width: 0; }
.plate .support.wide { grid-column: 6 / 13; }
.plate.art-tr .head { grid-column: 1 / 8; }

.eyebrow {
  font: 500 0.74rem/1.3 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 34px; height: 3px; background: var(--ink); border-radius: 2px; transform: skewX(-20deg); }

.plate h1, .plate h2 {
  margin: 0;
  font: 700 clamp(2.5rem, 5.4vw, 5rem)/0.98 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  max-width: 13ch;
}
.plate h2 { font-size: clamp(2.2rem, 4.6vw, 4.2rem); }
.plate .soft { color: var(--ink-3); display: block; }
.plate .brick { color: var(--brick); display: block; }
.plate .red-word { color: var(--brick); }
.plate .fine { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.plate h3 { margin: 0; font: 700 1.15rem/1.2 var(--display); color: var(--ink); }
.plate p { margin: 0; max-width: 46ch; }
.support > p:first-child, .lede { font-size: 1.12rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 0.86em; }

/* brick-red ink is rationed: a dry brush stroke under one or two important points a page */
.red {
  color: var(--ink); font-weight: 700;
  padding: 0 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cfilter id='b' x='-5%25' y='-40%25' width='110%25' height='180%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='2' seed='3' result='s'/%3E%3CfeColorMatrix in='s' type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.8' result='m'/%3E%3CfeComposite in='SourceGraphic' in2='m' operator='in' result='c'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.03' numOctaves='2' result='d'/%3E%3CfeDisplacementMap in='c' in2='d' scale='5' xChannelSelector='R' yChannelSelector='G'/%3E%3C/filter%3E%3Cpath filter='url(%23b)' fill='%239b3b2b' fill-opacity='.85' d='M3 24 C40 12 140 9 250 10 C320 10 370 12 397 16 C385 22 360 27 300 30 C200 35 90 36 8 34 C2 32 1 27 3 24 Z'/%3E%3C/svg%3E") 0 92% / 100% 0.62em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* brush drawings */
.art { position: absolute; z-index: 0; pointer-events: none; height: auto; max-width: 100%; }
.art.bl { left: 2%; bottom: 3%; width: min(46%, 540px); max-height: 50%; }
.plate:has(.support.wide) .art.bl { width: 36%; }
/* the People plate is taller, so the group photograph can be read */
.plate.tall { min-height: calc(var(--plate-h) * 1.3); }
.plate.tall .art.bl { width: min(56%, 720px); max-height: 72%; }
.plate.tall .art.tr { width: min(44%, 560px); max-height: 43%; }
/* the world map shares a standard-height plate with three paragraphs of small print */
.art.tr.world { width: min(39%, 490px); top: 3%; }
.plate:has(.art.world) .support { gap: 12px; }
.plate:has(.art.world) .fine { font-size: 0.9rem; line-height: 1.45; }
.plate:has(.support.wide) .art.tr { max-height: 38%; }
.art.tr { right: 2%; top: 4%; width: min(38%, 440px); max-height: 46%; }
.art.fade { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.art.wide-bl { left: 0; bottom: 0; width: 70%; }
.art text { font-family: var(--mono); font-size: 15px; letter-spacing: .08em; fill: var(--ink-3); }

/* ---------- Things inside the supporting text ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.3rem; border: 0; background: transparent; color: var(--paper-hi);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); filter: url(#brush-soft); border-radius: 2px; }
.btn:hover::before { background: var(--ink-2); }
.btn-ghost { color: var(--ink); }
.btn-ghost::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover::before { background: rgba(20, 19, 18, .06); }

.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 0.78rem/1.4 var(--mono); letter-spacing: .04em; color: var(--ink-3); }
.ticks li::before { content: "— "; color: var(--ink-4); }

.ledger { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding-block: 12px; border-bottom: 1px solid rgba(20, 19, 18, .22); align-items: baseline; }
.ledger li > :first-child { min-width: 0; }
.ledger b { color: var(--ink); font-weight: 700; }
.ledger .val { font: 500 0.85rem/1.3 var(--mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.ledger .note { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.95rem; }
.ledger.steps { counter-reset: s; }
.ledger.steps li { grid-template-columns: 2.2rem minmax(0, 1fr) auto; }
.ledger.steps li::before { counter-increment: s; content: counter(s, decimal); font: 700 1.5rem/1 var(--display); color: var(--ink); grid-row: span 2; }
.ledger.steps .note { grid-column: 2 / -1; }
.ledger.start { counter-reset: s 3; }

.figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; border-top: 2px solid var(--ink); padding-top: 16px; }
.figs div { display: grid; gap: 2px; }
.figs .fig { font: 700 2rem/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.figs .fig small { font-size: .55em; }
.figs b { font-weight: 700; color: var(--ink-2); font-size: 0.95rem; }
.figs span:last-child { color: var(--ink-3); font-size: 0.88rem; line-height: 1.35; }

.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th { text-align: left; font: 500 0.7rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 10px 12px 8px 0; }
td { padding: 10px 12px 10px 0; border-top: 1px solid rgba(20, 19, 18, .2); vertical-align: top; }
td b { color: var(--ink); }
td.num { font: 500 0.85rem/1.4 var(--mono); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.ours td { font-weight: 700; color: var(--ink); }

.faq { display: grid; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid rgba(20, 19, 18, .22); }
.faq summary { cursor: pointer; list-style: none; padding: 12px 28px 12px 0; position: relative; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font: 700 1.2rem/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; color: var(--ink-2); }

.billing { display: inline-flex; border: 2px solid var(--ink); border-radius: 2px; width: fit-content; }
.billing button { font: 700 0.92rem/1 var(--body); padding: 0.7rem 1rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.billing button[aria-pressed="true"] { background: var(--ink); color: var(--paper-hi); }

.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr code { font: 500 0.95rem/1.3 var(--mono); color: var(--ink); user-select: all; }
.chip { font: 500 0.75rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 0.4rem 0.6rem; border: 1px solid var(--ink-3); background: transparent; color: var(--ink); border-radius: 2px; cursor: pointer; }
.chip:hover { border-color: var(--ink); }

.notice { font: 500 0.8rem/1.45 var(--mono); color: var(--ink-3); border-left: 3px solid var(--ink-3); padding-left: 12px; }
.clauses { display: grid; gap: 14px; }
.clauses h3 { font-size: 1.05rem; }
.clauses p { font-size: 1rem; }
.more a { font-weight: 700; color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- Footer (from fotosafe.net) ---------- */
.foot {
  max-width: 1280px; margin: 0 auto;
  padding-block: 28px 40px; padding-left: var(--gutter-l); padding-right: var(--gutter-r);
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  font: 500 0.92rem/1.4 var(--body); color: var(--ink-4);
  border-top: 1px solid #2a2724;
}
.foot p { margin: 0; }
.foot a { color: var(--mount-text); text-decoration: none; }
.foot a:hover { color: var(--paper-hi); }
.foot nav { display: flex; gap: 22px; margin-left: auto; }
.foot-copy { display: inline-flex; align-items: center; gap: 10px; }
.foot-copy img { width: 1.8rem; height: auto; background: var(--paper-hi); border-radius: 3px; padding: 2px; filter: grayscale(.4); }

/* ---------- Ink drawing in on load ---------- */
@media (prefers-reduced-motion: no-preference) {
  .draw { animation: draw 2.4s cubic-bezier(.6, .05, .3, 1) .2s both; }
  .bleed { animation: bleed 1.8s ease-out both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bleed { from { opacity: .25; transform: scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 1120px) {
  .menu-btn { display: inline-block; }
  .top-in { flex-wrap: wrap; gap: 12px 20px; }
  .nav { display: none; order: 3; }
  .menu-btn { order: 2; margin-left: 0; }
  .account-bar { order: 1; }
  .top.open .nav { display: flex; flex-direction: column; align-items: flex-start; flex-basis: 100%; gap: 6px; padding-block: 8px; }
  .top.open .nav-sep { width: 60px; height: 1px; }
}
@media (max-width: 560px) {
  .top-in { gap: 10px; }
  .account-bar { flex-basis: 100%; justify-content: flex-start; order: 4; }
  .account-line { justify-content: flex-start; text-align: left; }
  .menu-btn { margin-left: auto; }
}
@media (max-width: 860px) {
  :root { --plate-h: 600px; }
  .plate { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; row-gap: 20px; }
  .plate .head, .plate.art-tr .head { grid-column: 1; grid-row: 1; padding-right: 54px; }
  .plate .support, .plate .support.wide { grid-column: 1; grid-row: 4; }
  .art, .art.bl, .art.tr, .art.wide-bl { position: relative; inset: auto; grid-row: 2; grid-column: 1; width: 78%; max-width: 360px; justify-self: center; opacity: .9; }
  .figs .fig { font-size: 1.6rem; }
  .foot nav { margin-left: 0; }
}

/* ---------- Legal text: one long sheet, headings left, text right ---------- */
.sheet {
  position: relative; isolation: isolate;
  padding: clamp(28px, 4.4vw, 64px);
  display: grid; gap: 30px;
  color: var(--ink-2);
}
.sheet section {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 48px;
  border-top: 2px solid var(--ink); padding-top: 18px;
}
.sheet h2 { margin: 0; font: 700 clamp(1.6rem, 2.6vw, 2.3rem)/1.05 var(--display); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.sheet .body { display: grid; gap: 14px; min-width: 0; max-width: 64ch; }
.sheet p { margin: 0; }
.sheet ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 8px; }
.sheet code { font: 500 0.88em/1 var(--mono); color: var(--ink); }
.sheet a, .plate .support a:not(.btn) { color: var(--ink); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .sheet section { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .mark-word { font-size: 1.6rem; }
  .mark-logo { width: 3rem; }
}
@media (max-width: 860px) {
  .plate:has(.support.wide) .art.bl, .plate:has(.support.wide) .art.tr { width: 78%; max-height: none; }
}
@media (max-width: 860px) {
  .plate.tall { min-height: calc(var(--plate-h) * 1.25); }
  .plate.tall .art.bl { width: 100%; max-width: 560px; max-height: none; }
}
@media (max-width: 860px) {
  .art.tr.world { width: 100%; max-width: 520px; }
}
/* the trust plate is the one shorter plate: map and small print stack in the right column and the plate fits them */
@media (min-width: 861px) {
  .plate:has(.art.world) { min-height: 0; grid-template-rows: auto auto; }
  .plate:has(.art.world) .head { grid-row: 1 / span 2; }
  .plate:has(.art.world) .art.world {
    position: relative; inset: auto; grid-column: 8 / 13; grid-row: 1;
    width: 100%; max-width: 490px; max-height: none; justify-self: start;
    margin-top: calc(20px - clamp(28px, 4.4vw, 64px));
  }
  .plate:has(.art.world) .support { grid-row: 2; align-self: start; margin-top: 24px; }
}
/* headlines set as fixed lines (every-device plate): one phrase per line */
.plate .line { white-space: nowrap; }
/* ---------- Compare: one sheet with a four-column table ---------- */
.sheet.compare { gap: 18px; }
.compare table { min-width: 760px; table-layout: fixed; font-size: 1rem; }
.compare thead th { font: 700 1.15rem/1.2 var(--display); letter-spacing: -0.01em; text-transform: none; color: var(--ink); padding: 14px 18px 12px 0; vertical-align: bottom; }
.compare thead th:first-child { width: 16%; }
.compare thead th.ours { border-top: 4px solid var(--brick); }
.compare tbody th { text-align: left; font: 500 0.72rem/1.35 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 16px 18px 16px 0; vertical-align: top; border-top: 1px solid rgba(20, 19, 18, .2); }
.compare tbody td { padding: 16px 18px 16px 0; line-height: 1.45; color: var(--ink-3); }
.compare tbody td.ours { color: var(--ink); font-weight: 700; }
.compare .notice { margin-top: 6px; }
/* plan detail table */
.plans .yes { font-weight: 700; color: var(--ink); }
.plans .no { color: var(--ink-4); }
.plans .soon { font: 500 0.7rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brick); }
.plans tbody tr:nth-last-child(-n+2) td { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Your library (/home/) ---------- */
.meter { display: grid; gap: 10px; }
.meter-track { position: relative; height: 18px; border-radius: 2px; background: rgba(20, 19, 18, .08); box-shadow: inset 0 0 0 1.5px rgba(20, 19, 18, .35); overflow: hidden; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); filter: url(#brush-soft); transition: width 1.2s cubic-bezier(.3, .7, .2, 1); }
.meter-label { font: 500 0.85rem/1.4 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.home-recent { gap: 26px; }
.contact-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 30px 26px; }
.print { margin: 0; display: grid; gap: 8px; transform: rotate(var(--tilt, 0deg)); transition: transform .3s ease; }
.print:hover { transform: rotate(0deg) translateY(-3px); }
.print-frame { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--paper-hi); padding: 8px; box-shadow: 0 0 0 2px var(--ink), 0 8px 18px rgba(40, 34, 26, .18); filter: url(#brush-soft); }
.print-frame img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(.15) contrast(1.03); }
.print-frame.no-thumb::after { content: ""; position: absolute; inset: 8px; background: linear-gradient(160deg, rgba(20, 19, 18, .08), rgba(20, 19, 18, .28)); }
.print figcaption { font: 500 0.72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.home-empty { color: var(--ink-2); max-width: 60ch; }
.home-empty a, .home-recent a { color: var(--ink); font-weight: 700; }
.home-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile { display: grid; gap: 6px; align-content: start; padding: 18px; text-decoration: none; color: var(--ink-2); border-top: 3px solid var(--ink); background: rgba(255, 255, 255, .28); transition: background .2s ease; }
a.tile:hover { background: rgba(255, 255, 255, .55); }
.tile b { font: 700 1.35rem/1.15 var(--display); color: var(--ink); }
.tile span:last-child { font-size: 0.92rem; color: var(--ink-3); }
.tile-kicker { font: 500 0.7rem/1.3 var(--mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.tile-soon { border-top-color: var(--brick); }
.tile-soon b { color: var(--brick); }
@media (max-width: 860px) { .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .home-tiles { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .meter-fill, .print { transition: none; } }
/* signed out, /home/ shows only the greeting and a way to sign in */
body.home-signed-out .home-recent, body.home-signed-out .home-tiles, body.home-signed-out .meter-track { display: none; }
