:root {
  --paper: #fff;
  --ink: #25392d;
  --muted: #6a746a;
  --line: #dce1d7;
  --accent: #a34329;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.6 system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.header,
main,
footer {
  max-width: 1240px;
  margin: auto;
  padding: 14px 24px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 24px;
  margin-bottom: 10px;
  gap: 16px;
}
.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -1px;
  text-decoration: none;
  line-height: 1.2;
}
.brand span {
  display: inline;
  margin-left: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
nav a {
  font-size: 14px;
  text-decoration: none;
}
.intro {
  padding: 18px 0 24px;
  max-width: 850px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.03em;
}
h1 {
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 650;
  margin: 8px 0 12px;
}
h2 {
  font-size: 22px;
}
.intro > p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  margin: 8px 0 0;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 14px;
}
.section-title h1 {
  margin: 0;
}
.section-title span,
.meta,
time {
  font-size: 12px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 20px;
}
.card > a {
  display: block;
  overflow: hidden;
  border-radius: 3px;
}
.card img,
.placeholder {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.placeholder {
  background: #e2e8db;
  display: grid;
  place-items: center;
  font-size: 28px;
  color: #82967e;
}
.card h2 {
  font-size: 19px;
  margin: 4px 0 6px;
}
.card h2 a {
  text-decoration: none;
}
.card p {
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 6px;
}
.card .eyebrow {
  color: var(--accent);
  margin: 0;
}
.card-body {
  padding-top: 8px;
}
.pagination {
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 20px 0 6px;
}
.pagination a,
.pagination .current,
.button {
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
}
.pagination a:hover {
  border-color: var(--accent);
}
.pagination .current {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  font-weight: 600;
  cursor: default;
}
.article {
  max-width: 820px;
  margin: 8px auto 28px;
}
.article h1 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 6px 0 8px;
}
.article .meta {
  margin: 0 0 8px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  margin: 14px 0;
  border-radius: 3px;
}
.prose {
  max-width: 760px;
  margin: 14px auto;
  overflow-wrap: anywhere;
}
.prose p {
  margin: 0 0 12px;
}
.prose h2 {
  margin: 26px 0 10px;
}
.prose h3 {
  margin: 20px 0 8px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}
.prose figure {
  margin: 18px 0;
}
.prose figure img {
  display: block;
  width: 100%;
}
figcaption {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}
table {
  display: block;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 15px;
  margin: 18px 0;
}
td,
th {
  padding: 8px 12px;
  border: 1px solid var(--line);
  text-align: left;
}
th {
  background: #eaf0e4;
}
blockquote {
  border-left: 3px solid var(--accent);
  margin: 16px 0;
  padding-left: 16px;
}
.embed {
  position: relative;
  aspect-ratio: 16/9;
  margin: 20px 0;
}
.embed iframe {
  border: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.embed.map {
  aspect-ratio: auto;
  height: 360px;
}
.gpx-map {
  height: 360px;
  background: #e2e8db;
}
.terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  margin: 0;
  list-style: none;
}
.terms a {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 14px;
  text-decoration: none;
}
.terms span {
  color: var(--muted);
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
footer .brand {
  font-size: 16px;
  color: var(--ink);
}
footer p {
  margin: 0;
}
.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 1000;
}
.skip:focus {
  top: 8px;
}
@media (max-width: 900px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .header nav {
    gap: 12px;
    justify-content: flex-end;
  }
  .brand span {
    display: block;
    margin-left: 0;
  }
  .card img,
  .placeholder {
    height: 170px;
  }
}
@media (max-width: 600px) {
  body {
    font-size: 15px;
  }
  .header,
  main,
  footer {
    padding: 12px 16px;
  }
  .header {
    display: block;
  }
  .header nav {
    margin-top: 10px;
    justify-content: flex-start;
    gap: 10px 16px;
  }
  .intro {
    padding: 14px 0 20px;
  }
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .card img,
  .placeholder {
    height: auto;
    min-height: 180px;
    max-height: 280px;
  }
  .section-title {
    display: block;
  }
  .article {
    margin-top: 8px;
  }
  .prose h2 {
    font-size: 20px;
  }
  .gpx-map,
  .embed.map {
    height: 300px;
  }
  footer {
    display: block;
  }
  footer p {
    margin: 4px 0 6px;
  }
}
