:root {
  --bg: #faf8f5;
  --bg-tinted: #f2ede4;
  --surface: #ffffff;
  --surface-accent: #f6f9f7;
  --text: #1c2422;
  --text-muted: #525d59;
  --accent: #1e4d40;
  --accent-hover: #163a30;
  --warm: #b56c2c;
  --border: #e5dfd5;
  --shadow: 0 10px 30px rgba(28, 36, 34, 0.05);
  --radius: 16px;
  --max-width: 1020px;
}

[data-theme="dark"] {
  --bg: #121716;
  --bg-tinted: #18201e;
  --surface: #1b2422;
  --surface-accent: #182924;
  --text: #f0ece4;
  --text-muted: #aeb8b4;
  --accent: #68b89e;
  --accent-hover: #82cbb3;
  --warm: #e29b58;
  --border: #2a3633;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1,
h2,
h3 {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-top: 0;
  color: var(--text);
}

p {
  margin-top: 0;
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.brand {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 4.75rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(190px, 235px);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.hero-portrait {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.hero-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.eyebrow,
.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--warm);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  margin-bottom: 1.4rem;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.75;
  max-width: 68ch;
  margin-bottom: 2rem;
}

.hero-lead strong {
  color: var(--text);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.35rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent);
}

[data-theme="dark"] .btn-primary {
  color: #0e1614;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}

[data-theme="dark"] .btn-primary:hover {
  color: #0e1614;
}

.btn-secondary {
  background-color: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quick-facts {
  list-style: none;
  margin: 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.fact-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.fact-value {
  display: block;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--text);
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-tinted {
  background-color: var(--bg-tinted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-header h2,
.reading-intro h2,
.connect-inner h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  margin-bottom: 0.5rem;
}

/* Cards */
.card-grid.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-accent {
  background: var(--surface-accent);
  border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
}

.card-tag {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p:last-of-type {
  margin-bottom: 0;
}

.text-link {
  display: inline-block;
  margin-top: 1.35rem;
  font-weight: 600;
  font-size: 0.94rem;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

/* Reading section */
.reading-layout {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem;
  align-items: start;
}

.reading-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}

.stat-num {
  display: block;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.current-reads {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}

.current-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--warm);
  margin-bottom: 0.5rem;
}

.current-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.93rem;
}

.current-list strong {
  color: var(--text);
}

.current-list span {
  color: var(--text-muted);
}

.reading-links {
  margin-top: 1.25rem;
}

.shelf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.shelf-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.shelf-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.shelf-tabs {
  display: inline-flex;
  gap: 0.35rem;
  background: var(--bg);
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.shelf-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.shelf-tab.is-active {
  background: var(--accent);
  color: #ffffff;
}

[data-theme="dark"] .shelf-tab.is-active {
  color: #0e1614;
}

.book-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.book-list.is-hidden {
  display: none;
}

.book-item {
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.book-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.book-name {
  font-size: 0.96rem;
  color: var(--text);
}

.book-rating {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--warm);
}

.book-meta {
  display: block;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.shelf-footnote {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Family Album */
.album-card {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.album-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.album-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 0.65rem;
}

.album-hint,
.album-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.album-thumb {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 12px;
  padding: 0.45rem;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.album-thumb:hover,
.album-thumb:focus-visible {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  outline: none;
}

.album-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-tinted);
}

.album-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-thumb:hover .album-img-wrap img {
  transform: scale(1.04);
}

.album-zoom-badge {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(18, 23, 22, 0.72);
  color: #ffffff;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.82;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.album-thumb:hover .album-zoom-badge {
  opacity: 1;
  transform: scale(1.06);
}

.album-caption {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 0.25rem 0.1rem;
  line-height: 1.35;
}

/* Lightbox */
.lightbox {
  border: none;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: min(94vw, 1120px);
  max-height: 92vh;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(12, 16, 15, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #141918;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 0.65rem 0.65rem 0.85rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.lightbox-figure img {
  display: block;
  max-width: min(82vw, 960px);
  max-height: 76vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.35rem 0;
  color: #f0ece4;
  font-size: 0.9rem;
}

.lightbox-count {
  font-size: 0.8rem;
  color: #aeb8b4;
  flex-shrink: 0;
}

.lightbox-close,
.lightbox-nav {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 25, 24, 0.85);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
}

.lightbox-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  z-index: 2;
}

/* Connect */
.section-connect {
  border-top: 1px solid var(--border);
  text-align: center;
}

.connect-inner {
  max-width: 640px;
}

.connect-copy {
  font-size: 1.04rem;
  margin-bottom: 1.75rem;
}

.connect-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.pill-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-inner p {
  margin: 0;
}

.disclaimer {
  font-style: italic;
}

/* Responsive */
@media (max-width: 820px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .hero-portrait {
    max-width: 220px;
  }

  .quick-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid.two-col,
  .reading-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .album-grid {
    grid-template-columns: 1fr;
  }

  .lightbox-nav {
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
  }

  .lightbox-frame {
    gap: 0.4rem;
  }

  .lightbox-figure img {
    max-width: 74vw;
  }
}

@media (max-width: 480px) {
  .quick-facts,
  .reading-stats {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }
}
