@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=DM+Sans:ital,wght@0,400;0,500;0,700&family=DM+Mono:wght@400;500&display=swap');

/* ============================================
   renée — personal site
   bold + expressive
   ============================================ */

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

:root {
  --bg: #FAF8F5;
  --text: #1a1a1a;
  --text-mid: #555;
  --text-light: #888;
  --accent: #E8373E;
  --accent-hover: #c42d33;
  --yellow: #FFD166;
  --border: #e0ddd8;
  --surface: #F0EDEA;
  --serif: 'Instrument Serif', 'Georgia', serif;
  --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --mono: 'DM Mono', 'Menlo', monospace;
  --max-width: 1200px;
  --content-width: 720px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

::selection {
  background: var(--accent);
  color: white;
}

a {
  color: var(--text);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

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

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   NAVIGATION
   ============================================ */

nav:not(.xp-dock) {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250, 248, 245, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.5px;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

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

/* ============================================
   HERO (homepage)
   ============================================ */

.hero {
  padding: 180px 40px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-name {
  font-family: var(--serif);
  font-size: clamp(80px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: -4px;
  margin-bottom: 32px;
  color: var(--text);
}

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

.hero-tagline {
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  max-width: 640px;
  color: var(--text-mid);
}

.hero-tagline em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text);
  font-size: 1.05em;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

.about-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-light);
  padding-top: 6px;
}

.about-content h2 {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
  margin-bottom: 16px;
  max-width: 580px;
}

.about-content p strong {
  color: var(--text);
  font-weight: 500;
}

/* ============================================
   SUBSCRIBE
   ============================================ */

.subscribe-block {
  margin-top: 28px;
}

.subscribe-btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 100px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.subscribe-btn:hover {
  background: var(--text);
  color: var(--bg);
  transform: translateY(-2px);
}

/* ============================================
   SECTION DIVIDER
   ============================================ */

.divider {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.divider-line {
  border: none;
  border-top: 1px solid var(--border);
}

/* ============================================
   POSTS GRID (homepage featured + blog page)
   ============================================ */

.posts-section {
  padding: 80px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 48px;
}

.section-header .about-label {
  padding-top: 0;
}

.section-header a {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.section-header a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.posts-grid {
  display: grid;
  gap: 2px;
}

.post-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.2s;
}

.post-card:first-child {
  border-top: 1px solid var(--border);
}

.post-card:hover {
  padding-left: 12px;
}

.post-card:hover .post-title {
  color: var(--accent);
}

.post-title {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  color: var(--text);
  transition: color 0.2s;
}

.post-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
}

.post-excerpt {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 600px;
  margin-top: -8px;
}

/* Featured post (first on homepage) */
.post-card.featured {
  padding: 48px 0;
  border-bottom: 2px solid var(--text);
}

.post-card.featured .post-title {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -1px;
}

.post-card.featured .post-excerpt {
  font-size: 17px;
  margin-top: 4px;
}

/* ============================================
   BLOG POST (individual)
   ============================================ */

.post-page {
  padding: 160px 40px 80px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.post-page-header {
  margin-bottom: 56px;
}

.post-page-title {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.post-page-meta {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-light);
}

.post-body {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}

.post-body p {
  margin-bottom: 24px;
}

.post-body h2 {
  font-family: var(--serif);
  font-size: 32px;
  margin-top: 56px;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.post-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

.post-body strong {
  font-weight: 600;
}

.post-body em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02em;
}

.post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.6;
}

.post-body ul, .post-body ol {
  margin: 20px 0;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 8px;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.post-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Highlight box for key lines */
.highlight-line {
  background: linear-gradient(180deg, transparent 50%, rgba(255, 209, 102, 0.35) 50%);
  padding: 0 2px;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--mono);
}

.back-link:hover {
  color: var(--text);
}

/* ============================================
   SOCIAL LINKS
   ============================================ */

.social-strip {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}

.social-link {
  font-size: 14px;
  font-family: var(--mono);
  color: var(--text-light);
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: all 0.2s;
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(232, 55, 62, 0.04);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  padding: 60px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 13px;
  color: var(--text-light);
  font-family: var(--mono);
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  font-family: var(--mono);
}

.footer-links a:hover {
  color: var(--accent);
}

/* ============================================
   BLOG PAGE HEADER
   ============================================ */

.page-header {
  padding: 160px 40px 60px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -2px;
  line-height: 0.95;
}

.page-header p {
  font-size: 17px;
  color: var(--text-mid);
  margin-top: 16px;
  max-width: 500px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  nav {
    padding: 16px 20px;
  }

  .nav-links {
    gap: 20px;
  }

  .hero {
    padding: 140px 20px 60px;
  }

  .hero-name {
    letter-spacing: -2px;
  }

  .about {
    padding: 60px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .posts-section {
    padding: 60px 20px;
  }

  .post-card {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .post-title {
    font-size: 22px;
  }

  .post-card.featured .post-title {
    font-size: 28px;
  }

  .post-page {
    padding: 120px 20px 60px;
  }

  .post-body {
    font-size: 17px;
  }

  .social-strip {
    flex-wrap: wrap;
    gap: 12px;
  }

  footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 40px 20px;
  }

  .page-header {
    padding: 140px 20px 40px;
  }

  .divider {
    padding: 0 20px;
  }
}
