/* Comma's website: what every page shares. The look is the App Store screenshots' (store/hand/hand.css, picked by Mir on
   8 Nov) and the app's own tokens (st-theme.css): the orange field, the cream paper, Nunito headlines with one word in a
   box, Inter for the interface, EB Garamond for titles, the script's green for what is said. Fonts are hosted here, so a
   page calls nobody else. */
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url(fonts/nunito-900.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url(fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(fonts/inter-700.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url(fonts/inter-800.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-display: swap; src: url(fonts/ebgaramond-600.woff2) format("woff2"); }
@font-face { font-family: "EB Garamond"; font-weight: 600; font-style: italic; font-display: swap; src: url(fonts/ebgaramond-600i.woff2) format("woff2"); }

:root {
  --ground: #fbf8f2; --panel: #fff; --inset: #f2ece1; --hair: rgba(23, 24, 28, .08);
  --ink: #17181c; --ink-2: #26272d; --muted: #6e6b72; --quiet: #a6a2a8;
  --accent: #ef7a45; --accent-text: #e2622f; --accent-down: #d35a2c;
  --said: #d3f0df; --said-ink: #1b5e3a;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --head: "Nunito", ui-rounded, "SF Pro Rounded", var(--ui);
  --serif: "EB Garamond", Georgia, serif;
  --press-out: cubic-bezier(.3, 1.7, .5, 1); /* the app's press spring (response .34, damping .6), as one curve */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 500 17px/1.6 var(--ui); -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--accent-text); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* The two fields, exactly as on the screenshots. */
.field-orange { color: #fff; background:
  radial-gradient(60% 34% at 18% 8%, rgba(255, 190, 150, .55) 0, rgba(255, 190, 150, 0) 72%),
  radial-gradient(55% 30% at 100% 62%, rgba(255, 160, 110, .45) 0, rgba(255, 160, 110, 0) 72%),
  linear-gradient(180deg, #f47a40 0%, #ee6a30 55%, #e45a22 100%); }
.field-cream { color: var(--ink); background: radial-gradient(70% 40% at 85% 6%, rgba(255, 176, 137, .26) 0, rgba(255, 176, 137, 0) 70%), var(--ground); }

/* The headline: one style everywhere, one word in its box, no shadows. */
.h { margin: 0; font: 900 clamp(46px, 7vw, 100px)/.92 var(--head); letter-spacing: -.035em; text-wrap: balance; }
.h > span { display: block; }
.h .box { display: inline-block; padding: 0 .22em .09em; border-radius: .28em; transform: rotate(-3deg); margin: 0 .05em; }
.field-orange .h .box { background: #fff; color: #e8602a; }
.field-cream .h .box { background: var(--accent); color: #fff; }

/* A button you can feel: in fast, out on a spring; a point of depth under the finger. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 26px; border: 0; border-radius: 28px;
  background: linear-gradient(180deg, #f38a55, #e8692f); color: #fff; font: 700 17px/1 var(--ui); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 8px 18px rgba(232, 105, 47, .3); transition: transform .5s var(--press-out), filter .2s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn:active, .btn.is-down { transform: scale(.96) translateY(1px); filter: brightness(.94); transition: transform .09s cubic-bezier(.2, .8, .2, 1), filter .09s; }
.btn:focus-visible, .nav a:focus-visible, .foot a:focus-visible { outline: 3px solid rgba(23, 24, 28, .55); outline-offset: 3px; }
.btn[disabled] { cursor: default; filter: saturate(.7) brightness(1.04); }
.btn-s { height: 42px; padding: 0 18px; border-radius: 21px; font-size: 15px; }
.btn-white { background: #fff; color: #e8602a; box-shadow: 0 8px 18px rgba(120, 40, 5, .22); }

/* The bar at the top: clear over the orange, paper once the page has moved. */
.nav { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: 68px; padding: 0 max(20px, env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between;
  transition: background-color .25s, box-shadow .25s; }
.nav .brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 900 24px/1 var(--head); letter-spacing: -.03em; transition: color .25s; }
.nav .brand img { width: 38px; height: 38px; border-radius: 10px; }
.nav.is-paper { background: rgba(251, 248, 242, .86); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); box-shadow: 0 1px 0 var(--hair); }
.nav.is-paper .brand { color: var(--ink); }
.nav .btn-white { transition: transform .5s var(--press-out), filter .2s, background .25s, color .25s; }
.nav.is-paper .btn-white { background: linear-gradient(180deg, #f38a55, #e8692f); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px rgba(232, 105, 47, .28); }

/* The foot of every page. */
.foot { display: flex; flex-wrap: wrap; gap: 6px 22px; justify-content: center; align-items: center; font: 600 15px/1.4 var(--ui); }
.foot a { color: inherit; text-decoration: none; opacity: .92; padding: 6px 0; }
.foot a:hover { text-decoration: underline; opacity: 1; }
.foot .who { flex-basis: 100%; text-align: center; opacity: .75; font-weight: 500; margin-top: 4px; }

/* The plain pages (privacy, terms, support, delete your account): paper, one column, easy to read. */
.doc-page { background: var(--ground); }
.doc-page .nav { position: sticky; background: rgba(251, 248, 242, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--hair); }
.doc-page .nav .brand { color: var(--ink); }
.doc { max-width: 720px; margin: 0 auto; padding: 40px 20px 72px; }
.doc h1 { font: 900 clamp(36px, 6vw, 52px)/1 var(--head); letter-spacing: -.03em; margin: 0 0 8px; }
.doc h2 { font: 800 21px/1.3 var(--ui); letter-spacing: -.01em; margin: 40px 0 8px; }
.doc h3 { font: 700 17px/1.4 var(--ui); margin: 22px 0 4px; }
.doc .muted { color: var(--muted); font-size: 15px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .table { width: 100%; overflow-x: auto; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid #eadfd2; }
.doc th { font-weight: 700; }
.doc .box { border: 1px solid #eadfd2; border-radius: 16px; padding: 14px 18px; margin: 18px 0; background: #fff; }
.doc-page .foot { color: var(--muted); padding: 28px 20px 44px; border-top: 1px solid var(--hair); }

/* The help pages' bar (support, feedback board), as on Flamely's board: the brand, a slash, two tabs, one action. */
.nav-tabs { justify-content: flex-start; gap: 16px; }
.nav-tabs .slash { color: var(--quiet); font: 500 24px/1 var(--ui); }
.nav-tabs .tabs { display: flex; align-self: stretch; gap: 24px; }
.nav-tabs .tabs a { display: flex; align-items: center; position: relative; color: var(--muted); text-decoration: none; font: 600 15px/1 var(--ui); }
.nav-tabs .tabs a:hover { color: var(--ink); }
.nav-tabs .tabs a[aria-current] { color: var(--ink); }
.nav-tabs .tabs a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.nav-tabs .btn { margin-left: auto; }
@media (max-width: 560px) {
  .nav-tabs { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 0; }
  .nav-tabs .slash { display: none; }
  .nav-tabs .tabs { order: 3; flex-basis: 100%; height: 46px; }
}
