:root { --bg:#fff; --ink:#111; --muted:#595959; --surface:#f4f4f4; --accent:#111; }
* { box-sizing:border-box; }
html { background:var(--bg); color:var(--ink); scroll-behavior:smooth; }
body { margin:0; font-family:Arial,Helvetica,sans-serif; -webkit-font-smoothing:antialiased; font-size:18px; line-height:1.6; }
a { color:inherit; text-underline-offset:5px; text-decoration-thickness:1px; }
a:hover { text-decoration-thickness:2px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline:2px solid var(--ink); outline-offset:6px; }
::selection { background:var(--ink); color:var(--bg); }
.frame { width:min(100% - 112px,760px); margin-inline:auto; }
.site-header { display:flex; justify-content:space-between; gap:24px; padding-top:38px; font-size:16px; }
.site-header a { text-decoration:none; }
.site-header a:hover { text-decoration:underline; }
.site-header nav { display:flex; gap:28px; }
.skip { position:absolute; top:-80px; left:24px; padding:12px; background:var(--ink); color:var(--bg); z-index:3; }
.skip:focus { top:8px; }
main { padding-block:92px 0; }
h1,h2,h3,p { margin:0; }
h1 { font-size:clamp(46px,7vw,76px); font-weight:500; letter-spacing:-.055em; line-height:1.04; max-width:100%; overflow-wrap:break-word; }
.detail h1 { font-size:clamp(42px,6.3vw,68px); }
.intro { font-size:clamp(22px,3vw,28px); line-height:1.5; letter-spacing:-.025em; margin-top:34px; max-width:690px; text-wrap:pretty; }
.hero-links { display:flex; gap:24px; align-items:center; flex-wrap:wrap; margin-top:30px; }
.action { display:inline-block; background:var(--ink); color:var(--bg); padding:11px 19px; text-decoration:none; font-size:16px; }
.action:hover { background:#333; text-decoration:none; }
.plain-action { font-size:16px; }
.filter { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 24px; }
.filter button { border:0; font:inherit; font-size:16px; background:var(--bg); color:var(--muted); padding:10px 14px; cursor:pointer; }
.filter button[aria-pressed=true] { background:var(--ink); color:var(--bg); }
.filter button:hover { background:var(--surface); color:var(--ink); }
.filter button[aria-pressed=true]:hover { background:#333; color:var(--bg); }
.catalog { margin-top:82px; }
.catalog h2 { margin-bottom:24px; }
.tool-list { list-style:none; padding:0; margin:0; }
.tool-row { padding:24px 0; }
.tool-row a { display:grid; grid-template-columns:1fr auto; column-gap:24px; text-decoration:none; align-items:baseline; }
.tool-row a:hover h3 { text-decoration:underline; text-underline-offset:6px; }
.tool-row h3 { font-size:24px; letter-spacing:-.025em; font-weight:500; line-height:1.3; }
.tool-row p { margin-top:8px; max-width:540px; }
.tool-kind { color:var(--muted); font-size:14px; text-align:right; }
.tool-arrow { margin-left:12px; color:var(--ink); font-size:20px; }
.section { margin-top:100px; }
h2 { font-size:30px; font-weight:500; letter-spacing:-.035em; line-height:1.2; }
.section > p { margin-top:24px; max-width:690px; }
.section ul, .section ol { padding-left:24px; margin:24px 0 0; }
.section li + li { margin-top:16px; }
.section li { padding-left:4px; }
.example { margin:28px 0 0; padding:28px; background:var(--surface); }
.example p { font-size:20px; line-height:1.55; letter-spacing:-.02em; }
.example figcaption { margin-top:14px; font-size:14px; color:var(--muted); }
.flow { display:grid; grid-template-columns:1fr auto 1fr; gap:20px; align-items:start; margin-top:28px; }
.flow p { font-size:22px; line-height:1.4; letter-spacing:-.02em; }
.flow small { display:block; font-size:14px; color:var(--muted); margin-bottom:8px; }
.flow > span { padding-top:25px; }
.facts { margin:28px 0 0; }
.facts > div { display:grid; grid-template-columns:150px 1fr; gap:20px; padding:14px 0; }
.facts dt { color:var(--muted); font-size:16px; }
.facts dd { margin:0; }
.breadcrumbs { margin-bottom:30px; font-size:16px; color:var(--muted); }
.breadcrumbs ol { list-style:none; display:flex; gap:12px; flex-wrap:wrap; padding:0; margin:0; }
.breadcrumbs li + li::before { content:' / '; margin-right:12px; }
.related { display:flex; flex-wrap:wrap; gap:14px 28px; margin-top:24px; }
details { margin-top:28px; }
summary { cursor:pointer; font-size:20px; line-height:1.4; }
details p { margin-top:16px; max-width:670px; }
.site-footer { margin-top:110px; padding-bottom:44px; display:flex; justify-content:space-between; gap:20px; font-size:14px; color:var(--muted); flex-wrap:wrap; }
.site-footer nav { display:flex; flex-wrap:wrap; gap:20px; }
.notice { padding:24px; background:var(--surface); margin-top:28px; }
.notice p + p { margin-top:16px; }
pre { background:var(--surface); padding:24px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.5; }
.muted { color:var(--muted); }
[hidden] { display:none!important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:600px) {
 .frame { width:calc(100% - 48px); }
 .site-header { padding-top:24px; font-size:14px; gap:16px; }
 .site-header nav { gap:16px; }
 main { padding-top:64px; }
 .intro { margin-top:28px; }
 .catalog { margin-top:56px; }
 .section { margin-top:72px; }
 .tool-row { padding-block:22px; }
 .tool-row a { grid-template-columns:1fr 20px; gap:0 8px; }
 .tool-row h3 { font-size:24px; }
 .tool-kind { text-align:left; font-size:14px; margin-top:10px; grid-column:1; }
 .tool-arrow { position:absolute; right:0; top:0; margin:0; }
 .tool-row a { position:relative; }
 .tool-row p { font-size:17px; }
 .filter { gap:4px; }
 .filter button { padding:10px; }
 .facts > div { grid-template-columns:1fr; gap:6px; }
 .flow { grid-template-columns:1fr; gap:12px; }
 .flow > span { padding:0; transform:rotate(90deg); transform-origin:12px 12px; }
 .example { padding:22px; }
 .example p { font-size:18px; }
 .site-footer { margin-top:80px; }
}
@media (prefers-reduced-motion:no-preference) {
 .tool-row { animation:enter .3s both; animation-delay:calc(var(--i,0)*35ms); }
 @keyframes enter { from { opacity:.5; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
 a, button { transition:background-color .15s, color .15s; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }

/* Public toolbox: language links and space after the final section. */
main { padding-bottom:80px; }
.tool-row h2 { font-size:24px; letter-spacing:-.025em; font-weight:500; line-height:1.3; margin-bottom:0; }
.tool-row a:hover h2 { text-decoration:underline; text-underline-offset:6px; }
.tool-languages { display:flex; justify-content:flex-end; gap:16px; margin-top:14px; font-size:14px; }
.tool-languages [aria-current=page] { text-decoration:none; }
@media(max-width:600px) { .tool-row a { grid-template-columns:1fr; } }
