/* Hike5 site — the look of Mark's blog (Playfair Display + Source Sans 3, the
   warm palette), trimmed to what the trek and day pages need. */
:root {
  --brown: #3E2A1A; --sage: #7A9B76; --blue: #5B7C99; --terra: #C67B5C; --oker: #C9963B;
  --bg: #FAF6EF; --text: #333; --text-light: #6B5B4F; --border: #E0D5C5; --nav-bg: #1e1e1e;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --content-w: 860px; --gap: clamp(1rem, 3vw, 2rem);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: clamp(1.02rem, 1.1vw, 1.15rem); line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--terra); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2.section { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin: 2.2rem 0 .8rem; color: var(--brown); }
p { margin-bottom: 1rem; }
em { color: var(--text-light); }

.top { position: sticky; top: 0; z-index: 1000; background: var(--nav-bg); display: flex; align-items: baseline; gap: .8rem; padding: .7rem var(--gap); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.top .brand { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; color: #fff; }
.top .tag { color: rgba(255,255,255,.65); font-size: .85rem; }
.foot { text-align: center; padding: 2.5rem var(--gap) 3rem; color: var(--text-light); font-size: .9rem; }
.foot a { color: var(--text-light); }

.hero { position: relative; background: var(--brown); color: #fff; min-height: 34vh; display: flex; align-items: flex-end; }
.hero-img { background-size: cover; background-position: center; min-height: 62vh; }
.hero-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,0) 100%); }
.hero-site { min-height: 26vh; }
.hero-inner { position: relative; width: 100%; max-width: var(--content-w); margin: 0 auto; padding: 2rem var(--gap) 1.6rem; }
.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero-sub { color: rgba(255,255,255,.88); margin: .4rem 0 0; font-size: 1.05rem; }
.crumbs { font-size: .9rem; color: rgba(255,255,255,.8); margin-bottom: .5rem; }
.crumbs a { color: rgba(255,255,255,.9); }

.wrap { max-width: var(--content-w); margin: 0 auto; padding: 1.2rem var(--gap) 2rem; }
.intro { font-size: 1.12rem; color: var(--text-light); font-style: italic; }
.muted { color: var(--text-light); }

.meta { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; padding: .9rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 1.4rem; }
.meta-item { display: flex; flex-direction: column; }
.meta-val { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--brown); }
.meta-key { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }

.map { height: 360px; border-radius: 12px; overflow: hidden; margin: .4rem 0 .6rem; border: 1px solid var(--border); }
.map-hike { height: 440px; }
.profile { position: relative; margin: 0 0 1.4rem; }
.profile-svg { width: 100%; height: auto; display: block; }
.profile-area { fill: rgba(122,155,118,.45); stroke: var(--sage); stroke-width: 1.5; }
.profile-label { font-size: 11px; fill: var(--text-light); font-family: var(--font-body); }
.profile-cursor { stroke: var(--terra); stroke-width: 1.5; }
.profile-readout { position: absolute; top: 4px; right: 8px; font-size: .85rem; color: var(--brown); background: rgba(250,246,239,.85); padding: .1rem .5rem; border-radius: 6px; }

.story p { font-size: 1.12rem; line-height: 1.75; margin-bottom: 1.2rem; }
.story p:first-of-type::first-letter { font-family: var(--font-display); font-size: 3.2rem; float: left; line-height: .9; padding: .25rem .5rem 0 0; color: var(--terra); }
.photo { margin: 1.2rem 0 1.8rem; }
.photo img { width: 100%; border-radius: 12px; }
.photo figcaption { font-size: .9rem; color: var(--text-light); margin-top: .45rem; }
.strip { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .5rem; }
.strip img { height: 120px; width: auto; border-radius: 10px; flex: 0 0 auto; }
.sources { list-style: none; }
.sources li { font-size: .95rem; color: var(--text-light); margin-bottom: .5rem; }
.sources a { color: var(--blue); }
.daynav { display: flex; justify-content: space-between; gap: 1rem; margin: 2.4rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid var(--border); font-weight: 600; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(62,42,26,.12); color: var(--text); }
.card-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-img-empty { background: linear-gradient(135deg, var(--sage), var(--blue)); }
.card-body { padding: .9rem 1rem 1.1rem; }
.card-body h2 { font-size: 1.2rem; }
.card-sub { color: var(--text-light); font-size: .92rem; margin: .3rem 0 0; }

.days { display: flex; flex-direction: column; gap: .7rem; }
.day { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: .6rem .8rem .6rem .6rem; }
a.day:hover { border-color: var(--terra); color: var(--text); }
.day-plan { opacity: .78; }
.day-thumb { width: 84px; height: 64px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.day-thumb-empty { background: var(--border); }
.day-n { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); }
.day-title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--brown); }
.day-sub { font-size: .9rem; color: var(--text-light); }
.plain { text-align: center; padding-top: 4rem; }
.links { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: .6rem; }
.links a { color: var(--blue); font-weight: 600; }
.code { font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3.4rem); font-weight: 700; letter-spacing: .12em; color: var(--brown); margin: .2rem 0 1.4rem; }
.steps { padding-left: 1.4rem; margin-bottom: 1.6rem; }
.steps li { margin-bottom: .4rem; }
.btn { display: inline-block; background: var(--terra); color: #fff; padding: .7rem 1.4rem; border-radius: 10px; font-weight: 600; }
.btn:hover { background: #b06a4d; color: #fff; }

@media (max-width: 600px) {
  .hero-img { min-height: 48vh; }
  .map { height: 280px; }
  .map-hike { height: 320px; }
  .meta { gap: .4rem 1.1rem; }
  .meta-val { font-size: 1.1rem; }
}
