/* TrailChick static site stylesheet
   Design tokens extracted from the live Zeen theme + Customizer CSS. */

:root {
  --bg: #ffffff;
  --heading: #111111;
  --body: #444444;
  --muted: #8e8e8e;
  --accent: #cc6404;
  --accent-2: #f8d92f;
  --line: #ececec;
  --card-bg: #fafafa;
  --btn-bg: #111111;
  --btn-text: #ffffff;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--body);
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.66;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--heading);
  line-height: 1.25;
  margin: 1.6em 0 0.5em;
}
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }
a { color: var(--body); }
.entry-content a, .site-footer a { text-decoration: underline; color: var(--body); }
.entry-content a:hover { color: var(--heading); }

blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--heading);
  border-left: 3px solid var(--accent);
  padding: 0.2em 0 0.2em 1.2em;
  margin: 1.8em 0;
}

em { color: var(--muted); }

hr { border: none; border-top: 1px solid var(--line); margin: 2.5em 0; }

.eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- site chrome ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.site-header .logo {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--heading);
  text-decoration: none;
}
.site-logo-img {
  height: 64px;
  width: auto;
  display: block;
}
.site-header nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-header nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--body);
  text-decoration: none;
}
.site-header nav a:hover { color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.site-footer nav { display: flex; gap: 1.2rem; justify-content: center; margin-bottom: 0.8rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--accent); }

/* ---- article layout ---- */
main.content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.hero-band {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
main.content-wrap.has-sidebar { max-width: 1160px; padding-top: 2.2rem; }
main.content-wrap.has-sidebar .content-columns {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 3rem;
  align-items: start;
}
main.content-wrap.has-sidebar .content-columns > article { min-width: 0; }
.article-hero {
  aspect-ratio: 2.5 / 1;
  background: #eee center/cover no-repeat;
  margin: 0 0 2rem;
}
.article-byline {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.article-byline a { color: var(--accent); text-decoration: none; }
article h1.article-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 1rem;
}
.article-tags { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.article-tags a {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 0.3rem 0.65rem;
  margin: 0 0.4rem 0.4rem 0;
  text-decoration: none;
}
.article-tags a:hover { border-color: var(--accent); color: var(--accent); }

/* ---- lookout meta badges ---- */
.lookout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
}
.lookout-meta .badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  background: var(--card-bg);
  color: var(--body);
  border: 1px solid var(--line);
}
.lookout-meta .badge.driveable { background: var(--btn-bg); color: var(--btn-text); border-color: var(--btn-bg); }
.lookout-meta .badge.hike-in { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---- reusable post card grid (archive pages, listings) ---- */
.archive-masthead { padding: 3.5rem 1.5rem 2.25rem; text-align: center; border-bottom: 1px solid var(--line); }
.archive-masthead h1 { margin: 0 0 0.6rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.archive-masthead p { font-family: 'Lato', sans-serif; font-size: 1.02rem; max-width: 620px; margin: 0 auto; color: var(--body); line-height: 1.6; }
.archive-masthead .count {
  margin-top: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 1.6rem;
  padding: 2.2rem 1.5rem 4.5rem;
  max-width: 1300px;
  margin: 0 auto;
}
.post-card { text-decoration: none; color: inherit; display: block; }
.post-card .thumb {
  aspect-ratio: 3 / 2;
  background: #eee center/cover no-repeat;
  margin-bottom: 0.8rem;
}
.post-card .post-cat {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}
.post-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  margin: 0 0 0.3rem;
  color: var(--heading);
}
.post-card:hover h3 { color: var(--accent); }
.post-card .post-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---- WordPress Gutenberg block layout support ---- */
.wp-block-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 1.6em 0;
}
.wp-block-column { flex: 1 1 260px; min-width: 0; }
.wp-block-column p:last-child { margin-bottom: 0; }

.tiled-gallery__gallery, .tiled-gallery__row { display: flex; flex-wrap: wrap; gap: 4px; }
.tiled-gallery__col { display: flex; flex-direction: column; gap: 4px; flex: 1 1 0; min-width: 0; }
.tiled-gallery__col img { width: 100%; height: 100%; object-fit: cover; }
.wp-block-jetpack-tiled-gallery { margin: 1.8em 0; }

.wp-block-separator {
  border: none;
  border-top: 1px solid var(--line);
  margin: 2.5em 0;
}
.wp-block-heading { margin-top: 1.8em; }

/* ---- native WordPress gallery blocks rendered as a real grid ---- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.1rem;
  margin: 1.8em 0;
}
.image-grid .grid-item {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.image-grid .grid-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.image-grid .grid-item figcaption {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .image-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}
/* an image grid nested inside a half-width column has much less room --
   allow smaller items so it still shows a real grid instead of collapsing
   to a single stacked column */
.wp-block-column .image-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

/* ---- mega-menu dropdown navigation ---- */
.site-header { position: relative; z-index: 20; }
.site-header nav.main-nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.nav-item { position: relative; }
.nav-item > a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  padding: 0.4rem 0;
  display: inline-block;
}
.nav-item > a:hover { color: var(--accent); }

.dropdown-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #18181a;
  color: #eee;
  min-width: 260px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}
.nav-item.open > .dropdown-panel { display: block; }

/* simple link-list style dropdown (Fire Lookout Guide, Staffing Goat Peak) */
.dropdown-panel.simple-list { padding: 0.5rem 0; }
.dropdown-panel.simple-list a {
  display: block;
  padding: 0.85rem 1.4rem;
  color: #eee;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
.dropdown-panel.simple-list a:last-child { border-bottom: none; }
.dropdown-panel.simple-list a:hover { color: var(--accent-2); background: rgba(255,255,255,0.03); }

/* mega panel: sidebar of categories + latest-posts preview grid (Fire Lookout Journal, Blog) */
.dropdown-panel.mega {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  padding: 2.5rem 3rem;
}
.nav-item.open > .dropdown-panel.mega { display: flex; }
.mega-inner { display: flex; gap: 3rem; max-width: 1300px; margin: 0 auto; width: 100%; }
.mega-sidebar { flex: 0 0 260px; }
.mega-sidebar a {
  display: block;
  color: #eee;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 0;
}
.mega-sidebar a:hover { color: var(--accent-2); }
.mega-main { flex: 1; min-width: 0; }
.mega-main h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #fff;
  margin: 0 0 0.5rem;
}
.mega-main .mega-desc {
  font-family: 'Lato', sans-serif;
  color: #b8b8b8;
  font-size: 0.95rem;
  max-width: 640px;
  margin: 0 0 1.8rem;
  line-height: 1.6;
}
.mega-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.mega-posts a { text-decoration: none; color: inherit; }
.mega-posts .thumb {
  aspect-ratio: 3 / 2;
  background: #333 center/cover no-repeat;
  margin-bottom: 0.7rem;
}
.mega-posts .post-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #fff;
  line-height: 1.35;
}
.mega-posts a:hover .post-title { color: var(--accent-2); }

@media (max-width: 900px) {
  .dropdown-panel.mega { position: absolute; top: 100%; padding: 1.5rem; }
  .mega-inner { flex-direction: column; gap: 1.5rem; }
  .mega-posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mega-posts { grid-template-columns: 1fr; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14120f;
    --heading: #f2ede2;
    --body: #cbc4b3;
    --muted: #948b76;
    --line: #2a2721;
    --card-bg: #1c1a16;
    --btn-bg: #f2ede2;
    --btn-text: #14120f;
  }
}
:root[data-theme="dark"] {
  --bg: #14120f;
  --heading: #f2ede2;
  --body: #cbc4b3;
  --muted: #948b76;
  --line: #2a2721;
  --card-bg: #1c1a16;
  --btn-bg: #f2ede2;
  --btn-text: #14120f;
}

/* ---- sidebar widgets ---- */
.sidebar { display: flex; flex-direction: column; gap: 2.4rem; }
.sidebar-widget h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heading);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}
.sidebar-widget .bio-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  max-width: 160px;
  margin: 0 auto 1rem;
}
.sidebar-widget p { font-size: 0.88rem; line-height: 1.6; color: var(--body); text-align: center; margin: 0; }

.social-links { display: flex; gap: 0.8rem; justify-content: center; }
.social-links a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
}
.social-links a:hover { color: var(--accent); border-color: var(--accent); }

.sidebar-widget .promo-img { width: 100%; display: block; }
.sidebar-widget .promo-caption {
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}
.sidebar-widget .promo-caption a { color: var(--muted); text-decoration: underline; }

.sidebar-posts { display: flex; flex-direction: column; gap: 1rem; }
.sidebar-post { display: flex; gap: 0.8rem; text-decoration: none; align-items: center; }
.sidebar-post .sp-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  background: #eee center/cover no-repeat;
}
.sidebar-post .sp-cat {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.sidebar-post .sp-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  line-height: 1.3;
  color: var(--heading);
}
.sidebar-post:hover .sp-title { color: var(--accent); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-cloud a {
  font-size: 0.72rem;
  color: var(--body);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
}
.tag-cloud a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  main.content-wrap.has-sidebar .content-columns {
    grid-template-columns: 1fr;
  }
  main.content-wrap.has-sidebar { max-width: 720px; }
  .hero-band { max-width: 720px; }
}

/* ---- homepage ---- */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 41%;
  background: #111;
  min-height: 420px;
}
.home-hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2.5rem;
  gap: 1.2rem;
}
.home-hero-text h2 {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: #fff;
  margin: 0;
}
.home-hero-text p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}
.home-hero-btn {
  display: inline-block;
  background: #fff;
  color: #111;
  font-family: 'Lato', sans-serif;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 0.7rem 1.6rem;
}
.home-hero-btn:hover { background: var(--accent); color: #fff; }
.home-hero-image { background: #333 center/cover no-repeat; }

@media (max-width: 700px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-image { min-height: 260px; }
}

main.content-wrap.home-wrap { max-width: 1160px; padding-top: 2.5rem; }

.cta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 3rem;
}
.cta-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 19em;
  background: #444 center/cover no-repeat;
  text-decoration: none;
  overflow: hidden;
}
.cta-overlay { position: absolute; inset: 0; opacity: 0.5; }
.cta-label {
  position: relative;
  z-index: 1;
  background: #000;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 1.15rem;
  line-height: 1.25;
  text-align: center;
  padding: 0.7rem 1.3rem;
}
.cta-tile:hover .cta-label { background: var(--accent); }

@media (max-width: 700px) {
  .cta-grid { grid-template-columns: 1fr; }
}

.home-section { margin-bottom: 3rem; }
.home-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}
.home-section-rule { border: none; border-top: 1px solid var(--line); margin: 0 0 1.6rem; }
.post-grid.home-grid { padding: 0; max-width: none; }
.post-card .ph-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin: 0 0 0.3rem; }
.post-card .ph-title a { color: var(--heading); text-decoration: none; }
.post-card:hover .ph-title a { color: var(--accent); }
.post-card .post-excerpt { font-size: 0.85rem; color: var(--body); line-height: 1.6; margin: 0.4rem 0; }
.post-card .read-more {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.post-card .read-more:hover { color: var(--heading); }

/* ---- mobile hamburger menu ---- */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--heading);
}

@media (max-width: 900px) {
  .site-header nav.main-nav { display: none; }
  .hamburger-btn { display: flex; }
}

.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #18181a;
  overflow-y: auto;
  padding: 1.5rem;
  padding-top: calc(1.5rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
.mobile-nav-overlay.open { display: block; }
body.mobile-nav-locked { overflow: hidden; }

.mobile-nav-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.3rem;
  margin-bottom: 1rem;
}

.mobile-nav-list { display: flex; flex-direction: column; }
.mobile-nav-item {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav-item > a {
  display: block;
  padding: 1.1rem 0.2rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
}
.mobile-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-nav-row > a { flex: 1; }
.mobile-chevron {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-chevron::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.mobile-nav-item.expanded .mobile-chevron::before {
  transform: translate(-50%, -35%) rotate(-135deg);
}
.mobile-subpanel {
  display: none;
  flex-direction: column;
  padding-bottom: 0.8rem;
}
.mobile-nav-item.expanded .mobile-subpanel { display: flex; }
.mobile-subpanel a {
  padding: 0.7rem 0.2rem 0.7rem 1rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cfcfcf;
  text-decoration: none;
}
.mobile-subpanel a:hover { color: var(--accent-2); }

/* ---- 404 page ---- */
.not-found-wrap {
  max-width: 720px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.not-found-inner { text-align: center; }
.not-found-inner .eyebrow {
  display: block;
  font-size: 5rem;
  letter-spacing: 0;
  color: var(--line);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.not-found-inner h1 { margin: 0 0 0.8rem; }
.not-found-inner p {
  font-family: 'Lato', sans-serif;
  color: var(--body);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 1.2rem;
}
.not-found-inner p.not-found-lede {
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 2rem;
}
.not-found-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.not-found-btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--line);
  color: var(--body);
}
.not-found-btn:hover { border-color: var(--accent); color: var(--accent); }
.not-found-btn.primary { background: #111; color: #fff; border-color: #111; }
.not-found-btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
