/* DMagical base: tokens, type, and the few elements every page shares. */
@font-face {
  font-family: "Mona";
  src: url("/fonts/mona-sans-v2.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  /* palette: the light of a phone screen at noon, ink, and green that only ever means money */
  --canvas: #f2f3f5;
  --paper: #ffffff;
  --ink: #0e1014;
  --ink-2: #2a2e37;
  --graphite: #5a6070;
  --mist: #8b91a0;
  --line: rgba(14, 16, 20, 0.09);
  --line-2: rgba(14, 16, 20, 0.16);
  --money: #0b9e62;
  --money-deep: #06714a;
  --money-wash: #e3f6ec;
  --dm: #0a7cff;          /* the unread dot, the DM being sent */
  --alert: #d4402f;

  --r-s: 8px;
  --r-m: 14px;
  --r-l: 22px;
  --shadow-1: 0 1px 2px rgba(14, 16, 20, 0.06), 0 2px 6px rgba(14, 16, 20, 0.04);
  --shadow-2: 0 1px 2px rgba(14, 16, 20, 0.05), 0 8px 24px rgba(14, 16, 20, 0.08), 0 24px 48px -12px rgba(14, 16, 20, 0.12);

  /* type scale, ratio 1.25 from 16px, display fluid */
  --t-xs: 0.8rem;
  --t-s: 0.9rem;
  --t-m: 1rem;
  --t-l: 1.25rem;
  --t-xl: clamp(1.4rem, 1.1rem + 1vw, 1.95rem);
  --t-2xl: clamp(1.8rem, 1.2rem + 2.2vw, 3.05rem);
  --t-3xl: clamp(2.5rem, 1.4rem + 4.6vw, 5.2rem);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-snap: cubic-bezier(0.3, 1.4, 0.5, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Mona", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: var(--t-m);
  line-height: 1.55;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--dm); outline-offset: 3px; border-radius: 4px; }

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

/* the wordmark: DM set wide and heavy, the rest of the word at text width */
.mark {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mark b { font-stretch: 125%; font-weight: 900; letter-spacing: -0.01em; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.top nav { display: flex; align-items: center; gap: 4px; }
.top nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: var(--t-s);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.top nav a:hover { background: rgba(14, 16, 20, 0.06); color: var(--ink); }
.top nav a.go { background: var(--ink); color: var(--paper); padding: 9px 16px; }
.top nav a.go:hover { background: #262a33; }
@media (max-width: 720px) {
  .top nav a.hide-s { display: none; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 650;
  font-size: var(--t-m);
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 1px 2px rgba(14, 16, 20, 0.2), 0 6px 16px -6px rgba(14, 16, 20, 0.45);
  transition: transform 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}
.btn:hover { background: #20242c; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(14, 16, 20, 0.25); }
.btn .arrow { transition: transform 220ms var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.quiet { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-1); }
.btn.quiet:hover { background: #f7f8fa; }

.foot { padding: 56px 0 40px; color: var(--graphite); font-size: var(--t-s); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot .legal { grid-column: 1 / -1; color: var(--mist); font-size: var(--t-xs); border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 720px) { .foot .wrap { grid-template-columns: 1fr; } }

/* long-form documents (privacy, terms, data deletion) */
.doc { padding: clamp(40px, 7vw, 88px) 0 40px; }
.doc .wrap { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 68ch); gap: clamp(24px, 5vw, 72px); }
.doc h1 { font-size: var(--t-2xl); line-height: 1.05; letter-spacing: -0.025em; font-weight: 780; font-stretch: 112%; margin: 0 0 10px; }
.doc .stamp { color: var(--graphite); margin: 0 0 36px; }
.doc h2 { font-size: var(--t-l); letter-spacing: -0.015em; font-weight: 700; margin: 44px 0 10px; scroll-margin-top: 88px; }
.doc h3 { font-size: var(--t-m); font-weight: 700; margin: 24px 0 6px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: var(--t-s); margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { font-weight: 650; color: var(--ink); }
.doc aside { position: sticky; top: 96px; align-self: start; font-size: var(--t-s); }
.doc aside a { display: block; text-decoration: none; color: var(--graphite); padding: 5px 0; }
.doc aside a:hover { color: var(--ink); }
.doc .flush { margin-top: 0; }
.doc .wrap.single { grid-template-columns: minmax(0, 68ch); }
.doc .box { background: var(--paper); border-radius: var(--r-m); box-shadow: 0 0 0 1px var(--line), var(--shadow-1); padding: 20px 22px; margin: 18px 0; }
@media (max-width: 860px) {
  .doc .wrap { grid-template-columns: 1fr; }
  .doc aside { position: static; display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
