:root {
  --bg: #F3F2EE; --paper: #FBFAF7; --ink: #18191C; --muted: #66635C; --rule: #D9D6CE;
  --tea: #1F3E8C; --cof: #5A3825; --yes: #2F6B3A; --part: #8A5A1F; --no: #9B2C2C;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #141518; --paper: #1C1D21; --ink: #ECEAE6; --muted: #A39E95; --rule: #34353A;
    --tea: #A9BEEE; --cof: #D9B38F; --yes: #8FCB98; --part: #E0B176; --no: #F0A0A0; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; font-size: 1.08rem; line-height: 1.6; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--tea); outline-offset: 2px; }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
code { font-size: .88em; }
nav.top { display: flex; gap: 1.25rem; flex-wrap: wrap; padding: 1rem 1.25rem; max-width: 64rem; margin: 0 auto; font-size: 1rem; }
nav.top a { text-decoration: none; color: var(--muted); }
nav.top a:first-child { color: var(--ink); margin-right: auto; }
nav.top a[aria-current] { color: var(--ink); text-decoration: underline; }
main { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }

/* home */
.hero { padding: 2.5rem 0 1rem; }
.acro { font-weight: 400; margin: 0 0 1.75rem; font-size: clamp(1.9rem, 6.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em; }
.acro span { display: block; color: var(--muted); }
.acro b { color: var(--ink); font-weight: 600; }
.lede { max-width: 36rem; font-size: 1.15rem; margin: 0 0 1rem; }
h2 { font-weight: 400; font-size: 1.7rem; line-height: 1.2; margin: 3.25rem 0 1rem; }
.prose { max-width: 38rem; }
.rfcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1.4rem 1.5rem; position: relative; }
.card .num { font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; margin: 0 0 .4rem; }
.card h3 { font-weight: 400; font-size: 1.2rem; margin: 0 0 .5rem; }
.card p { margin: 0 0 .5rem; color: var(--muted); font-size: 1rem; }
.card a.go::after { content: ""; position: absolute; inset: 0; }
.card a.go { color: var(--ink); }
pre.cmd { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: .9rem 1.1rem; overflow-x: auto; font-size: .85rem; line-height: 1.6; margin: 0 0 1rem; }
pre.cmd .c { color: var(--muted); }
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); }
table { border-collapse: collapse; width: 100%; font-size: .98rem; }
th, td { text-align: left; padding: .55rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-weight: 400; color: var(--muted); font-size: .92rem; }
th.tea { color: var(--tea); } th.cof { color: var(--cof); }
td.sec a { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85rem; color: var(--muted); }
td.m { white-space: nowrap; }
.yes::before, .part::before, .no::before, .na::before { display: inline-block; width: 1.3em; }
.yes { color: var(--yes); } .yes::before { content: "✓"; }
.part { color: var(--part); } .part::before { content: "◐"; }
.no { color: var(--no); } .no::before { content: "✗"; }
.na { color: var(--muted); } .na::before { content: "–"; }
ul.odd { padding-left: 1.2rem; max-width: 40rem; }
ul.odd li { margin-bottom: .6rem; }
ol.time { list-style: none; padding: 0; margin: 0; max-width: 42rem; border-left: 2px solid var(--rule); }
ol.time li { position: relative; padding: 0 0 1.1rem 1.4rem; }
ol.time li::before { content: ""; position: absolute; left: -6px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--muted); }
ol.time .when { display: block; color: var(--muted); font-size: .95rem; }
.impl { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; }
.impl a { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; padding: 1rem 1.2rem; text-decoration: none; }
.impl a:hover { border-color: var(--muted); }
.impl b { display: block; font-weight: 400; font-size: 1.15rem; }
.impl span { color: var(--muted); font-size: .95rem; }
.impl .t b { color: var(--tea); } .impl .c b { color: var(--cof); }
footer.site { max-width: 64rem; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; }

/* annotated rfc */
.rfchead { padding: 1.5rem 0 1rem; max-width: 46rem; }
.kicker { color: var(--muted); margin: 0 0 .4rem; }
.rfchead h1 { font-weight: 400; font-size: clamp(1.7rem, 4.5vw, 2.5rem); line-height: 1.15; margin: 0 0 1rem; }
main.rfc pre { font-size: .82rem; line-height: 1.5; overflow-x: auto; margin: 0; padding: .25rem 0; }
pre.front { color: var(--muted); margin: 1rem 0 2rem !important; }
main.rfc section { display: grid; grid-template-columns: minmax(0, 1fr) 21rem; column-gap: 2rem; padding: 1.2rem 0; border-top: 1px solid var(--rule); }
main.rfc section h2 { grid-column: 1 / -1; font-size: 1.25rem; margin: 0 0 .5rem; }
main.rfc section h2 a { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9rem; color: var(--muted); text-decoration: none; margin-right: .4rem; }
aside.note { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--tea); border-radius: 4px; padding: .8rem 1rem; font-size: .97rem; align-self: start; }
aside.note p { margin: 0 0 .55rem; }
aside.note p:last-child { margin-bottom: 0; }
aside.note .tag { color: var(--muted); font-size: .85rem; margin-bottom: .3rem; }
aside.note .st::before { display: inline-block; width: 1.3em; }
aside.note .s-yes::before { content: "✓"; color: var(--yes); } aside.note .s-part::before { content: "◐"; color: var(--part); } aside.note .s-no::before { content: "✗"; color: var(--no); }
.try span { display: block; color: var(--muted); font-size: .85rem; }
.try code { display: block; white-space: pre-wrap; word-break: break-all; background: var(--bg); padding: .3rem .5rem; border-radius: 3px; font-size: .8rem; }
@media (max-width: 60rem) {
  main.rfc section { grid-template-columns: minmax(0, 1fr); }
  aside.note { margin-top: .75rem; }
}
footer.src { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; }
