/* Chloe S Lubinski — chloesl.com
   Source Serif 4, warm cream palette, faded drawing background. */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');

:root {
  --bg:     #f7f3ea;
  --ink:    #2a251c;
  --soft:   #807766;
  --line:   #d8d0bf;
  --accent: #5f7161;
}

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

body {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  padding: 3rem 1.5rem 5rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

/* Faded drawing — page background, behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('bg-2.jpg') center / cover no-repeat;
  opacity: 0.16;
  z-index: -1;
  pointer-events: none;
}

/* (paper-grain noise overlay removed — was subtly darkening photos via multiply blend) */

main,
footer,
.title-plate { max-width: 60rem; margin-inline: auto; }


/* ───── Title plate (wordmark + rule) ───── */
.title-plate {
  text-align: center;
  margin-bottom: 3rem;
}
.wordmark a {
  font-size: 0.875rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.rule {
  border-top: 1px solid var(--line);
  position: relative;
  height: 1px;
  margin-top: 1.25rem;
}
.rule span {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  padding: 0 0.85rem;
  color: var(--soft);
}


/* ───── Section title (small tracked uppercase) ───── */
.page-title,
.piece-title {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--soft);
  margin: 0.5rem 0 1.5rem;
}


/* ───── Inline links inside main content ───── */
main a {
  color: var(--accent);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
main a:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}


/* ───── Hero (Home + Direction): photo + text columns ───── */
.hero {
  display: grid;
  grid-template-columns: 24rem 1fr;
  gap: 3.25rem;
  align-items: start;
  margin-bottom: 1rem;
}
.hero-reverse {
  align-items: center;
}

.bio-photo {
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 2.5rem;
}
.bio-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}


/* ───── Home: bio text ───── */
.bio {
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.bio:last-child { margin-bottom: 0; }


/* ───── Direction page ───── */
.direction-text .page-title {
  margin: 0 0 1.25rem;
}
.direction-text > p {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}
.direction-text > p:last-child { margin-bottom: 0; }

.short-poem {
  margin: 4rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.85;
  color: var(--ink);
  text-align: center;
}
.short-poem .indent {
  padding-left: 2em;
  display: inline-block;
}


/* ───── Artist & poet page ───── */
body.page-other main,
body.page-other footer,
body.page-other .title-plate { max-width: 58rem; }

.other-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: calc(100vh - 13rem);
  max-height: 56rem;
  min-height: 30rem;
  align-items: stretch;
}
.other-hero > .plates-col { padding-right: 2rem; }
.other-hero > .poem-piece { padding-left: 2.5rem; }

/* Vertical-scrolling gallery on the left */
.plates-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.plate {
  width: 100%;
  padding: 0.55rem;
  border: 1px solid var(--line);
  background: var(--bg);
}
.plate img {
  width: 100%;
  height: auto;
  display: block;
}

/* Poem column on the right */
.poem-piece {
  overflow-y: auto;
  padding-right: 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.poem-body p {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
}
.poem-body p:last-child { margin-bottom: 0; }
.poem-coda {
  margin-top: 2rem;
  font-style: italic;
  color: var(--soft);
}

/* Slim scrollbars (Webkit) */
.plates-col::-webkit-scrollbar,
.poem-piece::-webkit-scrollbar { width: 5px; }
.plates-col::-webkit-scrollbar-track,
.poem-piece::-webkit-scrollbar-track { background: transparent; }
.plates-col::-webkit-scrollbar-thumb,
.poem-piece::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}


/* ───── Footer ───── */
footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--soft);
  text-align: center;
  letter-spacing: 0.05em;
}
footer span { margin: 0 0.4rem; }
footer a {
  color: var(--soft);
  text-decoration: none;
}
footer a:hover { color: var(--ink); }


/* ───── Mobile ───── */
@media (max-width: 640px) {
  body { font-size: 1.0625rem; padding: 2rem 1.25rem 3rem; }
  .hero,
  .other-hero {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    height: auto;
    max-height: none;
    min-height: 0;
  }
  .other-hero > .plates-col,
  .other-hero > .poem-piece {
    padding: 0;
    overflow-y: visible;
  }
  .bio-photo {
    max-width: 16rem;
    margin: 0 auto;
    position: static;
  }
  .bio-photo img {
    aspect-ratio: 1 / 1;
  }
}
