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

:root {
  --ink: #1a1612;
  --ink-muted: #5c5650;
  --ink-faint: #9a9490;
  --parchment: #faf7f2;
  --parchment-dark: #f0ebe0;
  --rule: #d4cfc5;
  --accent: #7a3e1e;
  --accent-light: #c4713a;
  --serif: 'EB Garamond', Georgia, serif;
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
}

html { font-size: 18px; }

body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.75;
  min-height: 100vh;
}

.masthead {
  border-bottom: 1px solid var(--rule);
  padding: 2.5rem 0 0;
  text-align: center;
  background: var(--parchment);
}

.masthead-rule-top {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
}

.site-title {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
}

.site-tagline {
  font-family: var(--serif);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.masthead-nav {
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--rule);
  margin-top: 0.5rem;
}

.masthead-nav a {
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

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

.page-wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Page header */
.page-header {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 3rem;
}

.page-header .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}

.page-header h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.page-header p {
  font-size: 1rem;
  color: var(--ink-muted);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

/* Content grid */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  padding: 3.5rem 0;
}

/* Article items */
.article-item {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.article-item:first-child { padding-top: 0; }

.article-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(122,62,30,0.07);
  padding: 0.2em 0.6em;
  border-radius: 1px;
}

.article-item h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.article-item h3 a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}

.article-item h3 a:hover { color: var(--accent); }

.article-excerpt {
  font-size: 0.95rem;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 0.8rem;
}

.read-more {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-light);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.read-more:hover { border-color: var(--accent); }

/* Featured article */
.featured-article {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.featured-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  display: block;
}

.featured-article h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--ink);
}

.featured-article h2 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.featured-article h2 a:hover { color: var(--accent); }

.pull-quote {
  border-left: 2px solid var(--accent);
  margin: 0.5rem 0 1.5rem 0;
  padding: 0.6rem 0 0.6rem 1.2rem;
  font-family: var(--display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Sidebar */
.sidebar { padding-top: 0.2rem; }

.sidebar-section { margin-bottom: 2.5rem; }

.sidebar-heading {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}

.sidebar-about p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink-muted);
  font-style: italic;
}

.topic-list { list-style: none; }

.topic-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.45rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.88rem;
}

.topic-list a {
  text-decoration: none;
  color: var(--ink-muted);
  transition: color 0.2s;
}

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

.topic-count { font-size: 0.75rem; color: var(--ink-faint); }

.recent-list { list-style: none; }

.recent-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.85rem;
  line-height: 1.4;
}

.recent-list a {
  text-decoration: none;
  color: var(--ink-muted);
  font-style: italic;
  transition: color 0.2s;
}

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

.recent-date {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
  font-style: normal;
}

/* About page prose */
.prose {
  max-width: 680px;
}

.prose p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-muted);
  margin-bottom: 1.4rem;
}

.prose p:first-child { color: var(--ink); font-size: 1.1rem; }

.prose h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.4rem;
  margin: 2rem 0 0.8rem;
  color: var(--ink);
}

.prose .ornament {
  text-align: left;
  color: var(--accent-light);
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  margin: 2rem 0;
  display: block;
}

/* Reading list */
.book-item {
  display: flex;
  gap: 1.2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: flex-start;
}

.book-num {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--rule);
  line-height: 1;
  min-width: 2rem;
  padding-top: 0.1rem;
}

.book-info h4 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.book-info .book-author {
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
}

.book-info p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* Contact form */
.contact-form { max-width: 560px; }

.form-group { margin-bottom: 1.4rem; }

.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 0.5rem 0;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--accent);
}

.submit-btn {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--parchment);
  background: var(--accent);
  border: none;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s;
}

.submit-btn:hover { background: var(--ink); }

.ornament {
  text-align: center;
  color: var(--accent-light);
  letter-spacing: 0.4em;
  font-size: 0.75rem;
  margin: 0.5rem 0;
  display: block;
}

footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

footer p {
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

footer a { color: var(--ink-faint); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ── Hamburger toggle (hidden on desktop) ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1.2rem;
  top: 1.4rem;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink-muted);
  margin: 5px 0;
  transition: all 0.3s;
  border-radius: 1px;
}

/* ── Tablet (max 900px) ── */
@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sidebar {
    border-top: 1px solid var(--rule);
    padding-top: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 3rem;
  }

  .sidebar-section { margin-bottom: 0; }
}

/* ── Mobile (max 600px) ── */
@media (max-width: 600px) {
  html { font-size: 16px; }

  .page-wrap { padding: 0 1.2rem; }

  /* Masthead */
  .masthead {
    padding: 1.8rem 0 0;
    position: relative;
  }

  .masthead-rule-top { margin-bottom: 1rem; }

  .site-title {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: 0.08em;
  }

  .site-tagline {
    font-size: 0.78rem;
    padding: 0 1rem;
    margin-bottom: 1rem;
  }

  /* Hamburger button */
  .nav-toggle { display: block; }

  /* Nav becomes collapsible dropdown */
  .masthead-nav {
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--rule);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .masthead-nav.open { max-height: 400px; }

  .masthead-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid var(--rule);
    text-align: left;
    border-bottom-width: 1px;
  }

  .masthead-nav a.active {
    border-left: 3px solid var(--accent);
    color: var(--accent);
    padding-left: calc(1.2rem - 3px);
  }

  /* Page header */
  .page-header {
    padding: 2rem 0 1.5rem;
    margin-bottom: 1.5rem;
  }

  .page-header h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .page-header p { font-size: 0.9rem; }

  /* Content */
  .content-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 1.8rem 0;
  }

  .featured-article {
    padding-bottom: 1.8rem;
    margin-bottom: 1.8rem;
  }

  .featured-article h2 { font-size: clamp(1.5rem, 6vw, 2rem); }

  .article-item { padding: 1.4rem 0; }
  .article-item h3 { font-size: 1.25rem; }

  .pull-quote {
    font-size: 1rem;
    padding-left: 1rem;
  }

  /* Sidebar: single column below articles */
  .sidebar {
    display: block;
    border-top: 1px solid var(--rule);
    padding-top: 1.8rem;
    margin-top: 0.5rem;
  }

  .sidebar-section { margin-bottom: 2rem; }

  /* Prose */
  .prose { max-width: 100%; }
  .prose p { font-size: 1rem; }

  /* Books */
  .book-item { gap: 0.8rem; }
  .book-num { font-size: 1.5rem; min-width: 1.8rem; }
  .book-info h4 { font-size: 1.1rem; }

  /* Contact */
  .contact-form { max-width: 100%; }
  .submit-btn { width: 100%; padding: 1rem; font-size: 0.82rem; }

  /* Footer */
  footer { padding: 1.5rem 0; }
}
