/* ===== Design tokens ===== */
:root {
  --navy: oklch(24% 0.045 255);
  --navy-dark: oklch(20% 0.04 255);
  --navy-darker: oklch(18% 0.035 255 / 0.98);
  --teal: oklch(72% 0.1 195);
  --cream: oklch(96% 0.014 85);
  --cream-text: oklch(97% 0.015 85);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  font-family: 'Work Sans', sans-serif;
}

/* No global anchor color reset: every link in this site sets its own
   color explicitly, except Podcasting's "Open Book NYC" body link, which
   the original source left unstyled to keep the default link blue. */

@keyframes tileFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

/* ===== Nav bar ===== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 4vw, 28px) clamp(20px, 5vw, 56px);
  background: var(--navy);
}
/* Home: nav floats over the hero photo but keeps its solid navy bar. */
.site-nav.site-nav--overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
}
/* Podcasting: nav floats fully transparent over the hero photo. */
.site-nav.site-nav--overlay-transparent {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: transparent;
}
.site-logo {
  font: 600 clamp(15px, 2.4vw, 17px)/1 'Source Serif 4', serif;
  color: var(--cream-text);
  letter-spacing: .05em;
  text-decoration: none;
}
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.hamburger-btn span {
  width: 26px;
  height: 2px;
  background: var(--cream-text);
  display: block;
}

/* ===== Fullscreen menu ===== */
.fullscreen-menu {
  position: fixed;
  inset: 0;
  background: var(--navy-darker);
  z-index: 100;
  display: none;
  flex-direction: column;
  padding: clamp(20px, 5vw, 56px);
}
.fullscreen-menu.is-open { display: flex; }
.fullscreen-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fullscreen-menu__top span {
  font: 600 16px/1 'Source Serif 4', serif;
  color: var(--cream-text);
  letter-spacing: .05em;
}
.fullscreen-menu__close {
  background: none;
  border: none;
  cursor: pointer;
  font: 300 32px/1 'Work Sans', sans-serif;
  color: var(--cream-text);
  padding: 6px 10px;
}
.fullscreen-menu__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 4vh, 28px);
}
.fullscreen-menu__links a {
  font: 500 clamp(30px, 7vw, 52px)/1 'Source Serif 4', serif;
  color: var(--cream-text);
  text-decoration: none;
}
.fullscreen-menu__links a.is-active { color: var(--teal); }
.fullscreen-menu__bottom {
  display: flex;
  align-items: center;
  gap: 20px;
}
.linkedin-badge {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: #0A66C2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-dark);
  padding: clamp(28px, 5vw, 44px) clamp(20px, 5vw, 56px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.site-footer__links a {
  font: 400 13px/1 'Work Sans', sans-serif;
  color: oklch(85% 0.015 85 / 0.7);
  text-decoration: none;
}
.site-footer__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.site-footer__right .linkedin-badge {
  width: 34px;
  height: 34px;
}
.footer-cta {
  font: 500 13px/1 'Work Sans', sans-serif;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid oklch(72% 0.1 195 / 0.5);
  padding: 12px 22px;
  border-radius: 2px;
}

/* ===== Watermark caption ===== */
.photo-credit {
  position: absolute;
  font: italic 400 11px/1 'Source Serif 4', serif;
  color: oklch(97% 0.015 85 / 0.55);
  text-shadow: 0 1px 3px oklch(0% 0 0 / 0.7);
  pointer-events: none;
}

/* ===== PDF grid / lightbox shared bits ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: oklch(10% 0.02 255 / 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}
.lightbox.is-open { display: flex; }
.lightbox__frame {
  position: relative;
  display: inline-flex;
  max-width: min(92vw, 1400px);
  max-height: 88vh;
}
.lightbox__frame img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px oklch(0% 0 0 / 0.5);
  display: block;
}
.lightbox__credit {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font: italic 400 13px/1 'Source Serif 4', serif;
  color: oklch(97% 0.015 85 / 0.7);
  text-shadow: 0 1px 3px oklch(0% 0 0 / 0.7);
  pointer-events: none;
}
.lightbox__close {
  position: absolute;
  top: clamp(14px, 3vw, 28px);
  right: clamp(14px, 3vw, 28px);
  background: oklch(15% 0.03 255 / 0.6);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font: 300 26px/1 'Work Sans', sans-serif;
  color: var(--cream-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-modal {
  position: fixed;
  inset: 0;
  background: oklch(10% 0.02 255 / 0.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}
.pdf-modal.is-open { display: flex; }
.pdf-modal__card {
  width: 100%;
  max-width: 840px;
  height: 90vh;
  background: oklch(97% 0.015 85);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.pdf-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--navy);
}
.pdf-modal__header span {
  font: 600 15px/1.2 'Source Serif 4', serif;
  color: var(--cream-text);
}
.pdf-modal__close {
  background: none;
  border: none;
  cursor: pointer;
  font: 300 28px/1 'Work Sans', sans-serif;
  color: var(--cream-text);
  padding: 2px 8px;
}
.pdf-modal__body {
  flex: 1;
  overflow: auto;
  background: oklch(30% 0.02 255 / 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.pdf-modal__status {
  display: none;
  text-align: center;
  padding: 40px;
  font: 400 14px/1.5 'Work Sans', sans-serif;
}
.pdf-modal__status.is-visible { display: block; }
.pdf-modal__status--placeholder { color: oklch(24% 0.045 255 / 0.4); }
.pdf-modal__status--loading { color: oklch(24% 0.045 255 / 0.55); }
.pdf-modal__status--error { color: oklch(45% 0.15 25 / 0.75); }
.pdf-modal__body canvas,
.pdf-modal__body .pdf-chunk-wrap {
  max-width: 100%;
  box-shadow: 0 4px 18px oklch(0% 0 0 / 0.18);
  border-radius: 2px;
}

/* Article/gear grid tile chrome shared by Automotive & Outdoors */
.grid-tile {
  position: relative;
  background: oklch(90% 0.015 85);
  border-radius: 4px;
  overflow: hidden;
}
.grid-tile img.tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  animation: tileFadeIn 0.7s ease-out backwards;
}
.grid-tile__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 600 12px/1 'Work Sans', sans-serif;
  color: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.grid-tile__open {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 5;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: oklch(15% 0.03 255 / 0.55);
  color: var(--cream-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 400 13px/1 'Work Sans', sans-serif;
}
.grid-tile__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px;
  font: 400 11px/1.4 'Work Sans', sans-serif;
  color: oklch(45% 0.03 255 / 0.5);
  background: oklch(98% 0.005 85);
}
