/* mistwren - one sheet for every page */

:root {
  --bg: #eef1ec;
  --panel: #f7f9f5;
  --text: #24313a;
  --muted: #5c6b72;
  --rule: #cfd8cf;
  --moss: #5b7353;
  --moss-dark: #435a3d;
  --bar: #dfe6dc;
  --col: 46rem;
}

* { box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
}

a { color: var(--moss-dark); text-underline-offset: 2px; }
a:hover { color: var(--moss); }

/* top bar */

.topbar {
  background: var(--bar);
  border-bottom: 3px solid var(--moss);
}

.topbar-inner {
  max-width: var(--col);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.wordmark svg { width: 26px; height: 26px; }

.topbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
}

.topbar nav a {
  display: block;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.topbar nav a:hover { background: #d2dccf; }

.topbar nav a[aria-current="page"] {
  background: var(--moss);
  color: #f4f7f2;
}

/* main column */

main {
  max-width: var(--col);
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

h1 {
  font-size: 1.8rem;
  line-height: 1.2;
  margin: 0 0 0.4rem;
  font-weight: 700;
}

h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.5rem;
  color: var(--moss-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h3 { font-size: 1.05rem; margin: 1.4rem 0 0.3rem; }

p, ul, ol { margin: 0 0 1rem; }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.meta {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
}

/* walk list */

.walks {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}

.walks li {
  display: grid;
  grid-template-columns: 7.5rem 1fr 4.5rem;
  gap: 0 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--rule);
}

.walks time,
.walks .dist {
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.walks .dist { text-align: right; }
.walks a { font-weight: 600; }
.walks .summary { display: block; color: var(--muted); font-size: 0.95rem; }

/* stats */

table.stats {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

table.stats th,
table.stats td {
  text-align: left;
  padding: 0.45rem 0.8rem;
  border-bottom: 1px solid var(--rule);
}

table.stats tr:last-child th,
table.stats tr:last-child td { border-bottom: 0; }

table.stats th {
  width: 9rem;
  font-weight: 600;
  color: var(--muted);
}

table.stats td { font-variant-numeric: tabular-nums; }

/* notes and asides */

.next {
  border-left: 4px solid var(--moss);
  background: var(--panel);
  padding: 0.8rem 1rem;
  margin: 1.5rem 0;
}

.next p:last-child { margin-bottom: 0; }

.back { margin-top: 2rem; font-size: 0.95rem; }

/* footer */

footer {
  max-width: var(--col);
  margin: 0 auto;
  padding: 1.2rem 1rem 2.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--muted);
}

/* small screens */

@media (max-width: 34rem) {
  h1 { font-size: 1.5rem; }
  .walks li { grid-template-columns: 1fr auto; }
  .walks li > div { grid-column: 1 / -1; grid-row: 2; }
  table.stats th { width: 7rem; }
}

.walks + .more { margin-top: 1.5rem; }
