:root {
  color-scheme: light;
  --paper: #f8f5ef;
  --ink: #251d24;
  --muted: #615660;
  --line: #d9d0cc;
  --coral: #f7a59e;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.62; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #9a3a47; outline-offset: 4px; }
.skip { position: absolute; transform: translateY(-150%); }
.skip:focus { z-index: 1; top: .6rem; left: 1rem; padding: .5rem; background: var(--paper); transform: none; }
.shell { width: min(100% - 3rem, 74rem); margin-inline: auto; }
.masthead { border-bottom: 1px solid var(--line); }
.head-inner, .foot { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.head-inner { min-height: 5rem; }
.home, .text-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .27em; }
.home { font-size: .95rem; }
.home, .foot .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.doc { display: grid; grid-template-columns: 14rem minmax(0, 44rem); column-gap: clamp(2.5rem, 7vw, 8rem); padding-block: clamp(3rem, 7vw, 6.5rem); }
aside nav { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; padding-top: .55rem; }
aside a { display: flex; align-items: center; min-height: 44px; padding: .55rem .8rem; border-radius: .45rem; text-decoration: none; color: var(--muted); font-size: .97rem; }
aside a:hover, .home:hover, .text-link:hover { color: #823e42; }
aside a[aria-current="page"] { color: var(--ink); background: #f7d9d3; font-weight: 650; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { margin: 0; font-size: clamp(2.75rem, 5.7vw, 5.6rem); letter-spacing: -.075em; line-height: 1.03; }
h2 { margin: 0 0 .75rem; font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.045em; line-height: 1.13; }
.lead { font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.5; margin: 1.45rem 0 2.4rem; }
article section { border-top: 1px solid var(--line); padding: 1.8rem 0 .55rem; }
article section + section { margin-top: 1.15rem; }
section p, section ol { margin: 0 0 .8rem; }
section ol { padding-left: 1.45rem; }
section li { padding-left: .35rem; }
section li + li { margin-top: .5rem; }
section li::marker { color: #794348; font-weight: 650; }
.action { display: inline-flex; align-items: center; padding: .65rem 1.15rem; margin: .25rem 0 .45rem; border-radius: 2rem; background: var(--wine); color: var(--paper); text-decoration: none; font-weight: 650; }
.action:hover { background: #513a46; }
code { font-size: .95em; }
footer { border-top: 1px solid var(--line); }
.foot { padding-block: 1.65rem; color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) {
  .shell { width: min(100% - 2rem, 44rem); }
  .head-inner { min-height: 4.1rem; }
  .doc { display: flex; flex-direction: column; padding-block: 1rem 3.5rem; gap: 2rem; }
  aside nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .25rem; padding: 0; }
  aside a { padding: .45rem .5rem; font-size: .9rem; }
  .lead { margin: 1.1rem 0 1.8rem; }
  .foot { align-items: flex-start; flex-wrap: wrap; gap: .7rem; }
}
