/* Iowan Old Style Bold — licensed web font (Fontspring/ParaType, perpetual,
   10k pageviews/month; EULA in site/LICENSES). Self-hosted so the headline
   renders identically in every browser; New York is unusable here because
   Apple exposes it only through ui-serif, which Chromium does not implement.
   Declared at 700 to match the actual face — a lighter declaration would make
   browsers synthesize bold on top of an already-bold font. Named "Iowan Web"
   rather than "Iowan Old Style" so it cannot collide with the copy macOS
   bundles: a colliding name lets Macs render the system cut instead of this
   licensed one, which is the cross-device drift this font exists to remove. */
@font-face {
  font-family: "Iowan Web";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/iowan-old-style-bold.woff2") format("woff2");
}

:root {
  --paper: #fbfbfc;
  --ink: #202125;
  --muted: #8a8c92;
  --hairline: rgba(26, 28, 31, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131417;
    --ink: #f2f2f3;
    --muted: #9a9ca3;
    --hairline: rgba(242, 242, 243, 0.1);
  }
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}

::selection {
  background: rgba(232, 51, 245, 0.18);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
}

/* Also the link back to / on 404.html, hence the anchor resets. */
.wordmark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.wordmark-mark {
  width: 1.05rem;
  height: auto;
  fill: currentColor;
}

.platform-tag {
  font-size: 0.8rem;
  color: var(--muted);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
}

.mark {
  width: clamp(4.5rem, 12vw, 6.5rem);
  height: auto;
  margin-bottom: 2.75rem;
  animation: turn 240s linear infinite;
}

@keyframes turn {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mark {
    animation: none;
  }
}

h1 {
  font-family: "Iowan Web", Georgia, serif;
  font-size: clamp(1.9rem, 5.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
  max-width: 24ch;
}

.lede {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* 404.html only — sits where the signup form does on the home page. */
.backlink {
  margin-top: 2.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  width: min(100%, 26rem);
  font-size: 0.95rem;
  font-weight: 500;
}

.backlink a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-underline-offset: 0.3em;
  text-decoration-thickness: 1px;
}

.backlink a:hover {
  text-decoration-color: currentColor;
}

.backlink a:focus-visible {
  outline: 2px solid #b465e0;
  outline-offset: 3px;
  border-radius: 3px;
}

.signup {
  margin-top: 2.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.5rem;
  width: min(100%, 26rem);
}

.signup-lede {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-wrap: balance;
}

.signup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.signup-row input[type="email"] {
  flex: 1 1 12rem;
  min-width: 0;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
}

.signup-row input[type="email"]::placeholder {
  color: var(--muted);
}

.signup-row input[type="email"]:focus-visible,
.signup-row button:focus-visible {
  outline: 2px solid #b465e0;
  outline-offset: 2px;
}

.signup-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup-row button {
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paper);
  background: var(--ink);
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.2rem;
  cursor: pointer;
}

.signup-row button:disabled {
  opacity: 0.6;
  cursor: default;
}

.signup-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.colophon {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 2rem 1.75rem;
}

.citation {
  font-family: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
}

.fine {
  font-size: 0.72rem;
  color: var(--muted);
}

@media (max-width: 540px) {
  .masthead,
  .colophon {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}
