/* Shared styles for the static pages: /security, /privacy, /terms, 404, 500. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --line: #e2e8f0;
  --paper: #ffffff;
  --wash: #f8fbff;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --night: #050816;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-hover);
}

.site-header {
  background: var(--night);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f8fafc;
  font-weight: 700;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand img {
  width: 28px;
  height: 28px;
  display: block;
}

.site-nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.site-nav a {
  color: #cbd5e1;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #ffffff;
}

.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 44px 0 10px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h3 {
  margin: 24px 0 6px;
  font-size: 17px;
}

p,
ul,
ol {
  margin: 0 0 14px;
  color: var(--muted);
}

ul,
ol {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  color: var(--ink);
}

.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 680px;
}

.meta {
  font-size: 14px;
  color: var(--subtle);
}

.callout {
  margin: 20px 0;
  padding: 18px 20px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  background: var(--brand-hover);
  color: #ffffff;
}

.btn-quiet {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--line);
}

.btn-quiet:hover {
  background: var(--wash);
  color: var(--brand-hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--subtle);
}

.site-footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-inner a {
  color: var(--subtle);
  text-decoration: none;
}

.site-footer-inner a:hover {
  color: var(--brand);
}

.status-page {
  min-height: calc(100vh - 57px - 73px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.status-code {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: var(--subtle);
}

@media (max-width: 520px) {
  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .brand span {
    display: none;
  }

  .page {
    padding-top: 40px;
  }
}
