:root {
  --ink: #171713;
  --ink-soft: #302f29;
  --paper: #f6f0e5;
  --paper-light: #fffdf8;
  --rust: #943c2d;
  --gold: #bd9257;
  --sage: #6f7563;
  --line: rgba(23, 23, 19, 0.16);
  --serif: "Bodoni 72", Didot, "Iowan Old Style", Georgia, serif;
  --sans: "Avenir Next", Avenir, Futura, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(189, 146, 87, 0.18), transparent 27rem),
    linear-gradient(145deg, var(--paper-light) 0, var(--paper) 46%, #eee4d4 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--rust); text-underline-offset: 0.16em; }
img { max-width: 100%; height: auto; }
.shell { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: relative;
  z-index: 3;
  color: var(--paper-light);
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
  color: var(--paper-light);
  font-family: var(--serif);
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a {
  color: var(--paper-light);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero { position: relative; overflow: hidden; padding: clamp(68px, 10vw, 126px) 0 74px; border-bottom: 1px solid var(--line); }
.hero::after {
  content: "A";
  position: absolute;
  right: -0.05em;
  bottom: -0.35em;
  color: rgba(148, 60, 45, 0.055);
  font-family: var(--serif);
  font-size: clamp(330px, 47vw, 660px);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr); gap: 64px; align-items: end; }
.eyebrow { margin: 0 0 18px; color: var(--rust); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; }
h1, .guide-body h2, .guide-body h3 { font-family: var(--serif); }
h1 { max-width: 900px; margin: 0; font-size: clamp(2.8rem, 6.7vw, 6.4rem); font-weight: 600; letter-spacing: -0.048em; line-height: 0.99; }
.hero-summary { margin: 0 0 26px; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 0; color: #676258; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; }
.hero-meta span + span::before { content: "/"; margin-right: 18px; color: var(--gold); }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.button {
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  color: var(--paper-light);
  background: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}
.button.secondary { color: var(--ink); background: transparent; }

.article-shell { display: grid; grid-template-columns: 220px minmax(0, 820px); justify-content: center; gap: 64px; padding: 82px 0 110px; }
.rail { align-self: start; position: sticky; top: 24px; padding: 20px 0; border-top: 3px solid var(--rust); border-bottom: 1px solid var(--line); }
.rail-label { display: block; margin-bottom: 9px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.rail p { margin: 0; color: #6b665c; font-size: 0.83rem; line-height: 1.55; }
.rail a { display: inline-block; margin-top: 14px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.guide { min-width: 0; }
.featured { margin: 0 0 42px; border: 1px solid var(--line); background: var(--paper-light); }
.featured img { width: 100%; max-height: 560px; display: block; object-fit: cover; }

.guide-body { min-width: 0; color: #292821; }
.guide-body > :first-child { margin-top: 0; }
.guide-body h2 { margin: 64px 0 20px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--ink); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.08; }
.guide-body h3 { margin: 38px 0 14px; color: var(--ink); font-size: clamp(1.35rem, 2.3vw, 1.9rem); line-height: 1.2; }
.guide-body p { margin: 0 0 1.3em; }
.guide-body ul, .guide-body ol { margin: 0 0 1.6em; padding-left: 1.35em; }
.guide-body li { margin: 0.42em 0; }
.guide-body strong { color: var(--ink); }
.guide-body figure { max-width: 100%; margin: 30px 0; }
.guide-body figcaption { margin-top: 8px; color: #6b665c; font-size: 0.78rem; }
.guide-body table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: block;
  overflow-x: auto;
  margin: 26px 0 38px;
  border: 1px solid var(--line);
  border-collapse: collapse;
  background: rgba(255, 253, 248, 0.72);
  -webkit-overflow-scrolling: touch;
}
.guide-body thead, .guide-body tbody {
  width: 100%;
  min-width: 620px;
  display: table;
  table-layout: fixed;
}
.guide-body th, .guide-body td { min-width: 135px; padding: 14px 16px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.guide-body th { color: var(--paper-light); background: var(--ink); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.guide-body tr:nth-child(even) td { background: rgba(189, 146, 87, 0.08); }
.guide-body article, .guide-body > div { max-width: 100%; }

.closing { padding: 68px 0; color: var(--paper-light); background: var(--ink); }
.closing-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 44px; align-items: center; }
.closing h2 { max-width: 700px; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.closing p { margin: 0 0 22px; color: rgba(255, 253, 248, 0.72); }
.closing .button { color: var(--ink); border-color: var(--paper-light); background: var(--paper-light); }
footer { padding: 30px 0; color: rgba(255, 253, 248, 0.66); background: #0d0d0b; font-size: 0.78rem; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-row a { color: inherit; }

@media (max-width: 900px) {
  .hero-grid, .article-shell, .closing-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .article-shell { gap: 34px; }
  .rail { position: static; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1160px); }
  .nav { min-height: 64px; }
  .nav-links a:not(:last-child) { display: none; }
  .hero { padding-top: 56px; }
  h1 { font-size: clamp(2.65rem, 14vw, 4.4rem); }
  .hero-meta { display: block; }
  .hero-meta span { display: block; margin-top: 6px; }
  .hero-meta span + span::before { content: none; }
  .article-shell { padding: 58px 0 78px; }
  .guide-body h2 { margin-top: 50px; }
  .footer-row { flex-direction: column; }
}
