:root {
  --bg: #f7f0e4;
  --paper: #fffaf2;
  --paper-strong: #fffdf8;
  --ink: #18130e;
  --muted: #675d50;
  --line: rgba(31, 24, 16, .13);
  --line-strong: rgba(31, 24, 16, .22);
  --rust: #a9472c;
  --rust-dark: #833119;
  --green: #627b5b;
  --blue: #435a70;
  --dark: #191510;
  --shadow: 0 26px 80px rgba(37, 26, 13, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, rgba(255, 250, 242, .72), rgba(247, 240, 228, .92) 38%, #efe3cf 100%), var(--bg);
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247, 240, 228, .96);
  border-bottom: 1px solid var(--line);
}
.rail {
  width: min(1180px, calc(100vw - 40px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img:first-child { width: 40px; height: 40px; object-fit: contain; }
.brand img:last-child { width: 92px; height: auto; object-fit: contain; }
.nav { display: flex; align-items: center; justify-content: flex-end; gap: 24px; color: #433c31; font-size: 14px; white-space: nowrap; }
.nav a { text-decoration: none; }
.nav .cta { border-radius: 999px; background: var(--dark); color: #f7f0e4; padding: 10px 16px; font-weight: 760; }

main { width: min(1120px, calc(100vw - 40px)); margin: 0 auto; }
.hero { padding: 42px 0 28px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--rust-dark);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.kicker:before { content: ""; width: 24px; height: 1px; background: var(--rust); }
h1 {
  max-width: 880px;
  margin: 0;
  font: 520 clamp(2.45rem, 5vw, 4.15rem)/1 Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: -.035em;
}
.lede { max-width: 820px; margin: 16px 0 0; color: #463d32; font-size: 19px; line-height: 1.55; }

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 22px;
  align-items: start;
  padding: 6px 0 70px;
}
.article {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .84);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.article h2 {
  margin: 34px 0 12px;
  font: 540 clamp(1.8rem, 3vw, 2.45rem)/1.08 Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: -.02em;
}
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 22px 0 8px; font-size: 18px; line-height: 1.25; }
.article p, .article li { color: #4f4539; font-size: 16px; line-height: 1.68; }
.article p { margin: 0 0 14px; }
.article ul, .article ol { margin: 0 0 18px; padding-left: 22px; }
.article strong { color: #241d16; }

.quick-answer {
  border-left: 4px solid var(--rust);
  background: rgba(169, 71, 44, .07);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 18px;
  margin: 0 0 22px;
}
.quick-answer p { margin: 0; }
.manual-steps { display: grid; gap: 12px; margin: 18px 0; }
.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .72);
  border-radius: var(--radius);
  padding: 14px;
}
.num {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff7ea;
  font-weight: 820;
  font-size: 13px;
}
.step b { display: block; margin-bottom: 4px; color: #241d16; }
.step span { display: block; color: #5d5144; font-size: 14px; line-height: 1.45; }

.mini-artifact {
  margin: 26px 0;
  border: 1px solid rgba(67, 90, 112, .24);
  background: #fffdf8;
  border-radius: var(--radius);
  overflow: hidden;
}
.artifact-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(67, 90, 112, .07);
}
.artifact-label {
  color: var(--blue);
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.artifact-head h2 { margin: 6px 0 0; font-size: 25px; }
.artifact-body { padding: 18px; }
.artifact-copy {
  margin: 0;
  color: #332d25;
  background: rgba(247, 240, 228, .7);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  white-space: pre-wrap;
  font: 500 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.artifact-link {
  display: inline-flex;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--rust);
  color: #fff;
  padding: 11px 13px;
  text-decoration: none;
  font-weight: 820;
}

.bridge {
  margin: 30px 0 4px;
  border: 1px solid rgba(25, 21, 16, .72);
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff7ea;
  padding: 22px;
}
.bridge h2 { color: #fff7ea; margin-top: 0; }
.bridge p, .bridge li { color: #dfd2c1; }
.bridge a {
  display: inline-flex;
  margin-top: 4px;
  border-radius: 4px;
  background: #fff7ea;
  color: var(--dark);
  padding: 11px 13px;
  text-decoration: none;
  font-weight: 820;
}

.sidebar { position: sticky; top: 94px; display: grid; gap: 14px; }
.side-card {
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .84);
  border-radius: var(--radius);
  box-shadow: 0 18px 52px rgba(37, 26, 13, .08);
  padding: 18px;
}
.side-card h2 {
  margin: 0 0 10px;
  font: 540 25px/1.08 Georgia, Cambria, "Times New Roman", serif;
  letter-spacing: -.02em;
}
.side-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.mini-nav a, .related-links a {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: #2d261f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 760;
}
.mini-nav a:last-child, .related-links a:last-child { border-bottom: 0; }
.search-phrases { display: flex; flex-wrap: wrap; gap: 8px; }
.search-phrases span {
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 999px;
  padding: 7px 9px;
  color: #5f5548;
  font-size: 12px;
  font-weight: 720;
}

.footer {
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { margin-left: 14px; color: #312a23; text-decoration: none; font-weight: 760; }

@media (max-width: 920px) {
  .nav a:not(.cta) { display: none; }
  .guide-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-row: auto; }
  .hero { padding-top: 32px; }
}
@media (max-width: 560px) {
  .rail, main { width: calc(100vw - 28px); }
  .site-header { height: auto; min-height: 76px; padding: 14px 0; }
  .rail { align-items: flex-start; }
  h1 { font-size: 2.3rem; }
  .article { padding: 20px; }
  .step { grid-template-columns: 1fr; }
  .artifact-head { display: grid; }
  .footer a { margin: 0 14px 0 0; }
}
