/* Trackers — Swiss base styles */
:root {
  --paper: #ededea;
  --card: #f6f6f3;
  --ink: #111111;
  --mute: #6d6d68;
  --faint: #b9b9b3;
  --hair: rgba(17, 17, 17, 0.14);
  --grid: rgba(17, 17, 17, 0.07);
  --yellow: #f2c200;
  --red: #e23b2e;
  --blue: #2753c4;
  --black: #111111;
  --white: #ffffff;
  --gutter: 16px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.4;
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.mute { color: var(--mute); }

/* ---------- Segmented toggles ---------- */
.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; overflow: hidden; }
.seg button {
  border: 0; background: transparent; padding: 6px 12px; cursor: pointer;
  font-size: 12px; font-weight: 500; letter-spacing: 0.02em;
}
.seg button + button { border-left: 1px solid var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }

/* ---------- Password gate ---------- */
.gate {
  position: fixed; inset: 0; display: grid; place-items: center;
  background: var(--paper); z-index: 10; padding: var(--gutter);
}
.gate-inner { width: min(360px, 100%); border-top: 2px solid var(--ink); padding-top: 12px; }
.gate-title { font-size: 56px; font-weight: 500; letter-spacing: -0.04em; margin: 8px 0 24px; line-height: 1; }
.gate input[type="password"], .gate input[type="text"] {
  display: block; width: 100%; font: inherit; font-size: 16px; padding: 10px 0; margin-bottom: 8px;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent; outline: none;
}
.gate input[type="password"]:focus, .gate input[type="text"]:focus { border-bottom-width: 2px; padding-bottom: 9px; }
.gate-remember { display: flex; gap: 8px; align-items: center; margin: 16px 0; font-size: 13px; }
.gate button[type="submit"] {
  border: 0; background: var(--ink); color: var(--paper); padding: 10px 18px;
  border-radius: 999px; cursor: pointer; font-weight: 500;
}
.gate-error { color: var(--red); min-height: 1.4em; font-size: 13px; }
