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

/* ── Tokens ── */
:root {
  --bg:           #EFEFEB;
  --bg-subtle:    #E6E6E1;
  --fg:           #1C1C1A;
  --fg-muted:     #6B6B65;
  --accent:       #8A7968;
  --accent-light: rgba(138,121,104,0.12);
  --border:       #D4D4CE;
  --sidebar-w:    30vw;
  --radius:       4px;
  --transition:   0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #1A1A18;
    --bg-subtle:    #222220;
    --fg:           #E8E8E2;
    --fg-muted:     #8A8A82;
    --accent:       #B0A090;
    --accent-light: rgba(176,160,144,0.10);
    --border:       #2E2E2C;
  }
}

/* ── Base ── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════
   HOME
══════════════════════════════════════ */
.home-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: 48px 32px;
}

.home-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.home-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 380px;
}

.home-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  transition: color var(--transition), padding-left var(--transition);
  color: var(--fg-muted);
}

.home-link-item:hover {
  color: var(--fg);
  padding-left: 6px;
}

.home-link-label {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
}

.home-link-arrow {
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition);
}

.home-link-item:hover .home-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════
   INNER LAYOUT
══════════════════════════════════════ */
.inner-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 48px 36px 48px 24px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
  background: var(--bg);
  z-index: 100;
}

.sidebar-home {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-align: left;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  align-items: flex-start;
}

.sidebar-nav a {
  font-size: 0.75rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--fg-muted);
  position: relative;
  padding-left: 0;
}

.sidebar-nav a.active { color: var(--fg); }

.sidebar-nav a.active::before {
  content: '—';
  position: absolute;
  left: calc(100% + 8px);
  right: auto;
  color: var(--accent);
  font-size: 0.65rem;
  top: 2px;
}

/* ── Sidebar dropdown ── */
.sidebar-dropdown { position: relative; }

.sidebar-submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease, opacity 0.22s ease;
  opacity: 0;
  padding-left: 12px;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar-dropdown:hover .sidebar-submenu,
.sidebar-dropdown:focus-within .sidebar-submenu {
  max-height: 200px;
  opacity: 1;
  margin-top: 10px;
}

.sidebar-submenu li { margin-bottom: 10px; }

.sidebar-submenu a {
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ── Main content ── */
.inner-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 48px 64px 120px 40px;
}

.inner-content > * {
  width: 100%;
  max-width: 600px;
}

/* ── Section headings ── */
.section-eyebrow {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--fg);
  margin-bottom: 32px;
  line-height: 1.05;
}

.section-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.section-intro {
  color: var(--fg-muted);
  font-size: 0.95rem;
  max-width: 520px;
  margin-bottom: 48px;
  line-height: 1.75;
}

/* ── Divider ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about-bio {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--fg);
  margin-bottom: 0;
  max-width: 340px;
}

/* ── About layout: text left, collage right ── */
.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
  max-width: none;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 160px 160px 220px;
  gap: 6px;
  width: 100%;
  max-width: 560px;
}

.collage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.collage-cell-headshot { grid-column: 1; grid-row: 1 / 3; }
.collage-cell-headshot .collage-img { height: 100%; }
.collage-cell-top { grid-column: 2; grid-row: 1; }
.collage-cell-top .collage-img { height: 100%; object-position: center top; }
.collage-cell-bottom { grid-column: 2; grid-row: 2; }
.collage-cell-bottom .collage-img { height: 100%; }
.collage-cell-wide { grid-column: 1 / 3; grid-row: 3; }
.collage-cell-wide .collage-img { height: 100%; object-position: center 40%; }

.collage-hover-wrap { position: relative; }

.collage-hover-label {
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 20;
}

.collage-hover-wrap:hover .collage-hover-label { opacity: 1; }

.collage-hover-line {
  display: block;
  width: 0;
  height: 1px;
  background: var(--fg-muted);
  transition: width 0.35s ease;
  position: relative;
}

.collage-hover-line::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg-muted);
}

.collage-hover-wrap:hover .collage-hover-line { width: 24px; }

.collage-hover-text {
  font-size: 0.7rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease 0.2s, transform 0.25s ease 0.2s;
  margin-left: 8px;
}

.collage-hover-wrap:hover .collage-hover-text {
  opacity: 1;
  transform: translateX(0);
}

.connect-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
}

.connect-link {
  font-size: 0.88rem;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
}

.connect-link:hover { color: var(--fg); border-color: var(--fg); }

.connect-linkedin {
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}

.connect-linkedin:hover { color: var(--fg); }

/* ══════════════════════════════════════
   WRITING
══════════════════════════════════════ */
.writing-list { list-style: none; max-width: 600px; }

.writing-item { border-top: none; }
.writing-item:last-child { border-bottom: none; }

.writing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
}

.writing-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.08rem;
}

.writing-toggle {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.writing-embed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.writing-embed.open { max-height: 1100px; }

.writing-embed iframe {
  width: 100%;
  height: 1000px;
  border: none;
  border-radius: var(--radius);
  margin-bottom: 24px;
}

/* ══════════════════════════════════════
   PROJECTS
══════════════════════════════════════ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
  max-width: 600px;
}

.project-card {
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
}

.project-type {
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.project-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1rem;
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.project-link {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

/* ── Poster block ── */
.poster-section { margin-top: 8px; max-width: 600px; }

.poster-block {
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.poster-block:hover { border-color: var(--accent); }

.poster-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: opacity var(--transition);
  cursor: zoom-in;
}

.poster-img:hover { opacity: 0.9; }

/* ══════════════════════════════════════
   OTHER (hub)
══════════════════════════════════════ */
.other-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 8px;
  max-width: 400px;
}

.other-card {
  border: none;
  border-radius: 0;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color var(--transition), padding-left var(--transition);
  color: var(--fg-muted);
  background: transparent;
}

.other-card:last-child { border-bottom: none; }

.other-card:hover {
  color: var(--fg);
  padding-left: 6px;
}

.other-card-label {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.1rem;
}

.other-card-arrow {
  font-size: 0.9rem;
  transition: transform var(--transition);
}

.other-card:hover .other-card-arrow { transform: translateX(3px); }

/* ══════════════════════════════════════
   IMAGE GRID (shows / books)
══════════════════════════════════════ */
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 600px;
}

.img-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.img-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--border);
  transition: opacity var(--transition);
}

.img-card:hover img { opacity: 0.88; }

.img-card-label {
  font-size: 0.68rem;
  color: var(--fg-muted);
  text-align: center;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* ══════════════════════════════════════
   FRAGRANCES
══════════════════════════════════════ */
.frag-list { list-style: none; width: 100%; max-width: 400px; }

.frag-item {
  padding: 14px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  transition: color var(--transition);
}

.frag-item:first-child { border-top: none; }
.frag-item:hover { color: var(--accent); }

.frag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity var(--transition);
}

.frag-item:hover .frag-dot { opacity: 1; }

/* ══════════════════════════════════════
   COPY BUTTON
══════════════════════════════════════ */
.copy-btn-wrap { margin-bottom: 28px; }

.copy-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 7px 16px;
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fg-muted);
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.copy-btn:hover { color: var(--fg); border-color: var(--fg); }
.copy-btn.copied { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* ══════════════════════════════════════
   SHOWS (no hover animations)
══════════════════════════════════════ */
.shows-page .img-card:hover img { opacity: 1; }
.shows-page .frag-item:hover { color: var(--fg); }
.shows-page .frag-item:hover .frag-dot { opacity: 0; }
.shows-page .copy-btn:hover { color: var(--fg-muted); border-color: var(--border); }
.shows-page .copy-btn.copied:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* ══════════════════════════════════════
   FRAGRANCES (no hover animations)
══════════════════════════════════════ */
.fragrances-page .frag-item:hover { color: var(--fg); }
.fragrances-page .frag-item:hover .frag-dot { opacity: 0; }
.fragrances-page .copy-btn:hover { color: var(--fg-muted); border-color: var(--border); }
.fragrances-page .copy-btn.copied:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  text-align: center;
  padding: 32px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════
   MOBILE HAMBURGER NAV
══════════════════════════════════════ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 52px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 200;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.mobile-header-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.3;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  color: var(--fg);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 190;
  flex-direction: column;
  padding: 32px 24px;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav-item {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--fg-muted);
}

.mobile-nav-item:first-child { border-top: 1px solid var(--border); }

.mobile-nav-sub {
  padding: 10px 0 10px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-sub a {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* ══════════════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 200px; }
  .inner-content { padding: 48px 40px 100px 36px; }
  .about-layout { grid-template-columns: 240px 1fr; gap: 36px; }
  .collage { max-width: 440px; }
}

/* ══════════════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════════════ */
@media (max-width: 660px) {
  .mobile-header { display: flex; }
  .mobile-nav { display: flex; }
  .sidebar { display: none; }
  .inner-layout { display: block; }

  .inner-content {
    margin-left: 0;
    padding: 80px 20px 80px;
  }

  .inner-content > * { max-width: 100%; }

  .home-name { font-size: clamp(2.4rem, 11vw, 3.5rem); margin-bottom: 40px; }
  .home-links { max-width: 100%; }

  .about-layout { grid-template-columns: 1fr; gap: 24px; }
  .about-bio { max-width: 100%; }
  .collage { max-width: 100%; grid-template-columns: 1fr 1fr; grid-template-rows: 130px 130px 180px; }
  .collage-cell-wide .collage-img { height: 100%; }

  .img-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 100%; }
  .projects-grid { grid-template-columns: 1fr; max-width: 100%; }
  .poster-section { max-width: 100%; }
  .other-grid { max-width: 100%; }
  .writing-header { flex-direction: column; align-items: flex-start; gap: 6px; }
}
