:root {
  --bg: #faf6ef;
  --bg-raised: #f1ebdf;
  --fg: #1c1712;
  --muted: #6b5f52;
  --accent: #b3480f;
  --border: rgba(28, 23, 18, 0.14);
  --grain-opacity: 0.05;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110e;
    --bg-raised: #1c1712;
    --fg: #f3ece1;
    --muted: #b2a594;
    --accent: #f08a4b;
    --border: rgba(243, 236, 225, 0.14);
    --grain-opacity: 0.08;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  position: relative;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--grain-opacity);
  background-image: radial-gradient(circle, var(--fg) 1px, transparent 1px);
  background-size: 22px 22px;
}

.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.label {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

.eyebrow {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  max-width: 560px;
  max-height: 560px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.16;
  z-index: 0;
}

.hero .wrap {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  animation: rise 0.7s ease-out 0.05s both;
}

.tagline {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 1.25rem 0 0;
  max-width: 28ch;
  animation: rise 0.7s ease-out 0.2s both;
}

.eyebrow {
  animation: rise 0.7s ease-out 0s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  h1, .tagline, .eyebrow {
    animation: none;
  }
}

h2 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 0.75rem;
}

section {
  border-bottom: 1px solid var(--border);
}

section:last-of-type {
  border-bottom: none;
}

main .wrap {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
}

.card h2 {
  margin-top: 0;
}

.link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link:hover,
.link:focus {
  text-decoration-thickness: 2px;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin-top: 1.25rem;
}

.link-big {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
}

footer {
  color: var(--muted);
  font-size: 0.85rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

footer .wrap {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
