@font-face { font-family: "Bodoni Moda"; src: url("/fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }

/* Four inks, one per print pass: ultramarine, carmine, green, keyplate black. */
:root {
  --sheet: #E6E9E5;
  --paper: #FBFBF8;
  --ink: #16181D;
  --muted: #4A515C;
  --rule: #C9CEC9;
  --ultramarine: #1E3796;
  --ultramarine-deep: #152A78;
  --carmine: #B0233A;
  --green: #1F5B45;
  --gutter: clamp(16px, 3vw, 40px);
  --page: 1360px; /* the sheet never grows past this; wide screens show more margin */
  --perf: 5px;
  --display: "Bodoni Moda", "Bodoni 72", Didot, serif;
  --text: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ultramarine) var(--sheet); }
body {
  margin: 0;
  background: var(--sheet);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  font-stretch: 100%;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, blockquote, strong { font-kerning: normal; font-feature-settings: "kern" 1; }
::selection { background: var(--ultramarine); color: var(--paper); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--ultramarine); }
:focus-visible { outline: 2px solid var(--carmine); outline-offset: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 8px 12px; z-index: 10; }
.kw { margin-right: -0.07em; } /* hand kern W–r */

/* ---------- Page width ---------- */
.selvage, .masthead, .sheet, .plate-line, .section { width: 100%; max-width: var(--page); margin-inline: auto; }

/* ---------- Selvage (sheet margins) ---------- */
.selvage {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  font: 500 12px/1.3 var(--text); font-stretch: 125%; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
.selvage span, .selvage a { white-space: nowrap; }
.selvage .marks { display: flex; align-items: center; gap: 14px; }
.reg { width: 18px; height: 18px; flex: none; }
.bars { display: flex; gap: 3px; }
.bars i { width: 14px; height: 10px; display: block; }
.bars i:nth-child(1) { background: var(--ultramarine); }
.bars i:nth-child(2) { background: var(--carmine); }
.bars i:nth-child(3) { background: var(--green); }
.bars i:nth-child(4) { background: var(--ink); }

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 6px var(--gutter) 0; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark img { width: 34px; height: 34px; }
.wordmark span { font: 700 21px/1 var(--display); font-variation-settings: "opsz" 6; letter-spacing: 0.2em; }
.masthead nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font: 500 14px/1 var(--text); font-stretch: 112%; letter-spacing: 0.04em; }
.masthead nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.masthead nav a:hover { color: var(--ultramarine); }

/* ---------- Stamps ---------- */
.stamp {
  --r: var(--perf);
  position: relative; container-type: inline-size; /* type inside a stamp scales with the stamp, not the window */
  padding: calc(2 * var(--r));
  background: var(--paper);
  -webkit-mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) content-box;
  mask:
    radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
    linear-gradient(#000 0 0) content-box;
  filter: drop-shadow(0 1px 1px rgb(22 24 29 / 0.12)) drop-shadow(0 6px 14px rgb(22 24 29 / 0.08));
}
.field {
  position: relative; height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.2vw, 28px) 0;
  color: var(--paper);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.field::after { /* engraved frame line, inside the perforation */
  content: ""; position: absolute; inset: 8px; pointer-events: none;
  border: 1px solid rgb(251 251 248 / 0.6);
  box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px rgb(251 251 248 / 0.28);
}
.field > * { position: relative; z-index: 1; }

/* Value tablet: the denomination, top right */
.value {
  align-self: flex-end; display: inline-grid; place-items: center;
  min-width: 2.1em; padding: 0.12em 0.32em 0.18em;
  border: 1px solid currentColor; border-radius: 999px;
  font: 700 clamp(26px, 2.6vw, 38px)/1 var(--display); font-variation-settings: "opsz" 14;
}
/* Engraved band: the stamp's printed name along the foot, inside the frame */
.band {
  margin: 0 -1px; padding: 10px 0 18px; border-top: 1px solid rgb(251 251 248 / 0.45);
  font: 600 10.5px/1.2 var(--text); font-stretch: 125%; letter-spacing: 0.22em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.ink-ultramarine { background-color: var(--ultramarine); background-image: url("/engraving/house.svg"); }
.ink-carmine { background-color: var(--carmine); background-image: url("/engraving/issue.svg"); }
.ink-green { background-color: var(--green); background-image: url("/engraving/issue.svg"); }

/* ---------- Sheet (first viewport) ---------- */
.sheet {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(clamp(200px, 22vw, 300px), auto);
  gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(18px, 3vw, 36px) var(--gutter) 0;
}
.house { grid-column: 1 / 3; grid-row: 1 / 3; }
.house .field { padding: clamp(22px, 3.4vw, 48px) clamp(22px, 3.4vw, 48px) 0; }
.house .value { font-size: clamp(34px, 3.6vw, 52px); }
.house h1 {
  margin: 0;
  font: 500 clamp(48px, 16.5cqi, 128px)/0.86 var(--display);
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.02em;
}
.house .line { margin: 10px 0 clamp(18px, 2.4vw, 32px); max-width: 26ch; font: 500 clamp(18px, 4.2cqi, 28px)/1.3 var(--display); font-variation-settings: "opsz" 18; text-wrap: balance; }
.house .band { padding-bottom: clamp(20px, 2.6vw, 34px); }

.issue h2, .reserved h2 { margin: 0 0 6px; font: 600 clamp(22px, 9.5cqi, 34px)/1.05 var(--display); font-variation-settings: "opsz" 14; }
.issue p, .reserved p { margin: 0; font-size: clamp(14px, 4.8cqi, 16px); line-height: 1.45; max-width: 34ch; }
.issue p { color: rgb(251 251 248 / 0.9); }
.issue a.cover { position: absolute; inset: 0; z-index: 3; }
.statement .field { padding-bottom: clamp(22px, 2.6vw, 34px); }
.statement h2.go { display: flex; align-items: center; gap: 14px; margin: 0; text-wrap: balance; font-size: clamp(24px, 10cqi, 38px); }
@container (max-width: 360px) { .bp { display: none; } }
.statement h2.go svg { width: 30px; height: 15px; flex: none; transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
.statement:hover h2.go svg { transform: translateX(6px); }
.issue a.cover:focus-visible { outline-offset: -6px; outline-color: var(--paper); }

.reserved .field { color: var(--ink); background-color: var(--paper); background-image: url("/engraving/reserved.svg"); }
.reserved .field::after { border-color: rgb(22 24 29 / 0.35); box-shadow: inset 0 0 0 3px transparent, inset 0 0 0 4px rgb(22 24 29 / 0.14); }
.reserved p { color: var(--muted); }
.reserved .band { border-top-color: rgb(22 24 29 / 0.25); color: var(--muted); }

/* Airmail label: the primary action. Stripes in the sheet's own inks. */
.airmail {
  grid-column: 4; position: relative; display: flex; text-decoration: none; color: var(--ink);
  padding: 10px; background:
    repeating-linear-gradient(135deg, var(--carmine) 0 16px, var(--paper) 16px 24px, var(--ultramarine) 24px 40px, var(--paper) 40px 48px);
  filter: drop-shadow(0 6px 14px rgb(22 24 29 / 0.1));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.airmail .tag { /* cut into the top stripe */
  position: absolute; top: 0; left: 22px; padding: 0 7px; background: var(--paper);
  font: 700 9px/10px var(--text); font-stretch: 125%; letter-spacing: 0.24em; text-transform: uppercase; color: var(--carmine);
}
.airmail .inner { flex: 1; background: var(--paper); padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.airmail strong { font: 600 clamp(28px, 2.6vw, 38px)/1.02 var(--display); font-variation-settings: "opsz" 14; }
.airmail .addr { display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.3 var(--text); color: var(--muted); }
.airmail .addr svg { width: 28px; height: 14px; }
.airmail:hover { transform: translateY(-3px); color: var(--ink); }
.airmail:hover strong { color: var(--ultramarine); }

.plate-line { padding: clamp(18px, 2.4vw, 28px) var(--gutter) 0; text-align: right; }

/* ---------- Postmark (signature interaction) ---------- */
.postmark {
  position: absolute; z-index: 2; right: -6%; top: 6%; width: 74%; max-width: 230px; pointer-events: none;
  opacity: 0; transform: scale(1.35) rotate(-14deg); filter: blur(2px);
  transition: opacity 0.18s ease-out, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), filter 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--ink); mix-blend-mode: multiply;
}
.issue:hover .postmark, .issue:focus-within .postmark { opacity: 0.78; transform: scale(1) rotate(-9deg); filter: blur(0.2px); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 128px) var(--gutter) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(20px, 4vw, 64px); margin-bottom: clamp(28px, 4vw, 48px); }
.section h2.title { margin: 0; font: 500 clamp(36px, 4.6vw, 64px)/1 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.section-head p { margin: 0; max-width: 56ch; color: var(--muted); align-self: end; }

.conditions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.conditions li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 clamp(16px, 2vw, 28px); padding: clamp(22px, 3vw, 36px) clamp(0px, 2vw, 28px) clamp(22px, 3vw, 36px) 0; border-bottom: 1px solid var(--rule); }
.conditions li:nth-child(odd) { border-right: 1px solid var(--rule); }
.conditions li:nth-child(even) { padding-left: clamp(16px, 2vw, 28px); }
.conditions .num { font: 600 clamp(44px, 5vw, 72px)/0.85 var(--display); font-variation-settings: "opsz" 36; color: var(--green); }
.conditions li:nth-child(2) .num { color: var(--ultramarine); }
.conditions li:nth-child(3) .num { color: var(--carmine); }
.conditions li:nth-child(4) .num { color: var(--ink); }
.conditions h3 { margin: 4px 0 8px; font: 600 20px/1.25 var(--text); }
.conditions p { margin: 0; color: var(--muted); max-width: 48ch; }

/* Register of issues: a stamp catalogue */
.register { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.register caption { text-align: left; color: var(--muted); font-size: 14px; padding-top: 14px; caption-side: bottom; }
.register th { text-align: left; font: 600 11px/1.2 var(--text); font-stretch: 125%; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink); }
.register td { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.register .no { font: 600 22px/1 var(--display); font-variation-settings: "opsz" 14; width: 3.2em; }
.register .name { font: 600 clamp(20px, 2vw, 26px)/1.1 var(--display); font-variation-settings: "opsz" 14; white-space: nowrap; }
.mini { /* a miniature perforated stamp in the brand's ink */
  --r: 2px; display: inline-block; width: 22px; height: 28px; vertical-align: -6px; margin-right: 12px; padding: 4px; background: var(--paper);
  -webkit-mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) content-box;
  mask: radial-gradient(var(--r), #0000 97%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) content-box;
}
.mini i { display: block; width: 100%; height: 100%; }
.register .reserved-row td { color: var(--muted); }

/* Correspondence: an envelope, cancelled */
.envelope {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px);
  margin-top: clamp(8px, 2vw, 16px); padding: clamp(28px, 4vw, 56px);
  background: var(--paper);
  border: 10px solid transparent;
  border-image: repeating-linear-gradient(135deg, var(--carmine) 0 18px, var(--paper) 18px 26px, var(--ultramarine) 26px 44px, var(--paper) 44px 52px) 10;
  box-shadow: 0 10px 30px rgb(22 24 29 / 0.08);
}
.envelope h2.title { margin-bottom: 16px; }
.envelope p { margin: 0 0 12px; max-width: 52ch; }
.envelope .send { display: inline-flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 22px; background: var(--ultramarine); color: var(--paper); text-decoration: none; font: 600 16px/1 var(--text); font-stretch: 110%; letter-spacing: 0.02em; transition: background-color 0.2s ease-out; }
.envelope .send:hover { background: var(--ultramarine-deep); color: var(--paper); }
.envelope .address { position: relative; align-self: center; justify-self: end; text-align: left; font: 500 19px/1.55 var(--display); font-variation-settings: "opsz" 12; border-left: 1px solid var(--rule); padding-left: clamp(20px, 3vw, 40px); }
.envelope .address small { display: block; margin-bottom: 8px; font: 600 11px/1 var(--text); font-stretch: 125%; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.cancel { position: absolute; right: clamp(12px, 3vw, 40px); top: -18px; width: clamp(150px, 16vw, 210px); color: var(--ultramarine); opacity: 0.55; transform: rotate(-8deg); pointer-events: none; }

footer.selvage { margin-top: clamp(64px, 9vw, 120px); border-top: 1px solid var(--rule); padding-top: 22px; padding-bottom: 28px; }
footer.selvage a { text-decoration: none; }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 70ch; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.prose h1 { margin: 0 0 12px; font: 500 clamp(44px, 6vw, 76px)/1 var(--display); letter-spacing: -0.015em; }
.prose .updated { margin: 0 0 28px; color: var(--muted); font-size: 14px; }
.prose h2 { margin: 40px 0 8px; font: 600 26px/1.2 var(--display); font-variation-settings: "opsz" 14; }
.prose p { margin: 0 0 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); }
  .house { grid-column: 1 / 3; grid-row: auto; min-height: 440px; }
  .airmail { grid-column: auto; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .envelope { grid-template-columns: minmax(0, 1fr); }
  .envelope .address { justify-self: start; border-left: 0; border-top: 1px solid var(--rule); padding: 20px 0 0; }
}
@media (max-width: 640px) {
  .selvage .hide-sm, .masthead nav .hide-sm { display: none; }
  .sheet { grid-auto-rows: minmax(0, auto); --perf: 4px; }
  .house { min-height: 360px; order: 0; }
  .airmail { grid-column: 1 / 3; order: 1; min-height: 170px; }
  .issue, .reserved, .statement { order: 2; min-height: 250px; }
  .statement { grid-column: 1 / 3; min-height: 0; }
  .bp { display: none; }
  .issue h2, .reserved h2 { font-size: 22px; }
  .issue p, .reserved p { font-size: 14px; }
  .value { font-size: 22px; }
  .band { font-size: 9px; letter-spacing: 0.16em; padding-bottom: 18px; }
  .field { padding: 20px 20px 0; }
  .statement .field { padding-bottom: 24px; }
  .statement h2.go { font-size: 24px; }
  .conditions { grid-template-columns: minmax(0, 1fr); }
  .conditions li:nth-child(odd) { border-right: 0; }
  .conditions li:nth-child(even) { padding-left: 0; }
  .plate-line { text-align: left; }
  .register .field-col { display: none; }
  .register .no { width: 2em; }
  .register .name { font-size: 18px; white-space: normal; }
  .register td { padding-right: 10px; font-size: 14px; }
  .register td:last-child { padding-right: 0; }
  .cancel { width: 120px; top: -12px; }
}
@media (prefers-reduced-motion: reduce) {
  .postmark, .airmail { transition: none; }
  .issue .postmark { opacity: 0.5; transform: rotate(-9deg); filter: none; }
}
