:root {
  color-scheme: light;
  --ink: #13201c;
  --muted: #5b6b65;
  --line: #d8e0d9;
  --green: #0d6b5d;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #fffdf8;
  color: var(--ink);
  line-height: 1.6;
}
a {
  color: var(--green);
  text-underline-offset: 0.2em;
}
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  max-width: 22ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem max(1.25rem, calc((100vw - 1100px) / 2));
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.4rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.035em;
}
.site-header nav,
.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
}
.site-header nav a,
.languages a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
}
main {
  width: min(1100px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 3rem 0;
}
.page-heading {
  margin-bottom: 2rem;
}
.lead {
  margin-top: 1rem;
  max-width: 60ch;
  font-size: 1.15rem;
  color: var(--muted);
}
.image-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 2rem;
}
.categories a {
  border: 1px solid var(--line);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
}
.categories a:hover {
  background: #dff1e7;
}
.guide-library {
  display: grid;
  gap: 2.5rem;
}
.guide-group,
.related {
  scroll-margin-top: 1rem;
}
.guide-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--line);
}
.guide-list li {
  border-bottom: 1px solid var(--line);
}
.guide-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0.5rem;
  text-decoration: none;
}
.guide-list a:hover strong {
  text-decoration: underline;
}
.guide-description {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.step-count {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.breadcrumb {
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.contents {
  border-left: 3px solid var(--line);
  padding-left: 1.25rem;
  margin: 2rem 0 3rem;
}
.contents h2 {
  font-size: 0.95rem;
}
.contents ol {
  margin: 0.75rem 0 0;
  padding-left: 1.5rem;
}
.contents a {
  display: inline-block;
  padding: 0.3rem 0;
}
.guide-step {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: start;
  gap: 2rem;
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  scroll-margin-top: 1rem;
}
.step-copy {
  position: sticky;
  top: 1.25rem;
}
.step-number {
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step-copy h2 {
  margin-bottom: 1rem;
}
.step-copy p:last-child {
  color: var(--muted);
}
.guide-step picture {
  min-width: 0;
}
.guide-step img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: white;
}
.context {
  background: #f3f5ef;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin: 2.5rem 0;
  max-width: 70ch;
  color: var(--muted);
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.35rem;
  background: var(--green);
  color: white;
  text-decoration: none;
}
footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.languages [aria-current] {
  font-weight: 700;
  text-decoration-thickness: 2px;
}
@media (max-width: 767px) {
  main {
    padding-top: 2rem;
  }
  .guide-step {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }
  .step-copy {
    position: static;
  }
  .guide-list a {
    align-items: start;
  }
  .step-count {
    padding-top: 0.2rem;
  }
  .step-count span {
    display: none;
  }
}
