/* Reading Ulysses — faithful recreation of the Squarespace site */

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/poppins-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/poppins-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/poppins-500.woff2') format('woff2');
}

:root {
  --accent: #eadfd3;          /* beige page background */
  --light-accent: #f1f1ef;    /* near-white section background */
  --white: #ffffff;
  --black: #000000;
  --site-max-width: 1500px;
  --site-gutter: 3vw;
  --body-font-size: 15.66px;
  --body-line-height: 1.87;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--accent);
  color: var(--black);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: var(--body-font-size);
  line-height: var(--body-line-height);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--black); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--black);
  color: var(--white);
  padding: 8px 16px;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  padding: 0;
}
.header-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 48px var(--site-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.header-nav {
  display: flex;
  gap: 28px;
}
.header-nav a {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
}
.header-nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Mobile menu ---------- */
.header-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.header-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  position: relative;
}
.header-burger span::before,
.header-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--black);
}
.header-burger span::before { top: -7px; }
.header-burger span::after { top: 7px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--accent);
  display: none;
  flex-direction: column;
  padding: 100px 5vw 40px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 5vw;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

/* ---------- Sections ---------- */
.page-section {
  position: relative;
  width: 100%;
}
.section-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 46px var(--site-gutter) 85px;
}
.section--beige { background-color: var(--accent); }
.section--light { background-color: var(--light-accent); }
.gallery-section .section-inner {
  max-width: var(--site-max-width);
  padding: 42px var(--site-gutter);
}
.text-section--episode .section-inner { padding-bottom: 46px; }
.image-section--tight .section-inner { padding-top: 93px; padding-bottom: 93px; }

/* ---------- Title / hero ---------- */
.hero {
  padding-top: 177px;
  padding-bottom: 40px;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 7.6vw, 106px);
  line-height: 1.15;
  margin: 0;
  letter-spacing: 0;
  max-width: 12em;
}

/* ---------- Text sections ---------- */
.text-section h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 25.6px;
  letter-spacing: 0.02em;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.text-section p {
  margin: 0 0 16px;
  max-width: 46em;
}
.text-section p:last-child { margin-bottom: 0; }

/* Two-column text layout (About) */
.text-section--split {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.text-section--split h4 { margin-bottom: 0; width: 265px; }
.text-section--split > div:last-child { width: 653px; max-width: 653px; }

/* ---------- Image sections ---------- */
.image-section .section-inner { padding-top: 85px; padding-bottom: 85px; }

/* Illustration 2 — full width, cropped to original aspect */
.img-full {
  width: 100%;
  aspect-ratio: 1.698;
  object-fit: cover;
}

/* Illustration 1 + t_01 + IMG_9682 layout */
.img-triptych {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: start;
}
.img-triptych .img-a { grid-column: 1; grid-row: 1; aspect-ratio: 0.746; object-fit: cover; }
.img-triptych .img-b { grid-column: 2; grid-row: 1 / span 2; aspect-ratio: 0.749; object-fit: cover; }
.img-triptych .img-c { grid-column: 1; grid-row: 2; aspect-ratio: 0.746; object-fit: cover; }

/* Biography portrait + text */
.bio-layout {
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.bio-layout .bio-portrait { width: 100%; aspect-ratio: 0.348; object-fit: cover; }
.bio-layout .bio-text p { margin: 0 0 0.6em; }
.bio-layout .bio-text .bio-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 20px;
  margin-bottom: 0.4em;
}

/* ---------- Gallery (masonry) ---------- */
.gallery {
  position: relative;
}
.gallery-item {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}
.gallery-item img:hover { opacity: 0.92; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 12px;
  line-height: 1;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

/* ---------- Footer ---------- */
.site-footer {
  background-color: var(--accent);
  padding: 40px 0 60px;
}
.footer-inner {
  max-width: var(--site-max-width);
  margin: 0 auto;
  padding: 0 var(--site-gutter);
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
  .text-section--split { grid-template-columns: 1fr; gap: 20px; }
  .bio-layout { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .img-triptych { grid-template-columns: 1fr; }
  .img-triptych .img-b { grid-row: auto; }
  .hero h1 { font-size: 70px; }
  .header-inner { padding: 20px 5vw; }
  .header-nav { display: none; }
  .header-inner .header-burger { display: flex; }
  .text-section--split { grid-template-columns: 1fr; }
  .bio-layout { grid-template-columns: 1fr; }
  .section-inner { padding-left: 6vw; padding-right: 6vw; }
  .gallery-section .section-inner { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 480px) {
}
