/* ============================================
   claudetteperkins.com
   Clean. Minimal. Words first.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #1a1a1a;
  --text-light: #666;
  --text-lighter: #999;
  --bg: #fafaf8;
  --bg-accent: #f0efe9;
  --accent: #2a2a2a;
  --border: #e0dfd8;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --measure: 38rem;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text-light);
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--text);
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

a:hover {
  text-decoration-color: var(--text);
}

em {
  font-style: italic;
}

strong {
  font-weight: 600;
}

blockquote {
  border-left: 2px solid var(--border);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-light);
  font-style: italic;
}

hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 2.5rem auto;
  max-width: 4rem;
}

/* --- Layout --- */
header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: var(--measure);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.site-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

main {
  flex: 1;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 3rem 1.5rem;
  width: 100%;
}

footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-lighter);
  letter-spacing: 0.02em;
}

/* --- Home Page --- */
.home-intro {
  margin-bottom: 3rem;
}

.home-intro p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 32rem;
}

.home-intro p:first-of-type {
  font-size: 1.5rem;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 1rem;
}

/* --- Writing List --- */
.writing-list {
  list-style: none;
}

.writing-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.writing-list li:first-child {
  border-top: 1px solid var(--border);
}

.writing-list a {
  text-decoration: none;
  display: block;
}

.writing-list a:hover .piece-title {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.piece-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.piece-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-lighter);
  display: flex;
  gap: 1rem;
}

.piece-excerpt {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-top: 0.35rem;
  font-style: italic;
}

/* --- Individual Piece --- */
.piece-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.piece-header time {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-lighter);
  letter-spacing: 0.02em;
}

.subtitle {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.collection-tag {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.piece-body {
  font-size: 1rem;
  line-height: 1.85;
}

.piece-body p {
  margin-bottom: 1.5rem;
}

.piece-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-family: var(--sans);
  font-size: 0.85rem;
}

.piece-nav a {
  color: var(--text-light);
  text-decoration: none;
}

.piece-nav a:hover {
  color: var(--text);
}

/* --- About Page --- */
.about-content {
  line-height: 1.85;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  header {
    padding: 1.25rem 1rem;
  }

  main {
    padding: 2rem 1rem;
  }

  .home-intro p:first-of-type {
    font-size: 1.25rem;
  }
}
