:root {
  background: #fbfaf7;
  color: #27251d;
  font: 1rem/1.62 "Segoe UI", system-ui, sans-serif;
  --line: #ddd9cb;
  --muted: #605d52;
}
* { box-sizing: border-box; }
body { margin: 0 auto; width: min(1140px, calc(100% - 56px)); }
a { color: #394814; text-underline-offset: 4px; }
a:hover { color: #242d0b; }
::selection { background: #deee7e; color: #27251d; }
:focus-visible { outline: 2px solid #677c25; outline-offset: 4px; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 13px; padding: 18px 0; }
header { border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); margin-top: 55px; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
h1, h2, p { margin: 0; }
.brand { display: flex; gap: 9px; align-items: center; text-decoration: none; color: #27251d; font-size: 1.15rem; font-weight: 750; letter-spacing: -.045em; }
.brand span { border-radius: 5px; width: 24px; height: 24px; display: grid; place-items: center; transform: rotate(-9deg); background: #27251d; }
.brand span::before { content: ""; width: 14px; height: 10px; background: repeating-linear-gradient(135deg,#e8f58a 0 2px,transparent 2px 4px); }
.button { display: inline-block; color: #28300e; border: 1px solid #b8c666; background: #e8f58a; padding: 7px 14px; border-radius: 6px; text-decoration: none; font-weight: 700; font-size: .92rem; }
.button:hover { background: #dfed76; box-shadow: 0 2px #aeb85a; }
.button:active { transform: translateY(2px); box-shadow: none; }
h1 { font: 500 clamp(2.75rem, 6vw, 5rem)/1.02 Georgia, serif; letter-spacing: -.065em; }
h2 { font-size: 1.28rem; line-height: 1.27; letter-spacing: -.025em; }
.hero { display: grid; grid-template-columns: 1.48fr 1fr; align-items: center; gap: 45px; padding: 65px 0 56px; }
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 45ch; margin-top: 22px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 17px; margin-top: 24px; }
.sample { display: grid; border: 1px solid #d8d8c1; background: #f1f3df; gap: 9px; padding: 22px; border-radius: 10px; }
.sample span { font-weight: 650; color: #475224; }
code { font-family: Consolas, monospace; }
.sample code { padding: 13px; border: 1px solid #dedfc9; border-radius: 6px; background: #fffefa; overflow-wrap: anywhere; }
mark { background: #e5efaa; color: #354316; border-radius: 4px; padding: 3px; }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; border: solid var(--line); border-width: 1px 0; padding-block: 25px; }
.formats p, .reading p { color: var(--muted); margin-top: 8px; }
.reading, .article-page { max-width: 72ch; }
.reading { padding-top: 34px; }
.article-page { margin: 42px auto 0; }
.article-page h1 { font-size: clamp(2.5rem, 5.7vw, 4rem); }
.article-page nav { margin-top: 22px; }
.article-page article { border-top: 1px solid var(--line); margin: 27px 0; padding-top: 24px; }
.article-page article p { margin-top: 12px; }
.article-page article h2:not(:first-child) { margin-top: 22px; }
pre { background: #f2f3e0; border: 1px solid #dbe0bf; border-radius: 6px; padding: 13px; overflow: auto; }
@media (max-width: 730px) {
  body { width: calc(100% - 30px); }
  header nav { gap: 9px; }
  header nav a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 25px; padding: 32px 0; }
  .formats { grid-template-columns: 1fr; gap: 15px; }
}
