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

:root {
  --bg: #f5f4f0;
  --text: #1a1a1a;
  --muted: #888;
  --max-width: 720px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  line-height: 1.8;
  cursor: none;
}

/* ─── NAV ─────────────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  right: 0;
  padding: 24px 32px;
  z-index: 100;
}

.nav__toggle,
.nav__work-toggle {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  background: none;
  border: none;
  cursor: none;
  line-height: 1;
  padding: 0;
  position: relative;
  transition: opacity 0.3s ease;
}

.nav__toggle::after,
.nav__work-toggle::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

.nav__toggle:hover,
.nav__work-toggle:hover {
  opacity: 0.5;
}

.nav__toggle:hover::after,
.nav__work-toggle:hover::after {
  width: 100%;
}

/* WORK DROPDOWN */

.nav__work {
  position: fixed;
  top: 24px;
  left: 32px;
  z-index: 100;
}

.nav__work-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s linear;
  padding: 0;
  margin-top: 12px;
}

.nav__work-links.is-open {
  max-height: 80px;
  padding-bottom: 4px;
}

.nav__work-links li a {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  cursor: none;
  position: relative;
  display: inline-block;
  opacity: 0;
  transform: translateY(-6px);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: letter-spacing 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav__work-links.is-open li a {
  opacity: 1;
  transform: translateY(0);
}

.nav__work-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

.nav__work-links li a:hover {
  letter-spacing: 0.02em;
  opacity: 1;
}

.nav__work-links li a:hover::after {
  width: 100%;
}

.nav__work-links.is-open li:nth-child(1) a { transition-delay: 0.1s; }
.nav__work-links.is-open li:nth-child(2) a { transition-delay: 0.2s; }
.nav__work-links li:nth-child(1) a { transition-delay: 0.2s; }
.nav__work-links li:nth-child(2) a { transition-delay: 0.1s; }

/* MENU DROPDOWN */

.nav__links {
  list-style: none;
  background: transparent;
  position: absolute;
  right: 0;
  top: 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 0;
  overflow: hidden;
  text-align: right;
  padding: 0 32px;
  transition: max-height 0.4s linear;
}

.nav__links.is-open {
  max-height: 200px;
}

.nav__links li a {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  cursor: none;
  position: relative;
  opacity: 0;
  white-space: nowrap;
  transform: translateY(-6px);
  transition: letter-spacing 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav__links.is-open li a {
  opacity: 1;
  transform: translateY(0);
}

.nav__links li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--text);
  transition: width 0.3s ease;
}

.nav__links li a:hover {
  letter-spacing: 0.02em;
  opacity: 1;
}

.nav__links li a:hover::after {
  width: 100%;
}

/* stagger open */
.nav__links.is-open li:nth-child(1) a { transition-delay: 0.1s; }
.nav__links.is-open li:nth-child(2) a { transition-delay: 0.2s; }
.nav__links.is-open li:nth-child(3) a { transition-delay: 0.3s; }
.nav__links.is-open li:nth-child(4) a { transition-delay: 0.4s; }

/* stagger close */
.nav__links li:nth-child(1) a { transition-delay: 0.4s; }
.nav__links li:nth-child(2) a { transition-delay: 0.3s; }
.nav__links li:nth-child(3) a { transition-delay: 0.2s; }
.nav__links li:nth-child(4) a { transition-delay: 0.1s; }

/* ─── ARTICLE ─────────────────────────────────── */

article {
  max-width: var(--max-width);
  margin: 80px auto;
  padding: 0 24px 120px;
  animation: fadeUp 0.7s ease both;
}

.back-link {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  color: var(--muted);
  margin-bottom: 56px;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.back-link::before {
  content: '← ';
}

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

.entry-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 28px;
}

.entry-meta {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.entry-meta .divider {
  width: 1px;
  height: 12px;
  background: var(--muted);
  display: inline-block;
}

/* ─── HERO IMAGE ──────────────────────────────── */

.hero-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 56px;
  display: block;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #c9c4b8 0%, #a09890 100%);
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ─── BODY TEXT ───────────────────────────────── */

.entry-body {
  font-size: 1.05rem;
  line-height: 1.9;
}

.entry-body blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 36px;
}

.entry-body blockquote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-top: 10px;
}

.entry-body p {
  margin-bottom: 28px;
}

.entry-body em {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
}

.entry-body .drop-cap::first-letter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 4.5rem;
  line-height: 0.75;
  float: left;
  margin-right: 10px;
  margin-top: 8px;
  font-weight: 300;
}

hr.section-break {
  border: none;
  border-top: 1px solid #ccc;
  margin: 48px 0;
}

/* ─── FOOTER ──────────────────────────────────── */

footer {
  border-top: 1px solid #ddd;
  padding: 40px 48px;
  display: flex;
  justify-content: center;
}

footer a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: none;
  color: var(--muted);
  transition: color 0.2s;
}

footer a:hover {
  color: var(--text);
}

/* ─── CURSOR ──────────────────────────────────── */

.cursor {
  position: fixed;
  width: 12px;
  height: 12px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  transition: transform 0.1s ease;
}

/* ─── ANIMATION ───────────────────────────────── */

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