/* ============================================================
   Portfolio — Shared Styles
   Palette: off-white bg, near-black text, soft gray accents
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Noto+Serif+SC:wght@300;400&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #faf9f7;
  --text:      #1a1a1a;
  --muted:     #6b6b6b;
  --accent:    #c8b89a;
  --border:    #e0ddd8;
  --white:     #ffffff;

  --font-sans: "Lora", "Noto Serif SC", Georgia, serif;
  --font-serif: "Lora", "Noto Serif SC", Georgia, serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* ============================================================
   Navigation
   ============================================================ */

nav {
  width: 100%;
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

/* ============================================================
   Main content wrapper
   ============================================================ */

main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

/* ============================================================
   Footer
   ============================================================ */

footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* ============================================================
   Gallery — Hero + Thumbnail strip (index.html)
   ============================================================ */

.gallery-hero-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-arrow {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.hero-arrow:hover {
  color: var(--text);
}

.hero-arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-hero {
  flex: 1;
  aspect-ratio: 4 / 3;
  max-height: 560px;
  overflow: hidden;
  background: var(--border);
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.47, 0, 0.745, 0.715);
  will-change: opacity;
}

.hero-slide.active { opacity: 1; }

.gallery-caption {
  margin-top: 1rem;
  min-height: 2.5rem;
  text-align: center;
}

.gallery-caption h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: normal;
}

.gallery-caption p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.dot:hover {
  background: var(--muted);
}

.dot.active {
  background: var(--text);
  transform: scale(1.3);
}

/* ============================================================
   About page
   ============================================================ */

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

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--border);
}

.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
  padding: 1rem;
}

.about-text h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--muted);
  margin-bottom: 1rem;
  max-width: 55ch;
  font-size: 1rem;
  line-height: 1.8;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Poems page
   ============================================================ */

.poems-header {
  margin-bottom: 3rem;
}

.poems-header h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: normal;
}

.poems-header p {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.poem {
  max-width: 580px;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}

.poem:last-child {
  border-bottom: none;
}

.poem h2 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: normal;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.poem-body {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2;
  color: var(--text);
  white-space: pre-line;
}

.poem-date {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   Page heading (reusable)
   ============================================================ */

.page-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: normal;
  margin-bottom: 2.5rem;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 700px) {
  nav {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .nav-links {
    gap: 1.5rem;
  }

  main {
    padding: 2rem 1.25rem 4rem;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo-placeholder {
    aspect-ratio: 3 / 2;
    max-width: 280px;
  }

  .gallery-thumbnails button {
    width: 72px;
    height: 56px;
  }
}
