/* folio Kraft Grid, as the website sets it: two colours per theme (kraft and
   graphite), three faces (Newsreader, Hanken Grotesk, DM Mono), rounded
   surfaces, 1px lines, pill buttons. Shared by / and /privacy/.
   The page is light; data-theme="dark" on a band flips it. */

@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-Regular.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/HankenGrotesk-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/DMMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root,
[data-theme="light"] {
  --font-display: "Newsreader", Georgia, serif;
  --font-text: "Hanken Grotesk", Arial, sans-serif;
  --font-code: "DM Mono", "Courier New", monospace;

  --paper: #e8dfcd;
  --paper-2: #dcd0b8;
  --ink: #2e3033;
  --ink-soft: #6b5e4c;
  --on-ink: var(--paper);
  --ink-10: rgba(46, 48, 51, 0.1);
  --ink-18: rgba(46, 48, 51, 0.18);
  --ink-25: rgba(46, 48, 51, 0.25);
}

[data-theme="dark"] {
  --paper: #222326;
  --paper-2: #2c2d31;
  --ink: #e6d6b6;
  --ink-soft: #b39c78;
  --on-ink: var(--paper);
  --ink-10: rgba(230, 214, 182, 0.13);
  --ink-18: rgba(230, 214, 182, 0.23);
  --ink-25: rgba(230, 214, 182, 0.33);
}

/* A dark band sets its own ground and text, so it can sit inside a light page.
   Comes first so any component class can override the ground. */
[data-theme] { background-color: var(--paper); color: var(--ink); }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid var(--ink-18); }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; font-family: var(--font-text); -webkit-font-smoothing: antialiased; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-text); }
h1, h2, h3, h4, p { font-size: inherit; font-weight: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: transparent; letter-spacing: inherit; }
button { cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- shared pieces ---------- */
.pill {
  display: inline-flex; height: 48px; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0 24px; font-family: var(--font-text); font-size: 15px; font-weight: 600;
  background: var(--ink); color: var(--on-ink); transition: opacity .15s, background-color .15s;
}
.pill:hover { opacity: .9; }
.pill-sm { height: 40px; padding: 0 20px; font-size: 14px; }

.eyebrow { font-family: var(--font-code); font-size: 13px; color: var(--ink-soft); }
.eyebrow .n { margin-right: 12px; color: var(--ink); }

/* Floating pill nav; takes the theme of whatever it sits over. */
.nav {
  position: fixed; top: 16px; left: 50%; z-index: 40; transform: translateX(-50%);
  display: flex; width: min(calc(100% - 32px), 760px); align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid var(--ink-18); border-radius: 999px; padding: 8px 8px 8px 20px;
  background-color: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.nav-brand { font-family: var(--font-display); font-size: 24px; line-height: 1; letter-spacing: -0.5px; }
.nav-links { display: none; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-signin { font-size: 14px; color: var(--ink-soft); white-space: nowrap; transition: color .15s; }
.nav-signin:hover { color: var(--ink); }
/* Phones: the nav has room for the brand, one link and the button; the
   smallest show "Sign in" alone. */
.pill-sm { white-space: nowrap; }
@media (max-width: 420px) { .nav-signin { font-size: 13px; } .nav-cta { gap: 12px; } .nav-cta .pill-sm { padding: 0 14px; } }
@media (max-width: 360px) { .nav-reg { display: none; } }

/* ---------- halftone wordmark footer ----------
   Halftone Wordmark Footer by kedhareswer (21st.dev), MIT; see THIRD_PARTY_NOTICES.md. */
.hwf-root {
  position: relative; width: 100%; overflow: hidden; isolation: isolate;
  height: clamp(420px, 62vw, 640px);
  --hwf-bg: #222326; --hwf-ink: #e6d6b6;
  background: var(--hwf-bg); color: var(--hwf-ink); -webkit-font-smoothing: antialiased;
}
.hwf-root canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; max-width: none; }
.hwf-top {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 1fr));
  gap: 24px; padding: clamp(22px, 3.4vw, 40px) clamp(20px, 3.4vw, 44px) 0;
  font-family: var(--font-code); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; line-height: 1.75;
}
.hwf-brand strong { display: block; font-weight: 500; }
.hwf-brand span { opacity: .45; }
.hwf-col h3 { margin: 0; font: inherit; opacity: .4; font-weight: 500; }
.hwf-col a, .hwf-col span, .hwf-up {
  color: inherit; text-decoration: none; opacity: .78; background: none; border: 0; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.hwf-col a, .hwf-up {
  cursor: pointer;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px;
  background-repeat: no-repeat; background-position: 0 100%; transition: opacity .25s ease, background-size .35s cubic-bezier(.2,.7,.1,1);
}
.hwf-col a:hover, .hwf-up:hover { opacity: 1; background-size: 100% 1px; }
.hwf-col a:focus-visible, .hwf-up:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; opacity: 1; }
.hwf-rule {
  position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; gap: 16px;
  margin: clamp(18px, 2.6vw, 30px) clamp(20px, 3.4vw, 44px) 0; padding-top: 12px;
  border-top: 0.5px solid color-mix(in srgb, var(--hwf-ink) 16%, transparent);
  font-family: var(--font-code); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
}
@media (max-width: 720px) {
  .hwf-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 18px; }
  .hwf-brand { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .hwf-col a, .hwf-up { transition: none; }
}
