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

:root {
  --ink: #1a1814;
  --ink-soft: #3d3830;
  --ink-faint: #7a7570;
  --paper: #faf9f7;
  --paper-warm: #f3f0eb;
  --accent: #c8a96e;
  --accent-light: #e8dcc8;
  --header-bg: rgba(250, 249, 247, 0.96);
  --max: 680px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #ede8e0;
    --ink-soft: #b8b0a5;
    --ink-faint: #6e6860;
    --paper: #13110e;
    --paper-warm: #1c1916;
    --accent: #c8a96e;
    --accent-light: #3a2e1a;
    --header-bg: rgba(19, 17, 14, 0.96);
    color-scheme: dark;
  }
}

[data-theme="dark"] {
  --ink: #ede8e0;
  --ink-soft: #b8b0a5;
  --ink-faint: #6e6860;
  --paper: #13110e;
  --paper-warm: #1c1916;
  --accent: #c8a96e;
  --accent-light: #3a2e1a;
  --header-bg: rgba(19, 17, 14, 0.96);
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s, color 0.25s;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.25s;
}
header.scrolled { border-color: var(--accent-light); }

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  text-decoration: none;
}
.logo span { color: var(--accent); }

nav { display: flex; gap: 32px; align-items: center; }
nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--ink); }

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-faint);
  padding: 4px;
  display: flex;
  align-items: center;
  margin-left: 16px;
  transition: color 0.2s;
}
.theme-toggle:hover { color: var(--ink); }
.theme-toggle svg { width: 15px; height: 15px; display: block; }

/* Light mode: show moon (click → go dark) */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

/* Dark mode: show sun (click → go light) */
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

/* ── HERO ── */
.hero {
  padding: 160px 48px 96px;
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
}

.hero-tag {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 580px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--ink-soft);
}

.hero-desc {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  max-width: 400px;
  line-height: 1.8;
  opacity: 0;
  animation: fadeUp 0.8s 0.5s forwards;
}

/* ── DIVIDER ── */
.divider {
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  padding: 0 48px;
}
.divider hr {
  border: none;
  border-top: 1px solid var(--accent-light);
}

/* ── ENTRIES ── */
.entries {
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  padding: 72px 48px 120px;
}

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

.entries-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
}

.filter-tabs { display: flex; gap: 20px; }
.filter-tab {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.filter-tab.active {
  color: var(--ink);
  border-color: var(--ink);
}
.filter-tab:hover { color: var(--ink-soft); }

/* ── ENTRY CARD ── */
.entry {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--paper-warm);
  cursor: pointer;
  opacity: 0;
  animation: fadeUp 0.6s forwards;
  transition: background 0.2s, opacity 0.3s;
  position: relative;
}

.entry:nth-child(1) { animation-delay: 0.1s; }
.entry:nth-child(2) { animation-delay: 0.2s; }
.entry:nth-child(3) { animation-delay: 0.3s; }
.entry:nth-child(4) { animation-delay: 0.4s; }
.entry:nth-child(5) { animation-delay: 0.5s; }

.entry.hidden {
  display: none;
}

.entry-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  color: var(--ink-faint);
  padding-top: 4px;
  letter-spacing: 0.05em;
}

.entry-body {}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.entry-tag {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
}

.entry-date {
  font-size: 0.75rem;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

.entry h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.entry:hover h3 { color: var(--ink-soft); }

.entry p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 520px;
}

.entry-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.2s, gap 0.2s;
}
.entry:hover .entry-read {
  color: var(--ink);
  gap: 12px;
}
.entry-read::after { content: '→'; }

/* ── FEATURED (first entry) ── */
.entry.featured {
  grid-template-columns: 1fr;
  padding: 48px 0 48px;
  border-bottom: 1px solid var(--accent-light);
}
.entry.featured .entry-number { display: none; }
.entry.featured h3 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  max-width: 560px;
}
.entry.featured p { font-size: 0.95rem; max-width: 480px; }

/* ── QUOTE ENTRY ── */
.entry.quote h3 {
  font-style: italic;
  font-size: 1.35rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.entry.quote p {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
}

/* ── ENTRY PAGE ── */
.entry-page-hero {
  padding: 140px 48px 64px;
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
}

.entry-page-hero .hero-tag {
  animation: none;
  opacity: 1;
}

.entry-page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 600px;
  margin-top: 16px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}

.entry-page-hero h1.question-title {
  font-style: italic;
  color: var(--ink-soft);
}

.entry-content {
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  padding: 48px 48px 80px;
}

.entry-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
  max-width: var(--max);
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.entry-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--ink);
  margin: 2em 0 0.6em;
  max-width: var(--max);
}

.entry-content blockquote {
  border-left: 2px solid var(--accent-light);
  margin: 2em 0;
  padding: 0 0 0 24px;
  font-style: italic;
  color: var(--ink-soft);
  max-width: var(--max);
}

/* Question entry: large centered question */
.entry-content.question-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.entry-content.question-style .big-question {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.3;
  color: var(--ink);
  max-width: 560px;
  margin: 16px auto 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.entry-content.question-style p {
  text-align: center;
  max-width: 480px;
}

.entry-nav {
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  padding: 32px 48px 48px;
  border-top: 1px solid var(--accent-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-link {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }

.entry-nav-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
}

/* ── ABOUT CREDENTIALS ── */
.about-credentials {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.05rem;
  color: var(--ink-faint);
  margin-top: 12px;
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fadeUp 0.8s 0.45s forwards;
}

/* ── ABOUT PAGE ── */
.about-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 48px 80px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%) contrast(1.08) brightness(1.04);
  margin-bottom: 40px;
}

.about-text-col p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
  max-width: var(--max);
  opacity: 0;
  animation: fadeUp 0.8s 0.35s forwards;
}

.about-text-col p:nth-child(2) { animation-delay: 0.5s; }
.about-text-col p:nth-child(3) { animation-delay: 0.6s; }
.about-text-col p:nth-child(4) { animation-delay: 0.7s; }
.about-text-col p:nth-child(5) { animation-delay: 0.8s; }

@media (max-width: 600px) {
  .about-layout {
    padding: 40px 24px 64px;
  }

}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--accent-light);
  padding: 48px;
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink-soft);
}

.footer-cta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s, letter-spacing 0.2s;
  justify-self: end;
}
.footer-cta:hover { color: var(--ink); letter-spacing: 0.16em; }

.footer-signature {
  height: 56px;
  width: auto;
  opacity: 0.8;
  display: block;
  justify-self: center;
}
[data-theme="dark"] .footer-signature {
  filter: invert(1);
  opacity: 0.9;
}

.about-signature {
  display: block;
  height: 64px;
  width: auto;
  margin-top: 2rem;
  opacity: 0.75;
}
[data-theme="dark"] .about-signature {
  filter: invert(1);
  opacity: 0.85;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BREATHING ── */
@keyframes warmth {
  0%, 100% { opacity: 0; }
  50%       { opacity: 1; }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(200, 140, 60, 0.04);
  pointer-events: none;
  z-index: 9999;
  animation: warmth 10s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

/* ── ENTRY PROMPTS ── */
.entry-prompts {
  max-width: calc(var(--max) + 96px);
  margin: 0 auto;
  padding: 0 48px 56px;
  border-top: 1px solid var(--paper-warm);
}

.entry-prompts-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding-top: 40px;
  margin-bottom: 28px;
}

.entry-prompts ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}

.entry-prompts li {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  padding: 1.1em 0;
  border-bottom: 1px solid var(--paper-warm);
  max-width: var(--max);
}

.entry-prompts li:last-child {
  border-bottom: none;
}

.entry-prompts-footer {
  font-size: 0.88rem;
  color: var(--ink-faint);
  line-height: 1.7;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  header { padding: 0 24px; }
  nav { gap: 20px; }
  .hero { padding: 120px 24px 72px; }
  .divider { padding: 0 24px; }
  .entries { padding: 56px 24px 80px; }
  footer { padding: 40px 24px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
  .filter-tabs { display: none; }
  .entry { grid-template-columns: 1fr; }
  .entry-number { display: none; }
  .entry-page-hero { padding: 110px 24px 48px; }
  .entry-content { padding: 32px 24px 64px; }
  .entry-prompts { padding: 0 24px 40px; }
  .entry-nav { padding: 24px; }
}
