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

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

:root {
  --ink: #1a1814;
  --paper: #f8f5ef;
  --paper-mid: #f0ece3;
  --muted: #8c8679;
  --faint: #ccc8be;
  --accent: #2c4a3e;
  --accent-light: #e8eeeb;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 0.5px solid var(--faint);
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ink);
  display: block;
  transition: all 0.3s;
}

/* ── FOOTER ── */
footer {
  border-top: 0.5px solid var(--faint);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 4rem;
}
.footer-word { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--muted); }
.footer-word span { color: var(--accent); }
.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { font-size: 12px; letter-spacing: 0.06em; color: var(--faint); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--muted); }
.footer-copy { font-size: 11px; color: var(--faint); width: 100%; text-align: center; padding-top: 0.75rem; border-top: 0.5px solid var(--faint); margin-top: 0.5rem; }

/* ── SECTION UTILITIES ── */
.section { padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem); }

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  border-bottom: 0.5px solid var(--faint);
  padding-bottom: 1rem;
}
.section-title { font-family: var(--serif); font-size: 32px; font-weight: 400; letter-spacing: -0.01em; }
.section-link { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.section-link:hover { color: var(--ink); }

/* ── POST CARDS ── */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.post-card {
  background: var(--paper);
  border: 0.5px solid var(--faint);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.2s;
}
.post-card:hover { background: var(--paper-mid); }
.post-card:hover .post-arrow { opacity: 1; transform: translateX(0); }

.post-cat { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; display: block; }
.post-title { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.3; margin-bottom: 0.875rem; letter-spacing: -0.01em; }
.post-excerpt { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.post-meta { font-size: 11px; letter-spacing: 0.06em; color: var(--faint); display: flex; align-items: center; justify-content: space-between; }
.post-arrow { opacity: 0; transform: translateX(-6px); transition: all 0.2s; color: var(--accent); }

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--paper-mid);
  border-top: 0.5px solid var(--faint);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.nl-heading { font-family: var(--serif); font-size: clamp(36px, 5vw, 56px); font-weight: 300; line-height: 1.1; letter-spacing: -0.02em; }
.nl-heading em { font-style: italic; color: var(--accent); }
.nl-sub { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 2rem; }
.nl-row { display: flex; gap: 0; }
.nl-input { flex: 1; font-family: var(--sans); font-size: 14px; font-weight: 300; padding: 0.875rem 1rem; background: var(--paper); border: 0.5px solid var(--faint); border-right: none; color: var(--ink); outline: none; border-radius: 0; }
.nl-input::placeholder { color: var(--faint); }
.nl-input:focus { border-color: var(--accent); }
.nl-btn { font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.875rem 1.5rem; background: var(--ink); color: var(--paper); border: none; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.nl-btn:hover { background: var(--accent); }
.nl-note { font-size: 11px; color: var(--faint); letter-spacing: 0.04em; margin-top: 0.75rem; }
.nl-success { display: none; font-family: var(--serif); font-size: 18px; font-style: italic; color: var(--accent); padding: 1rem 0; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem) 0;
  border-bottom: 0.5px solid var(--faint);
  margin-bottom: 0;
}
.page-eyebrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.page-eyebrow::before { content: ''; width: 28px; height: 0.5px; background: var(--muted); display: inline-block; }
.page-heading { font-family: var(--serif); font-size: clamp(48px, 8vw, 88px); font-weight: 300; line-height: 1.0; letter-spacing: -0.03em; padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.page-heading em { font-style: italic; color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-1 { animation: fadeUp 0.7s 0.0s ease both; }
.fade-2 { animation: fadeUp 0.7s 0.12s ease both; }
.fade-3 { animation: fadeUp 0.7s 0.24s ease both; }
.fade-4 { animation: fadeUp 0.7s 0.36s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .posts-grid { grid-template-columns: 1fr; }
  .newsletter { grid-template-columns: 1fr; gap: 2rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px; left: 0; right: 0;
    background: var(--paper);
    padding: 2rem;
    border-bottom: 0.5px solid var(--faint);
    gap: 1.5rem;
    z-index: 99;
  }
}
@media (max-width: 560px) {
  .nl-row { flex-direction: column; }
  .nl-input { border-right: 0.5px solid var(--faint); }
  footer { flex-direction: column; align-items: flex-start; }
}
