/* Cachet: shared tokens and base styles for the homepage, privacy page and app. */
:root {
  --paper: #f4f5f3;
  --surface: #ffffff;
  --ink: #1c2430;
  --graphite: #5a6470;
  --faint: #8a929b;
  --rule: #d8dcd9;
  --accent: #2e6a60;
  --accent-wash: #e2ede9;
  --warn: #8a5a14;
  --warn-wash: #f6ecd9;
  --danger: #9b2f2f;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.375rem, 5.2vw, 3.75rem);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --measure: 34rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.55 var(--sans);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
code, .mono { font-family: var(--mono); font-size: 0.9em; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* wordmark */
.mark { display: inline-flex; align-items: center; gap: 0.55rem; text-decoration: none; font-weight: 600;
  font-size: 1.125rem; letter-spacing: -0.02em; }
.mark svg { width: 22px; height: 22px; }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem;
  padding: 0 1.15rem; border-radius: 6px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 500 var(--step-0)/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2a3544; color: var(--paper); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn.quiet:hover { border-color: var(--ink); color: var(--ink); }
.btn.small { min-height: 2.25rem; padding: 0 0.85rem; font-size: var(--step--1); }
.btn[disabled] { opacity: 0.55; cursor: progress; }
label { display: block; font-weight: 500; font-size: var(--step--1); margin: 0 0 0.35rem; }
.hint { color: var(--graphite); font-size: var(--step--1); font-weight: 400; }
input, select, textarea {
  width: 100%; font: 400 var(--step-0)/1.4 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule); border-radius: 6px; padding: 0.65rem 0.75rem; min-height: 2.75rem;
}
textarea { min-height: 6rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash); }
.field { margin-bottom: 1.1rem; }
.notice { border-left: 3px solid var(--accent); background: var(--accent-wash); padding: 0.85rem 1rem;
  border-radius: 0 6px 6px 0; margin: 0 0 1.25rem; }
.notice.warn { border-color: var(--warn); background: var(--warn-wash); }
.error { color: var(--danger); font-size: var(--step--1); margin-top: 0.4rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
