:root {
  color-scheme: light;
  --ink: #132824;
  --muted: #405952;
  --paper: #f4f5ef;
  --card: #fffef9;
  --rule: #c9d2c6;
  --brand: #00634f;
  --focus: #b14b15;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.6 "DM Sans", "Segoe UI", sans-serif;
}
a { color: var(--brand); text-underline-offset: .15em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { max-width: 74rem; width: min(100% - 2rem, 74rem); margin-inline: auto; }
.skip {
  position: absolute;
  left: 1rem;
  top: .5rem;
  padding: .6rem 1rem;
  background: var(--card);
  transform: translateY(-150%);
  z-index: 2;
}
.skip:focus { transform: none; }
header, footer { background: var(--card); }
header { border-bottom: 1px solid var(--rule); }
.header { min-height: 4.5rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 720;
}
.brand span {
  display: grid;
  place-items: center;
  border-radius: .4rem;
  width: 1.9rem;
  height: 1.9rem;
  background: var(--brand);
  color: white;
  font-family: Georgia, serif;
}
.languages, .sections, .actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.languages a { padding: .25rem .42rem; font-weight: 650; }
.languages [aria-current] { background: var(--brand); color: white; border-radius: .25rem; }
main { padding-block: 2.5rem 4rem; }
.hero { padding: clamp(1.2rem, 5vw, 4rem); border-radius: 1rem; background: #e1eee3; }
h1, h2, h3 { line-height: 1.14; overflow-wrap: anywhere; }
h1 { margin: .25em 0; font: clamp(2.05rem, 6vw, 4.35rem)/1.04 Georgia, serif; letter-spacing: -.045em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); margin-bottom: .45rem; }
h3 { font-size: 1.22rem; margin: 0 0 .55rem; }
p { max-width: 72ch; margin-top: .5rem; }
.hero p:not(.tag) { color: var(--muted); font-size: clamp(1.05rem, 2.5vw, 1.38rem); margin-bottom: 0; }
.tag { color: var(--brand); font-weight: 720; font-size: .88rem; }
.sections { margin-block: 1.35rem .65rem; }
.sections a { color: var(--ink); background: var(--card); padding: .45rem .75rem; border: 1px solid var(--rule); border-radius: .35rem; }
.intro { color: var(--muted); }
main > section:not(.hero) { margin-block: 2.3rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .8rem; }
.cards article { background: var(--card); border: 1px solid var(--rule); padding: 1.05rem; border-radius: .5rem; }
.cards article p { margin-bottom: 0; color: var(--muted); }
.detail { max-width: 53rem; margin-inline: auto; }
.detail section { margin: 1.4rem 0; }
.detail .example { background: #e1eee3; border: 1px solid #c5d4c6; border-radius: .6rem; padding: .8rem 1.1rem; }
.example h2 { margin-top: .3rem; }
.example p { margin-bottom: .3rem; }
.back { display: inline-block; margin-bottom: 1.2rem; }
.actions > p { width: 100%; max-width: none; margin: 0; }
.button {
  display: inline-block;
  text-align: center;
  padding: .55rem .85rem;
  background: var(--brand);
  color: white;
  font-weight: 650;
  border-radius: .38rem;
}
.button.secondary { background: var(--card); color: var(--brand); border: 1px solid var(--rule); }
footer { border-top: 1px solid var(--rule); padding-block: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
