:root {
  color-scheme: light dark;
  --paper: oklch(0.965 0.006 78);
  --paper-raised: oklch(0.985 0.004 78);
  --paper-line: oklch(0.855 0.006 78);
  --ink: oklch(0.185 0.012 80);
  --ink-muted: oklch(0.43 0.01 82);
  --accent: oklch(0.49 0.035 138);
  --accent-soft: oklch(0.89 0.025 138);
  --action: oklch(0.34 0.035 138);
  --action-hover: oklch(0.29 0.035 138);
  --button-text: oklch(0.985 0.004 78);
  --canvas: oklch(0.92 0.007 78);
  --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --text: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(0.205 0.01 78);
    --paper-raised: oklch(0.24 0.009 78);
    --paper-line: oklch(0.345 0.008 78);
    --ink: oklch(0.91 0.008 78);
    --ink-muted: oklch(0.72 0.008 82);
    --accent: oklch(0.7 0.045 138);
    --accent-soft: oklch(0.31 0.025 138);
    --action: oklch(0.72 0.045 138);
    --action-hover: oklch(0.78 0.045 138);
    --button-text: oklch(0.16 0.01 78);
    --canvas: oklch(0.15 0.009 78);
  }
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font: 1rem/1.6 var(--text);
  font-kerning: normal;
}

a {
  color: inherit;
}

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

img {
  display: block;
}

h1,
h2,
p,
ol {
  margin: 0;
}

code {
  padding: 0.08em 0.28em;
  border-radius: 3px;
  background: var(--accent-soft);
  color: var(--ink);
  font: 0.9em/1.3 var(--mono);
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.landing-page,
.page-shell {
  width: min(100%, 50rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 6vw, 4.5rem);
  background: var(--paper);
  box-shadow: 0 0 0 1px var(--paper-line);
}

.masthead {
  min-height: 44px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.hero {
  margin-top: 3rem;
}

.hero h1,
.privacy-document h1 {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.25rem, 8vw, 4.5rem);
}

.intro {
  max-width: 42ch;
  margin-top: 1.4rem;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.65;
}

.install {
  margin-top: 3rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--paper-line);
}

.install h2,
.privacy-document h2 {
  font-family: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.install-list {
  display: grid;
  gap: 1.15rem;
  margin-top: 1.4rem;
  padding-left: 1.6rem;
}

.install-list li {
  padding-left: 0.35rem;
  color: var(--ink-muted);
}

.install-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

.install-list strong,
.use-note strong {
  color: var(--ink);
  font-weight: 700;
}

.download-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1rem;
  border-radius: 4px;
  background: var(--action);
  color: var(--button-text);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.download-link:hover {
  background: var(--action-hover);
}

.use-note {
  max-width: 46ch;
  margin-top: 1.6rem;
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.limits {
  margin-top: 2rem;
  border-top: 1px solid var(--paper-line);
}

.limits summary {
  min-height: 48px;
  padding: 0.75rem 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 650;
}

.limits summary::marker {
  color: var(--accent);
}

.limits-copy {
  max-width: 58ch;
  padding: 0.35rem 0 0.5rem;
}

.limits-copy p {
  color: var(--ink-muted);
  font-size: 0.94rem;
}

.limits-copy p + p {
  margin-top: 0.85rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--paper-line);
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer a,
.privacy-document a {
  text-decoration-color: var(--accent);
  text-underline-offset: 4px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.privacy-page {
  padding-top: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.privacy-document {
  margin-top: clamp(3rem, 9vw, 5rem);
}

.privacy-document h1 {
  font-size: clamp(2.8rem, 8vw, 4.5rem);
}

.privacy-document > .hero-text {
  margin-top: 1rem;
  color: var(--ink-muted);
}

.privacy-document article {
  padding: 1.75rem 0;
  border-top: 1px solid var(--paper-line);
}

.privacy-document > .hero-text + article {
  margin-top: 2.5rem;
}

.privacy-document h2 {
  margin-bottom: 0.65rem;
}

.privacy-document p,
.privacy-document li {
  max-width: 72ch;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.privacy-document p + p {
  margin-top: 0.85rem;
}

@media (max-width: 520px) {
  .landing-page,
  .page-shell {
    box-shadow: none;
  }

  .hero {
    margin-top: 3.25rem;
  }

  .install {
    margin-top: 3.25rem;
  }
}
