/* Postaki website styles. Tokens and components: docs/design/DESIGN.md. Font: Commissioner (SIL OFL 1.1, fonts/OFL.txt). */
@font-face {
  font-family: "Commissioner";
  src: url("fonts/Commissioner-Variable.4273c7534d02.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  /* colour: carbon ink, paper, duplicate copies */
  --carbon-950: #12144a;
  --carbon-900: #1c1f6e;
  --carbon-700: #2b2fa3;
  --carbon-600: #3a3fc0;
  --carbon-300: #a9ace6;
  --carbon-100: #e4e5f8;
  --carbon-50:  #f2f3fb;

  --paper:        #ffffff;
  --ground:       #f1f2f6;
  --copy-yellow:  #fff0a6;
  --copy-yellow-strong: #ffe14d;
  --copy-pink:    #fbd7e1;
  --serial-red:   #c8202f;

  --ink:          #15162b;
  --ink-soft:     #45475f;
  --rule:         #c9cbe6;
  --rule-strong:  #8f93cf;

  --ok:           #17744a;
  --ok-bg:        #dff3e8;
  --wait:         #8a5a00;
  --wait-bg:      #fff1cc;

  --on-carbon:       #ffffff;
  --on-carbon-soft:  #d6d8fb;

  /* type */
  --font: "Commissioner", "Segoe UI", system-ui, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.375rem, 1.21rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.43rem + 1.4vw, 2.625rem);
  --step-4: clamp(2.125rem, 1.5rem + 3vw, 4.25rem);

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(64px, 9vw, 128px);
  --container: 1200px;

  /* radii */
  --r-paper: 3px;
  --r-control: 10px;
  --r-chip: 6px;

  /* depth */
  --shadow-paper: 0 1px 2px rgb(18 20 74 / .10), 0 8px 24px -6px rgb(18 20 74 / .22);
  --shadow-lift: 0 2px 4px rgb(18 20 74 / .12), 0 18px 40px -10px rgb(18 20 74 / .35);

  --tap: 48px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  font-variation-settings: "FLAR" 0, "VOLM" 0;
  overflow-wrap: break-word;
  hyphens: manual;
}
::selection { background: var(--copy-yellow-strong); color: var(--ink); }
img, svg { display: block; max-width: 100%; }
a { color: var(--carbon-700); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--carbon-900); }
:focus-visible { outline: 3px solid var(--carbon-600); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.12; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 780; font-variation-settings: "FLAR" 100, "VOLM" 40; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); font-weight: 750; font-variation-settings: "FLAR" 100, "VOLM" 25; }
h3 { font-size: var(--step-1); font-weight: 680; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 10; background: var(--paper); padding: 12px 16px; border-radius: var(--r-control); }
/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border-radius: var(--r-control); border: 2px solid transparent;
  font: inherit; font-size: var(--step-1); font-weight: 680; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--carbon-700); color: var(--on-carbon); box-shadow: 0 1px 0 rgb(255 255 255 / .2) inset, 0 6px 16px -6px rgb(43 47 163 / .6); }
.btn--primary:hover { background: var(--carbon-900); color: var(--on-carbon); }
.btn--yellow { background: var(--copy-yellow-strong); color: var(--carbon-950); box-shadow: 0 6px 18px -6px rgb(0 0 0 / .45); }
.btn--yellow:hover { background: #fff07a; color: var(--carbon-950); }
.btn--sm { min-height: var(--tap); padding: 0 18px; font-size: var(--step-0); }
.btn svg { width: 22px; height: 22px; flex: none; }
/* ---------- header ---------- */
.site-header { background: var(--carbon-700); color: var(--on-carbon); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-carbon); text-decoration: none; margin-right: auto; min-height: var(--tap); }
.brand:hover { color: var(--on-carbon); }
.brand__word { font-size: 1.625rem; font-weight: 800; letter-spacing: -0.03em; font-variation-settings: "FLAR" 100, "VOLM" 60; line-height: 1; }
.brand__mark { width: 38px; height: 38px; flex: none; }
.header-signup { display: none; }
@media (min-width: 560px) {
  .header-signup { display: inline-flex; }
}
.site-header .wrap { gap: var(--s-3); }
@media (min-width: 560px) {
  .site-header .wrap { gap: var(--s-5); }
}
.beta-tag { font-size: .75rem; font-weight: 700; letter-spacing: .02em; padding: 3px 8px; border-radius: var(--r-chip); background: var(--copy-yellow-strong); color: var(--carbon-950); line-height: 1.3; }
.login-link { border: 2px solid rgb(255 255 255 / .45); }
.login-link { color: var(--on-carbon); text-decoration: none; font-weight: 560; padding: 0 12px; min-height: var(--tap); display: inline-flex; align-items: center; border-radius: 8px; }
.login-link:hover { background: rgb(255 255 255 / .1); color: var(--on-carbon); }
/* ---------- hero ---------- */
/* ---------- slip: the post as a duplicate-book sheet ---------- */
.field { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.field:last-child { border-bottom: 0; padding-bottom: 0; }
.channels { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem; color: var(--carbon-950); }
.check svg { width: 18px; height: 18px; }
.slip--copy { position: absolute; inset: 0 0 auto 18px; height: 100%; padding-top: 22px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes fan-y { from { transform: translate(0, 0) rotate(0); } }
  @keyframes fan-p { from { transform: translate(0, 0) rotate(0); } }
  @keyframes sign { from { stroke-dashoffset: 420; } }
  @keyframes stamp { from { transform: rotate(-6deg) scale(1.6); opacity: 0; } }
}
/* ---------- sections ---------- */
.section { padding-block: var(--section); }
/* steps: one ticket strip, three stubs, perforated between */
.step { display: grid; grid-template-columns: 56px 1fr; }
.step + .step { border-top: 2px dashed var(--rule-strong); }
.step h3 { font-size: var(--step-2); font-weight: 720; font-variation-settings: "FLAR" 100, "VOLM" 20; }
.step p { margin-top: var(--s-3); color: var(--ink-soft); }
@media (min-width: 820px) {
  .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .step + .step { border-top: 0; border-left: 2px dashed var(--rule-strong); }
}
/* approval */
/* accounts: does / does not */
/* channels */
.status--open { color: var(--ok); background: var(--ok-bg); }
.channels-note { margin-top: var(--s-5); color: var(--ink-soft); max-width: 40rem; }
/* who it is for: an order list */
.order { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 820px) {
  .order { grid-template-columns: 15rem 1fr; gap: var(--s-6); align-items: baseline; padding: 22px 0; }
}
/* faq */
/* closing band */
/* footer */
.site-footer { background: var(--carbon-950); color: var(--on-carbon-soft); padding-block: var(--s-8) var(--s-6); font-size: .9375rem; }
.site-footer a { color: var(--on-carbon); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { text-decoration: underline; color: var(--on-carbon); }
.footer__grid { display: grid; gap: var(--s-6); }
.footer__grid h2 { font-size: .875rem; font-weight: 700; color: var(--on-carbon); letter-spacing: .01em; margin-bottom: 6px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; }
.footer__about p { margin-top: var(--s-3); max-width: 30ch; }
.footer__base { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid rgb(255 255 255 / .15); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (min-width: 820px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
}
/* ---------- public page frame: legal documents and the waitlist (the app and sign-up flow use v2.css) ---------- */
/* ---------- page frame ---------- */
main { min-height: 60vh; }
.page { padding-block: clamp(32px, 6vw, 72px) clamp(48px, 8vw, 96px); }
.page > * + * { margin-top: var(--s-4); }
/* ---------- messages ---------- */
.messages { list-style: none; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-2); }
.message, .alert { padding: 12px 16px; border-radius: var(--r-control); background: var(--carbon-50); border: 1.5px solid var(--rule-strong); color: var(--ink); line-height: 1.45; }
.message--success { background: var(--ok-bg); border-color: var(--ok); color: #0f4d31; }
.message--warning, .message--error, .alert { background: var(--wait-bg); border-color: var(--wait); color: #5e3d00; }
/* ---------- legal documents ---------- */
.prose { max-width: 65ch; margin-inline: auto; background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); padding: clamp(20px, 4vw, 48px); }
.prose h1 { font-size: var(--step-3); font-weight: 750; font-variation-settings: "FLAR" 100, "VOLM" 25; margin-bottom: var(--s-5); }
.prose h2 { font-size: var(--step-2); font-weight: 720; font-variation-settings: "FLAR" 100, "VOLM" 20; margin: var(--s-7) 0 var(--s-3); }
.prose h3 { margin: var(--s-5) 0 var(--s-2); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--s-4); }
.prose li { margin-bottom: var(--s-2); }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.doc-meta { max-width: 65ch; margin: var(--s-5) auto 0; color: var(--ink-soft); font-size: var(--step--1); }
.auth { padding-block: clamp(28px, 6vw, 72px) clamp(48px, 8vw, 96px); display: flex; flex-direction: column; align-items: center; gap: var(--s-5); }
.auth-card { width: 100%; max-width: 30rem; background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); padding: clamp(20px, 5vw, 40px); }
.auth-title { font-size: var(--step-2); font-weight: 720; font-variation-settings: "FLAR" 100, "VOLM" 20; padding-bottom: var(--s-3); border-bottom: 1.5px solid var(--rule-strong); margin-bottom: var(--s-5); }
.auth-text { color: var(--ink-soft); margin-bottom: var(--s-4); max-width: 65ch; }
.auth-card p { margin-bottom: var(--s-4); }
.auth-links { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); font-size: var(--step--1); }
.auth-links a { display: inline-flex; align-items: center; min-height: 44px; }
.form { display: grid; gap: var(--s-4); }
.field-row { display: grid; gap: 6px; }
.field-row label, .fieldset legend { font-size: var(--step--1); font-weight: 600; color: var(--carbon-700); }
.field-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]), .field-row select, .field-row textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--rule-strong); border-radius: var(--r-control);
  transition: border-color .2s, box-shadow .2s;
}
.field-row input::placeholder { color: var(--ink-soft); opacity: .8; }
.field-row input:hover:not(:focus), .field-row select:hover:not(:focus) { border-color: var(--carbon-700); }
.field-row input:focus-visible, .field-row select:focus-visible, .field-row textarea:focus-visible { outline: 3px solid var(--carbon-600); outline-offset: 1px; border-color: var(--carbon-700); }
.has-error input:not([type=checkbox]):not([type=radio]) { border-color: var(--serial-red); }
.field-errors, .errorlist { color: var(--serial-red); font-size: var(--step--1); font-weight: 600; }
.errorlist, .field-errors ul { list-style: none; margin: 0; padding: 0; }
.field-errors--form { padding: 12px 16px; border: 1.5px solid var(--serial-red); border-radius: var(--r-control); }
.field-help { font-size: .8125rem; color: var(--ink-soft); line-height: 1.45; }
.form-actions { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.form-actions .btn { width: 100%; }
.auth-card a.btn { text-decoration: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.waitlist-privacy { font-size: var(--step--1); color: var(--ink-soft); margin-top: var(--s-5); }
