:root {
  --paper: #efe8d8;
  --ink: #1b1712;
  --muted: #5e564b;
  --rule: #9a3412;
  --navy: #1b365d;
  --card: #f7f1e4;
  --line: rgba(27, 23, 18, 0.1);
  --max: 68rem;
  --prose: 40rem;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family:
    'Segoe UI',
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.55;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 10;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
}

.skip:focus {
  top: 12px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--rule);
}

.brand {
  margin: 0;
  font-family: Palatino, 'Palatino Linotype', 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.nav a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a[aria-current='page'] {
  border-bottom-color: var(--rule);
}

.lang {
  display: flex;
  gap: 0.25rem;
}

.lang button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.hero {
  padding: 2.5rem 0 1.5rem;
  max-width: var(--prose);
}

.kicker {
  display: inline-block;
  margin: 0 0 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--rule);
  color: var(--rule);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 0.75rem;
  font-family: Palatino, 'Palatino Linotype', 'Times New Roman', serif;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.grid {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
}

.card h2,
.step h2 {
  margin: 0 0 0.6rem;
  font-family: Palatino, 'Palatino Linotype', 'Times New Roman', serif;
  font-size: 1.45rem;
  font-weight: 600;
}

.card p:last-child,
.step p:last-child {
  margin-bottom: 0;
}

p {
  margin: 0 0 1rem;
}

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

@media (min-width: 720px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.2rem 1.25rem 1.3rem;
}

.num {
  display: inline-block;
  margin: 0 0 0.65rem;
  color: var(--rule);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.banner {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--rule);
  background: #f4e6d8;
}

.banner p {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

footer p:last-child {
  margin-bottom: 0;
}

.narrow {
  max-width: var(--prose);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: #efe2cd;
  padding: 0.1rem 0.3rem;
}
