/* Notional Inquiry, base styles */

:root {
  --bg: #faf7f0;
  --bg-alt: #f3eee2;
  --ink: #1c1c1c;
  --ink-soft: #4a4a4a;
  --muted: #8a8278;
  --accent: #b04a2f;
  --accent-soft: #d97a5c;
  --rule: #e6dfd0;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: 0.6rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent-soft); }

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  padding: 1.5rem 0;
  background: var(--bg);
}

.site-header .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 6px;
  display: block;
}

.card-logo {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  display: block;
}

.brand:hover { color: var(--ink); }

.brand .dot { color: var(--accent); }

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

nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

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

/* Hero */
.hero {
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero .eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.2rem; }

.hero .lead {
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
}

/* Section */
section { padding: 3rem 0; }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title .eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

/* Cards (home page hub) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
  color: var(--ink);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--ink);
}

.card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Recent strip (home page) */
.recent {
  background: var(--bg-alt);
  padding: 4rem 0;
  margin-top: 2rem;
}

.recent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.recent-item h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  margin: 0.5rem 0 0.75rem;
}

.recent-item .meta {
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 700px) {
  .recent-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Content pages */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--rule);
}

.page-header .eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.content {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.content p { font-size: 1.05rem; margin-bottom: 1.2rem; }

/* Posts list */
.posts { list-style: none; }

.post-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-item:last-child { border-bottom: none; }

.post-item .meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.post-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.post-item h3 a { color: var(--ink); }

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

.post-item p { margin-bottom: 0; }

/* Inquiries feed: short notes display in full, essays link out */
.post-item.note {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
}

.post-item.note h3 { font-size: 1.25rem; }

.note-body p { font-size: 1.02rem; margin-bottom: 1rem; }
.note-body p:last-child { margin-bottom: 0; }

.read-more {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Year headings, used once the feed grows past ~20 entries */
.year-heading {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 2.5rem 0 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

/* Single-essay page */
.essay-meta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.back-link { font-size: 0.9rem; }

/* Podcast page */
.podcast-hero {
  text-align: center;
  padding: 3rem 0;
}

.podcast-cover {
  width: 220px;
  height: 220px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 10px 30px rgba(176, 74, 47, 0.2);
}

.player-embed {
  background: var(--bg-alt);
  border: 1px dashed var(--rule);
  padding: 2rem;
  text-align: center;
  border-radius: 4px;
  color: var(--muted);
  margin: 2rem 0;
}

.listen-on {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.listen-on a {
  border: 1px solid var(--rule);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.listen-on a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
  margin: 2rem auto 0;
}

.contact-form label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.3rem;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--rule);
  background: var(--bg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  border-radius: 4px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-form button {
  background: var(--ink);
  color: var(--bg);
  border: none;
  padding: 0.9rem 1.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s ease;
  align-self: flex-start;
}

.contact-form button:hover { background: var(--accent); }

/* Email button (protected mailto link) */
.btn-email {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  padding: 0.9rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn-email:hover { background: var(--accent); color: var(--bg); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent); }

/* Mobile nav adjustments */
@media (max-width: 600px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  nav ul { gap: 1.2rem; flex-wrap: wrap; }
  .hero { padding: 3rem 0 2rem; }
}

/* ============================================================
   Podcast + Direction B additions
   ============================================================ */

/* Episode badges, solo vs guest */
.ep-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.ep-badge.solo  { background: #efe7da; color: #7a5f2c; }
.ep-badge.guest { background: #f3ddd3; color: #b04a2f; }

/* Format explainer, the two kinds of episodes */
.format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.format-card {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 1.8rem;
}
.format-card .tag {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); margin-bottom: 0.6rem;
}
.format-card h3 { margin-bottom: 0.4rem; }
.format-card p { margin-bottom: 0; font-size: 0.97rem; }
@media (max-width: 700px) { .format-grid { grid-template-columns: 1fr; } }

/* BuzzSprout embed wrapper */
.episode-player { margin: 1rem 0 0; }

/* Episode list item */
.episode { padding: 2rem 0; border-bottom: 1px solid var(--rule); }
.episode:last-child { border-bottom: none; }
.episode .meta {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); margin-bottom: 0.5rem;
}
.episode h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }

/* Open Questions / Submit CTA band */
.open-questions {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
}
.open-questions h2 { margin-bottom: 0.6rem; }
.open-questions p { max-width: 540px; margin: 0 auto 1.5rem; }

/* Filled accent button */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s ease;
}
.btn-primary:hover { background: var(--accent-soft); color: #fff; }

/* Checkbox row in forms */
.check-row { display: flex; align-items: flex-start; gap: 0.6rem; margin-top: 0.2rem; }
.check-row input { width: auto; margin-top: 0.25rem; }
.check-row label {
  text-transform: none; letter-spacing: 0; font-size: 0.95rem;
  color: var(--ink-soft); margin-bottom: 0;
}
