:root {
  --paper: #FAF7F2;
  --ink: #1A1A1A;
  --ink-soft: #6B6B6B;
  --ink-mute: #A8A39E;
  --blush: #C97D78;
  --blush-soft: #EFC2BD;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Fraunces', serif;
  -webkit-font-smoothing: antialiased;
}
body.landing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.page {
  text-align: center;
  max-width: 480px;
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.bird {
  width: 220px;
  height: auto;
  margin: 0 auto 32px;
  display: block;
}
.wordmark {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 56px;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 14px;
}

/* PRONUNCIATION */
.pronounce-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
  user-select: none;
}
.phonetic {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink-mute);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  transition: color 0.2s;
}
.phonetic:hover { color: var(--ink-soft); }
.phonetic:hover .speaker { color: var(--blush); }
.syl {
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}
.syl.stress { font-weight: 500; color: var(--ink-soft); }
.syl.active {
  color: var(--blush) !important;
  transform: translateY(-1px);
}
.sep {
  color: var(--ink-mute);
  margin: 0 2px;
  opacity: 0.55;
}
.speaker {
  color: var(--ink-mute);
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, transform 0.2s;
}
.phonetic.playing .speaker {
  color: var(--blush);
  animation: pulse 0.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* SLOW TOGGLE — subtle text toggle, not a Material switch */
.slow-toggle {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.2s;
  background: none;
}
.slow-toggle:hover {
  color: var(--ink-soft);
}
.slow-toggle.on {
  color: var(--blush);
  border-color: var(--blush-soft);
  background: rgba(239, 194, 189, 0.15);
}

.tagline {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 32ch;
  margin-left: auto;
  margin-right: auto;
}
.meta {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.meta a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.meta a:hover {
  color: var(--blush);
  border-bottom-color: var(--blush);
}
.dot { color: var(--blush); font-size: 6px; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* BLOG */
body.blog {
  padding: 80px 40px 120px;
  max-width: 720px;
  margin: 0 auto;
  display: block;
}
.blog-header {
  margin-bottom: 64px;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.blog-header a.home {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.blog-header a.home:hover {
  color: var(--blush);
  border-bottom-color: var(--blush);
}
.blog-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 40px;
  letter-spacing: -0.02em;
  margin-top: 28px;
  margin-bottom: 10px;
}
.blog-sub {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--ink-soft);
}

.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 36px;
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.post-list li a {
  display: block;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  padding-bottom: 28px;
  transition: border-color 0.2s;
}
.post-list li:last-child a { border-bottom: none; }
.post-list li a:hover .post-title { color: var(--blush); }
.post-date {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.post-title {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.post-desc {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.post-empty {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 18px;
  color: var(--ink-soft);
  text-align: center;
  padding: 40px 0;
}

/* POST PAGE */
.post-article {
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.post-article .post-date { margin-bottom: 14px; }
.post-article h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 40px;
}
.post-body {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
}
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-top: 2em;
  margin-bottom: 0.4em;
}
.post-body h3 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  margin-top: 1.6em;
  margin-bottom: 0.3em;
}
.post-body a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--blush-soft);
  transition: color 0.2s, border-color 0.2s;
}
.post-body a:hover {
  color: var(--blush);
  border-bottom-color: var(--blush);
}
.post-body blockquote {
  border-left: 2px solid var(--blush-soft);
  padding-left: 20px;
  font-style: italic;
  color: var(--ink-soft);
}
.post-body code {
  font-family: 'Geist Mono', monospace;
  font-size: 0.88em;
  background: rgba(26, 26, 26, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}
.post-body pre {
  background: rgba(26, 26, 26, 0.04);
  padding: 18px 20px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.55;
}
.post-body pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: 0.4em; }
.post-body hr {
  border: none;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
  margin: 2.5em 0;
}
.post-footer {
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
  display: flex;
  justify-content: space-between;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.post-footer a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.2);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.post-footer a:hover {
  color: var(--blush);
  border-bottom-color: var(--blush);
}

@media (max-width: 480px) {
  .bird { width: 180px; }
  .wordmark { font-size: 44px; }
  .tagline { font-size: 16px; }
  .pronounce-row { flex-direction: column; gap: 10px; }
  body.blog { padding: 56px 24px 96px; }
  .blog-title { font-size: 32px; }
  .post-article h1 { font-size: 32px; }
  .post-body { font-size: 17px; }
}
