/* Seven Envelopes: stationery on a table. Paper ground, kraft envelopes, one postal red. */
:root {
  --paper: #F6F1E7;
  --card: #F3ECDD;
  --card-lit: #FBF6EA;
  --ink: #1F2A44;
  --ink-soft: #4E5672;
  --red: #C8402F;
  --red-deep: #A93527;
  --kraft: #C9A77C;
  --rule: rgba(31, 42, 68, .16);
  --label: #FBF8F1;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .12 0 0 0 0 .16 0 0 0 0 .27 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }

.wrap { width: min(100%, 620px); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.bar { display: flex; justify-content: space-between; align-items: center; padding-block: 18px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; font-variation-settings: "opsz" 30, "SOFT" 30; color: var(--ink); text-decoration: none; }
.wordmark i { width: 11px; height: 11px; border-radius: 50%; background: var(--red); display: block; }

/* Postmarks, drawn by script into <svg class="pm"> */
.pm { display: block; overflow: visible; }
.pm * { fill: none; stroke: var(--ink); }
.pm text { fill: var(--ink); stroke: none; font-family: var(--mono); }
.pm g { opacity: .74; filter: url(#ink); }
.pm.red * { stroke: var(--red); }
.pm.red text { fill: var(--red); }

.namelabel {
  position: absolute; background: var(--label); color: var(--ink); font-family: var(--mono);
  box-shadow: 0 1px 1px rgba(31,42,68,.18), 0 3px 8px -4px rgba(31,42,68,.35);
  border-radius: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Small legal links in page footers. */
.foot a { color: inherit; text-underline-offset: 2px; }
.seller { margin: 6px 0 24px; font-size: 11.5px; line-height: 1.45; color: var(--ink-soft); opacity: .8; }
.site-foot .seller { flex-basis: 100%; margin: 0; }

/* Legal pages (/privacy/, /terms/): one readable column of long-form text. */
.wrap.legal { width: min(100%, 680px); }
.legal h1 { margin: 10px 0 14px; font-weight: 450; font-size: clamp(32px, 7vw, 44px); line-height: 1.1; font-variation-settings: "opsz" 96, "SOFT" 60; text-wrap: balance; }
.legal h2 { margin: 40px 0 10px; font-weight: 500; font-size: 24px; line-height: 1.25; font-variation-settings: "opsz" 30, "SOFT" 30; text-wrap: balance; }
.legal h3 { margin: 28px 0 8px; font-weight: 500; font-size: 20px; line-height: 1.3; font-variation-settings: "opsz" 30, "SOFT" 30; }
.legal h4 { margin: 22px 0 6px; font-weight: 600; font-size: 17px; line-height: 1.35; }
.legal h2[id], .legal h3[id] { scroll-margin-top: 16px; }
.legal p { margin: 0 0 14px; text-wrap: pretty; overflow-wrap: break-word; }
.legal ul { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 6px; }
.legal li { text-wrap: pretty; overflow-wrap: break-word; }
.legal li > ul { margin: 6px 0 0; }
.legal a { color: var(--ink); text-underline-offset: 2px; overflow-wrap: anywhere; }
.legal main { padding-bottom: 12px; }
.site-foot { border-top: 1px solid var(--rule); padding: 20px 0 32px; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-soft); font-size: 14px; }
.site-foot a { color: inherit; }
