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

:root {
  --bg: #FFFFFF;
  --surface: #7E8898;
  --text: #04011a;
  --muted: #1C3144;
  --accent: #B3A9BA;
  --accent-light: #DEE2FF;
  --border: #EFD3D7;
  --max-w: 720px;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: normal;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}

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

/* ── Layout ── */
main {
  flex: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
  width: 100%;
}

footer {
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Typography ── */
h1 { font-size: 2.2rem; line-height: 1.2; font-weight: normal; margin-bottom: 0.5rem; }
h2 { font-size: 1.4rem; font-weight: normal; color: var(--accent); margin: 3rem 0 1.25rem; }
h3 { font-size: 1.05rem; font-weight: bold; margin-bottom: 0.25rem; }
p  { margin-bottom: 1.25rem; }

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

/* ── Hero ── */
.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.hero-subtitle {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero p { font-size: 1.1rem; color: var(--muted); max-width: 540px; }

/* ── Writing grid ── */
.genre-section { margin-bottom: 0.5rem; }

.piece {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.5rem;
  align-start: start;
}

.piece-title { font-style: italic; font-size: 1rem; }
.piece-title a { color: var(--text); text-decoration: none; }
.piece-title a:hover { color: var(--accent); }

.piece-meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: 0.15rem;
}

.piece-desc {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ── Tags ── */
.tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  margin-right: 0.35rem;
}

/* ── Blog ── */
.post {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}

.post-date {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.post h3 { font-size: 1.2rem; font-weight: normal; margin-bottom: 0.5rem; }
.post h3 a { color: var(--text); text-decoration: none; }
.post h3 a:hover { color: var(--accent); }
.post p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.75rem; }

.read-more {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.read-more:hover { text-decoration: underline; }

/* ── Contact ── */
.contact-intro { max-width: 480px; }

.contact-block {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.95rem;
}

.contact-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  width: 80px;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  main { padding: 2.5rem 1.25rem; }
  h1 { font-size: 1.75rem; }
  .piece { grid-template-columns: 1fr; }
  .piece-meta { padding-top: 0; }
  nav { padding: 0 1.25rem; }
  .nav-links { gap: 1.25rem; }
}