/* ============================================================
   JAMES COOK — JOURNALIST
   Bold typographic minimalism. Black, white, one red accent.
   Fonts: Bebas Neue (display) + Inter Tight (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter+Tight:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Inter:wght@400;500;600&display=swap');

:root {
  --black:   #0a0a0a;
  --white:   #ffffff;
  --off:     #f5f5f5;
  --mid:     #888888;
  --border:  #dedede;
  --accent:     #4a7fa5;

  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body:    'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-ui:      'Inter', system-ui, sans-serif;

  --max-w: 1060px;
  --pad: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--black);
  display: flex;
  align-items: stretch;
  height: 52px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--black);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  border-right: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  margin-left: auto;
}

.nav-links li { border-left: 1px solid var(--border); }

.nav-links a {
  display: flex;
  align-items: center;
  padding: 0 1.4rem;
  height: 52px;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.12s, background 0.12s;
}

.nav-links a:hover { color: var(--black); background: var(--off); }
.nav-links a.active { color: var(--black); font-weight: 600; border-left: 3px solid var(--accent); padding-left: calc(1.4rem - 3px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  border-left: 1px solid var(--border);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--black);
  padding: 0 1rem;
  margin-left: auto;
}

/* ============================================================
   HOMEPAGE — PURE MINIMAL
   ============================================================ */

.home-wrap {
  min-height: calc(100vh - 52px);
  display: flex;
  flex-direction: column;
}

.home-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--pad);
  padding-bottom: 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.home-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--black);
}



.home-nav-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--black);
  margin-top: auto;
}

.home-nav-item {
  display: block;
  padding: 1.6rem var(--pad);
  border-right: 1px solid var(--border);
  transition: background 0.12s;
  position: relative;
  overflow: hidden;
}

.home-nav-item:last-child { border-right: none; }

.home-nav-item:hover { background: var(--black); }

.hn-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.3rem;
  transition: color 0.12s;
}

.hn-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--black);
  transition: color 0.12s;
}

.hn-arrow {
  position: absolute;
  right: var(--pad);
  bottom: 1.6rem;
  font-size: 0.85rem;
  color: var(--mid);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.12s, transform 0.12s, color 0.12s;
}

.home-nav-item:hover .hn-label { color: rgba(255,255,255,0.45); }
.home-nav-item:hover .hn-name { color: var(--white); }
.home-nav-item:hover .hn-arrow { opacity: 1; transform: translateX(0); color: var(--white); }

/* ============================================================
   PAGE SHELL
   ============================================================ */

.page-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad) 5rem;
}

.page-header {
  padding: 3rem 0 1.75rem;
  border-bottom: 2px solid var(--black);
  margin-bottom: 3rem;
}

.page-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.5rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 0.88;
  letter-spacing: 0.03em;
  color: var(--black);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

.about-sidebar {}


.about-photo-img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  object-fit: cover;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--off);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1.5rem;
}

.sidebar-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.contact-links { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 2rem; }
.contact-links a {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
}
.contact-links a:hover { color: var(--black); }

.about-main {}

.bio-placeholder {
  border: 1px dashed var(--border);
  padding: 2rem;
  background: var(--off);
  margin-bottom: 2.5rem;
}

.bio-placeholder-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.75rem;
}

.bio-placeholder p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--mid);
}


.bio-text p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--black);
  margin-bottom: 1.1rem;
}
.bio-text p:last-child { margin-bottom: 0; }

.beats-head {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.beats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.beat-tag {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1.5px solid var(--black);
  padding: 0.28rem 0.65rem;
}

/* ============================================================
   WORK PAGE — SINGLE UNIFIED LIST
   ============================================================ */

.clips-list { display: flex; flex-direction: column; }

.clip-row {
  display: grid;
  grid-template-columns: 110px 1fr 72px;
  gap: 1.5rem;
  align-items: start;
  padding: 1.4rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  text-decoration: none;
}

.clip-row:first-child { border-top: 1px solid var(--border); }

.clip-row:hover {
  background: var(--off);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.clip-pub {
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.clip-pub svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.pub-logo-img {
  display: block;
  height: 13px;
  width: auto;
  max-width: 120px;
  filter: grayscale(100%) brightness(0);
  object-fit: contain;
}

/* Logo colours via currentColor */
.pub-telegraph { color: #0a0a0a; }
.pub-bi        { color: #005eb8; }
.pub-lzn       { color: #2a6b2a; }

.clip-title {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--black);
}


.clip-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.5;
}

.clip-date {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--mid);
  text-align: right;
  white-space: nowrap;
}

/* ============================================================
   LEDZEPNEWS PAGE
   ============================================================ */

.lzn-intro {
  border-left: 3px solid var(--accent);
  padding-left: 1.75rem;
  margin-bottom: 3rem;
}

.lzn-intro p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--black);
  margin-bottom: 0.75rem;
}
.lzn-intro p:last-child { margin-bottom: 0; }

.lzn-intro a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.lzn-intro a:hover { color: var(--black); }


.lzn-stats--two {
  grid-template-columns: repeat(2, 1fr);
}
.lzn-stats--two .lzn-stat { border-right: 1px solid var(--border); }
.lzn-stats--two .lzn-stat:last-child { border-right: none; }

.lzn-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 2px solid var(--black);
  margin-bottom: 3.5rem;
}

.lzn-stat {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--border);
}
.lzn-stat:last-child { border-right: none; }

.lzn-stat-num {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.lzn-stat-label {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

.lzn-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--black);
}

.lzn-clips { display: flex; flex-direction: column; }

.lzn-clip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  text-decoration: none;
}

.lzn-clip:first-child { border-top: 1px solid var(--border); }

.lzn-clip:hover {
  background: var(--off);
  padding-left: 1rem;
  padding-right: 1rem;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.lzn-clip-title {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--black);
}

.lzn-clip-arrow {
  font-size: 0.85rem;
  color: var(--mid);
  padding-top: 3px;
  transition: color 0.12s, transform 0.12s;
  flex-shrink: 0;
}

.lzn-clip:hover .lzn-clip-arrow { color: var(--accent); transform: translateX(3px); }

.lzn-cta {
  margin-top: 2.5rem;
  display: inline-block;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2rem;
  transition: background 0.15s;
}

.lzn-cta:hover { background: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  border-top: 2px solid var(--black);
  padding: 1.25rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
}

.footer-links a:hover { color: var(--black); }



/* ============================================================
   ARTICLE CARD GRID
   Activated after fetch_images.py runs — replaces the list
   ============================================================ */

/* When images are present, switch the list container to a grid */
.clips-list--visual {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--black);
  margin-bottom: 0;
}

/* Each card */
.clip-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  text-decoration: none;
  overflow: hidden;
  transition: background 0.15s;
  position: relative;
}

.clip-card:hover { background: var(--off); }

/* Full-bleed image, 16:9 */
.clip-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-bottom: 1.5px solid var(--border);
  transition: opacity 0.2s;
}

.clip-card:hover .clip-thumb { opacity: 0.9; }

/* Fallback placeholder when no image */
.clip-thumb-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--off);
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
}

/* Card body */
.clip-card-body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

/* Top meta row: pub logo + date */
.clip-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.clip-card-meta .clip-pub {
  font-size: 0.6rem;
  padding: 0;
  display: flex;
  align-items: center;
}

.clip-card-meta .clip-pub svg {
  height: 12px;
  width: auto;
}

.clip-card-date {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  color: var(--mid);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Headline */
.clip-card-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--black);
  flex: 1;
}

/* Description */
.clip-card-desc {
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--mid);
}

/* Read link */
.clip-card-read {
  font-family: var(--font-ui);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
  padding-top: 0.5rem;
}

.clip-card:hover .clip-card-read { color: var(--black); }

/* Responsive */
@media (max-width: 900px) {
  .clips-list--visual { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .clips-list--visual { grid-template-columns: 1fr; }
}

/* ============================================================
   SCROLL-IN ANIMATION
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   MOBILE NAV — ACTIVE STATE
   ============================================================ */
/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 52px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--black);
  }
  .nav-links li { border-left: none; border-top: 1px solid var(--border); }
  .nav-links a { padding: 0.9rem var(--pad); height: auto; line-height: 1.5; }
  .nav-links a.active { border-left: 3px solid var(--accent); padding-left: calc(var(--pad) - 3px); }
  .nav-toggle { display: flex; align-items: center; }

  .home-nav-strip { grid-template-columns: 1fr; }
  .home-nav-item { border-right: none; border-top: 1px solid var(--border); }

  .about-grid { grid-template-columns: 1fr; }
  
.about-photo-img {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  margin-bottom: 1.5rem;
  object-fit: cover;
}

.about-photo { max-width: 160px; aspect-ratio: 1/1; }

  .clip-row { grid-template-columns: 80px 1fr; }
  
.clip-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.5;
}

.clip-date { display: none; }

  
.lzn-stats--two {
  grid-template-columns: repeat(2, 1fr);
}
.lzn-stats--two .lzn-stat { border-right: 1px solid var(--border); }
.lzn-stats--two .lzn-stat:last-child { border-right: none; }

.lzn-stats { grid-template-columns: 1fr 1fr; }
  .lzn-stat:nth-child(3) { border-top: 1px solid var(--border); grid-column: 1/-1; border-right: none; }
}
