:root {
  color-scheme: light;
  --ink: #173f42;
  --muted: #506164;
  --paper: #f4f1e8;
  --surface: #fffdfa;
  --line: #d7ddd3;
  --teal: #153e42;
  --link: #1b5d61;
  --gold: #9a7027;
}

* { box-sizing: border-box; }
html { font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1.0625rem; line-height: 1.72; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
a:focus-visible { outline: 3px solid #75541d; outline-offset: 4px; border-radius: 3px; }
.skip-link { position: absolute; top: -6rem; left: 1rem; padding: .65rem 1rem; z-index: 5; background: white; color: var(--ink); }
.skip-link:focus { top: .5rem; }
.site-header { background: var(--teal); color: white; border-bottom: 4px solid var(--gold); }
.header-inner { max-width: 76rem; margin: auto; padding: 1.2rem 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-name { color: white; font-size: 1.25rem; font-weight: 750; letter-spacing: .02em; text-decoration: none; }
.header-links { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.developer-link { color: #f2e3bd; font-size: .9rem; }
.language-switch { display: flex; gap: .35rem; padding: .2rem; border: 1px solid #648083; border-radius: .65rem; }
.language-switch a { min-width: 3.3rem; min-height: 2.75rem; display: grid; place-items: center; padding: .3rem .75rem; color: white; border-radius: .4rem; font-size: .9rem; font-weight: 650; text-decoration: none; }
.language-switch a[aria-current="page"] { color: var(--ink); background: #f4e6c6; }
.site-header a:focus-visible { outline-color: #f4e6c6; }
main { max-width: 76rem; margin: auto; padding: 3rem 2rem 4rem; }
.hero { padding-bottom: 2.1rem; }
.eyebrow { margin: 0 0 .65rem; color: var(--muted); font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0 0 1rem; max-width: 20ch; font-size: clamp(2rem, 4.8vw, 3.2rem); font-weight: 750; line-height: 1.13; letter-spacing: -.035em; }
.updated { margin: 0; max-width: 68ch; color: var(--muted); font-size: .98rem; }
.layout { display: grid; grid-template-columns: 13rem minmax(0, 1fr); align-items: start; gap: 2rem; }
.contents { position: sticky; top: 1.5rem; padding-top: .35rem; }
.contents-title { margin: 0 0 .65rem; color: var(--muted); font-size: .82rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.contents ul { list-style: none; padding: 0; margin: 0; }
.contents li { margin: 0 0 .25rem; }
.contents a { display: block; padding: .45rem .8rem; border-left: 2px solid var(--line); font-size: .9rem; line-height: 1.45; text-decoration: none; }
.contents a:hover { border-color: var(--gold); background: #e9e9dd; }
article { min-width: 0; padding: clamp(1.4rem, 3.8vw, 2.8rem); border: 1px solid var(--line); border-radius: .8rem; background: var(--surface); box-shadow: 0 5px 24px #173f4206; }
section { scroll-margin-top: 1.5rem; }
section + section { margin-top: 2.3rem; padding-top: 2.1rem; border-top: 1px solid var(--line); }
h2 { margin: 0 0 .85rem; font-size: 1.38rem; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0 0 1.1rem; }
section p:last-child { margin-bottom: 0; }
article a { overflow-wrap: anywhere; }
strong { font-weight: 700; }
.technology { padding: .9rem 1rem; border-left: 3px solid var(--gold); background: #f4f1e8; font-size: .95rem; }
.site-footer { padding: 1.6rem 2rem 2rem; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .9rem; }
.site-footer p { margin: 0; }

@media (max-width: 54rem) {
  .layout { grid-template-columns: 1fr; gap: 1.3rem; }
  .contents { position: static; padding: 0; }
  .contents ul { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .7rem; }
  .contents li { margin: 0; }
  .contents a { padding: .5rem .65rem; }
}

@media (max-width: 38rem) {
  body { font-size: 1rem; }
  .header-inner { padding: 1rem 1.1rem; gap: .8rem 1rem; flex-wrap: wrap; }
  .header-links { gap: .8rem; justify-content: space-between; flex: 1 0 100%; }
  .language-switch a { min-width: 3rem; }
  main { padding: 2rem 1rem 2.5rem; }
  .hero { padding-bottom: 1.5rem; }
  .contents ul { grid-template-columns: 1fr; gap: 0; }
  .contents a { min-height: 2.75rem; display: flex; align-items: center; }
  article { padding: 1.25rem; border-radius: .6rem; }
  h2 { font-size: 1.25rem; }
  .site-footer { padding: 1.3rem 1rem 1.6rem; }
}

@media print {
  body { background: white; color: black; font-size: 10pt; }
  .site-header, .contents, .skip-link, .site-footer { display: none; }
  main { max-width: none; padding: 0; }
  .layout { display: block; }
  article { padding: 0; border: 0; box-shadow: none; }
  .technology { background: none; }
  a { color: inherit; }
}
