:root {
  color-scheme: light;
  --ink: #26282c;
  --muted: #666b74;
  --accent: #b5540b;
  --orange: #f58220;
  --accent-soft: #ffeedd;
  --line: #dee1e3;
  --paper: #fff;
  --ground: #f3f4f6;
  font: 100%/1.6 system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(74rem, calc(100% - 3rem)); margin-inline: auto; }
.topbar { background: var(--paper); color: #4a4f57; border-bottom: 1px solid var(--line); }
.topbar .wrap, .brand, .topbar nav { display: flex; align-items: center; }
.topbar .wrap { justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .6rem; }
.brand { color: inherit; gap: 18px; text-decoration: none; }
.brand img { display: block; width: 150px; height: auto; }
.brand span { border-left: 1px solid var(--line); padding: .2rem 0 .2rem 18px; font-size: .95rem; }
.topbar nav { flex-wrap: wrap; gap: .25rem; }
.topbar nav a { color: inherit; padding: .45rem .8rem; border-radius: .5rem; font-size: .94rem; text-decoration: none; }
.topbar nav a:hover { background: var(--ground); }
.topbar nav a[aria-current] { color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 -2px var(--orange); }
.skip { position: absolute; left: 1rem; top: -8rem; z-index: 1; padding: .5rem 1rem; background: white; }
.skip:focus { top: .5rem; }
.hero { background: var(--ground); border-bottom: 1px solid var(--line); padding: clamp(1.5rem, 3vw, 2.5rem) 0; }
.eyebrow { color: var(--accent); font-size: .82rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; margin: 0 0 .65rem; }
h1, h2, h3 { line-height: 1.17; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.75rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -.025em; }
.intro { max-width: 56ch; color: var(--muted); font-size: 1.12rem; margin: .9rem 0 0; }
.catalog { padding-block: 2rem; }
.catalog + .catalog { border-top: 1px solid var(--line); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-top: 1.3rem; }
.card { display: block; background: white; color: var(--ink); text-decoration: none; border: 1px solid var(--line); border-radius: .85rem; overflow: hidden; }
.preview { display: flex; justify-content: center; align-items: center; height: clamp(12rem, 25vw, 17rem); padding: .75rem; background: var(--ground); border-bottom: 1px solid var(--line); }
.preview img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: .35rem; box-shadow: 0 2px 7px #31251926; }
.card .eyebrow { margin: 1rem 1.25rem .4rem; }
.card h3 { margin-inline: 1.25rem; font-size: clamp(1.4rem, 3vw, 1.85rem); text-decoration: underline; text-decoration-thickness: 1px; }
.card:hover h3, .card:focus-visible h3 { color: var(--accent); text-decoration-thickness: 2px; }
.card p:not(.eyebrow) { margin: .55rem 1.25rem 1.25rem; color: var(--muted); }
.shortcuts { list-style: none; padding: 0; margin: .75rem 0 0; }
.shortcuts li { border-top: 1px solid var(--line); }
.shortcuts a { display: flex; justify-content: space-between; gap: .8rem; align-items: center; padding: .65rem 0; font-weight: 600; text-decoration: none; }
.shortcuts a::after { content: '→'; }
.shortcuts a:hover { text-decoration: underline; }
.guide-header { padding: 1.4rem 0 2.25rem; background: var(--ground); border-bottom: 1px solid var(--line); }
.back { display: inline-block; font-size: .9rem; margin-bottom: 1.5rem; }
.guide { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: 2.5rem; }
.contents { align-self: start; position: sticky; top: 1rem; border-left: 3px solid var(--orange); padding-left: 1rem; }
.contents h2 { font-size: 1rem; letter-spacing: 0; }
.contents ol { padding-left: 1.35rem; margin: .6rem 0 0; }
.contents li { padding: .2rem 0; color: var(--muted); font-size: .95rem; }
.contents a { color: var(--ink); }
.topic { padding-bottom: 2.5rem; margin-bottom: 2.4rem; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.topic:last-child { margin-bottom: 0; }
.topic h2 { margin-bottom: 1.1rem; }
.topic p { max-width: 75ch; }
.steps { padding-left: 1.55rem; margin-block: .7rem 1.2rem; }
.steps li { margin: .5rem 0; padding-left: .25rem; }
.steps li::marker { color: var(--accent); font-weight: 700; }
code { overflow-wrap: anywhere; font-size: .94em; }
.note { border-left: 3px solid var(--orange); background: var(--accent-soft); padding: .75rem 1rem; margin: 1rem 0; }
.note p { margin: 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.beside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(13rem, 18rem); align-items: start; gap: 1.5rem; }
.beside .steps { margin-top: 0; }
figure { margin: 1rem 0 0; }
.beside figure { margin: 0; }
figure a { display: block; width: fit-content; max-width: 100%; cursor: zoom-in; }
figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: .45rem; }
figcaption { color: var(--muted); font-size: .87rem; margin-top: .4rem; max-width: 75ch; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1rem; padding-block: 1.25rem; }
@media (max-width: 58rem) {
  .guide { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .contents { position: static; }
}
@media (max-width: 42rem) {
  .wrap { width: calc(100% - 2rem); }
  .cards, .beside, .pair { grid-template-columns: minmax(0, 1fr); }
  .beside { gap: .4rem; }
  .brand { gap: .7rem; }
  .brand img { width: 128px; }
  .brand span { padding-left: .7rem; }
  .topbar nav a { padding-inline: .6rem; }
  .guide { padding-block: 1.5rem; }
  .beside figure, .pair figure { max-width: 24.75rem; }
}
