:root {
  color-scheme: light;
  --paper: #f6f2e9;
  --ink: #29251f;
  --muted: #62584b;
  --accent: #a23d27;
  --line: #d9cfc0;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p, pre, figure { margin: 0; }
p { color: var(--muted); line-height: 1.65; }
.wrap { width: min(1120px, 100% - clamp(36px, 9vw, 112px)); margin-inline: auto; }
.skip { position: absolute; inset: 8px auto auto 8px; padding: 10px; background: white; transform: translateY(-150%); z-index: 1; }
.skip:focus { transform: none; }
.header, .footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.header { min-height: 78px; border-bottom: 1px solid var(--line); }
.brand, .header a, .footer a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 19px var(--mono); letter-spacing: -.06em; }
.mark { background: var(--accent); color: white; border-radius: 8px; padding: 4px 6px 6px; font-size: 20px; line-height: 1; }
nav, .footer div { display: flex; gap: clamp(12px, 3vw, 30px); align-items: center; font-size: 14px; }
.source { border: 1px solid var(--line); padding: 8px 12px; border-radius: 7px; }
.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px, 6vw, 82px); padding-block: clamp(54px, 9vw, 121px); }
h1, h2 { font-family: Georgia, serif; font-weight: 500; }
h1 { font-size: clamp(44px, 6.6vw, 94px); letter-spacing: -.085em; line-height: .99; }
h1 em { color: var(--accent); font-weight: inherit; }
.hero p { max-width: 39ch; margin-top: 26px; font-size: clamp(16px, 1.6vw, 19px); }
.action { display: inline-flex; align-items: center; gap: 15px; margin-top: 27px; padding: 12px 16px; border-radius: 8px; background: var(--accent); color: white; text-decoration: none; font-weight: 650; font-size: 14px; }
.action:hover { background: #7f3020; color: white; }
.preview { min-width: 0; padding: clamp(10px, 2vw, 18px); border: 1px solid #dfc8ad; border-radius: 18px; background: repeating-linear-gradient(135deg, #f3dfc7 0 6px, #efdbc2 6px 7px); box-shadow: 0 12px 26px #54321a12; }
.preview img { display: block; width: 100%; height: auto; border: 1px solid #463c33; border-radius: 10px; background: #241f1c; box-shadow: 0 5px 10px #27180e28; }
pre { font: 13px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: var(--mono); }
figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 14px 2px 0; color: #554334; font: 12px var(--mono); }
.example { background: #ede6da; border-block: 1px solid var(--line); }
.example-grid, .install { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(25px, 7vw, 103px); padding-block: clamp(42px, 7vw, 88px); }
h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -.055em; }
.example p, .install p { margin-top: 15px; max-width: 34ch; }
.example-code { display: grid; gap: 12px; min-width: 0; }
.code-card { border: 1px solid var(--line); border-radius: 12px; background: #faf7f0; min-width: 0; }
.code-head { min-height: 48px; display: flex; justify-content: space-between; align-items: center; padding: 4px 14px; border-bottom: 1px solid var(--line); }
.code-head h3 { font: 650 13px system-ui, sans-serif; color: var(--muted); }
.code-card pre { padding: 12px 14px 16px; }
.copy { position: relative; }
button { min-inline-size: 40px; min-block-size: 34px; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; font: 600 12px system-ui, sans-serif; color: var(--ink); background: var(--paper); cursor: pointer; }
button:hover { background: #eee3d2; }
.tip { position: absolute; inset: auto 0 calc(100% + 6px) auto; white-space: nowrap; opacity: 0; background: var(--ink); color: white; padding: 5px 8px; border-radius: 5px; font-size: 12px; pointer-events: none; }
.tip:not(:empty) { opacity: 1; }
.uses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 5vw, 64px); padding-block: clamp(42px, 6vw, 76px); }
.uses h2 { margin-block: 9px 6px; font: 650 17px system-ui, sans-serif; letter-spacing: -.02em; }
.symbol { display: inline-grid; width: 30px; height: 30px; place-items: center; background: #f0ded2; color: var(--accent); border-radius: 7px; font: 650 16px var(--mono); }
.install, .footer { border-top: 1px solid var(--line); }
.install-links { display: flex; flex-wrap: wrap; gap: 8px 20px; border-top: 1px solid var(--line); padding: 12px 14px; font-size: 13px; }
.footer { padding-block: 24px; color: var(--muted); }
.footer > span { font: 700 15px var(--mono); }
@media (max-width: 830px) {
  .hero, .example-grid, .install { grid-template-columns: minmax(0, 1fr); }
  .preview { width: min(100%, 550px); }
}
@media (max-width: 550px) {
  .header { min-height: 64px; }
  .uses { grid-template-columns: 1fr; }
  .source { border: 0; padding-inline: 0; }
}
@media (max-width: 360px) { nav a:first-child { display: none; } }
