:root { font-family: var(--site-font); color: #263c2b; background: var(--site-background); line-height: 1.65; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: #365b39; text-underline-offset: 4px; }
.skip-link { position: fixed; top: 8px; left: var(--site-inset); z-index: 40; padding: 8px 12px; background: #fff; transform: translateY(calc(-100% - 12px)); }
.skip-link:focus { transform: none; }
main { flex: 1; padding: 28px var(--site-gutter) 32px; font-size: 17px; overflow-wrap: anywhere; }
main > p { max-width: 76ch; }
h1 { margin: 0 0 12px; font-size: clamp(28px, 4vw, 34px); line-height: 1.2; }
h2 { line-height: 1.3; }
.cta { display: inline-block; background: #345237; color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.cover, img { max-width: 100%; height: auto; border-radius: 10px; }
.article-page { max-width: 740px; margin-inline: auto; }
.article-page header { margin-bottom: 20px; }
.article-back { display: inline-block; margin-bottom: 10px; }
.article-meta { margin: 0; font-size: 15px; }
.article-page .cover { display: block; width: 100%; margin-bottom: 22px; }
.article-related { margin-top: 28px; border-top: 1px solid var(--site-border); }
pre, table { display: block; overflow: auto; }
pre { padding: 16px; background: #e9efe3; }
.muted { color: #57684d; }
.article-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); align-items: start; gap: 24px; list-style: none; padding: 0; }
.article-list li { overflow: hidden; border: 1px solid var(--site-border); border-radius: 12px; background: white; }
.article-list a { display: block; color: inherit; text-decoration: none; }
.article-list a:hover h2, .article-list a:focus-visible h2 { text-decoration: underline; }
.article-list img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 0; }
.article-list h2 { margin: 18px 20px 8px; font-size: 1.22em; }
.article-list p { margin: 0 20px 20px; color: #465846; }
.home-intro h1 { max-width: 24ch; font-size: clamp(32px, 4vw, 52px); letter-spacing: -.04em; }
.home-intro p { max-width: 65ch; color: #42523e; margin: 14px 0 26px; }
.home-guides { margin-top: clamp(24px, 3vw, 38px); }
.home-guides-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 14px; }
.home-guides-heading h2 { margin: 0; font-size: clamp(23px, 2.2vw, 28px); }
.home-guides-heading a { font-size: 16px; }
.home-guides .article-list { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; margin: 0; gap: 18px; }
.home-guides li a { height: 100%; }
.home-guides li a:focus-visible { outline-offset: -3px; }
.home-guides h3 { margin: 14px 16px 16px; font-size: 18px; line-height: 1.35; }
.home-guides a:hover h3, .home-guides a:focus-visible h3 { text-decoration: underline; }
@media (max-width: 1000px) {
  .home-guides .article-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-guides .article-list { grid-template-columns: 1fr; gap: 10px; }
  .home-guides li a { display: flex; align-items: center; }
  .home-guides li img { width: 29%; flex: none; }
  .home-guides h3 { margin: 12px; font-size: 16px; }
}
.material-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.material-choice { display: grid; grid-template-columns: 28% 1fr; overflow: hidden; border: 1px solid var(--site-border); border-radius: 12px; background: #fff; text-decoration: none; color: #263c2b; }
.material-choice:hover, .material-choice:focus-visible { border-color: #647c60; }
.material-choice div { padding: 22px; }
.material-choice h2 { margin: 0; font-size: 24px; }
.material-choice p { font-size: 16px; line-height: 1.5; margin: 8px 0 20px; }
.material-choice strong { color: #365b39; }
.sample-tile { background-color: #b7bba5; background-image: linear-gradient(90deg, transparent 95%, #f2f1e6 95%), linear-gradient(transparent 94%, #f2f1e6 94%); background-size: 48px 64px; }
.sample-paper { background: repeating-linear-gradient(102deg, #d9bfa5 0 18px, #e9d9c7 18px 32px, #cfac8d 32px 34px); }
.landing-action { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.landing-action > div { display: grid; justify-items: start; align-content: start; gap: 12px; }
.calculation-example { padding: 22px; background: #fff; border: 1px solid var(--site-border); border-radius: 12px; }
.calculation-example h2 { margin-top: 0; font-size: 22px; }
.calculation-example strong { font-size: 24px; }
@media (max-width: 960px) {
  main { padding-top: 20px; }
}
@media (max-width: 740px) {
  .material-choices, .landing-action { grid-template-columns: 1fr; gap: 12px; }
  .material-choice div { padding: 16px; }
  .material-choice p { margin-bottom: 12px; }
  .home-intro p { margin-bottom: 18px; }
}
