/* ============================================================
   WYMERICA.COM
   Literary. Editorial. Deliberate.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:        #F9F5EE;
  --bg-2:      #F1EBE0;
  --text:      #1C1814;
  --text-muted:#7A6E64;
  --accent:    #8B2E16;
  --accent-2:  #5C1F0E;
  --border:    #D8CFBF;
  --border-light: #EAE4D8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'EB Garamond', Georgia, serif;

  --max-w:    740px;
  --max-w-wide: 1100px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Site Header ────────────────────────────────────────────── */
.site-header {
  padding: var(--space-lg) 0 var(--space-md);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--text);
}

.site-title span {
  color: var(--accent);
}

/* ── Navigation ─────────────────────────────────────────────── */
.site-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Page Hero ──────────────────────────────────────────────── */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border-light);
}

.page-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.page-hero__title em {
  font-style: italic;
  color: var(--accent);
}

.page-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 520px;
  line-height: 1.65;
}

/* ── Home Intro ─────────────────────────────────────────────── */
.home-intro {
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-light);
}

.home-intro__text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--text);
  max-width: 640px;
}

.home-intro__text strong {
  font-weight: 500;
  color: var(--accent);
}

/* ── Section Cards ──────────────────────────────────────────── */
.section-grid {
  padding: var(--space-xl) 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border-light);
}

.section-card {
  display: block;
  text-decoration: none;
  position: relative;
  padding-top: var(--space-md);
  border-top: 2px solid var(--border);
  transition: border-color 0.25s ease;
}

.section-card:hover {
  border-top-color: var(--accent);
}

.section-card:hover .section-card__arrow {
  transform: translateX(4px);
}

.section-card__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-style: italic;
}

.section-card__title {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  color: var(--text);
}

.section-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

.section-card__arrow {
  font-size: 1.1rem;
  color: var(--accent);
  display: inline-block;
  transition: transform 0.2s ease;
}

/* ── Post List ──────────────────────────────────────────────── */
.post-list {
  padding: var(--space-xl) 0;
  list-style: none;
}

.post-list__empty {
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.post-item {
  border-top: 1px solid var(--border-light);
  padding: var(--space-md) 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-sm);
  align-items: start;
}

.post-item:last-child {
  border-bottom: 1px solid var(--border-light);
}

.post-item__link {
  text-decoration: none;
}

.post-item__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.post-item__link:hover .post-item__title {
  color: var(--accent);
}

.post-item__excerpt {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-style: italic;
}

.post-item__date {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  white-space: nowrap;
  padding-top: 0.25rem;
}

/* ── Prose / Article ─────────────────────────────────────────── */
.prose {
  padding: var(--space-xl) 0;
}

.prose p {
  margin-bottom: 1.5em;
  font-size: 1.05rem;
}

.prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.8em;
  line-height: 0.75;
  float: left;
  margin-right: 0.08em;
  color: var(--accent);
  font-weight: 500;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 400;
  margin: var(--space-lg) 0 var(--space-sm);
  line-height: 1.2;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  padding-left: var(--space-md);
  margin: var(--space-lg) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ── About Page ─────────────────────────────────────────────── */
.about-grid {
  padding: var(--space-xl) 0;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.about-bio p {
  margin-bottom: 1.4em;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-meta {
  border-top: 2px solid var(--border);
  padding-top: var(--space-md);
}

.about-meta__label {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.about-meta__value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: var(--space-md);
}

.about-meta__value a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.about-meta__value a:hover {
  border-bottom-color: var(--accent);
}

/* ── Podcast Section ────────────────────────────────────────── */
.podcast-coming {
  padding: var(--space-xl) 0;
  text-align: center;
}

.podcast-coming__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  margin-bottom: var(--space-md);
  color: var(--text);
}

.podcast-coming__body {
  max-width: 480px;
  margin: 0 auto;
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.05rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.site-footer__copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.site-footer__links {
  display: flex;
  gap: var(--space-md);
}

.site-footer__links a {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer__links a:hover {
  color: var(--accent);
}

/* ── Chain Link Badge ────────────────────────────────────────── */
.cl-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.cl-badge::before {
  content: '⬡';
  color: var(--accent);
  font-size: 0.65rem;
}

.cl-badge:hover {
  color: var(--accent);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header__inner {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .site-nav {
    gap: var(--space-sm);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .post-item {
    grid-template-columns: 1fr;
  }

  .post-item__date {
    order: -1;
    padding-top: 0;
  }
}

/* ── Utility ────────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-lg) 0;
}

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.italic { font-style: italic; }
