/* ============================================================
   My Buzz About — main stylesheet
   ============================================================ */

/* Self-hosted fonts (latin subset only, matching the site's actual
   content) — see /fonts. Marcellus only ships one weight (400); the
   wide 100 900 range on it tells the browser that one file covers every
   weight requested against it, so it never falls back to synthesizing
   a fake bold/medium instead of just rendering the real glyphs. */
@font-face {
  font-family: 'Marcellus';
  src: url('../fonts/marcellus-400.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../fonts/poppins-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink:        #2b2b28;
  --ink-soft:   #5c5a54;
  --paper:      #F7F7F7;
  --paper-dim:  #F7F7F7;
  --line:       #EEEEEE;
  --trail-blue: #2d6a86;
  --trail-blue-dark: #1f4d63;
  --clay:       #c9713f;
  --forest:     #3f6b4a;
  --btn-bg:     #355c7d;
  --btn-hover:  #444444;

  --font-display: 'Marcellus', Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius: 3px;
  --gap: 1.75rem;
  --max-width: 1310px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper-dim);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--trail-blue); text-decoration: none; }
a:hover { color: var(--trail-blue-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 34px;
  width: auto;
  display: block;
}
.logo:hover { text-decoration: none; }

.site-nav {
  display: flex;
  gap: 1.6rem;
}

.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--trail-blue);
  border-bottom-color: var(--trail-blue);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 0 7px;
  background: var(--ink);
}

/* ---------------- Hero banners ---------------- */
.hero {
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-big { height: min(78vh, 680px); }
.hero-page { height: 220px; }

/* Rotating hero slideshow — stacked, absolutely-positioned slides that
   crossfade via the .active class (toggled by js/main.js). */
.hero-slideshow { overflow: hidden; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
}
.hero-big .hero-overlay {
  justify-content: flex-end;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 65%);
}

.hero-overlay h1 {
  color: #fff;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.35rem;
}

.hero-subtitle {
  margin: 0;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ---------------- Page layout ---------------- */
.page-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.page-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 2rem;
}

.layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--gap);
  align-items: start;
}

.layout--single { grid-template-columns: 1fr 380px; }

/* ---------------- Section labels (dotted box) ---------------- */
.section-label {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 0.55rem 1rem;
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: #fff;
}

/* ---------------- Post grid / cards ---------------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.5rem;
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.pagination-arrow,
.pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pagination-arrow:hover,
.pagination-num:hover {
  background: var(--paper);
  border-color: var(--trail-blue);
}

.pagination-arrow.disabled {
  color: var(--ink-soft);
  opacity: 0.45;
  pointer-events: none;
}

.pagination-num.current {
  background: var(--trail-blue);
  border-color: var(--trail-blue);
  color: #fff;
  font-weight: 600;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-ellipsis {
  color: var(--ink-soft);
  padding: 0 0.15rem;
}

@media (max-width: 480px) {
  .pagination-arrow { font-size: 0.8rem; padding: 0 0.5rem; }
}

.post-card-thumb { aspect-ratio: 4 / 3; overflow: hidden; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card-thumb:hover img { transform: scale(1.04); }

.post-card-body { padding: 1.1rem 1.2rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.post-card-body h2 { font-size: 1.5rem; margin: 0 0 0.15rem; line-height: 1.3; }
.post-card-body h2 a { color: var(--ink); }
.post-card-body h2 a:hover { color: var(--trail-blue); text-decoration: none; }

.post-date {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.post-card-body p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin: 0.6rem 0 1rem;
  flex: 1;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  align-self: flex-start;
  background: var(--btn-bg);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
}
.btn:hover { background: var(--btn-hover); color: #fff; text-decoration: none; }

/* ---------------- Sidebar widgets ---------------- */
.sidebar { display: flex; flex-direction: column; gap: 1.75rem; }

.widget {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem 1.4rem;
}

.widget-title {
  font-size: 1.02rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.8rem;
  margin: -0.2rem 0 1rem;
  background: var(--paper);
}

.widget p { margin: 0 0 0.6rem; font-size: 0.92rem; color: var(--ink-soft); }
.widget p:last-child { margin-bottom: 0; }
.widget a { word-break: break-word; }

.post-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.post-list li { display: flex; gap: 0.75rem; align-items: flex-start; }
.post-list-thumb { flex: 0 0 84px; width: 84px; height: 84px; border-radius: var(--radius); overflow: hidden; }
.post-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-list-title { display: block; font-size: 0.9rem; line-height: 1.3; color: var(--ink); }
.post-list-title:hover { color: var(--trail-blue); }
.post-list-date { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.03em; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.gallery-thumb { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-thumb:hover img { transform: scale(1.08); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: baseline; }
.tag { color: var(--trail-blue); }
.tag:hover { color: var(--trail-blue-dark); }
.tag-w1 { font-size: 0.78rem; }
.tag-w2 { font-size: 0.88rem; }
.tag-w3 { font-size: 1rem; }
.tag-w4 { font-size: 1.15rem; }
.tag-w5 { font-size: 1.35rem; font-weight: 600; }

.share-links { display: flex; gap: 0.6rem; }
.share-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  border: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
/* Each network's own official brand color. */
.share-btn--facebook  { background: #0866FF; }
.share-btn--x         { background: #000000; }
.share-btn--linkedin  { background: #0A66C2; }
.share-btn--pinterest { background: #BD081C; }
.share-btn:hover { filter: brightness(0.88); color: #fff; text-decoration: none; }

/* ---------------- Single post ---------------- */
.post-body img { border-radius: var(--radius); margin: 0 0 1.5rem; }
.post-embed { margin: 0 0 1.5rem; border-radius: var(--radius); overflow: hidden; }
.post-embed iframe { display: block; width: 100%; max-width: 100%; border: 0; }
.post-body p { margin: 0 0 1.3rem; font-size: 1rem; }
.post-body h2 { margin: 2rem 0 0.9rem; font-size: 1.5rem; }
.post-body h2:first-child { margin-top: 0; }
.post-body h2 a { color: inherit; }
.post-body h3 { margin: 1.5rem 0 0.7rem; font-size: 1.1rem; }
.post-body h3 a { color: inherit; }
.post-meta { color: var(--ink-soft); font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 1.2rem; }

.post-comment-cta {
  font-size: 0.95rem;
  letter-spacing: normal;
  text-transform: none;
}

.post-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.post-nav-link {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius);
  color: inherit;
}
.post-nav-link:hover { text-decoration: none; }
.post-nav-link:hover .post-nav-label,
.post-nav-link:hover .post-nav-title { color: var(--trail-blue-dark); }
.post-nav-next { text-align: right; align-items: flex-end; }
.post-nav-empty { flex: 1 1 0; }
.post-nav-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--trail-blue);
  font-weight: 600;
}
.post-nav-title {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink);
}

.post-comments {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.post-comments h2 { margin-top: 0; }
.comment { margin-bottom: 1.1rem; }
.comment-body { margin: 0 0 0.7rem; font-size: 0.98rem; line-height: 1.5; }
.comment-body strong { color: var(--ink); }
.comment-reply {
  margin: 0.7rem 0 0.4rem 1.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--line);
}
.comment-reply .comment-body { margin-bottom: 0; }

/* ---------------- About page ---------------- */
/* About page bio — a large centered heading, a centered italic quote,
   then two blocks with a photo floated left (or right) and the text
   wrapping around it, WordPress-style. Each .about-bio-block clears its
   own floated image via the ::after rule below, so the next block always
   starts fresh. No sidebar on this page, so the whole thing is capped to
   a readable width and centered in the full page-wrap. */
.about-bio {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-bio h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  line-height: 1.2;
  text-align: center;
  margin: 0 0 2rem;
}

.about-quote {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 2.25rem;
  line-height: 1.5;
}

.about-bio-block { margin-bottom: 0.5rem; }
.about-bio-block::after { content: ""; display: table; clear: both; }
.about-bio-block p { margin: 0 0 1.3rem; font-size: 1rem; }
.about-bio-block h3 { margin: 1.75rem 0 0.75rem; font-size: 1.5rem; }
.about-bio-block h3:first-child { margin-top: 0; }

.about-float-left,
.about-float-right {
  width: 400px;
  max-width: 46%;
  border-radius: var(--radius);
}
.about-float-left { float: left; margin: 0 1.5rem 1rem 0; }
.about-float-right { float: right; margin: 0 0 1rem 1.5rem; }

/* ---------------- Sitemap ---------------- */
/* Three explicit columns (Hiking / Travel / everything else) rather than
   letting the grid auto-place a flat list of sections — each
   .sitemap-column stacks its own section(s) vertically. */
.sitemap-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.sitemap-column { display: flex; flex-direction: column; gap: 2rem; }
.sitemap-columns h2 { margin: 0 0 0.75rem; font-size: 1.7rem; }
.sitemap-columns ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.sitemap-columns li a { font-size: 0.93rem; }

/* ---------------- 404 page ---------------- */
.error-404 {
  max-width: 620px;
  margin: 0 auto 3rem;
  text-align: center;
}
.error-404 h1 {
  font-size: clamp(6rem, 20vw, 11rem);
  line-height: 1;
  margin: 0;
  color: var(--clay);
}
.error-404 h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 1.5rem 0 2rem;
}
.error-404 img {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 2rem;
  border-radius: var(--radius);
}
.error-404 h3 { margin: 0 0 0.75rem; font-size: 1.3rem; }
.error-404 p { margin: 0 0 1rem; }
.error-404 .links {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.error-404 .links a { color: var(--trail-blue); font-weight: 500; }
.error-404 .links a:hover { color: var(--trail-blue-dark); }
.error-404 .links .sep { color: var(--ink-soft); opacity: 0.4; }

/* ---------------- Ted band ---------------- */
.ted-band {
  background: linear-gradient(rgba(20,15,10,0.6), rgba(20,15,10,0.75)), var(--ink);
  color: #f3ede2;
}
.ted-band-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
}
.ted-band h2 { color: #fff; font-size: 1.7rem; margin: 0 0 0.9rem; }
.ted-band p { margin: 0 0 0.8rem; color: #e7ded0; }
.ted-band a { color: #f2c9a8; }
.ted-band-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.ted-band-photos img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; }

/* ---------------- Footer ---------------- */
.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: #14100c;
}
.site-footer p { margin: 0; color: #c9c2b3; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .layout, .layout--single { grid-template-columns: 1fr; }
  .about-float-left, .about-float-right {
    float: none;
    width: 100%;
    max-width: 400px;
    margin: 0 auto 1.25rem;
  }
  .ted-band-inner { grid-template-columns: 1fr; }
  .ted-band-photos { max-width: 420px; }
}

@media (max-width: 700px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav.open { max-height: 400px; }
  .site-nav a { padding: 0.85rem 1.5rem; border-bottom: 1px solid var(--paper-dim); }
  .site-nav a.active { border-left: 3px solid var(--trail-blue); border-bottom-color: var(--paper-dim); }
  .nav-toggle { display: flex; }

  .post-grid { grid-template-columns: 1fr; }
  .sitemap-columns { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .sitemap-columns { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .page-wrap { padding: 1.75rem 1rem 2.5rem; }
}
