:root {
  --bg: #000000;
  --red: rgb(204, 28, 36);
  --white: #f4f4f4;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
}

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

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--white);
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Michroma", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 4.5rem 1.5rem 2.5rem;
}

h1 {
  font-size: 0;
  line-height: 0;
}

.logo {
  display: block;
  width: min(36rem, 86vw);
  height: auto;
}

.tagline {
  margin-top: 2.4rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(0.68rem, 2.15vw, 0.86rem);
  letter-spacing: 0.1em;
  line-height: 1.8;
}

.contact {
  margin-top: 1.85rem;
}

.contact a {
  color: var(--red);
  text-decoration: none;
  font-size: clamp(0.62rem, 2vw, 0.76rem);
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(204, 28, 36, 0.45);
  padding-bottom: 0.18em;
  transition: color 160ms ease, border-color 160ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--red);
  outline: none;
}

footer {
  padding: 1.35rem 1.5rem 1.75rem;
  text-align: center;
}

footer p {
  color: var(--dim);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
}

@media (max-width: 640px) {
  main {
    padding: 5rem 1.25rem 2rem;
  }

  .logo {
    width: min(22rem, 88vw);
  }

  .tagline {
    margin-top: 1.9rem;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact a {
    transition: none;
  }
}

/* Document pages (privacy, support) */
body.doc header {
  display: flex;
  justify-content: center;
  padding: 1.75rem 1.5rem 0;
}

body.doc header a {
  display: block;
  text-decoration: none;
}

body.doc header a:hover,
body.doc header a:focus-visible {
  outline: none;
}

body.doc header a:focus-visible .logo {
  outline: 1px solid var(--red);
  outline-offset: 6px;
}

body.doc header .logo {
  width: min(18rem, 70vw);
  height: auto;
}

body.doc main {
  display: block;
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
  width: min(42rem, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.25rem;
}

body.doc h1 {
  font-size: clamp(0.95rem, 2.8vw, 1.2rem);
  line-height: 1.45;
  letter-spacing: 0.08em;
  font-weight: 400;
  color: var(--white);
  margin: 0 0 0.75rem;
}

body.doc .effective {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--muted);
  margin: 0 0 2rem;
}

body.doc .prose {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0;
  color: #e6e6e6;
}

body.doc .prose h2 {
  font-family: "Michroma", system-ui, sans-serif;
  font-size: clamp(0.68rem, 2vw, 0.8rem);
  line-height: 1.5;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: var(--white);
  margin: 2.15rem 0 0.85rem;
}

body.doc .prose p {
  margin: 0 0 1rem;
}

body.doc .prose ul {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
}

body.doc .prose li {
  margin: 0 0 0.6rem;
}

body.doc .prose li:last-child {
  margin-bottom: 0;
}

body.doc .prose a {
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(204, 28, 36, 0.45);
  transition: color 160ms ease, border-color 160ms ease;
}

body.doc .prose a:hover,
body.doc .prose a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--red);
  outline: none;
}

body.doc .prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  color: var(--white);
  overflow-wrap: anywhere;
}

body.doc .note {
  color: var(--muted);
  margin-top: 2rem;
}

@media (max-width: 640px) {
  body.doc header {
    padding: 1.5rem 1.25rem 0;
  }

  body.doc header .logo {
    width: min(14.5rem, 78vw);
  }

  body.doc main {
    padding: 2rem 1.25rem 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.doc .prose a {
    transition: none;
  }
}
