/* Self-hosted so the page makes no third-party requests */
@font-face { font-family: 'Barlow Condensed'; font-weight: 500; font-display: swap; src: url(fonts/barlowcondensed-500.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url(fonts/barlowcondensed-600.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url(fonts/chakrapetch-500.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url(fonts/chakrapetch-600.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url(fonts/chakrapetch-700.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400 600; font-display: swap; src: url(fonts/dmsans-variable.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url(fonts/jetbrainsmono-400.woff2) format('woff2'); }

/* Palette and accents come straight from the watch face (watchface.xml). */
:root {
  --bg: #030507;
  --surface: #0a0e14;
  --text: #ecf2f8;
  --muted: #8c97a3;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --accent: #ffb020;
  --accent-dim: #2b2008;
  --red: #ff3b3b;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header: 65px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --display: 'Chakra Petch', sans-serif;
  --numeric: 'Barlow Condensed', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 100%;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header) + 1.5rem);
}

body { min-height: 100vh; background: var(--bg); overflow-x: clip; }

/* Film grain */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus { top: 0.6rem; }

.label {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.3s var(--ease);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand-link { display: inline-flex; flex: none; }
.brand-lockup { height: 36px; width: auto; display: block; }
nav { display: flex; align-items: center; gap: clamp(0.75rem, 2.5vw, 2rem); }
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--muted);
  transition: color 0.15s ease;
}
nav a:hover { color: var(--accent); }

/* Privacy policy */
.policy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.policy + .policy { border-top: 1px solid var(--line); }
.policy-head {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  position: sticky;
  top: var(--header);
  align-self: start;
}
.policy-head h1, .policy-head h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0.5rem 0 2.25rem;
}
.policy-meta { display: grid; gap: 0; max-width: 30rem; border-top: 1px solid var(--line-strong); font-size: 0.9rem; }
.policy-meta div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 1rem; padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
.policy-meta dt { color: var(--muted); }
.policy-body {
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
  border-left: 1px solid var(--line);
  font-size: 1rem;
}
.policy-body > * { max-width: 40rem; }
.policy-body h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 2.75rem 0 0.75rem;
}
.policy-body h3:first-child { margin-top: 0; }
.policy-body p { margin-bottom: 0.9rem; color: #c6ced6; }
.policy-body strong { color: var(--text); font-weight: 600; }
.policy-body ul { list-style: none; color: #c6ced6; }
.policy-body li { padding: 0.9rem 0; border-top: 1px solid var(--line); }
.policy-body a { color: var(--accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
code { font-family: var(--mono); font-size: 0.84em; font-weight: 400; color: var(--text); background: rgba(255, 255, 255, 0.07); padding: 0.1em 0.35em; overflow-wrap: anywhere; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 2rem var(--gutter); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; font-size: 0.88rem; color: var(--muted); }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.footer-brand img { height: 24px; width: auto; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (max-width: 959px) {
  .policy { grid-template-columns: minmax(0, 1fr); }
  .policy-head { position: static; padding-bottom: 0; }
  .policy-body { border-left: 0; padding-top: 2.5rem; }
}
@media (max-width: 560px) {
  .brand-lockup { height: 20px; }
  header { gap: 0.75rem; }
  nav { gap: clamp(0.3rem, 1.6vw, 0.5rem); }
  nav a { font-size: clamp(0.56rem, 2.75vw, 0.66rem); letter-spacing: 0.06em; }
  .nav-long { display: none; }
  .policy-meta div { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
