/* Postmark's site: the shared sheet. Colours are the app's own tokens (PostmarkUI/Generated/Tokens.swift, PMPassport):
   the passport's page, its print and its text, the covers' navy and foil, the seven stamp inks, and the coral of the icon.
   Shapes: buttons and chips are pills; screens and photos have 18 px corners; paper objects keep their own shapes. */

@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("../fonts/courier-prime-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --paper: #F7F3EA;          /* PMPassport.page */
  --paper-shade: #E9E1D0;    /* pageShade */
  --paper-deep: #EFE8D9;
  --print: #5B6887;          /* pagePrint: 5.0:1 on paper */
  --text: #2B2F3A;           /* pageText: 12:1 on paper */
  --navy: #1B2A4A;           /* coverNavy */
  --navy-deep: #13203B;
  --midnight: #16161C;       /* coverMidnight */
  --foil: #D9B25F;
  --foil-deep: #8C6A2A;      /* 4.5:1 on paper */
  --cream: #FFFBF4;          /* the icon's bands */
  --coral-1: #FE8563;        /* the icon, top */
  --coral-2: #F26B55;        /* the icon, a third down: navy on it is 4.75:1 */
  --coral-3: #E23E4A;        /* the icon, bottom */
  --ink-red: #C8372D; --ink-blue: #2849A8; --ink-violet: #5B3C9B; --ink-green: #22704A;
  --ink-black: #2A2A2E; --ink-teal: #1F6F78; --ink-brown: #7A4A2A;

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Courier Prime", "Courier New", ui-monospace, monospace;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --header: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-press: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 17px/1.55 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: var(--paper); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink-blue); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .cover-band :focus-visible { outline-color: var(--foil); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* The paper: the app's wavy security print over the page colour. */
.paper { background-color: var(--paper); background-image: url("../img/print-waves.svg"); background-size: 480px 480px; }

/* Type */
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -0.012em; line-height: 1.02; color: var(--navy); text-wrap: balance; }
h1.display { font-size: clamp(44px, 6.1vw, 88px); }
h2.display { font-size: clamp(38px, 4.9vw, 68px); line-height: 1.04; }
h3.display { font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; color: var(--text); max-width: 34em; }
.mono { font-family: var(--mono); }
.small { font-size: 15px; line-height: 1.5; }
.print { color: var(--print); }

/* Header */
.site-head {
  position: sticky; top: 0; z-index: 20; height: var(--header);
  background: rgb(247 243 234 / 0.82); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgb(91 104 135 / 0.14);
}
@media (prefers-reduced-transparency: reduce) { .site-head { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; margin-inline-end: auto; padding: 6px 0; }
.brand img { height: 30px; width: auto; }
/* Buttons: pills, as in the app */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  font: 600 17px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer;
  transition: transform 0.18s var(--ease-press), box-shadow 0.25s var(--ease-out), background-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  color: var(--navy);
  background: linear-gradient(180deg, var(--coral-1), var(--coral-2));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 10px 24px -12px rgb(226 62 74 / 0.7);
}
.btn-primary:hover { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.4), 0 14px 30px -12px rgb(226 62 74 / 0.8); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-quiet { color: var(--navy); background: transparent; box-shadow: inset 0 0 0 1.5px rgb(27 42 74 / 0.28); }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px rgb(27 42 74 / 0.5); }
.btn-soon { cursor: default; color: var(--navy); background: transparent; box-shadow: inset 0 0 0 1.5px rgb(27 42 74 / 0.22); }
.btn-soon:active { transform: none; }
.btn-soon .soon { font-weight: 400; color: var(--print); }
.on-dark .btn-quiet, .on-dark .btn-soon { color: var(--paper); box-shadow: inset 0 0 0 1.5px rgb(247 243 234 / 0.35); }
.on-dark .btn-soon .soon { color: rgb(247 243 234 / 0.78); }
.btn svg { width: 20px; height: 20px; flex: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.site-foot { background: var(--navy); color: rgb(247 243 234 / 0.86); padding: 56px 0 40px; font-size: 15px; }
.site-foot .wrap { display: grid; gap: 28px; grid-template-columns: 1fr auto; align-items: start; }
.site-foot .brand img { height: 28px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot nav a { text-decoration: none; color: var(--paper); }
.site-foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-foot .legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: rgb(247 243 234 / 0.72); font-size: 14px; }
.site-foot .mrz { grid-column: 1 / -1; font: 400 clamp(9px, 1.6vw, 14px)/1.5 var(--mono); letter-spacing: 0.06em; color: rgb(217 178 95 / 0.7); white-space: pre; overflow: hidden; margin: 8px 0 0; }
@media (max-width: 640px) { .site-foot .wrap { grid-template-columns: 1fr; } }

/* The one-line footer: Privacy, Terms, Support and the maker. */
.foot-line { position: relative; padding: 26px var(--gutter) 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; background: var(--navy);
  border-top: 1px solid rgb(247 243 234 / 0.12); font-size: 14px; color: rgb(247 243 234 / 0.72); }
.foot-line a { color: var(--paper); text-decoration: none; }
.foot-line a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-line a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }

/* The document pages: privacy, terms, support, 404 */
.doc { padding: clamp(56px, 8vw, 104px) 0 clamp(80px, 10vw, 128px); }
.doc h1.display { font-size: clamp(44px, 5.4vw, 76px); margin-bottom: 14px; }
.doc .wrap { width: min(100% - 2 * var(--gutter), 760px); }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 1fr); }
.doc h2 { font: 400 clamp(28px, 3vw, 36px)/1.12 var(--serif); color: var(--navy); margin: 2em 0 0.55em; }
.doc h2:first-child { margin-top: 0.5em; }
.doc h3 { font: 600 18px/1.35 var(--sans); color: var(--navy); margin: 1.6em 0 0.4em; }
.doc p, .doc li { max-width: 68ch; }
.doc ul { padding-inline-start: 1.2em; margin: 0 0 1.2em; }
.doc li { margin: 0.35em 0; }
.doc a { color: var(--ink-blue); text-underline-offset: 3px; }
.doc .updated { font: 400 15px/1.4 var(--mono); color: var(--print); margin-bottom: 28px; }
.doc .answers { list-style: none; padding: 0; margin: 28px 0 32px; }
.doc .answers li { padding: 16px 0; border-top: 1px dashed rgb(91 104 135 / 0.35); max-width: none; }
.doc .answers li:last-child { border-bottom: 1px dashed rgb(91 104 135 / 0.35); }
.doc .answers b { color: var(--navy); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
