/* uredim.si: registered-letter world. Kraft envelope ground, white bond sheets, blue-black ink,
   one registered red for the R label and the order action, a postage stamp per service. */
@font-face {
  font-family: "Archivo";
  src: url("/_shared/fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  src: url("/_shared/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --kraft: #c69c66;
  --kraft-edge: #9c7443;
  --kraft-ink: #2f200d;
  --kraft-ink-2: #45311a;
  --bond: #fdfdfb;
  --bond-2: #f3f2ec;
  --ink: #191d2e;
  --ink-2: #474c60;
  --ink-3: #62677c;
  --rule: #dcd9cf;
  --rule-strong: #bdb9ac;
  --red: #c2221e;
  --red-ink: #9d1916;
  --error: #a3123f;
  --glassine: #eef1f2;
  --focus-wash: #f6f7fd;
  --focus: #1d43c4;
  --sheet-shadow: 0 1px 1px rgb(47 32 13 / 0.18), 0 10px 28px -12px rgb(47 32 13 / 0.45);
  --wide: "wdth" 112;
  --narrow: "wdth" 72;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--kraft-edge) var(--kraft); }
body {
  margin: 0; background: var(--kraft); color: var(--kraft-ink);
  font: 400 17px/1.55 "Archivo", ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-variation-settings: "wdth" 100;
  caret-color: var(--ink);
}
::selection { background: var(--ink); color: var(--bond); }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
img, svg { display: block; }
.num { font-variant-numeric: tabular-nums; }
.nw { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

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

/* masthead on the kraft */
.mast { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0 18px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 2px; text-decoration: none; color: var(--kraft-ink);
  font-weight: 760; font-size: 21px; letter-spacing: -0.02em; font-variation-settings: var(--wide); }
.wordmark b { font-weight: 760; color: var(--kraft-ink-2); }
.mast nav { display: flex; gap: 22px; font-size: 15px; font-weight: 560; }
.mast nav a { text-decoration: none; color: var(--kraft-ink); }
.mast nav a:hover { text-decoration: underline; }

/* the postal label voice: condensed caps, used only for labels a postal item really carries */
.label { font-size: 12px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; font-variation-settings: var(--narrow); }

/* sheets of white bond on the kraft */
.sheet { background: var(--bond); color: var(--ink); border-radius: 3px; box-shadow: var(--sheet-shadow); }

/* ---------- the envelope (first viewport of a test page) ---------- */
.envelope { position: relative; z-index: 2; padding: clamp(22px, 4vw, 40px) clamp(20px, 4.5vw, 52px) clamp(26px, 4vw, 42px); }
.env-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.sender { font-style: normal; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sender strong { display: block; color: var(--ink); font-weight: 650; }
.postage { display: flex; align-items: flex-start; gap: 14px; }
.rlabel { display: grid; grid-template-columns: auto auto; align-items: center; border: 1.5px solid var(--red); border-radius: 2px;
  background: var(--bond); color: var(--red-ink); margin-top: 8px; }
.rlabel .r { display: grid; place-items: center; width: 34px; height: 100%; min-height: 50px; background: var(--red); color: var(--bond);
  font-weight: 800; font-size: 26px; font-variation-settings: var(--wide); }
.rlabel .rbody { padding: 5px 9px 6px; }
.rlabel .bars { display: block; height: 20px; width: 92px; color: var(--ink); }
.rlabel .rnum { display: block; margin-top: 3px; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; color: var(--ink); font-variation-settings: var(--narrow); font-variant-numeric: tabular-nums; }
.stamp-slot .stamp { width: 132px; height: auto; filter: drop-shadow(0 1px 1px rgb(47 32 13 / 0.25)); }

/* the address window: glassine, a value cooler than the bond around it */
.window { margin: clamp(18px, 3vw, 28px) 0 0; max-width: 820px; border-radius: 4px; padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 30px);
  background: var(--glassine); box-shadow: inset 0 1px 2px rgb(25 29 46 / 0.10); }
.window h1 { margin: 0; font-weight: 720; font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.04; letter-spacing: -0.025em;
  font-variation-settings: var(--wide); text-wrap: balance; color: var(--ink); }
.envelope .sub { max-width: 60ch; margin: 18px 0 0; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); }
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 28px; border: 0; border-radius: 4px;
  background: var(--red); color: var(--bond); font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer;
  font-variation-settings: "wdth" 104; box-shadow: 0 1px 0 var(--red-ink), 0 6px 14px -8px rgb(157 25 22 / 0.8); transition: background-color 160ms ease; }
.btn:hover { background: var(--red-ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.terms { margin: 0; line-height: 1.35; }
.terms strong { display: block; font-size: 1.25rem; font-weight: 720; color: var(--ink); font-variation-settings: "wdth" 104; }
.terms span { color: var(--ink-3); font-size: 15px; }

/* ---------- the enclosure: the attachments slid out of the envelope, the packing list beside them ---------- */
.enclosure { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 56px);
  align-items: start; margin-top: -10px; padding-top: 0; }
.atts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; min-width: 0; margin-left: clamp(0px, 3vw, 40px); }
.enc-sheet { position: relative; padding: 44px clamp(20px, 3.4vw, 40px) 32px; background: var(--bond-2);
  border-radius: 0 0 3px 3px; box-shadow: var(--sheet-shadow); }
.atts > .enc-sheet + .enc-sheet { border-radius: 3px; }
.atts > .enc-note { margin: 0; color: var(--kraft-ink-2); font-size: 14px; }

/* an attachment: a file tab (format pictogram, file name, a draft tag) over the document as the buyer receives it */
.att { padding: 30px clamp(18px, 3vw, 34px) 28px; }
.att + .att { padding-top: 20px; }
.att-file { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px dashed var(--rule-strong);
  font-size: 14px; font-weight: 600; color: var(--ink-2); }
.att-file svg { flex: none; width: 18px; height: 18px; }
.att-file span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att:first-child .att-file { padding-right: 104px; }
.tag { flex: none; margin-left: 2px; padding: 2px 7px 1px; border: 1.5px solid var(--ink-3); border-radius: 2px; color: var(--ink-2);
  font-size: 11.5px; font-weight: 650; letter-spacing: 0.09em; text-transform: uppercase; font-variation-settings: var(--narrow); }
.att-title { margin: 0 0 14px; font-size: 1.1rem; font-weight: 680; line-height: 1.3; font-variation-settings: "wdth" 104; color: var(--ink); text-wrap: balance; }
.att .doc-meta { margin: 0 0 4px; }
/* the spreadsheet: column letters and row numbers in glassine around a ruled grid, figures right-aligned */
.xl { overflow-x: auto; background:
    linear-gradient(to right, var(--bond) 40%, rgb(253 253 251 / 0)) left / 28px 100% no-repeat local,
    linear-gradient(to left, var(--bond) 40%, rgb(253 253 251 / 0)) right / 28px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgb(25 29 46 / 0.18), rgb(25 29 46 / 0)) left / 12px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgb(25 29 46 / 0.18), rgb(25 29 46 / 0)) right / 12px 100% no-repeat scroll,
    var(--bond); }
.xl table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.xl th, .xl td { padding: 6px 8px; border: 1px solid var(--rule); text-align: left; white-space: nowrap; color: var(--ink-2); font-weight: 400; }
.xl thead tr + tr th { color: var(--ink); font-weight: 650; }
.xl .cl th, .xl .rn { width: 26px; padding: 2px 6px; background: var(--glassine); color: var(--ink-3); font-size: 11.5px; font-weight: 500; text-align: center; }
.xl thead tr + tr .rn { color: var(--ink-3); font-weight: 500; }
.xl td.n, .xl th.n { text-align: right; }
.xl td.n { color: var(--ink); }
/* the email: its header fields, then the message in short paragraphs */
.mail-head { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.mail-head dt { color: var(--ink-3); }
.mail-head dd { margin: 0; min-width: 0; color: var(--ink); }
.mail-head b { font-weight: 650; }
.mail-body p { margin: 0 0 10px; max-width: 62ch; font-size: 15px; color: var(--ink-2); }
.mail-body p:last-child { margin-bottom: 0; }
/* text messages: the sender, then the message in a bubble */
.sms { display: grid; gap: 4px; max-width: 340px; }
.sms-from { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); }
.sms-from:first-child { margin-top: 0; }
.bubble { margin: 0; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: var(--glassine); color: var(--ink); font-size: 15px; line-height: 1.45; }
.enc-sheet h2 { margin: 0 0 18px; font-size: 1.15rem; font-weight: 680; font-variation-settings: "wdth" 104; color: var(--ink); max-width: 30ch; }
.enc-sheet ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.enc-sheet li { padding: 10px 0; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 15.5px; }
.enc-sheet li:last-child { border-bottom: 1px solid var(--rule); }
.ref { display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid var(--ink-2); border-radius: 50%;
  font-size: 12px; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* the example document: a meta block, sections of label and value rows (values in tabular figures, right-aligned),
   rows needing attention marked with a dot in the service's ink, and a summary line under a heavier rule */
.doc-meta { display: grid; grid-template-columns: max-content 1fr; gap: 3px 16px; margin: -6px 0 6px; font-size: 13.5px; }
.doc-meta dt { color: var(--ink-3); }
.doc-meta dd { margin: 0; color: var(--ink); }
.doc-sec h4 { margin: 20px 0 4px; font-size: 13.5px; font-weight: 700; color: var(--ink); font-variation-settings: "wdth" 104; }
.doc-sec ul { list-style: none; margin: 0; padding: 0; }
.doc-sec li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0; border-top: 1px solid var(--rule);
  font-size: 14.5px; color: var(--ink-2); }
.doc-sec li span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-sec li b { flex: none; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-sec li.flag span { color: var(--ink); }
.doc-sec li.flag span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 9px 1px 0; border-radius: 50%; background: var(--accent, var(--ink)); }
.doc-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin: 6px 0 0; padding-top: 9px;
  border-top: 1.5px solid var(--ink); font-size: 14.5px; font-weight: 700; color: var(--ink); }
.doc-sum b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-key { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.doc-key::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--accent, var(--ink)); }
.mark { position: absolute; top: 14px; right: 16px; transform: rotate(-7deg); border: 2px solid currentColor; border-radius: 4px; color: var(--accent, var(--ink-2));
  padding: 3px 10px 2px; outline: 1px solid currentColor; outline-offset: 2px; font-size: 13px; font-weight: 800; letter-spacing: 0.14em;
  font-variation-settings: var(--narrow); opacity: 0.82; }
.enc-note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); }
.gets { padding-top: 40px; }
/* the packing list: one entry per attachment (pictogram, format, file name) with the deliverables it carries */
.pack { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pk-head { display: flex; align-items: center; gap: 9px; color: var(--kraft-ink); text-decoration: none; }
.pk-head svg { flex: none; width: 20px; height: 20px; }
.pk-head b { flex: none; font-size: 16px; font-weight: 700; font-variation-settings: "wdth" 104; }
.pk-head span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--kraft-ink-2); font-size: 14.5px; }
.pk-head:hover span { text-decoration: underline; }
.pack ul { list-style: none; margin: 6px 0 0; padding: 0 0 0 29px; display: grid; gap: 5px; }
.pack ul li { position: relative; padding-left: 14px; color: var(--kraft-ink); font-size: 16.5px; line-height: 1.45; }
.pack ul li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--kraft-ink-2); }
.channel { display: grid; grid-template-columns: 20px 1fr; gap: 9px; align-items: start; margin: 22px 0 0; padding-top: 16px;
  border-top: 1.5px solid var(--kraft-edge); color: var(--kraft-ink); font-weight: 560; font-size: 16px; }
.channel svg { width: 20px; height: 20px; margin-top: 2px; }
.gets h2, .kraft-h { margin: 0 0 16px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 720; letter-spacing: -0.015em; font-variation-settings: var(--wide); color: var(--kraft-ink); }
.gets > ul:not(.pack) { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.gets > ul:not(.pack) > li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--kraft-ink); font-size: 16.5px; }
.gets > ul:not(.pack) > li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--kraft-ink); }

/* ---------- tracking: the three states of an order ---------- */
.track { margin-top: clamp(56px, 8vw, 96px); }
.states { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
.states li { position: relative; padding: 34px 22px 0 0; color: var(--kraft-ink-2); }
.states li .state { font-weight: 560; }
.states li::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--kraft-edge); }
.states li::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%;
  background: var(--kraft); border: 2px solid var(--kraft-edge); }
.states li:last-child::before { right: auto; width: 16px; }
.states .state { display: block; margin-bottom: 6px; font-size: 1.05rem; font-variation-settings: "wdth" 104; }
.states li.is-now { color: var(--kraft-ink); }
.states li.is-now .state { font-weight: 700; }
.states li.is-now::after { background: var(--kraft-ink); border-color: var(--kraft-ink); box-shadow: 0 0 0 4px rgb(47 32 13 / 0.16); }
.states p { margin: 0; max-width: 32ch; font-size: 15.5px; }

/* ---------- how it works: who acts at each step (hollow node: you, filled node: we), when, what changes hands ---------- */
/* every step spans the same four rows through subgrid (when, title, detail, formats), so a title of two lines keeps
   every detail across the row on one line */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); row-gap: 0; }
.flow li { position: relative; grid-row: span 4; display: grid; grid-template-rows: subgrid; align-content: start; padding: 48px 26px 0 0; color: var(--kraft-ink); }
.flow li > * { align-self: start; }
.flow li::before { content: ""; position: absolute; top: 16px; left: 0; right: 0; height: 2px; background: var(--kraft-edge); }
.flow li:last-child::before { display: none; }
.flow .node { position: absolute; top: 0; left: 0; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 13px; font-weight: 760; font-variation-settings: "wdth" 104; }
.flow .vi .node { background: var(--kraft); border: 2px solid var(--kraft-ink); color: var(--kraft-ink); }
.flow .mi .node { background: var(--kraft-ink); color: var(--kraft); }
.flow .when { display: block; margin-bottom: 3px; font-size: 14px; font-weight: 600; color: var(--kraft-ink-2); font-variant-numeric: tabular-nums; }
.flow .step-t { display: block; margin-bottom: 6px; font-size: 1.05rem; font-weight: 700; line-height: 1.3; font-variation-settings: "wdth" 104; text-wrap: balance; }
.flow p { margin: 0; max-width: 34ch; font-size: 15.5px; color: var(--kraft-ink-2); }
.fmts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fmts:empty { display: none; }
.fmt { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border: 1.5px solid var(--kraft-ink-2); border-radius: 3px;
  font-size: 13px; font-weight: 600; color: var(--kraft-ink); }
.fmt svg { width: 14px; height: 14px; }

/* ---------- the notice and questions ---------- */
.notice { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: auto 1fr; gap: 18px 22px; align-items: start;
  padding: 22px clamp(18px, 3vw, 28px); border: 2px solid var(--kraft-ink); border-radius: 4px; color: var(--kraft-ink); }
.notice svg { width: 30px; height: 30px; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; color: var(--kraft-ink-2); font-size: 15.5px; }
.faq { margin-top: clamp(48px, 7vw, 80px); padding: clamp(22px, 3vw, 34px) clamp(20px, 3.4vw, 40px); }
.faq h2 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 720; font-variation-settings: var(--wide); }
details { border-bottom: 1px solid var(--rule); }
summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 620; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg); transition: transform 180ms ease; }
details[open] summary::after { transform: rotate(225deg); margin-top: 10px; }
details p { margin: 0 0 18px; max-width: 70ch; color: var(--ink-2); }

/* ---------- the return slip: the order form ---------- */
.slip-wrap { margin-top: clamp(48px, 7vw, 80px); scroll-margin-top: 16px; }
.slip { position: relative; max-width: 760px; padding: 30px clamp(18px, 3.4vw, 40px) 30px; border-top: 2px dashed var(--rule-strong); }
.slip-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 20px; }
.slip-head h2 { margin: 0; font-size: 1.45rem; font-weight: 720; font-variation-settings: var(--wide); }
.slip-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink-2); border-radius: 3px; }
.field { display: grid; gap: 2px; padding: 9px 12px 10px; border-bottom: 1.5px solid var(--ink-2); }
.field:nth-child(odd):not(.full) { border-right: 1.5px solid var(--ink-2); }
.field.full { grid-column: 1 / -1; }
.field:last-child { border-bottom: 0; }
.field .label { color: var(--ink-3); }
.field input, .field textarea { width: 100%; border: 0; padding: 4px 0 2px; background: transparent; color: var(--ink); font: inherit; font-size: 17px; }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; }
.field:focus-within { background: var(--focus-wash); box-shadow: inset 0 0 0 2px var(--focus); }
.field.is-invalid { box-shadow: inset 0 0 0 2px var(--error); }
.field.is-invalid .label { color: var(--error); }
.form-error { margin: 14px 0 0; color: var(--error); font-weight: 600; }
.slip .btn { margin-top: 22px; }
.fine { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); max-width: 62ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: none; max-width: 760px; padding: 28px clamp(18px, 3.4vw, 40px); }
.thanks h2 { margin: 0 0 6px; font-size: 1.35rem; font-variation-settings: var(--wide); }
.thanks p { margin: 0; color: var(--ink-2); }
.done .slip { display: none; }
.done .thanks { display: block; }
.pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--bond-2); }

/* ---------- footer on the kraft ---------- */
.foot { margin-top: clamp(56px, 8vw, 96px); padding: 26px 0 44px; border-top: 1.5px solid var(--kraft-edge); color: var(--kraft-ink-2); font-size: 14.5px; }
.foot p { margin: 0 0 6px; max-width: 80ch; }
.foot a { color: var(--kraft-ink); }

/* ---------- home: the stamp sheet ---------- */
.pane { position: relative; padding: clamp(22px, 4vw, 40px); }
.selvedge { padding-bottom: clamp(20px, 3vw, 30px);
  border-bottom: 1px dashed var(--rule-strong); }
.selvedge h1 { margin: 0; font-weight: 720; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.025em;
  font-variation-settings: var(--wide); text-wrap: balance; max-width: 18ch; }
.selvedge p { margin: 12px 0 0; max-width: 56ch; color: var(--ink-2); font-size: 1.1rem; }

/* The sheet is one grid: every card spans the same three rows (stamp, name, points) through subgrid, so names of one
   or two lines share a row height and every card's points start on the same line across the row. */
.stamps { list-style: none; margin: 0; padding: clamp(20px, 3vw, 30px) 0 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); column-gap: 10px; row-gap: 0; }
.stamps > li { grid-row: span 3; display: grid; grid-template-rows: subgrid; margin-bottom: 12px; }
.stamps a { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; justify-items: start; padding: 18px 14px 20px; border-radius: 4px;
  text-decoration: none; color: var(--ink); transition: background-color 160ms ease; }
.stamps a:hover { background: var(--bond-2); }
.stamps a:hover .stamp { transform: translateY(-3px) rotate(-1.5deg); }
.stamps .stamp { width: 110px; height: auto; margin-bottom: 16px; transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 1px 1px rgb(47 32 13 / 0.25)); }
.stamps .name { align-self: start; margin-bottom: 10px; color: var(--ink); font-weight: 650; font-size: 15px; line-height: 1.3; text-wrap: balance; }
.stamps .pts { align-self: start; list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
.stamps .pts li { position: relative; padding-left: 12px; white-space: nowrap; }
.stamps .pts li::before { content: ""; position: absolute; left: 1px; top: 0.62em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

.letter { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(48px, 7vw, 80px); align-items: start; }
.letter .sheet { padding: clamp(22px, 3.4vw, 40px); }
.letter .sheet h2 { margin: 0 0 14px; font-size: 1.45rem; font-weight: 720; font-variation-settings: var(--wide); }
.letter .sheet p { margin: 0 0 14px; max-width: 64ch; color: var(--ink-2); }
.letter .sig { margin-top: 20px; color: var(--ink); }
.letter .sig strong { display: block; font-weight: 650; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; color: var(--kraft-ink); }
.facts li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.facts svg { width: 24px; height: 24px; margin-top: 1px; }
.facts b { display: block; font-weight: 700; }
.facts span { color: var(--kraft-ink-2); font-size: 15.5px; }

/* ---------- reading pages (privacy) ---------- */
.doc { max-width: 820px; padding: clamp(24px, 4vw, 48px) clamp(20px, 4.5vw, 56px); margin-bottom: 8px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.08; font-weight: 720; letter-spacing: -0.02em; font-variation-settings: var(--wide); }
.doc .lede { margin: 0 0 28px; color: var(--ink-2); font-size: 1.08rem; max-width: 62ch; }
.doc h2 { margin: 34px 0 10px; font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 104; }
.doc p, .doc li { max-width: 68ch; color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }

/* the one authored moment: the enclosure settles out of the envelope */
@media (prefers-reduced-motion: no-preference) {
  .atts > :first-child { animation: settle 900ms cubic-bezier(0.16, 1, 0.3, 1) both 120ms; }
  @keyframes settle { from { transform: translateY(-26px); } to { transform: none; } }
  html { scroll-behavior: smooth; }
}

@media (min-width: 861px) {
  .gets:has(.pack) { position: sticky; top: 24px; }
}
@media (max-width: 860px) {
  .enclosure, .letter { grid-template-columns: minmax(0, 1fr); }
  .atts { margin-left: 0; }
  .gets { padding-top: 8px; }
  /* with a packing list it comes first: what you get, then the attachments that show it */
  .enclosure:has(.pack) { margin-top: 36px; }
  .gets:has(.pack) { order: -1; padding-top: 0; }
  .enclosure:has(.pack) .atts > :first-child { border-radius: 3px; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li { padding-bottom: 34px; }
  .flow li:nth-child(2n)::before { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .mast nav { gap: 14px; font-size: 14px; }
  .env-top { flex-direction: column-reverse; gap: 18px; }
  .postage { width: 100%; justify-content: space-between; }
  .stamp-slot .stamp { width: 100px; }
  .btn { width: 100%; }
  .gets > ul:not(.pack) > li { font-size: 15px; }
  .enc-sheet li { font-size: 14.5px; }
  .doc-sec li, .doc-sum { font-size: 14px; gap: 12px; }
  .pack ul li { font-size: 15px; }
  .pack ul { padding-left: 4px; }
  .att { padding-inline: 16px; }
  /* the spreadsheet runs to the sheet's edges on phones */
  .xl { margin-inline: -16px; }
  .xl table { font-size: 12.5px; }
  .xl th, .xl td { padding: 5px 5px; }
  .xl th:first-child, .xl td:first-child { padding-left: 16px; }
  .xl th:last-child, .xl td:last-child { padding-right: 16px; }
  .xl .rn, .xl .cl th:first-child { display: none; }
  .xl .rn + th, .xl .rn + td, .xl .cl th:nth-child(2) { padding-left: 16px; }
  .att-file { font-size: 13px; }
  .att:first-child .att-file { padding-right: 84px; }
  .att .mark { font-size: 11.5px; padding: 2px 8px 1px; top: 12px; right: 12px; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow li { display: block; grid-row: auto; padding: 0 0 0 50px; min-height: 34px; }
  .flow li::before, .flow li:nth-child(2n)::before { display: block; top: 34px; bottom: -26px; left: 16px; right: auto; width: 2px; height: auto; }
  .flow li:last-child::before { display: none; }
  .states { grid-template-columns: 1fr; gap: 22px; }
  .states li { padding: 0 0 0 34px; }
  .states li::before { top: 18px; bottom: -22px; left: 7px; right: auto; width: 2px; height: auto; }
  .states li:last-child::before { display: none; }
  .fields { grid-template-columns: 1fr; }
  .field:nth-child(odd):not(.full) { border-right: 0; }
  /* on phones each service is a row: its stamp beside its name and points */
  .stamps { grid-template-columns: 1fr; row-gap: 4px; }
  .stamps > li { grid-row: auto; display: block; margin-bottom: 0; }
  .stamps a { grid-row: auto; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-content: center; padding: 12px 6px; }
  .stamps .stamp { grid-row: 1 / span 2; width: 76px; margin-bottom: 0; align-self: center; }
  .stamps .name { align-self: end; margin-bottom: 4px; }
}
