:root {
  color-scheme: light;
  color: #44352b;
  background: #fffaf3;
  font: 16px/1.6 system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.layout {
  max-width: 1190px;
  margin: auto;
  padding: 28px clamp(12px, 3vw, 36px) 60px;
  display: grid;
  grid-template-columns: minmax(168px, 205px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
aside {
  position: sticky;
  top: 18px;
  z-index: 2;
  max-height: calc(100dvh - 36px);
  overflow: auto;
  background: #fff5e6;
  border: 1px solid #e3cdb1;
  border-radius: 16px;
}
summary { padding: 13px 16px; cursor: pointer; font-weight: 700; }
summary::marker { color: #976237; }
nav { display: grid; gap: 3px; padding: 0 8px 9px; }
nav a {
  display: block;
  padding: 9px 12px;
  border-radius: 9px;
  color: #634d3d;
  text-decoration: none;
}
nav a:hover { background: #fcf0df; }
nav a[aria-current] {
  color: #633a1e;
  font-weight: 700;
  background: #f3d9b7;
}
:focus-visible { outline: 2px solid #8a5026; outline-offset: -3px; }
main { min-width: 0; }
aside[hidden] + main { grid-column: 1 / -1; }
h1 { margin: 0; font-size: clamp(27px, 4vw, 36px); line-height: 1.25; }
p { margin: 8px 0; }
h1 + p { margin-bottom: 20px; color: #6e5848; }
h2 { margin: 18px 0 12px; font-size: 22px; scroll-margin-top: 16px; }
iframe { width: 100%; height: 120px; border: 0; display: block; }
table { width: 100%; border-collapse: collapse; }
td, th { border-bottom: 1px solid #dfd2bf; text-align: left; padding: 6px; }
@media (max-width: 760px) {
  .layout { display: block; padding-top: 8px; }
  aside { top: 6px; max-height: calc(100dvh - 24px); margin-bottom: 16px; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  h2 { scroll-margin-top: 66px; font-size: 18px; }
}
