/* ===========================
   Variables
   =========================== */
:root {
  --color-bg: #fafaf8;
  --color-text: #1c1c1a;
  --color-muted: #6b6b67;
  --color-accent: #1c1c1a;
  --color-border: #e2e2dc;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-ui: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max-width: 960px;
  --radius: 4px;
}

/* ===========================
   Reset & Base
   =========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.15s;
}

a:hover {
  opacity: 0.55;
}

/* ===========================
   Nav
   =========================== */
header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 2rem;
}

nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: normal;
  text-decoration: none;
  letter-spacing: -0.01em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--color-muted);
}

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

/* ===========================
   Main
   =========================== */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

/* ===========================
   Intro
   =========================== */
.intro {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--color-border);
}

.label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.intro h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: normal;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

/* ===========================
   Bio
   =========================== */
.bio {
  padding: 3.5rem 0;
}

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

.bio-text p {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

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

/* Aside details */
.bio-details {
  padding-top: 0.25rem;
}

.detail-block {
  margin-bottom: 1.75rem;
}

.detail-block:last-child {
  margin-bottom: 0;
}

.detail-label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.3rem;
}

.detail-block p,
.detail-block a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.link-list a {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  text-decoration: none;
}

.link-list a:hover {
  opacity: 0.5;
}

/* ===========================
   Divider
   =========================== */
.divider-section hr {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* ===========================
   Bio More (Details/Summary)
   =========================== */
.bio-more {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.bio-more summary {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  user-select: none;
}

.bio-more summary::-webkit-details-marker {
  display: none;
}

.bio-more summary::after {
  content: '+';
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s;
}

.bio-more[open] summary::after {
  content: '−';
}

.bio-more summary:hover {
  color: var(--color-text);
}

.bio-more-content {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.bio-more-content p {
  font-size: 1.05rem;
  color: var(--color-text);
}


/* ===========================
   Content Section (full width)
   =========================== */
.content {
  padding: 3.5rem 0 5rem;
  max-width: 100%; /* comfortable reading width */
}

.content p {
  font-size: 1.05rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

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

.content ul {
  padding-left: 1.25rem;
}


/* ===========================
   Quotes
   =========================== */
.quotes {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-border);
}

blockquote {
  margin: 0;
}

blockquote p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 0.35rem;
}

blockquote cite {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--color-muted);
  font-style: normal;
}

/* ===========================
   Book List
   =========================== */
.book-list {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  padding-bottom: 5rem;
}

.book {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.book-cover img {
  width: 100%;
  display: block;
  border-radius: 2px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.book-info h2 {
  font-size: 1.5rem;
  font-weight: normal;
  letter-spacing: -0.02em;
  margin: 0;
}

.book-author {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--color-muted);
}

.book-info p {
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.book-award {
  font-family: var(--font-ui);
  font-size: 0.92rem;
}

.book-link {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-top: 0.25rem;
}

.book-link:hover {
  opacity: 0.5;
}


/* ===========================
   Home page - coming soon message
   =========================== */

.coming-soon {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  color: var(--color-muted);
  font-family: var(--font-ui);
  letter-spacing: 0.05em;
}



/* ===========================
   Nav Toggle (mobile)
   =========================== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--color-text);
  padding: 0;
  line-height: 1;
}

@media (max-width: 700px) {
  nav {
    flex-wrap: wrap;
    gap: 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 1rem;
    border-top: 1px solid var(--color-border);
    padding-top: 0.75rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  nav ul a {
    font-size: 0.9rem;
  }
}

/* ===========================
   Books — mobile
   =========================== */
@media (max-width: 600px) {
  .book {
    grid-template-columns: 1fr;
  }

  .book-cover {
    text-align: center;
  }

  .book-cover img {
    max-width: 180px;
    margin: 0 auto;
  }

  .quotes blockquote p {
    font-size: 0.95rem;
  }
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 700px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  nav ul {
    gap: 1.25rem;
  }
}