:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #292b27;
  background: #f8f7f4;
  -webkit-font-smoothing: antialiased;
  --text: #292b27;
  --body: #54594f;
  --muted: #60665a;
  --accent: #47543b;
  --accent-hover: #34402a;
  --line: #d8dcd2;
  --surface: #fff;
  --tint: #edf0e7;
}

* { box-sizing: border-box; }
body { margin: 0; }

.page {
  max-width: 74rem;
  margin: 0 auto;
  padding: 2rem 3rem 1.25rem;
}

a {
  color: inherit;
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

a:hover { color: var(--accent); }

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 1;
  padding: 0.75rem 1rem;
  background: #f8f7f4;
}

.skip-link:focus { top: 1rem; }

.site-header, .brand, footer {
  display: flex;
  align-items: center;
}

.site-header {
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  gap: 0.75rem;
  min-height: 2.75rem;
  font-size: 0.9375rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand svg { color: var(--accent); }

.author {
  padding: 0.75rem 0;
  color: var(--muted);
  font-size: 0.8125rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 5rem 0;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 4.25rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 span { color: var(--accent); }

.intro {
  max-width: 28rem;
  margin: 1.5rem 0 0;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.handoff {
  padding: 1.75rem;
  border: 1px solid #dce1d5;
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 12px 32px rgb(41 43 39 / 5%), 0 2px 6px rgb(41 43 39 / 3%);
}

.handoff-heading {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.handoff-icon {
  display: grid;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid #dfe5d6;
  border-radius: 0.75rem;
  color: var(--accent);
  background: var(--tint);
}

.handoff-heading h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.handoff-heading p {
  margin: 0.125rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
  padding: 0.875rem 1.125rem;
  border: 1px solid var(--accent);
  border-radius: 0.625rem;
  color: #fff;
  background: var(--accent);
  font-size: 0.9375rem;
  font-weight: 550;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.handoff .button { width: 100%; }

.button:hover {
  color: #fff;
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.button:active { background: var(--text); }

.button svg {
  flex: 0 0 auto;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.button:hover svg { transform: translate(2px, -2px); }

.destination {
  margin: 0.875rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
  text-wrap: pretty;
}

.steps {
  display: grid;
  gap: 0.875rem;
  margin: 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid #e8ebe3;
  list-style: none;
  color: var(--body);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.step-number {
  display: grid;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border: 1px solid #e2e6db;
  border-radius: 50%;
  background: #f8f9f5;
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.guide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--line);
}

.guide-copy h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.guide p {
  color: var(--body);
  font-size: 0.875rem;
  line-height: 1.85;
}

.guide-copy p { max-width: 26rem; margin: 0; }

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

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 1rem 0;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.6;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }
summary:hover { color: var(--accent); }
.questions details:first-child summary { padding-top: 0.25rem; min-height: 3rem; }
.disclosure-icon { flex: 0 0 auto; color: var(--muted); }
details[open] .disclosure-vertical { display: none; }
.answer { padding: 0.125rem 0 0.75rem; }
.answer p { margin: 0 0 0.875rem; }

code {
  color: var(--text);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.shortcut {
  display: grid;
  gap: 0.5rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.shortcut a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  color: var(--accent);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}

.shortcut svg { flex: 0 0 auto; }

footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

footer p { margin: 0; }
footer a { padding: 0.625rem 0; }

.not-found { display: block; min-height: 70svh; }
.not-found h1 { max-width: 11ch; }
.not-found .intro { margin-bottom: 1.75rem; }

::selection { background: #dce4cf; color: var(--text); }

@media (max-width: 900px) and (min-width: 721px) {
  .page { padding-right: 2rem; padding-left: 2rem; }
  .hero, .guide { gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  h1 { font-size: 3rem; }
  .handoff { padding: 1.25rem; }
}

@media (max-width: 720px) {
  .page { max-width: 34rem; padding: 1.25rem 1.5rem; }
  .site-header { padding-bottom: 0.875rem; }
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 2.5rem 0 3rem; }
  h1 { font-size: clamp(2.5rem, 10.5vw, 3.5rem); }
  .intro { margin-top: 1.25rem; font-size: 1rem; line-height: 1.8; }
  .handoff { padding: 1.5rem; }
  .guide { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 0; }
  .guide-copy h2 { font-size: 1.375rem; }
  .guide-copy h2 br { display: none; }
  .guide-copy p { max-width: none; }
  footer { font-size: 0.6875rem; }
}

@media (max-width: 360px) {
  .page { padding-right: 1.25rem; padding-left: 1.25rem; }
  .hero { gap: 1.5rem; padding-top: 2rem; }
  .handoff { padding: 1.125rem; }
  .button { gap: 0.625rem; font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .button, .button svg { transition: none; }
  .button:hover svg { transform: none; }
}
