/* Victoria Wong — shared styles for every page */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --accent: #3A7D44;
  --side: 300px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font-family: "Inter", system-ui, sans-serif; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

/* ---------- Sidebar ---------- */
.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side);
  padding: 44px 36px; display: flex; flex-direction: column;
  background: var(--bg); z-index: 10;
}
.brand {
  font-family: "Archivo", sans-serif; font-weight: 800;
  font-size: 26px; line-height: 1; letter-spacing: .02em; text-transform: uppercase;
}
.tagline { margin: 10px 0 40px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.menu-toggle { display: none; }
nav ul { list-style: none; margin: 0; padding: 0; }
nav li { margin: 0 0 9px; }
nav a {
  font-family: "Archivo", sans-serif; font-size: 14px; letter-spacing: .01em;
  color: var(--muted); transition: color .15s;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }
nav a[aria-current="page"] { font-weight: 500; }
nav .sep { height: 1px; background: var(--line); margin: 18px 0; width: 40px; }
.social { margin-top: auto; display: flex; gap: 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.social a { color: var(--muted); }
.social a:hover { color: var(--ink); }

/* ---------- Intro song ---------- */
#ytHolder { position: fixed; width: 1px; height: 1px; left: -10px; bottom: 0; opacity: 0; pointer-events: none; }
.song {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; border: 0; border-radius: 999px;
  padding: 9px 16px 9px 12px; cursor: pointer;
  font: 500 12px/1.2 "Inter", sans-serif; letter-spacing: .02em;
  box-shadow: 0 6px 24px rgba(0,0,0,.15);
  transition: opacity .6s ease, transform .6s ease;
}
.song.gone { opacity: 0; transform: translateY(8px); pointer-events: none; }
.song .bars { display: flex; gap: 2px; align-items: flex-end; height: 12px; width: 14px; }
.song .bars i { display: block; width: 2px; height: 4px; background: #fff; border-radius: 1px; }
.song.playing .bars i { animation: eq .9s ease-in-out infinite; }
.song.playing .bars i:nth-child(2) { animation-delay: .2s; }
.song.playing .bars i:nth-child(3) { animation-delay: .4s; }
.song.playing .bars i:nth-child(4) { animation-delay: .1s; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }
.song .hint { color: rgba(255,255,255,.6); }
.song .track { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .song.playing .bars i { animation: none; height: 8px; } }

/* ---------- Main ---------- */
main { margin-left: var(--side); min-height: 100vh; padding: 44px 44px 80px 0; }
.view { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Plate = image frame. Shows images/<slug>.jpg if present, else a tonal placeholder. */
.plate {
  position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden;
  background: var(--tone, #d9d4cc);
}
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.plate .ph {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 28px 32px; color: rgba(255,255,255,.92);
  font-family: "Archivo", sans-serif; text-transform: uppercase;
}
.plate .ph b { font-weight: 800; font-size: clamp(28px, 5vw, 64px); line-height: .95; max-width: 75%; }
.plate .ph span { font-size: 12px; letter-spacing: .14em; }
  .home .quote {
  margin: 0; height: calc(100vh - 88px); min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 28px 32px;
  background: var(--tone, #3A7D44);
}
.home blockquote {
  margin: 0; max-width: 18ch; text-wrap: balance;
  font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(28px, 5vw, 64px); line-height: .98; letter-spacing: .005em; color: rgba(255,255,255,.95);
}
.home blockquote::before { content: none; }
.home blockquote::after { content: none; }
.home figcaption { margin-top: 18px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }

.proj-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin: 36px 0 18px; flex-wrap: wrap; }
.proj-head h1 {
  margin: 0; font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.05; letter-spacing: .01em;
}
.meta { color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.body { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 48px; }
.body p { margin: 0 0 16px; }
.facts { font-size: 13px; }
.facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; margin-top: 14px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: 2px 0 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.cta { display: inline-block; margin-top: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 2px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
a.inline { border-bottom: 1px solid var(--accent); color: var(--accent); overflow-wrap: anywhere; }
a.inline:hover { color: var(--ink); border-color: var(--ink); }
.cta:hover { color: var(--accent); border-color: var(--accent); }

.pager { display: flex; justify-content: space-between; margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.pager a { color: var(--muted); } .pager a:hover { color: var(--ink); }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 560px); gap: 56px; align-items: start; }
.about .plate { aspect-ratio: 4 / 5; }
.about h1 { font-family: "Archivo", sans-serif; font-weight: 800; text-transform: uppercase; font-size: 32px; margin: 0 0 20px; }
.about h2 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 32px 0 8px; }
.about ul { margin: 0; padding-left: 18px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .side { position: sticky; top: 0; width: 100%; height: auto; padding: 18px 16px; border-bottom: 1px solid var(--line); }
  .side-top { display: flex; justify-content: space-between; align-items: center; }
  .brand { font-size: 20px; }
  .tagline { display: none; }
  .menu-toggle {
    display: block; background: none; border: 0; padding: 4px 0; cursor: pointer;
    font-family: "Archivo", sans-serif; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
  }
  nav { display: none; padding: 22px 0 6px; }
  .side.open nav { display: block; }
  nav a { font-size: 17px; }
  nav li { margin-bottom: 12px; }
  .social { display: none; margin-top: 18px; }
  .side.open .social { display: flex; }
  main { margin-left: 0; padding: 16px 16px 60px; }
  .home .quote { height: 72vh; min-height: 0; padding: 18px; }
  .body, .about { grid-template-columns: 1fr; gap: 28px; }
  .about .plate { max-width: 180px; }
  .about .plate .ph { flex-direction: row; align-items: center; justify-content: center; padding: 0; }
  .plate .ph { padding: 18px; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 6px; }
}

/* Static pages: the brand and pager are plain links */
.brand { color: var(--ink); }
.plate img { display: block; }

/* Home image: fills the box edge to edge */
.home .quote.cover { position: relative; overflow: hidden; padding: 0; }
.home .quote.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
