:root {
  color-scheme: light;
  --surface: #e8dcc7;
  --ink: #28291d;
  --moss: #3b4829;
  --clay: #b9633b;
  --line: #b6a58c;
  --width: 1080px;
  font-family: 'Avenir Next', Avenir, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); line-height: 1.65; }
a { color: #414e29; text-underline-offset: .19em; }
a:hover { color: #843e22; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #9d4a28; outline-offset: 4px; }
.wrap { width: min(calc(100% - 40px), var(--width)); margin-inline: auto; }
header { background: var(--moss); color: var(--surface); }
.top { display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; line-height: 1.25; }
.brand, header a, footer a { color: inherit; text-decoration: none; }
header a:hover, footer a:hover { color: #ffbf8f; }
nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.skip { position: absolute; z-index: 4; left: 1rem; background: var(--surface); padding: .6rem 1rem; transform: translateY(-130%); }
.skip:focus { transform: translateY(0); }
.menu { color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 16px; padding: .45rem .7rem; font: inherit; }
.home, .article { padding-block: 2.5rem 4rem; }
.hero { display: grid; grid-template-columns: 1fr 1.13fr; align-items: center; gap: clamp(1.5rem, 4vw, 3.4rem); margin-bottom: 1.4rem; }
.hero figure { margin: 0; }
.hero img { display: block; width: 100%; height: auto; border-radius: 24px; }
figcaption, .source, .updated { font-size: .86rem; color: #57513e; }
figcaption { text-align: right; margin-top: .35rem; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.035em; }
h1, h2 { font-family: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif; }
h1 { font-size: clamp(2.55rem, 5vw, 4.6rem); max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.17rem; }
p { margin: 0 0 1rem; }
.hero p, .lead { font-size: 1.13rem; }
.actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.button { display: inline-block; border-radius: 18px; padding: .65rem 1rem; background: var(--moss); color: var(--surface); text-decoration: none; font-weight: 700; }
.button:hover { color: var(--surface); background: #503724; }
.home section + section, .home section + .cards, .native + section { margin-top: 2.7rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 225px), 1fr)); gap: 12px; margin-bottom: 1rem; }
.card { display: block; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: #dfcfb2; transition: background .3s ease; }
.card:hover { background: #d4b895; }
.card h3 span { float: right; }
.card p { margin: 0; }
.steps { list-style: none; padding: 0; counter-reset: build-step; }
.steps li { counter-increment: build-step; position: relative; padding: .75rem .25rem .75rem 3rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(build-step); position: absolute; left: .25rem; color: #843e22; font-weight: 800; }
.steps p { margin: .15rem 0 0; }
.article-copy { max-width: 760px; }
.article h1 { margin-top: .65rem; max-width: 21ch; }
.article h2 { margin-top: 1.65em; }
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }
table { width: 100%; border-collapse: collapse; min-width: 340px; }
th, td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #d4b895; }
kbd { padding: .1rem .35rem; border: 1px solid var(--line); border-radius: 5px; white-space: nowrap; }
input[type=search] { width: min(100%, 24rem); display: block; margin: .3rem 0 .6rem; font: inherit; color: inherit; background: #e8dcc7; border: 1px solid #76684e; padding: .45rem .7rem; border-radius: 16px; }
.ranks { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; list-style: none; }
.ranks li { border-radius: 16px; background: #d4b895; padding: .25rem .7rem; }
.rail { display: none; }
@media(min-width: 1408px) and (min-height: 604px) {
  .rail { display: block; position: absolute; top: calc(100vh - 604px); right: calc((100% + var(--width)) / 2 + 4px); width: 160px; height: 600px; }
  .rail iframe { display: block; width: 160px; height: 600px; border: 0; }
}
footer { background: var(--moss); color: var(--surface); padding: 2rem 0; }
.foot { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.5rem; }
.foot nav { align-content: start; }
.foot p { margin: .4rem 0 0; }
@media(max-width: 840px) {
  .top { flex-wrap: wrap; gap: .45rem; padding-block: .65rem; }
  .top nav { width: 100%; }
  .menu:not([hidden]) { display: block; }
  .menu[aria-expanded=false] + nav { display: none; }
  .hero, .foot { grid-template-columns: 1fr; }
  .hero { gap: 1.3rem; }
  .home, .article { padding-top: 1.6rem; }
}
@media(prefers-reduced-motion: reduce) { * { transition: none !important; } }
