:root {
  --paper: #f3eee6;
  --ink: #1c1814;
  --muted: #5e574c;
  --line: #d8d0c3;
  --rust: #8c3b1c;
  --header: #231c16;
  --header-text: #f4efe6;
  --callout: #fffdf8;
  --max: 42rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a {
  color: var(--rust);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: #6d2c12; }

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

.site-header {
  background: var(--header);
  color: var(--header-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.15rem 1.5rem;
}

.brand {
  color: inherit;
  text-decoration: none;
  font-family: Newsreader, Georgia, serif;
  font-style: italic;
  font-weight: 450;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.site-header nav a {
  color: var(--header-text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.site-header nav a:hover { color: #f0d2c2; }

main {
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 2.6rem 0 3.5rem;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 5vw, 3.5rem);
}

h2 {
  margin: 2.4rem 0 0.7rem;
  font-size: 1.7rem;
}

h3 {
  margin: 1.6rem 0 0.35rem;
  font-size: 1.25rem;
}

.lede {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  line-height: 1.55;
}

p { margin: 0.75rem 0; }

ul, ol { margin: 0.6rem 0 0.6rem; padding-left: 1.25rem; }

li + li { margin-top: 0.4rem; }

.steps { padding-left: 1.35rem; }

.steps li { padding-left: 0.25rem; }

.note {
  margin: 1.5rem 0 0.2rem;
  padding: 1.1rem 1.2rem 1.15rem;
  background: var(--callout);
  border: 1px solid var(--line);
  box-shadow: 7px 7px 0 #e3dacd;
}

.note-title {
  margin: 0;
  font-family: Newsreader, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.note p:last-child { margin-bottom: 0; }

.callout {
  margin: 1.4rem 0;
  padding: 0.95rem 1.1rem;
  background: var(--callout);
  border-left: 3px solid var(--rust);
}

.callout p { margin: 0.4rem 0; }

.callout p:first-child { margin-top: 0; }

.callout p:last-child { margin-bottom: 0; }

.lang {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  width: min(var(--max), calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 1.3rem 0 2.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 0.7rem;
}

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.1rem 1.15rem 1.2rem;
  }

  main,
  .site-footer {
    width: min(var(--max), calc(100% - 2.1rem));
  }

  h1 { font-size: 2.25rem; }
}
