:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --text: #141416;
  --text-secondary: #6e6e73;
  --separator: rgba(60, 60, 67, 0.18);
  --accent: #000000;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --text: #ffffff;
    --text-secondary: #a1a1a6;
    --separator: rgba(84, 84, 88, 0.6);
    --accent: #ffffff;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 15px;
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--separator);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  height: 56px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  box-shadow: 0 0 0 1px var(--separator);
}

.site-nav {
  display: flex;
  gap: 20px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  text-decoration: none;
}

main {
  flex: 1;
}

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 20px 64px;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
}

.legal h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
}

.legal h3 {
  font-size: 18px;
  line-height: 1.35;
  margin: 28px 0 8px;
}

.legal p,
.legal li {
  overflow-wrap: anywhere;
}

.legal ul {
  padding-left: 22px;
}

.legal li + li {
  margin-top: 6px;
}

.updated {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 28px;
}

.site-footer {
  border-top: 1px solid var(--separator);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  color: var(--text-secondary);
  font-size: 13px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}

.site-footer nav a {
  color: var(--text-secondary);
}

.site-footer p {
  margin: 0;
}

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 20px 72px;
  text-align: center;
}

.home-logo {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--separator);
}

.home h1 {
  max-width: 16ch;
  margin: 28px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.home p {
  max-width: 40ch;
  margin: 0;
  color: var(--text-secondary);
}

.home a {
  text-decoration: none;
}

.not-found {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 20px;
  text-align: center;
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
}
