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

:root {
  --color-bg: #fafaf8;
  --color-text: #2c2c2c;
  --color-text-light: #555;
  --color-accent: #1a1a1a;
  --color-border: #ddd;
  --color-link: #1a5276;
  --max-width: 820px;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-heading: 'Helvetica Neue', 'Segoe UI', sans-serif;
}

html { font-size: 17px; }

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

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

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

/* ===== Header ===== */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-nav a {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  color: var(--color-text-light);
  text-decoration: none;
  margin-left: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav a:hover { color: var(--color-accent); }
.site-nav a.active { color: var(--color-accent); border-bottom: 2px solid var(--color-accent); padding-bottom: 2px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--color-accent); margin: 5px 0;
  transition: 0.3s;
}

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

/* ===== Home Page ===== */
.home-content {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.home-photo { flex: 0 0 280px; }
.home-photo img { border-radius: 4px; }

.home-bio { flex: 1; }
.home-bio p { margin-bottom: 1rem; }
.home-bio h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.home-bio hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }

/* ===== Page Content (books, interviews, articles) ===== */
.page-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.page-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.page-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-content h6 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-content h6 + p {
  font-size: 0.9rem;
}

.page-content p { margin-bottom: 1rem; }

.page-content ol, .page-content ul {
  margin-bottom: 1rem;
  padding-left: 1.2rem;
}

.page-content li { margin-bottom: 0.3rem; }

.page-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* ===== Book Layout ===== */
.book-entry { margin-bottom: 2rem; }

.book-top {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.book-top .book-cover-main {
  flex: 0 0 220px;
  max-width: 220px;
}

.book-top .book-info { flex: 1; }
.book-top .book-info h2 {
  margin-top: 0;
}

.book-reviews h3 {
  margin-top: 1.5rem;
}

@media (max-width: 700px) {
  .book-top { flex-direction: column; }
  .book-top .book-cover-main { flex: none; max-width: 180px; }
}

/* ===== Interview Grid ===== */
.interview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.interview-item {
  text-align: center;
}

.interview-item img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin: 0 auto 0.5rem;
}

.interview-item a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ===== Mobile ===== */
@media (max-width: 700px) {
  .menu-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    flex-direction: column;
  }

  .site-nav.open { display: flex; }
  .site-nav a { margin: 0.5rem 0; margin-left: 0; }

  .home-content { flex-direction: column; }
  .home-photo { flex: none; max-width: 220px; }
}
