* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #f4f3ed; color: #202924; font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
a { color: #305e43; text-underline-offset: 4px; }
.topbar, main, footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.topbar { padding: 24px 0; border-bottom: 1px solid #d5d9d0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a { text-decoration: none; font-size: 14px; }
.topbar .brand { font-weight: 700; font-size: 26px; letter-spacing: -2px; }
.hero { text-align: center; padding: 80px 0 60px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 11px; color: #58705d; margin: 0 0 12px; }
h1 { font-size: clamp(42px, 6.5vw, 82px); line-height: 1.07; font-weight: 500; letter-spacing: -.05em; margin: 20px 0 26px; }
h1 em { font-family: Georgia, serif; color: #476449; font-weight: normal; }
h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; margin: 0; }
h3 { font-size: 20px; margin: 0 0 16px; font-weight: 500; }
.lead { color: #637068; font-size: 18px; }
.topics { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.topics a { text-decoration: none; border: 1px solid #d5d9d0; border-radius: 24px; padding: 9px 18px; font-size: 12px; }
.topics a:hover { background: #e5eadf; }
.section { padding: 48px 0; border-top: 1px solid #d5d9d0; scroll-margin-top: 24px; }
.section > p { max-width: 780px; color: #637068; margin-bottom: 28px; }
.section-heading { display: flex; align-items: center; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.number { color: #63775d; font-size: 16px; border: 1px solid #c9d1c4; border-radius: 50%; width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; }
.columns, .style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.style-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.panel { background: #fffefa; border: 1px solid #dde0d6; border-radius: 16px; padding: 26px; min-width: 0; margin: 0; }
.profile { text-align: center; }
.profile img { width: min(100%, 280px); height: auto; border-radius: 10px; }
figcaption h3 { margin: 14px 0 4px; }
figcaption p { color: #637068; font-size: 13px; margin: 0; }
pre { background: #e9ede4; border-radius: 10px; padding: 20px; overflow-x: auto; font-size: 12px; line-height: 1.8; text-align: left; }
code { font-family: Consolas, Monaco, monospace; overflow-wrap: anywhere; }
pre code { overflow-wrap: normal; }
.small { font-size: 13px; color: #637068; }
.external-example { color: #305e43; text-align: center; font-weight: 600; }
.box-demo { max-width: 600px; margin: 36px auto 0; text-align: center; }
.margin-area { background: #e7d9bc; padding: 12px 28px 28px; border: 1px dashed #ad9060; }
.border-area { background: #8ca17d; padding: 8px; }
.padding-area { background: #dce5cf; padding: 10px 26px 26px; }
.content-area { background: #fffefa; padding: 16px; }
label { display: block; font-size: 14px; }
input[type=text] { width: 100%; padding: 13px; border: 1px solid #bbc8b8; border-radius: 8px; margin: 8px 0 20px; font: inherit; }
.actions { display: flex; gap: 10px; }
button, .button { display: inline-block; border: none; border-radius: 8px; background: #253e2e; color: white; padding: 12px 24px; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none; }
button:hover, .button:hover { background: #3b5c43; }
.secondary { background: #e6ebdf; color: #253e2e; }
.secondary:hover { background: #d7e1ce; }
.viewport-demo { padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid #d5d9d0; border-radius: 12px; }
.viewport-demo strong { font-size: 40px; font-weight: 500; }
.viewport-demo span:last-child, .wide-label { font-size: 13px; }
@media (min-width:600px) { .viewport-demo { background-color: #fae5a6; } .narrow-label { display:none; } }
@media (max-width:599px) { .viewport-demo { background-color:white; } .wide-label { display:none; } }
.toggle { margin: 20px 0; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: #305e43; }
.flex-demo { display: flex; flex-wrap: wrap; justify-content: center; background: #fffefa; border: 1px solid #dde0d6; border-radius: 14px; overflow-x: auto; }
.flex-demo > div { flex: 0 0 200px; width: 200px; margin: 20px; padding: 20px; background-color: lightgray; font-size: 20px; text-align: center; border-radius: 8px; }
.flex-demo.no-wrap { flex-wrap: nowrap; justify-content: flex-start; }
.end { text-align: center; padding: 64px 0; border-top: 1px solid #d5d9d0; }
.end .button { margin-top: 26px; }
footer { padding: 26px 0; border-top: 1px solid #d5d9d0; font-size: 11px; color: #637068; text-align: center; }
:focus-visible { outline: 3px solid #9f6e32; outline-offset: 4px; }
@media (max-width:760px) { .columns, .style-grid { grid-template-columns:1fr; } .hero { padding:48px 0; } .section { padding:32px 0; } .panel { padding:20px; } }
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
