:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #26332b;
  background: #fafbf8;
  line-height: 1.7;
}

* { box-sizing: border-box; }
body { max-width: 960px; margin: 0 auto; padding: 0 28px; }
a { color: #235c42; text-underline-offset: 3px; }
a:visited { color: #526749; }
a:hover { color: #102f21; }
:focus-visible { outline: 2px solid #235c42; outline-offset: 5px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.3; color: #183c2b; }
h1 { font-size: 2rem; letter-spacing: -0.025em; margin: 0 0 16px; }
h2 { font-size: 1.35rem; margin: 36px 0 14px; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 16px; }
li { margin-bottom: 8px; }
ul, ol { padding-left: 24px; }
header { border-top: 5px solid #315f44; padding: 22px 0 18px; border-bottom: 1px solid #bdc9bd; }
.masthead, .navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; gap: 12px; align-items: center; font-size: 1.25rem; font-weight: 700; text-decoration: none; }
.brand img { border-radius: 10px; }
.languages, nav, .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.languages { font-size: .9rem; gap: 14px; }
.languages [aria-current], nav [aria-current] { font-weight: 700; }
.navigation { margin-top: 18px; font-size: .9rem; }
.platform, .note, footer { color: #526052; font-size: .875rem; }
main { padding: 36px 0; }
.intro { max-width: 700px; }
.eyebrow { color: #526052; font-size: .85rem; margin-bottom: 8px; }
.lede { font-size: 1.125rem; }
.download { font-weight: 700; }
.features { max-width: 760px; margin: 24px 0 0; }
.section-heading { border-top: 1px solid #bdc9bd; padding-top: 24px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.gallery.ipad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
figure { min-width: 0; margin: 0; }
figure > a { display: block; padding: 10px; background: #eef1eb; border: 1px solid #cbd3c7; }
figure img { display: block; width: 100%; }
figcaption { font-size: .875rem; margin-top: 8px; }
figcaption strong { display: block; }
.attribution { margin-top: 28px; }
.document { max-width: 740px; }
.document h2 { scroll-margin-top: 20px; }
.contents { padding-bottom: 20px; border-bottom: 1px solid #bdc9bd; }
.contents li { margin-bottom: 4px; }
code { font-size: .95em; overflow-wrap: anywhere; }
footer { border-top: 1px solid #bdc9bd; padding: 20px 0 30px; }
footer p { margin: 8px 0 0; }
.skip-link { position: absolute; top: -100px; padding: 8px; background: #fff; }
.skip-link:focus { top: 8px; }

@media (max-width: 600px) {
  body { padding: 0 18px; }
  main { padding-top: 28px; }
  h1 { font-size: 1.7rem; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .gallery.ipad { grid-template-columns: 1fr; }
  figure > a { padding: 6px; }
  .platform { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
