:root {
  color-scheme: light;
  font: 100%/1.55 system-ui, sans-serif;
  color: #193c35;
  background: #f8f9f6;
  --pine: #123e36;
  --muted: #465f57;
  --line: #ced8d1;
}
* { box-sizing: border-box; }
body { margin: auto; max-width: 79rem; padding: 0 clamp(1rem, 4vw, 3.5rem) 4rem; overflow-wrap: anywhere; }
header, .brand, .actions, .language summary { display: flex; align-items: center; }
header { justify-content: space-between; gap: .75rem; padding: 1.45rem 0; }
.brand { gap: .65rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -.035em; }
h1, h2, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; font-weight: 650; letter-spacing: -.045em; }
h1 { font-size: clamp(2.15rem, 4.35vw, 4.35rem); line-height: 1.02; }
.product-name { white-space: nowrap; }
h2 { font-size: clamp(1.55rem, 2.25vw, 2.1rem); line-height: 1.17; }
a, summary { color: #175d50; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #237a66; outline-offset: 4px; }
.hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(1.6rem, 3.5vw, 4rem); padding: clamp(1.5rem, 4.2vw, 3.9rem);
  border-radius: 1.15rem; color: #fff; background-color: var(--pine);
  background-image: radial-gradient(ellipse at 98% 100%, #35675a 0%, transparent 62%);
}
.hero-copy, .preview, .guides section { min-width: 0; }
.hero-copy > p { max-width: 37ch; margin-top: 1rem; color: #d5e4da; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.actions { gap: .65rem 1.1rem; flex-wrap: wrap; margin-top: 1.5rem; align-items: stretch; }
.button, .jump { display: inline-flex; align-items: center; gap: .6rem; min-height: 2.75rem; font-size: .92rem; font-weight: 650; }
.button { color: #133b31; background: #c2ed93; padding: .67rem .95rem; text-decoration: none; border-radius: .5rem; line-height: 1.35; }
.button:hover { background: #d2f6ae; }
.jump { color: #f0f7ef; }
.hero :focus-visible { outline-color: #dcffb7; }
.preview { align-self: center; padding: 1rem 1rem .75rem; border-radius: .75rem; color: #1d5548; background: #fff; box-shadow: 0 12px 30px #082b2636; }
.preview figcaption { width: fit-content; margin: 0 0 .7rem .4rem; color: #4a6559; font-size: .8rem; font-weight: 650; }
.preview svg { width: 100%; height: auto; display: block; }
.downloads { margin-top: clamp(2rem, 4vw, 3.5rem); }
#download { scroll-margin-top: 1rem; }
.cards, .guides { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.cards { margin-top: 1.1rem; }
.download { position: relative; display: flex; flex-direction: column; align-items: start; border: 1px solid var(--line); border-radius: .75rem; padding: 1.35rem clamp(1.05rem, 2.4vw, 1.8rem); background: #fff; }
.download:has(a:is(:hover,:focus-visible)) { border-color: #338471; background: #fafdf9; }
.download a { margin-right: 2.7rem; color: var(--pine); font-size: clamp(1.07rem, 1.75vw, 1.35rem); font-weight: 650; line-height: 1.28; text-decoration: none; letter-spacing: -.025em; }
.download a::after { content: ""; position: absolute; inset: 0; border-radius: .75rem; }
.download a:focus-visible { outline: 0; }
.download a:focus-visible::after { outline: 3px solid #237a66; outline-offset: 2px; }
.download p { margin: .7rem 0 1.05rem; max-width: 44ch; color: var(--muted); }
.download small { margin-top: auto; font: .78rem ui-monospace, monospace; color: #466457; }
.download-icon { position: absolute; top: 1.15rem; right: 1.1rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; color: #174b3e; background: #e6f1e4; font-size: 1.15rem; pointer-events: none; }
.guides { margin: 2.2rem 0; gap: clamp(1.5rem,4vw,3.7rem); }
.guides section, .first { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.guides h2, .first h2 { font-size: clamp(1.32rem,1.7vw,1.6rem); }
.guides p, .first p { margin: .7rem 0; max-width: 69ch; color: var(--muted); }
.guides a, .folders summary { font-weight: 550; }
.folders { margin: .75rem 0; }
.folders summary, .language summary { cursor: pointer; }
.folders dl { padding: .9rem 1rem; margin: .5rem 0; border-radius: .4rem; background: #ebf1e9; }
.folders dt { font-weight: 650; }
.folders dd { margin: 0 0 .55rem; }
.folders dd:last-child { margin-bottom: 0; }
.folders code { font-size: .86rem; }
.language { position: relative; }
.language summary { list-style: none; gap: .45rem; min-height: 2.75rem; padding: .45rem .8rem; border-radius: .5rem; border: 1px solid var(--line); background: #fff; font-size: .9rem; }
.language summary::-webkit-details-marker { display: none; }
.language summary::after { content: ""; width: .42rem; height: .42rem; flex-shrink: 0; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.1rem) rotate(45deg); }
.language[open] summary::after { transform: translateY(.1rem) rotate(225deg); }
.language nav { position: absolute; z-index: 2; inset-inline-end: 0; top: calc(100% + .3rem); width: max-content; max-width: calc(100vw - 2rem); background: white; border: 1px solid var(--line); border-radius: .5rem; box-shadow: 0 .55rem 1.5rem #173a3822; }
.language ul { list-style: none; padding: .3rem; margin: 0; }
.language a { display: block; padding: .4rem .8rem; text-decoration: none; border-radius: .22rem; }
.language a:is(:hover,:focus-visible), .language [aria-current] { background: #eaf3e7; }
.language [aria-current] { font-weight: 650; }
@media (max-width: 50rem) {
  .hero { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero-copy > p { max-width: 48ch; }
  .preview { width: 100%; max-width: 33rem; }
}
@media (max-width: 40rem) {
  header { padding: .85rem 0; }
  .brand { font-size: 1rem; gap: .4rem; }
  .brand img { width: 1.8rem; height: 1.8rem; }
  .hero { padding: 1.35rem; }
  .actions { margin-top: 1.05rem; }
  .preview { padding: .55rem; }
  .preview figcaption { margin-bottom: .25rem; }
  .cards, .guides { grid-template-columns: 1fr; }
  .cards { gap: .75rem; }
}
