:root {
  --ink: #26302a;
  --muted: #66705f;
  --paper: #f6f1e6;
  --card: #fffdf8;
  --accent: #3d6b4b;
  --accent-dark: #2c5038;
  --rule: #e2d9c6;
  --chalk: #fbfaf6;
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0;
  font: 18px/1.7 Georgia, "Iowan Old Style", "Times New Roman", serif;
  color: var(--ink);
  /* Scrolling background by default: Chrome on Android can leave the page
     blank with a full-screen fixed background. Only mouse devices get "fixed". */
  background: var(--paper) url("/contours.svg") center top / 100% auto no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  body { background-size: cover; background-attachment: fixed; }
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1rem; }

/* Header: plain on inner pages, photo banner on the home page */
.site-header { border-bottom: 1px solid var(--rule); background: rgba(246, 241, 230, .92); }
.site-header .wrap { padding-top: 1.6rem; padding-bottom: 1rem; }
.site-title { font-size: 1.9rem; font-weight: bold; margin: 0; letter-spacing: .01em; }
.site-title a { color: inherit; text-decoration: none; }
.tag { color: var(--muted); font-style: italic; margin: .1rem 0 0; }
nav a { font: 15px/1 system-ui, -apple-system, "Segoe UI", sans-serif; margin-right: 1.1rem; }
.site-header nav { margin-top: .8rem; }
.site-header.hero {
  border-bottom: 0;
  background: #2f3b2f url("/images/banner.jpg") center / cover no-repeat;
  color: var(--chalk);
}
.site-header.hero .wrap { padding-top: 5.5rem; padding-bottom: 1.4rem; }
.site-header.hero .site-title { font-size: 2.6rem; text-shadow: 0 2px 12px rgba(0, 0, 0, .55); }
.site-header.hero .tag { color: #f1ede2; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.site-header.hero nav a { color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.site-header.hero { position: relative; }
.site-header.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .45));
}
.site-header.hero .wrap { position: relative; }

main { padding-top: 1.5rem; padding-bottom: 1rem; }
.intro { font-style: italic; color: var(--muted); margin: .5rem 0 1.5rem; }

/* Walk cards on the home page */
.card {
  display: grid; grid-template-columns: 220px 1fr; gap: 1.2rem;
  background: var(--card); border: 1px solid var(--rule); border-radius: 6px;
  padding: .9rem; margin-bottom: 1.2rem; box-shadow: 0 1px 2px rgba(60, 50, 30, .06);
}
.card .thumb img { border-radius: 4px; aspect-ratio: 3 / 2; object-fit: cover; }
.card h2 { font-size: 1.3rem; line-height: 1.3; margin: .1rem 0 .4rem; }
.card h2 a { color: var(--ink); text-decoration: none; }
.card h2 a:hover { color: var(--accent); }
.card p { margin: 0 0 .4rem; }
.meta { color: var(--muted); font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; margin: 0; }
.more { font: 14px system-ui, -apple-system, "Segoe UI", sans-serif; }
.dist {
  display: inline-block; background: #ece5d5; color: var(--muted);
  border-radius: 3px; padding: 0 .45rem; margin-right: .6rem;
}
.banner-credit, figcaption, .credits { font: 13px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--muted); }
.banner-credit { margin-top: 1.5rem; }

/* A single walk */
.post { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 1.2rem 1.4rem 1rem; }
.post h1 { font-size: 2rem; line-height: 1.2; margin: .2rem 0 1rem; }
.post h2 { font-size: 1.25rem; margin: 1.6rem 0 .3rem; }
figure { margin: 0 -1.4rem 1rem; }
figure img { width: 100%; }
figcaption { padding: .35rem 1.4rem 0; }
.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: .15rem 1rem;
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f3eee2; border-left: 3px solid var(--accent); padding: .7rem 1rem; margin: 0 0 1.2rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 1.2rem 0; font: 15px system-ui, sans-serif; }
.pager .newer { margin-left: auto; text-align: right; }
.credits { padding-left: 1.1rem; }

footer { color: var(--muted); font: 14px system-ui, -apple-system, "Segoe UI", sans-serif; padding-top: 1rem; padding-bottom: 3rem; }

@media (max-width: 600px) {
  body { font-size: 17px; }
  .card { grid-template-columns: 1fr; }
  .site-header.hero .wrap { padding-top: 3.5rem; }
  .site-header.hero .site-title { font-size: 2.1rem; }
  .post { padding: 1rem; }
  figure { margin: 0 -1rem 1rem; }
  figcaption { padding: .35rem 1rem 0; }
}
