:root {
  color-scheme: light dark;
  --paper: #f3efe7;
  --ink: #1e211d;
  --muted: #6a6d65;
  --accent: #c24f2f;
  --line: rgba(30, 33, 29, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 80% 15%, rgba(194, 79, 47, 0.08), transparent 30rem),
    var(--paper);
}

main,
footer {
  width: min(100% - 3rem, 70rem);
  margin-inline: auto;
}

main {
  align-self: center;
  padding-block: 5rem;
}

.eyebrow {
  margin: 0 0 1.25rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.75rem, 8vw, 7rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.intro {
  max-width: 31rem;
  margin: 2.5rem 0 2rem;
  color: var(--muted);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  line-height: 1.65;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.links a {
  display: inline-flex;
  gap: 0.55rem;
  align-items: baseline;
  padding-block: 0.4rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease;
}

.links a:hover,
.links a:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

.links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 1.5rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@media (max-width: 36rem) {
  main,
  footer {
    width: min(100% - 2rem, 70rem);
  }

  main {
    padding-block: 4rem;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191b18;
    --ink: #f0ede5;
    --muted: #adafa8;
    --accent: #ef7956;
    --line: rgba(240, 237, 229, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
