/* 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; }
.carbon :focus-visible { outline-color: var(--copy-yellow-strong); }

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--ghost { background: transparent; color: var(--carbon-700); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--carbon-50); }
.carbon .btn--ghost { color: var(--on-carbon); border-color: rgb(255 255 255 / .45); }
.carbon .btn--ghost:hover { background: rgb(255 255 255 / .1); color: var(--on-carbon); }
.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; }
.site-nav { display: none; gap: var(--s-2); }
.login-link { border: 2px solid rgb(255 255 255 / .45); }
.site-nav a, .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; }
.site-nav a:hover, .login-link:hover { background: rgb(255 255 255 / .1); color: var(--on-carbon); }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* ---------- hero ---------- */
.carbon { background: var(--carbon-700); color: var(--on-carbon); }
.hero { position: relative; padding-top: clamp(32px, 6vw, 72px); padding-bottom: 40px; overflow: clip; }
.hero::after { /* the grey ground the slips land on */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: var(--ground);
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: var(--s-7); }
.hero__text { padding-bottom: var(--s-2); }
.hero h1 { max-width: 13ch; }
.hero__lede { margin-top: var(--s-5); font-size: var(--step-1); line-height: 1.55; color: var(--on-carbon-soft); max-width: 36ch; }
.hero__lede strong { color: var(--on-carbon); font-weight: 650; }
.hero__actions { margin-top: var(--s-6); display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__note { margin-top: var(--s-4); font-size: var(--step--1); color: var(--on-carbon-soft); display: flex; gap: 8px; align-items: center; }
.hero__note svg { width: 18px; height: 18px; flex: none; }
@media (max-width: 599px) { .hero__actions .btn { width: 100%; } }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: start; gap: var(--s-8); }
  .hero__text { padding-top: var(--s-6); padding-bottom: 160px; }
  .hero::after { height: 140px; }
}

/* ---------- slip: the post as a duplicate-book sheet ---------- */
.slips { position: relative; padding: 48px 18px 8px 0; max-width: 520px; width: 100%; justify-self: center; }
.slip-shadow { filter: drop-shadow(0 1px 1px rgb(18 20 74 / .12)) drop-shadow(0 14px 22px rgb(18 20 74 / .28)); }
.slip {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 0 0 var(--r-paper) var(--r-paper);
  padding: 26px 20px 20px;
  /* perforated top edge */
  -webkit-mask: radial-gradient(circle 4px at 7px 0, transparent 97%, #000 100%) 0 0 / 14px 100% repeat-x;
          mask: radial-gradient(circle 4px at 7px 0, transparent 97%, #000 100%) 0 0 / 14px 100% repeat-x;
}
.slip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1.5px solid var(--rule-strong); padding-bottom: 10px; }
.slip__title { font-size: var(--step--1); font-weight: 700; color: var(--carbon-700); letter-spacing: .01em; }
.serial { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--serial-red); font-size: var(--step--1); letter-spacing: .04em; white-space: nowrap; }
.field { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.field:last-child { border-bottom: 0; padding-bottom: 0; }
.field__label { font-size: .8125rem; font-weight: 600; color: var(--carbon-700); }
.field__value { font-size: 1rem; line-height: 1.5; color: var(--carbon-950); }
.field__hint { font-size: .8125rem; color: var(--ink-soft); line-height: 1.45; }
.photo { border-radius: 2px; overflow: hidden; aspect-ratio: 16 / 10; background: #e9e3d8; }
.photo svg { width: 100%; height: 100%; }
.example-chip { position: absolute; right: 12px; top: 64px; font-size: .75rem; font-weight: 700; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: var(--r-chip); }
.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; }
.sign-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.signature { width: 150px; height: 46px; color: var(--carbon-700); }
.signature path { stroke-dasharray: 420; stroke-dashoffset: 0; }
.stamp {
  font-weight: 800; font-size: .8125rem; letter-spacing: .08em; color: var(--ok);
  border: 2px solid currentColor; border-radius: 5px; padding: 4px 8px; transform: rotate(-6deg);
  background: rgb(255 255 255 / .6);
}
.slip--copy { position: absolute; inset: 0 0 auto 18px; height: 100%; padding-top: 22px; }
.slip--yellow { background: var(--copy-yellow); transform: translate(8px, -20px) rotate(-1.4deg); }
.slip--pink { background: var(--copy-pink); transform: translate(16px, -40px) rotate(-2.8deg); }
.slip--copy .slip__title { color: var(--carbon-900); }
.copy-tab { position: absolute; right: 18px; top: 7px; line-height: 1; font-size: .75rem; font-weight: 700; color: var(--carbon-900); }
.slip-front { position: relative; }

@media (prefers-reduced-motion: no-preference) {
  .slip--yellow { animation: fan-y .9s .25s var(--ease-out) both; }
  .slip--pink { animation: fan-p .9s .35s var(--ease-out) both; }
  .signature path { animation: sign 1.1s .7s cubic-bezier(.5, 0, .2, 1) both; }
  .stamp { animation: stamp .35s 1.7s var(--ease-out) both; }
  @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); }
.section__head { max-width: 40rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head p { margin-top: var(--s-4); font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.section--paper { background: var(--paper); }

/* steps: one ticket strip, three stubs, perforated between */
.steps { list-style: none; margin: 0; padding: 0; display: grid; background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); }
.step { display: grid; grid-template-columns: 56px 1fr; }
.step + .step { border-top: 2px dashed var(--rule-strong); }
.step__no { display: flex; align-items: flex-start; justify-content: center; padding-top: 22px; border-right: 2px dashed var(--rule); font-size: 2.5rem; font-weight: 800; line-height: 1; color: var(--serial-red); font-variant-numeric: tabular-nums; font-variation-settings: "FLAR" 100, "VOLM" 50; }
.step__body { padding: 24px 20px 26px; }
.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) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .step + .step { border-top: 0; border-left: 2px dashed var(--rule-strong); }
  .step__no { justify-content: flex-start; border-right: 0; border-bottom: 2px dashed var(--rule); padding: 28px 32px 20px; font-size: 3.5rem; }
  .step__body { padding: 28px 32px 36px; }
}

/* approval */
.approval { display: grid; gap: var(--s-7); align-items: center; }
.approval__text h2 { max-width: 16ch; }
.approval__text p { margin-top: var(--s-4); font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; max-width: 34rem; }
.record { background: var(--copy-pink); border-radius: var(--r-paper); box-shadow: var(--shadow-lift); padding: var(--s-5); max-width: 460px; width: 100%; justify-self: center; transform: rotate(-1.2deg); }
.record dl { margin: 12px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0 16px; }
.record dt, .record dd { padding: 10px 0; border-bottom: 1px solid rgb(28 31 110 / .2); margin: 0; }
.record dt { font-size: .8125rem; font-weight: 600; color: var(--carbon-700); padding-top: 12px; }
.record dd { font-weight: 600; color: var(--carbon-950); font-variant-numeric: tabular-nums; }
.record dl > :nth-last-child(-n+2) { border-bottom: 0; }
.record__foot { margin-top: 10px; font-size: .8125rem; color: var(--carbon-900); }
@media (min-width: 900px) { .approval { grid-template-columns: 1.1fr .9fr; gap: var(--s-9); } }

/* accounts: does / does not */
.ledger { display: grid; gap: var(--s-5); }
.ledger__col { background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); padding: var(--s-5) var(--s-5) var(--s-3); }
.ledger__col h3 { display: flex; align-items: center; gap: 10px; padding-bottom: var(--s-3); border-bottom: 1.5px solid var(--rule-strong); }
.ledger__col h3 svg { width: 26px; height: 26px; flex: none; }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.ledger li:last-child { border-bottom: 0; }
.ledger--yes h3 { color: var(--ok); }
.ledger--no h3 { color: var(--serial-red); }
@media (min-width: 820px) { .ledger { grid-template-columns: 1fr 1fr; } }

/* channels */
.channel-list { list-style: none; margin: 0; padding: 0; display: grid; background: var(--paper); border-radius: var(--r-paper); box-shadow: var(--shadow-paper); }
.channel { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 10px var(--s-5); border-bottom: 1px solid var(--rule); }
.channel__name { font-weight: 650; font-size: var(--step-1); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-chip); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status--soon { color: var(--carbon-700); background: var(--carbon-100); }
.status--review { color: var(--wait); background: var(--wait-bg); }
.status--open { color: var(--ok); background: var(--ok-bg); }
.channels-note { margin-top: var(--s-5); color: var(--ink-soft); max-width: 40rem; }
@media (min-width: 820px) {
  .channel-list { grid-template-columns: 1fr 1fr; }
  .channel:nth-child(odd) { border-right: 1px solid var(--rule); }
  .channel:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 819px) { .channel:last-child { border-bottom: 0; } }

/* who it is for: an order list */
.orders { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.order { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.order__who { font-weight: 720; font-size: var(--step-1); font-variation-settings: "FLAR" 100, "VOLM" 0; }
.order__what { color: var(--ink-soft); }
@media (min-width: 820px) {
  .order { grid-template-columns: 15rem 1fr; gap: var(--s-6); align-items: baseline; padding: 22px 0; }
}

/* faq */
.faq { max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; font-weight: 650; font-size: var(--step-1); line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 24px; height: 24px; flex: none; color: var(--carbon-700); transition: transform .25s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 65ch; }

/* closing band */
.closing { padding-block: clamp(64px, 8vw, 112px); }
.closing .wrap { display: grid; gap: var(--s-6); align-items: center; }
.closing h2 { max-width: 18ch; }
.closing p { margin-top: var(--s-4); color: var(--on-carbon-soft); font-size: var(--step-1); }
@media (min-width: 900px) { .closing .wrap { grid-template-columns: 1fr auto; } }

/* 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; } }
.slip-shadow--copy { position: absolute; inset: 48px 18px 8px 0; }
.slip-shadow--copy .slip { height: 100%; }
.record .slip__head { border-color: rgb(28 31 110 / .35); }
