@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/newsreader-600.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/newsreader-400-italic.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/outfit-500.woff2") format("woff2");
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/outfit-600.woff2") format("woff2");
}

:root {
  --paper: #efe8dc;
  --paper-deep: #e5dcce;
  --card: #f8f4ec;
  --ink: #1a1612;
  --muted: #5e564e;
  --faint: #8a8076;
  --line: #ddd3c4;
  --accent: #9e2b1f;
  --accent-soft: #f6e3da;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12110f;
    --paper-deep: #0c0b0a;
    --card: #1c1a17;
    --ink: #f4efe6;
    --muted: #c4b8aa;
    --faint: #8e847a;
    --line: #34302a;
    --accent: #f0b08a;
    --accent-soft: #3a2820;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 480px at 50% -180px, rgba(158, 43, 31, 0.08), transparent 60%),
    var(--paper);
  color: var(--ink);
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  font-size: 0.92em;
}

.wrap {
  width: min(42rem, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
}

.brand-name {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.header-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}

.eyebrow {
  margin: 2.25rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0.4rem 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 8vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.lede {
  margin: 1rem 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--muted);
}

.intro {
  margin: 1.1rem 0 0;
  max-width: 38rem;
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.05rem;
}

.steps h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.note {
  margin: 1.5rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 1rem 1rem 0;
}

.note p {
  margin: 0;
}

.note strong {
  font-weight: 600;
}

.page {
  padding-bottom: 2rem;
}

.page h1 {
  font-size: clamp(2.3rem, 7vw, 3.4rem);
}

.meta {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.prose h2 {
  margin: 2rem 0 0.4rem;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 1.3rem 0 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.prose p,
.prose li {
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.92rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.site-footer a {
  color: var(--muted);
  font-weight: 500;
}

.site-footer p {
  margin: 0.7rem 0 0;
}

@media (max-width: 640px) {
  .wrap {
    width: min(42rem, calc(100% - 1.5rem));
  }

  .site-header {
    padding-top: 1rem;
  }

  .lede {
    font-size: 1.2rem;
  }
}
