:root { color-scheme: light; font-family: "Segoe UI", Arial, sans-serif; color: #17191d; background: #f3f4f5; }
* { box-sizing: border-box; }
body { margin: 0; line-height: 1.65; }
a { color: #254f68; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #254f68; outline-offset: 4px; }
.guide-header, main, footer { width: min(100% - 40px, 1000px); margin-inline: auto; }
.guide-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #17191d; text-decoration: none; font-weight: 700; }
.brand img { object-fit: contain; }
.brand small { display: block; color: #626871; font-size: 0.8rem; font-weight: 400; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
.editor-link { display: inline-block; padding: 9px 16px; border-radius: 24px; background: #17191d; color: #fff; text-decoration: none; font-weight: 600; }
main { padding-block: 22px 36px; }
h1 { max-width: 20ch; margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -0.03em; }
.intro { font-size: 1.15rem; color: #626871; margin-bottom: 32px; }
article { padding: clamp(18px, 4vw, 36px); border: 1px solid #d9dcdf; border-radius: 18px; background: #ffffffc9; margin-block: 24px; }
article:target { border-color: #626871; }
h2 { margin-top: 0; font-size: 1.5rem; line-height: 1.3; }
h3 { font-size: 1.1rem; line-height: 1.4; margin-top: 28px; }
p, ol { max-width: 76ch; }
ol { padding-left: 24px; }
li { padding-left: 4px; margin-block: 10px; }
code { overflow-wrap: anywhere; font-family: Consolas, monospace; }
.back-link { margin-block: 32px 0; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #626871; padding-block: 24px; border-top: 1px solid #d9dcdf; font-size: 0.9rem; }
.skip-link { position: absolute; top: 8px; left: 12px; padding: 10px; background: #fff; z-index: 10; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
@media (max-width: 640px) {
  .guide-header { align-items: flex-start; flex-direction: column; }
  nav { width: 100%; justify-content: space-between; gap: 8px; }
  .guide-header, main, footer { width: calc(100% - 28px); }
}
