:root {
  --paper: #F6F3EE;
  --ink: #16130F;
  --muted: #5E574E;
  --accent: #D9553F;
  /* Coral is too light for small text on paper. This one passes 4.5:1. */
  --accent-ink: #B8432F;
  --tint: #FBE9E5;
  --card: #FFFFFF;
  --line: rgba(22, 19, 15, 0.08);
  --shadow: 0 1px 2px rgba(22, 19, 15, 0.05), 0 12px 32px rgba(22, 19, 15, 0.07);
  --radius: 20px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

.wrap {
  width: min(100% - 32px, var(--max, 960px));
  margin-inline: auto;
}

/* Text pages share one narrow column, so the logo lines up with the card. */
.page-legal,
.page-doc {
  --max: 760px;
}

a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-ink);
}

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

.card {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Header (every page except home) */

.site-header {
  padding: 20px 0 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

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

/* Home */

.hero {
  padding: clamp(36px, 9vw, 80px) 0 clamp(28px, 6vw, 48px);
  text-align: center;
}

.hero-logo {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto;
  filter: drop-shadow(0 10px 22px rgba(217, 85, 63, 0.3));
}

.hero h1 {
  margin: 28px 0 12px;
  font-size: clamp(2.5rem, 9vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.tagline {
  max-width: 28em;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1.15rem, 3.4vw, 1.5rem);
  line-height: 1.4;
  text-wrap: balance;
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 8px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(22, 19, 15, 0.05);
  font-size: 0.95rem;
  font-weight: 600;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 820px) {
  .points {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
  }
}

/* Icon, title and text line up across the three cards, even if a title wraps. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 820px) {
    .point {
      display: grid;
      grid-template-rows: subgrid;
      grid-row: span 3;
      row-gap: 0;
    }
  }
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--tint);
  color: var(--accent);
}

.point h2 {
  margin: 18px 0 6px;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.point p {
  margin: 0;
  color: var(--muted);
  text-wrap: pretty;
}

.account {
  margin-top: 16px;
}

.account h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.account p {
  max-width: 70ch;
  margin: 0;
  color: var(--muted);
}

/* Privacy, terms, support, 404 */

.doc {
  margin: 24px 0 56px;
  padding: clamp(22px, 5vw, 48px);
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.doc h2 {
  margin: 2.2rem 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.doc h3 {
  margin: 1.8rem 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.35;
}

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

.doc ul {
  padding-left: 1.3rem;
}

.doc li {
  margin: 0.5rem 0;
  padding-left: 0.2rem;
}

.doc li::marker {
  color: var(--accent);
}

.doc code {
  padding: 0.1em 0.35em;
  background: var(--paper);
  border-radius: 6px;
  font: 0.92em ui-monospace, SFMono-Regular, Menlo, monospace;
}

.legal h1 + p {
  margin-bottom: 1.8rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Footer */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  align-items: center;
}

.site-footer nav a {
  padding: 8px 6px;
  color: inherit;
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.site-footer nav span {
  padding: 0 6px;
}

/* The link before it already has 6px of padding, so this spaces the dot evenly. */
.site-footer .sep {
  padding: 0 12px 0 6px;
}

@media (max-width: 520px) {
  .site-footer {
    flex-direction: column;
  }

  .site-footer .sep {
    display: none;
  }
}
