:root {
  color-scheme: dark;
  --bg: #171918;
  --panel: #202321;
  --line: #3a3e3b;
  --text: #e5e1d8;
  --muted: #aaa79f;
  --accent: #c6813f;
  --accent-soft: #e0a66d;
  --max: 1060px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
}

a { color: var(--accent-soft); text-underline-offset: .18em; }
a:hover, a:focus-visible { color: #f0bd87; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--text); color: var(--bg); padding: .45rem .7rem; }

.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.4rem max(1.2rem, calc((100% - var(--max)) / 2));
}

.brand-row { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; }
.brand { color: var(--text); text-decoration: none; font-family: Arial, sans-serif; font-weight: 800; letter-spacing: .14em; font-size: 1.35rem; }
.tagline { color: var(--muted); font-family: Arial, sans-serif; font-size: .78rem; letter-spacing: .08em; }

.site-nav { margin-top: 1rem; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .45rem 1.35rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); font-family: Arial, sans-serif; font-size: .88rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

main { width: min(calc(100% - 2.4rem), var(--max)); margin: 0 auto; padding: 3rem 0 4.5rem; }
.narrow { max-width: 720px; }

h1, h2, h3 { line-height: 1.18; font-weight: 500; }
h1 { margin: 0 0 1rem; font-size: clamp(1.9rem, 5vw, 3rem); }
h2 { margin: 0 0 1rem; font-size: 1.55rem; }
h3 { margin: 0 0 .35rem; font-size: 1.2rem; }
p { margin: 0 0 1.25rem; }
.lede { max-width: 690px; color: #d0ccc3; font-size: 1.15rem; }
.eyebrow, time, .meta { color: var(--muted); font-family: Arial, sans-serif; font-size: .78rem; letter-spacing: .04em; }
.eyebrow { margin-bottom: .65rem; text-transform: uppercase; }

.home-intro { max-width: 720px; padding: .35rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 3.2rem 0 1.2rem; }
.section-head a { font-family: Arial, sans-serif; font-size: .82rem; }
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1.3rem; padding: 1.25rem .2rem; border-bottom: 1px solid var(--line); }
.post-list h3 a { color: var(--text); text-decoration: none; }
.post-list h3 a:hover { color: var(--accent-soft); }
.post-list p { color: var(--muted); margin: .35rem 0 0; font-size: .96rem; }

.section-links { margin-top: 3.5rem; max-width: 720px; }
.section-links h2 { margin-bottom: .65rem; }
.section-links ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.section-links li { border-bottom: 1px solid var(--line); padding: .55rem 0; }
.section-links a { color: var(--text); text-decoration: none; }
.section-links a:hover { color: var(--accent-soft); }
.section-links span { color: var(--muted); font-size: .9rem; margin-left: .45rem; }

.page-head { max-width: 720px; margin-bottom: 2.5rem; }
.article { max-width: 720px; }
.article header { margin-bottom: 2.5rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.article h1 { font-size: clamp(2rem, 6vw, 3.15rem); }
.article-nav { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-family: Arial, sans-serif; font-size: .86rem; }
.article-note { margin: 2rem 0; padding: 1rem 1.1rem; background: var(--panel); border-left: 3px solid var(--accent); color: #d2cec5; }

.workshop-list { max-width: 760px; margin: 0; padding: 0; list-style: none; }
.workshop-list li { padding: 1rem 0 1.15rem; border-top: 1px solid var(--line); }
.workshop-list h2 { font-size: 1.18rem; margin: .15rem 0 .25rem; }
.workshop-list h2 a, .route-log h2 a, .gear-entry h2 a { color: var(--text); text-decoration: none; }
.workshop-list p { color: var(--muted); margin: 0; font-size: .94rem; }
.route-log { max-width: 780px; border-left: 1px solid var(--line); margin-left: .35rem; padding-left: 1.5rem; }
.route-log article { margin-bottom: 2.2rem; }
.route-log h2 { margin: .25rem 0 .35rem; font-size: 1.35rem; }
.route-log p { margin: 0; color: var(--muted); }
.gear-entry { max-width: 680px; padding-top: .9rem; border-top: 1px solid var(--line); }
.gear-entry h2 { margin: .25rem 0 .45rem; font-size: 1.25rem; }

.about-list { padding-left: 1.2rem; }
.about-list li { margin-bottom: .45rem; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-family: Arial, sans-serif; font-size: .78rem; }
.footer-inner { width: min(calc(100% - 2.4rem), var(--max)); margin: auto; padding: 1.5rem 0 2.2rem; display: flex; justify-content: space-between; gap: 1rem; }

@media (max-width: 620px) {
  body { font-size: 17px; }
  .site-header { padding-top: 1rem; }
  .brand-row { display: block; }
  .tagline { margin-top: .25rem; }
  main { padding-top: 2.4rem; }
  .post-list li { display: block; }
  .post-list time { display: block; margin-bottom: .35rem; }
  .section-links span { display: block; margin-left: 0; }
  .route-log { padding-left: 1rem; }
  .footer-inner { display: block; }
}
