:root {
  --bg: #f4f1ec;
  --ink: #1a1714;
  --ink-soft: #5a544c;
  --rule: #d9d3c8;
  --accent: oklch(0.55 0.08 60);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: clamp(2rem, 6vw, 4.5rem);
}
.topbar {
  max-width: 44rem; width: 100%; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 2rem; padding-bottom: 4rem;
}
.topbar .name {
  font-family: "Cormorant Garamond", serif; font-weight: 300;
  font-size: 1.25rem; margin: 0;
}
.topbar .name a { color: inherit; text-decoration: none; }
.topbar .name .dot { color: var(--accent); }
.topbar .nav-link {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none;
  transition: color 0.4s ease;
}
.topbar .nav-link:hover { color: var(--accent); }

main.piece-page {
  max-width: 38rem; width: 100%; margin: 0 auto;
}
.piece-meta {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 1.25rem 0;
}
.piece-meta .num {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  letter-spacing: 0.02em; text-transform: none;
  margin-right: 0.5rem;
}
h1.piece-title {
  font-family: "Cormorant Garamond", serif; font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1;
  letter-spacing: -0.01em; margin: 0 0 0.65rem 0;
}
.piece-deck {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-weight: 300;
  font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.45;
  color: var(--ink-soft); margin: 0 0 2.75rem 0;
  max-width: 32rem;
}
.piece-byline {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 0; margin: 0 0 3rem 0;
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.piece-byline .label {
  color: var(--ink-soft); margin-right: 0.5rem;
}
.piece-byline .value {
  color: var(--ink); font-style: normal;
}
article.piece-body {
  font-size: 1.0625rem; line-height: 1.75; color: var(--ink);
  max-width: 34rem;
}
article.piece-body p {
  margin: 0 0 1.4rem 0;
  text-wrap: pretty;
}
article.piece-body p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", serif; font-weight: 300;
  font-size: 3.6em; line-height: 0.9;
  float: left; padding: 0.35rem 0.65rem 0 0;
  color: var(--ink);
}
article.piece-body blockquote {
  margin: 2.25rem 0 2.25rem 0;
  padding: 0;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 32rem;
  border: none;
}
article.piece-body em.lyric {
  display: block;
  font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 300;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 32rem;
  margin: 2.25rem 0 2.25rem 0;
  padding-left: 1.25rem;
  border-left: 1px solid var(--rule);
}
article.piece-body hr {
  border: none; border-top: 1px solid var(--rule);
  width: 4rem; margin: 2.5rem auto;
}

/* Magazine tearsheets + figures */
.piece-hero {
  max-width: 38rem; width: 100%; margin: 0 auto 3rem auto;
}
.piece-hero img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 12px 40px -12px rgba(0,0,0,0.18);
}
.piece-hero .caption {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.piece-hero .caption em {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  text-transform: none; letter-spacing: 0.01em; font-size: 0.95rem;
  color: var(--ink-soft);
}

article.piece-body figure.tearsheet {
  margin: 2.75rem 0;
  width: 100%;
  max-width: 34rem;
}
article.piece-body figure.tearsheet img {
  display: block; width: 100%; height: auto;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 18px 48px -16px rgba(0,0,0,0.22);
}
article.piece-body figure.tearsheet figcaption {
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.85rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
article.piece-body figure.tearsheet figcaption em {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  text-transform: none; letter-spacing: 0.01em; font-size: 0.95rem;
  color: var(--ink-soft);
}

@media (max-width: 720px) {
  article.piece-body figure.tearsheet {
    width: 100%;
    margin-left: 0;
    transform: none;
  }
}
.piece-foot {
  max-width: 38rem; width: 100%; margin: 4rem auto 0 auto;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
  display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.piece-foot a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 1px;
  transition: border-color 0.4s ease, color 0.4s ease;
}
.piece-foot a:hover { color: var(--accent); border-color: var(--accent); }

footer.global {
  max-width: 38rem; width: 100%; margin: 0 auto;
  padding-top: 5rem;
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 2rem;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
footer.global a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--rule); padding-bottom: 1px;
  transition: border-color 0.4s ease, color 0.4s ease;
}
footer.global a:hover { border-color: var(--accent); color: var(--accent); }

.reveal {
  opacity: 0; transform: translateY(8px);
  animation: rise 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.reveal.d1 { animation-delay: 0.05s; }
.reveal.d2 { animation-delay: 0.18s; }
.reveal.d3 { animation-delay: 0.32s; }
.reveal.d4 { animation-delay: 0.50s; }
.reveal.d5 { animation-delay: 0.85s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
}

@media (max-width: 720px) {
  body { padding: clamp(1.5rem, 5vw, 2.5rem); }
  .topbar { padding-bottom: 2.5rem; }
  article.piece-body { font-size: 1rem; }
  h1.piece-title { font-size: 2.4rem; }
  .piece-deck { margin-bottom: 2rem; }

  .piece-byline {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.95rem 0;
    margin-bottom: 2.25rem;
  }
  .piece-byline > span {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
  }

  article.piece-body p:first-of-type::first-letter {
    font-size: 3.2em;
    padding: 0.3rem 0.5rem 0 0;
  }
  article.piece-body blockquote {
    margin: 1.75rem 0;
    font-size: 1.3rem;
  }
  article.piece-body em.lyric {
    margin: 1.75rem 0;
    font-size: 1.3rem;
  }

  article.piece-body figure.tearsheet {
    width: 100%;
    margin: 2rem 0;
    transform: none;
  }

  .piece-foot {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 3rem;
    padding-top: 1.5rem;
  }

  footer.global {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding-top: 4rem;
  }
}
@media (hover: none) {
  .topbar .nav-link:hover { color: var(--ink-soft); }
  .piece-foot a:hover, footer.global a:hover {
    color: var(--ink); border-color: var(--rule);
  }
}
