/*
 * walden.css: the Walden marketing system (deliberatestudio.com).
 *
 * Shared by the marketing pages that opt in with <body class="walden">: the
 * homepage first, /interview and the rest next. Page-specific layout stays in
 * each page.
 *
 * Tokens are prefixed --w-* so they never collide with /brand.css (which
 * marketingHtml loads first in <head> and still feeds the app + the older
 * marketing pages). Everything else is scoped under .walden, so loading this
 * file on a page that has not opted in changes nothing.
 *
 * Walden is dark-first by design: one world, no light theme.
 * Contrast (WCAG, body text): linen 13.6:1 and birch 8:1 on peat; lichen is
 * 4.66:1 on peat, so on panels small text uses --w-dim (5:1) instead. Pond
 * (#4f8a5c) is for marks, rules and focus rings, never small text; green text
 * uses --w-pond-hi.
 */

@font-face { font-family: 'Newsreader'; src: url(/fonts/newsreader.woff2?v=a861dcc978) format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Newsreader'; src: url(/fonts/newsreader-italic.woff2?v=fd2a538561) format('woff2'); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/source-sans-3-400.woff2?v=6edbd48bf7) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Source Sans 3'; src: url(/fonts/source-sans-3-600.woff2?v=580c656198) format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --w-peat: #1d1b15;
  --w-panel: #25221b;
  --w-panel2: #2c2921;
  --w-linen: #ece4d2;
  --w-birch: #b9b09c;
  --w-lichen: #8a8572;
  --w-dim: #96917d;
  --w-root: #3a362b;
  --w-edge: #7a7462;   /* control borders: 3.1–3.7:1 on peat/panel (WCAG 1.4.11) — root is for decoration only */
  --w-rule: #2f2b22;
  --w-pond: #4f8a5c;
  --w-pond-hi: #6fae7d;
  --w-pond-deep: #24301f;
  --w-amber: #c99a4a;
  --w-danger: #e08a72;
  --w-serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --w-ui: 'Source Sans 3', -apple-system, 'Segoe UI', sans-serif;
}

/* ── base ─────────────────────────────────────────────────────────── */
html:has(body.walden) { background: var(--w-peat); color-scheme: dark; }
body.walden {
  margin: 0; background: var(--w-peat); color: var(--w-linen);
  font: 400 18px/1.55 var(--w-ui);
  padding: 0 clamp(16px, 5vw, 64px) 48px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
.walden *, .walden *::before, .walden *::after { box-sizing: border-box; }
.walden [hidden] { display: none !important; }
.walden a { color: inherit; }
.walden p { margin: 0; }
.walden :focus-visible { outline: 2px solid var(--w-pond); outline-offset: 3px; }
.walden .wrap { max-width: 1180px; margin: 0 auto; }
.walden .sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── type ─────────────────────────────────────────────────────────── */
.walden h1, .walden h2, .walden h3 {
  font-family: var(--w-serif); font-weight: 400; letter-spacing: -.008em;
  font-variation-settings: "opsz" 72; text-wrap: balance; margin: 0;
}
.walden h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; }
.walden h2 { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.08; }
.walden .eb { font: 600 13px/1.3 var(--w-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--w-lichen); }
.walden .lede { font-family: var(--w-serif); font-size: 18px; color: var(--w-birch); max-width: 46ch; }
.walden .muted { color: var(--w-lichen); }
/* The green full stop that ends a headline. Click it: pond ripple. */
.walden .stop { color: var(--w-pond); cursor: pointer; display: inline-block; }

/* ── buttons + inputs ─────────────────────────────────────────────── */
.walden .btn {
  font: 600 16px/1 var(--w-ui); display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  background: var(--w-linen); color: var(--w-peat); text-decoration: none; border: 0;
  padding: .85em 1.2em; border-radius: 6px; cursor: pointer; transition: transform .15s, background .15s;
}
.walden .btn:hover { transform: translateY(-1px); background: #fff6e4; }
.walden .btn:disabled { opacity: .7; cursor: progress; transform: none; }
.walden .btn.sm { font-size: 15px; padding: .6em .95em; }
.walden .input {
  min-width: 0; font: 400 16px/1.2 var(--w-ui); color: var(--w-linen);
  background: var(--w-panel); border: 1px solid var(--w-edge); border-radius: 6px; padding: .8em 1em;
}
.walden .input::placeholder { color: var(--w-dim); }
.walden .input:focus { outline: none; border-color: var(--w-pond); }
.walden .input[aria-invalid="true"] { border-color: var(--w-danger); }
.walden .field-err { font-size: 15px; color: var(--w-danger); min-height: 0; }
.walden .field-err:empty { display: none; }

/* ── surfaces ─────────────────────────────────────────────────────── */
.walden .panel { background: var(--w-panel); border: 1px solid var(--w-root); border-radius: 12px; }
.walden .disc {
  width: 34px; height: 34px; border-radius: 50%; background: var(--w-panel2); border: 1px solid var(--w-root);
  display: inline-grid; place-items: center; font: 500 15px/1 var(--w-serif); color: var(--w-linen); flex: none;
}
.walden .chip { font: 600 13px/1 var(--w-ui); color: var(--w-pond-hi); border: 1px solid #2f4a35; border-radius: 99px; padding: .5em .8em; }

/* ── header ───────────────────────────────────────────────────────── */
.walden header.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; border-bottom: .75px solid var(--w-root);
}
.walden .wm { display: block; line-height: 0; }
.walden .wm img { height: 28px; width: auto; display: block; }
.walden header.top nav { display: flex; gap: 22px; align-items: center; }
.walden header.top nav a:not(.btn) { font-size: 15px; color: var(--w-birch); text-decoration: none; }
.walden header.top nav a:not(.btn):hover { color: var(--w-linen); }
@media (max-width: 520px) {
  .walden header.top nav a:not(.btn) { display: none; }
  .walden .wm img { height: 22px; }
}

/* ── sections ─────────────────────────────────────────────────────── */
.walden section { padding: 96px 0 0; }
.walden .head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 34px; }
@media (max-width: 640px) { .walden section { padding-top: 72px; } }

/* ── footer ───────────────────────────────────────────────────────── */
.walden footer.foot {
  margin-top: 90px; padding-top: 22px; border-top: .75px solid var(--w-root);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  font-size: 15px; color: var(--w-lichen); position: relative;
}
.walden footer.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.walden footer.foot a { color: var(--w-birch); text-decoration: none; }
.walden footer.foot a:hover { color: var(--w-linen); text-decoration: underline; }

/* ── long-form documents: /privacy, /terms and the other policy pages ──
 * <main class="doc"> holds the page's own header (eyebrow, h1, date line) and
 * its text. Class names are the ones the policy pages already carried
 * (.eyebrow, .updated, .sub, .callout, .table-row …) so restyling them never
 * meant touching the policy markup. A body column of ~66ch; the page title gets
 * the green full stop, numbered clause headings get their numeral set as a
 * serif figure (<span class="n">), never a full stop of their own. */
.walden .doc { max-width: 46rem; padding: 64px 0 0; }
.walden .doc > header, .walden .doc .doc-head { display: grid; gap: 12px; padding: 0 0 34px; margin: 0 0 40px; border-bottom: .75px solid var(--w-root); }
.walden .doc h1 { font-size: 40px; line-height: 1.06; }
.walden .doc .eyebrow { font: 600 13px/1.3 var(--w-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--w-lichen); }
.walden .doc .updated, .walden .doc .sub { font-size: 15px; color: var(--w-dim); max-width: 66ch; }
.walden .doc .sub { font-size: 18px; color: var(--w-birch); }
.walden .doc .container { max-width: none; padding: 0; margin: 0; }
.walden .doc section { padding: 0; margin: 0 0 44px; }
.walden .doc p, .walden .doc li { font-size: 18px; line-height: 1.65; color: var(--w-birch); max-width: 66ch; }
.walden .doc p { margin: 0 0 1em; }
.walden .doc strong, .walden .doc b { color: var(--w-linen); font-weight: 600; }
.walden .doc em { font-family: var(--w-serif); font-style: italic; }
.walden .doc a { color: var(--w-pond-hi); text-underline-offset: 3px; }
.walden .doc a:hover { color: var(--w-linen); }
.walden .doc code { font: 15px/1.4 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: var(--w-linen); background: var(--w-panel); border: 1px solid var(--w-rule); border-radius: 4px; padding: .08em .36em; overflow-wrap: anywhere; }
.walden .doc h2 { font-size: 24px; line-height: 1.18; color: var(--w-linen); margin: 0 0 .6em; scroll-margin-top: 24px; }
.walden .doc * + h2 { margin-top: 1.9em; }
.walden .doc section > h2:first-child { margin-top: 0; }
.walden .doc h3 { font: 600 18px/1.4 var(--w-ui); color: var(--w-linen); margin: 1.6em 0 .45em; }
/* clause numerals: a serif figure ahead of the heading, never its own stop */
.walden .doc .n { font-family: var(--w-serif); font-weight: 400; color: var(--w-pond-hi); font-variant-numeric: lining-nums tabular-nums; margin-right: .1em; }
.walden .doc h3 .n { font-size: 1.08em; }
/* all-caps clause headings (the platform terms): set small, tracked, serif */
.walden .doc.caps h2 { font-size: 24px; letter-spacing: .06em; line-height: 1.35; padding-top: 1.5em; border-top: .75px solid var(--w-root); }
.walden .doc.caps h2.annex { margin-top: 2.6em; font-size: 24px; color: var(--w-linen); }
.walden .doc.caps h3 { font-size: 18px; }
/* lists: an em rule in pond, no browser bullets */
.walden .doc ul { list-style: none; margin: 0 0 1.1em; padding: 0; }
.walden .doc ul > li { position: relative; padding: 0 0 0 1.5em; margin: 0 0 .55em; }
.walden .doc ul > li::before { content: "—"; position: absolute; left: 0; color: var(--w-pond); }
.walden .doc ol { margin: 0 0 1.1em; padding: 0 0 0 1.6em; }
.walden .doc ol > li { margin: 0 0 .55em; padding-left: .2em; }
.walden .doc ol > li::marker { font-family: var(--w-serif); color: var(--w-pond-hi); }
/* notes: a left rule, not a box */
.walden .doc .callout, .walden .doc .draft { border-left: 2px solid var(--w-pond); padding: 4px 0 4px 18px; margin: 1.4em 0; }
.walden .doc .callout p { margin: 0; }
.walden .doc .draft { border-left-color: var(--w-amber); font-size: 16px; color: var(--w-birch); max-width: 66ch; }
.walden .doc .plain { font: italic 400 18px/1.55 var(--w-serif); color: var(--w-dim); }
/* house table: label column + value, hairline rules, stacks on phones */
.walden .doc .table { margin: 1.2em 0 1.4em; border-top: 1px solid var(--w-root); max-width: 66ch; }
.walden .doc .table-row { display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); gap: 6px 24px; padding: 14px 0; border-bottom: 1px solid var(--w-rule); }
.walden .doc .table-label { font: 600 15px/1.45 var(--w-ui); color: var(--w-linen); }
.walden .doc .table-value { font-size: 16px; line-height: 1.6; color: var(--w-birch); }
@media (max-width: 600px) { .walden .doc .table-row { grid-template-columns: minmax(0, 1fr); } }
/* the document's own sign-off (version lines, addresses): kept, set quiet */
.walden .doc .colophon { margin-top: 48px; padding-top: 18px; border-top: .75px solid var(--w-root); font-size: 15px; line-height: 1.6; color: var(--w-dim); max-width: 66ch; }
.walden .doc .colophon a { color: var(--w-birch); }
@media (max-width: 640px) { .walden .doc { padding-top: 40px; } .walden .doc p, .walden .doc li { font-size: 18px; } }
@media print {
  body.walden { background: #fff; color: #000; }
  .walden header.top, .walden footer.foot { display: none; }
  .walden .doc a { color: #000; }
  .walden .doc p, .walden .doc li, .walden .doc .table-value, .walden .doc .updated, .walden .doc .sub { color: #222; }
  .walden .doc h1, .walden .doc h2, .walden .doc h3, .walden .doc strong, .walden .doc b, .walden .doc .table-label { color: #000; }
}

/* ── duotone photo: people sit inside the brand ───────────────────── */
.walden .ph { position: relative; display: block; border-radius: 8px; overflow: hidden; width: 96px; height: 120px; flex: none; }
.walden .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08) brightness(.95); display: block; }
.walden .ph::after { content: ""; position: absolute; inset: 0; background: #c9b48a; mix-blend-mode: multiply; opacity: .38; }
.walden .ph::before { content: ""; position: absolute; inset: 0; background: var(--w-peat); mix-blend-mode: screen; opacity: .18; z-index: 1; }

/* ── the pond ripple (full-stop easter egg) ───────────────────────── */
.walden .ripple {
  position: fixed; pointer-events: none; border: 1px solid var(--w-pond); border-radius: 50%;
  width: 8px; height: 8px; margin: -4px 0 0 -4px; animation: w-rip 1.4s ease-out forwards; z-index: 60;
}
@keyframes w-rip { to { transform: scale(22); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .walden .btn, .walden .btn:hover { transition: none; transform: none; }
  .walden .ripple { display: none; }
}
