:root {
  --night: #0e1130;
  --dusk: #1d2257;
  --glow: #3e48b8;
  --peach: #ffa477;
  --peach-light: #ffd9b8;
  --mint: #6fffe0;
  --paper: #f7f6ff;
  --muted: #9ea3d6;

  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  color: var(--paper);
  font: 1.0625rem/1.6 var(--sans);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, var(--glow) 0%, var(--dusk) 45%, transparent 80%),
    var(--night);
  background-repeat: no-repeat;
}

a {
  color: var(--peach);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--peach-light);
}

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

/* Home: the viewfinder is the page */

.home {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 0;
  text-align: center;
}

.viewfinder {
  width: min(84vw, 62svh, 34rem);
  height: auto;
  margin-bottom: 2.5rem;
  overflow: visible;
  cursor: row-resize;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.home h1 {
  margin: 0;
  font: 900 clamp(2rem, 6vw, 3rem)/1 var(--rounded);
  letter-spacing: -0.03em;
}

.home main p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  text-wrap: balance;
}

.home footer {
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9375rem;
}

/* Text pages like the privacy policy */

.wrap {
  width: min(100% - 3rem, 68rem);
  margin-inline: auto;
}

.masthead {
  padding-block: 2rem;
}

.masthead a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--paper);
  font: 800 1.25rem/1 var(--rounded);
  text-decoration: none;
}

.masthead img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.6rem;
}

.prose {
  padding-bottom: 2rem;
}

.prose > :not(h1) {
  max-width: 34rem;
}

.prose h1 {
  margin: 1rem 0 1.5rem;
  font: 900 clamp(1.875rem, 8vw, 3.25rem)/1.05 var(--rounded);
  letter-spacing: -0.02em;
  hyphens: auto;
  overflow-wrap: break-word;
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font: 800 1.375rem/1.25 var(--rounded);
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.prose code {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--mint);
}

footer.wrap {
  padding-block: 3rem 4rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

footer p {
  margin: 0;
}
