/* Court Bluford, digital garden. Typography-first layout. */

:root {
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --wrap-prose: min(100% - 2.5rem, 42rem);
  --wrap-wide: min(100% - 2.5rem, 64rem);
}

body.site {
  padding-top: calc(var(--header-h) + var(--safe-t));
}

body.site.is-home {
  padding-top: 0;
}

/* ---------- Page shell ---------- */
.page {
  padding: 3.5rem 0 5rem;
}

.page--narrow.page-inner {
  width: var(--wrap-prose);
  margin-inline: auto;
}

.page--wide.page-inner {
  width: var(--wrap-wide);
  margin-inline: auto;
}

.page-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

body.site.is-home.page-hero {
  padding-top: calc(var(--header-h) + var(--safe-t) + 4rem);
  min-height: auto;
  border-bottom: 0;
}

.page-hero-inner {
  width: var(--wrap-prose);
  margin-inline: auto;
}

.page-hero--wide.page-hero-inner {
  width: var(--wrap-wide);
}

.page-hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.page-hero.lead {
  margin: 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
}

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

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.page-section {
  padding: 4rem 0;
}

.page-section +.page-section {
  border-top: 1px solid var(--line);
}

.page-section--soft {
  background: var(--cream);
}

.page-section--dark {
  background: var(--ink);
  color: #fff;
}

.section-label {
  margin: 0 0 1.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-section--dark.section-label {
  color: rgba(255, 255, 255, 0.55);
}

.section-heading {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-more {
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--accent);
}

.section-more:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- Header adjustments ---------- */
.site-header.site-cta {
  font-size: 0.78rem;
  padding: 0.55rem 1rem;
}

.site-nav-link.is-active-page {
  color: var(--ink);
  font-weight: 600;
  background: var(--cream);
}

/* ---------- Essay cards ---------- */
.essay-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
 .essay-grid--home {
    grid-template-columns: repeat(3, 1fr);
  }
}

.essay-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s;
}

.page-section--soft.essay-card,
.page-section--dark.essay-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.page-section--soft.essay-card {
  background: var(--paper);
}

.essay-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.essay-card-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.essay-card-thesis {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.essay-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.essay-card-meta time {
  font-weight: 600;
}

/* ---------- Tags ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  transition: background 0.15s, color 0.15s;
}

a.tag:hover {
  background: var(--accent);
  color: #fff;
}

.tag--muted {
  color: var(--muted);
  background: var(--cream);
}

.theme-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.theme-link {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.theme-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Belief block ---------- */
.belief-block {
  width: var(--wrap-prose);
  margin-inline: auto;
  padding: 3rem 0;
  text-align: center;
}

.belief-block blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.belief-block cite {
  display: block;
  margin-top: 1.25rem;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Project cards ---------- */
.project-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 720px) {
 .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
}

.project-card h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.project-card h3 a {
  text-decoration: none;
}

.project-card h3 a:hover {
  color: var(--accent);
}

.project-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.project-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.project-links a {
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--accent);
}

.project-links a:hover {
  text-decoration: underline;
}

/* ---------- Lissiland bridge ---------- */
.lissiland-bridge {
  width: var(--wrap-wide);
  margin-inline: auto;
  padding: 2rem;
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid rgba(20, 121, 90, 0.2);
  border-radius: var(--r);
}

.lissiland-bridge h2 {
  margin: 0 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.lissiland-bridge p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 32rem;
  margin-inline: auto;
}

/* ---------- Newsletter ---------- */
.newsletter-block {
  width: var(--wrap-prose);
  margin-inline: auto;
  padding: 2.5rem;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.newsletter-block h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.newsletter-block p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  max-width: 28rem;
  margin-inline: auto;
}

.newsletter-form input[type="email"] {
  flex: 1 1 14rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
}

.newsletter-form input[type="email"]:focus {
  outline: 3px solid var(--accent-soft);
  border-color: var(--accent);
}

.newsletter-note {
  margin: 1rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Prose (essays) ---------- */
.prose {
  width: var(--wrap-prose);
  margin-inline: auto;
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--ink);
}

.prose-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.prose-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.prose-dek {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--muted);
}

.prose-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}

.prose-meta time {
  font-weight: 600;
}

.prose h2 {
  margin: 2.5rem 0 1rem;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.prose h3 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose li::marker {
  color: var(--accent);
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--muted);
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.prose-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.prose-footer-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.prose-footer-nav a:hover {
  text-decoration: underline;
}

/* ---------- Writing index filters ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.essay-list-item {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

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

.essay-list-item.is-hidden {
  display: none;
}

.essay-list-item h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.essay-list-item h2 a {
  text-decoration: none;
  color: inherit;
}

.essay-list-item h2 a:hover {
  color: var(--accent);
}

.essay-list-item.thesis {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.start-here-box {
  margin-bottom: 3rem;
  padding: 1.75rem;
  background: var(--accent-soft);
  border-radius: var(--r);
  border-left: 4px solid var(--accent);
}

.start-here-box h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.start-here-box ol {
  margin: 0;
  padding-left: 1.25rem;
}

.start-here-box li {
  margin-bottom: 0.5rem;
}

.start-here-box a {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Resources ---------- */
.resource-section {
  margin-bottom: 3rem;
}

.resource-section h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}

.resource-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.resource-list li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.resource-list li:last-child {
  border-bottom: 0;
}

.resource-list strong {
  display: block;
  margin-bottom: 0.25rem;
}

.resource-list span {
  font-size: 0.92rem;
  color: var(--muted);
}

.resource-list a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.resource-list a:hover {
  text-decoration: underline;
}

/* ---------- Now page ---------- */
.now-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.now-list li {
  padding: 0.65rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
}

.now-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.now-list strong {
  color: var(--ink);
}

.now-updated {
  margin: 0 0 2rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- About extras ---------- */
.beliefs-grid {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0;
  list-style: none;
  padding: 0;
}

.beliefs-grid li {
  padding: 1rem 1.25rem;
  font-size: 0.98rem;
  background: var(--cream);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--accent);
}

.about-photo {
  width: 100%;
  max-width: 20rem;
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
}

@media (min-width: 720px) {
 .about-split {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
  }
}

/* ---------- Contact page (light) ---------- */
.contact-page {
  text-align: center;
}

.contact-page.contact-email-light {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 2rem 0;
}

.contact-page.contact-email-light a {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.18em;
}

.contact-routes {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin: 2rem auto;
  text-align: left;
}

@media (min-width: 540px) {
 .contact-routes {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-route {
  padding: 1.25rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--r);
}

.contact-route h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.contact-route p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-route a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.contact-route a:hover {
  text-decoration: underline;
}

/* ---------- Speaking page reuse ---------- */
.speaking-topics-grid {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 640px) {
 .speaking-topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.speaking-topic {
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--r-sm);
}

.speaking-topic h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.speaking-topic p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}
