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

:root {
  --bg: #f2f1ef;
  --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;
}

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

/* ─── NAV  (split row, centered brand) ───────────── */

nav.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background-color: var(--bg);
}

.nav__brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3530;
  text-decoration: none;
  white-space: nowrap;
  cursor: none;
  transition: opacity 0.3s ease;
}

.nav__brand:hover { opacity: 0.6; }

.nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  column-gap: 24px;
}

.nav__list a {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #3d3530;
  text-decoration: none;
  cursor: none;
  position: relative;
  display: inline-block;
  padding-bottom: 3px;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

.nav__list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #3d3530;
  transition: width 0.3s ease;
}

.nav__list a:hover { opacity: 0.5; }
.nav__list a:hover::after { width: 100%; }

/* PROJECTS DROPDOWN (Client / Personal, staggered reveal) */
.nav__item--dropdown {
  position: relative;
}

.nav__submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 10px;
  margin-top: 0;
  padding: 20px 22px 16px;
  background-color: var(--bg);
  opacity: 0;
  pointer-events: none;
  /* closing: stay visible until the staggered links finish lifting back up, then fade */
  transition: opacity 0.25s ease 0.4s;
  z-index: 10;
}

.nav__submenu a {
  font-size: 10px;
}

.nav__item--dropdown:hover .nav__submenu,
.nav__item--dropdown.is-open .nav__submenu {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;   /* opening: appear instantly so the links can stagger in */
}

.nav__submenu li {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.nav__item--dropdown:hover .nav__submenu li,
.nav__item--dropdown.is-open .nav__submenu li {
  opacity: 1;
  transform: translateY(0);
}

/* closing (default state): reverse order — last item lifts back up first */
.nav__submenu li:nth-child(1) { transition-delay: 0.15s; }
.nav__submenu li:nth-child(2) { transition-delay: 0.05s; }

/* opening: original order — Client first, Personal second */
.nav__item--dropdown:hover .nav__submenu li:nth-child(1),
.nav__item--dropdown.is-open .nav__submenu li:nth-child(1) { transition-delay: 0.05s; }
.nav__item--dropdown:hover .nav__submenu li:nth-child(2),
.nav__item--dropdown.is-open .nav__submenu li:nth-child(2) { transition-delay: 0.15s; }

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

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

.medium-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  cursor: none;
  transition: color 0.2s;
}

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

.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: 'Fraunces', 'Times New Roman', Times, serif;
  font-optical-sizing: auto;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 200;
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 28px;
  color: #4a4540;
}

.entry-meta {
  font-family: 'IBM Plex Mono', monospace;
  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: 'Roboto Mono', monospace;
  font-style: normal;
  font-size: 0.75rem;
  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 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  margin-bottom: 28px;
}

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

.entry-body .drop-cap::first-letter {
  font-family: 'Fraunces', 'Times New Roman', Times, serif;
  font-optical-sizing: auto;
  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;
}

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

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

/* ─── RESPONSIVE ──────────────────────────────── */

@media (max-width: 768px) {
  nav.nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    padding: 14px 16px;
  }

  .nav__brand {
    position: static;
    transform: none;
    order: -1;
    flex-basis: 100%;
    text-align: center;
    font-size: 18px;
    letter-spacing: 0.12em;
  }

  .nav__list { column-gap: 16px; }

  /* Projects dropdown on mobile — same seamless, staggered panel as desktop,
     just resized for touch and narrower screens */
  .nav__submenu {
    padding: 16px 18px 14px;
    row-gap: 12px;
  }

  .nav__submenu a {
    font-size: 11px;
    padding: 4px 2px;
  }

  article {
    margin-top: 120px;
    margin-bottom: 60px;
    padding: 0 20px 80px;
  }

  .cursor {
    display: none;
  }

  .entry-meta {
    font-size: 0.6rem;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .entry-meta span,
  .entry-meta a {
    white-space: nowrap;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
  }
}