/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --ink:       #1c1917;
  --ink-soft:  #352f2b;
  --warm-bg:   #f5f0e8;
  --cream:     #ebe4d6;
  --parchment: #e0d7c6;
  --slate:     #6b5e52;
  --rust:      #b45a2b;
  --teal:      #2a6163;
  --golden:    #c89548;

  --serif: 'Libre Baskerville', Georgia, serif;
  --sans:  'IBM Plex Sans', sans-serif;
  --mono:  'IBM Plex Mono', monospace;
}

/* ── Reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--warm-bg);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); }
img { display: block; max-width: 100%; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(245,240,232,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-name {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  text-decoration: none;
  color: var(--slate);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--rust);
  transition: width 0.25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── Layout helpers ─────────────────────────────────────────────────────── */
.container { max-width: 740px; margin: 0 auto; }
section { padding: 4rem 2rem; }
.section-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.page-top { padding-top: 5rem; }
.bg-cream { background: var(--cream); }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--warm-bg);
  padding: 3.5rem 2rem 1.5rem;
}
.site-footer .container { }
.site-footer .section-label { color: var(--golden); }
.footer-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--warm-bg);
  margin-bottom: 0.8rem;
}
.footer-body {
  color: rgba(245,240,232,0.6);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.footer-links a {
  color: var(--warm-bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(245,240,232,0.25);
  transition: border-color 0.2s;
}
.footer-links a:hover { border-color: var(--golden); }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.2rem;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(245,240,232,0.3);
}

/* ── Homepage ───────────────────────────────────────────────────────────── */
.home-header {
  padding: 6rem 2rem 3rem;
  max-width: 740px;
  margin: 0 auto;
}
.home-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.home-intro {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.72;
  max-width: 560px;
}
.home-intro a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.home-intro a:hover { border-bottom-color: var(--teal); }

/* Photo used as portrait in header area */
.home-portrait {
  width: 140px;
  height: 140px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 40%;
  float: right;
  margin: 0 0 1.5rem 2rem;
  shape-outside: margin-box;
}

/* Skyline banner — full-width strip */
.skyline-banner {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.skyline-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.skyline-banner::before,
.skyline-banner::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 40px;
  z-index: 2;
  pointer-events: none;
}
.skyline-banner::before {
  top: 0;
  background: linear-gradient(to bottom, var(--warm-bg), transparent);
}
.skyline-banner::after {
  bottom: 0;
  background: linear-gradient(to top, var(--warm-bg), transparent);
}

/* About body */
.about-body p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 1rem;
}
.about-body p:last-child { margin-bottom: 0; }
.about-body a { color: var(--teal); }

/* Focus tags */
.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.8rem;
}
.focus-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--parchment);
  border-radius: 2px;
  color: var(--slate);
}

/* ── Policy page ────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 1.5rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0.4rem; bottom: 0;
  width: 2px;
  background: var(--parchment);
}
.timeline-entry {
  position: relative;
  margin-bottom: 1.8rem;
}
.timeline-entry:last-child { margin-bottom: 0; }
.timeline-entry::before {
  content: '';
  position: absolute;
  left: -1.5rem; top: 0.5rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rust);
  border: 2px solid var(--cream);
}
.timeline-entry.on-light::before { border-color: var(--warm-bg); }
.timeline-role {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.1rem;
}
.timeline-org { color: var(--teal); font-weight: 600; }
.timeline-org a { color: inherit; text-decoration: none; }
.timeline-org a:hover { text-decoration: underline; }
.timeline-meta {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--slate);
  margin-bottom: 0.35rem;
}
.timeline-desc {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.6;
}
.timeline-desc a { color: var(--teal); }

.resume-heading {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
  margin-top: 2.2rem;
}
.resume-heading:first-child { margin-top: 0; }

.resume-download { margin-top: 2rem; }
.resume-download a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--rust);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.resume-download a:hover { border-color: var(--rust); }

.work-item {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--parchment);
}
.work-item:last-child { border-bottom: none; padding-bottom: 0; }
.work-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.work-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.work-title a:hover { color: var(--rust); }
.work-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.work-desc { font-size: 0.88rem; color: var(--slate); line-height: 1.55; }

.civic-item { margin-bottom: 1rem; }
.civic-role { font-family: var(--serif); font-size: 0.95rem; }
.civic-role a { color: inherit; text-decoration: none; }
.civic-role a:hover { text-decoration: underline; }
.civic-meta { font-family: var(--mono); font-size: 0.72rem; color: var(--slate); }

/* ── Music page ─────────────────────────────────────────────────────────── */
.music-page-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 0;
}
.music-page-header > div { flex: 1; }
.music-portrait {
  width: 150px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  object-position: center 15%;
}

.bandcamp-embed {
  margin-top: 0.8rem;
  border-radius: 4px;
  overflow: hidden;
}

.newsletter-entry {
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--parchment);
}
.newsletter-entry:first-child { padding-top: 0; }
.newsletter-entry:last-of-type { border-bottom: none; }
.newsletter-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.newsletter-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
}
.newsletter-body {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.newsletter-body p { margin-bottom: 0.8rem; }
.newsletter-body p:last-child { margin-bottom: 0; }
.newsletter-body a { color: var(--teal); }
.newsletter-body ul, .newsletter-body ol { padding-left: 1.4rem; margin-bottom: 0.8rem; }
.newsletter-body li { margin-bottom: 0.25rem; }
.newsletter-img {
  display: block;
  width: 100%;
  max-width: 440px;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* ── Shows archive ──────────────────────────────────────────────────────── */
.shows-archive { font-size: 0.9rem; line-height: 1.7; color: var(--ink-soft); }
.shows-archive p { margin-bottom: 0.5rem; }
.shows-archive a { color: var(--teal); }
.shows-archive strong { color: var(--ink); }

@media (max-width: 768px) {
  .music-page-header { flex-direction: column-reverse; gap: 1rem; }
  .music-portrait { width: 120px; height: 160px; }
}


.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--parchment);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.tab-nav button {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.6rem 1.2rem;
  background: none;
  border: none;
  color: var(--slate);
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.tab-nav button:hover { color: var(--ink); }
.tab-nav button.active { color: var(--rust); }
.tab-nav button.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--rust);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.listen-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--parchment);
}
.listen-entry:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.listen-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.listen-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.listen-title a:hover { color: var(--rust); }
.listen-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  margin-bottom: 0.4rem;
}
.listen-desc { font-size: 0.88rem; color: var(--slate); line-height: 1.55; }
.listen-more { font-size: 0.88rem; color: var(--slate); line-height: 1.7; }
.listen-more a { color: var(--teal); }

.video-entry {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--parchment);
}
.video-entry:last-child { border-bottom: none; }
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.7rem;
  background: var(--cream);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}
.video-title {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.video-title a { color: var(--ink); text-decoration: none; }
.video-desc { font-size: 0.88rem; color: var(--slate); line-height: 1.55; }

.press-quote {
  border-left: 2px solid var(--parchment);
  padding-left: 1.2rem;
  margin-bottom: 1.8rem;
}
.press-quote blockquote {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}
.press-source {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
}
.press-source a { color: var(--teal); text-decoration: none; }

.show-year {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--ink);
}
.show-year:first-child { margin-top: 0; }
.show-entry {
  font-size: 0.88rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
  line-height: 1.5;
  padding-left: 0.8rem;
  border-left: 2px solid var(--parchment);
}
.show-entry a { color: var(--teal); }

.post-list { list-style: none; }
.post-item {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--parchment);
}
.post-item:first-child { padding-top: 0; }
.post-item:last-child { border-bottom: none; }
.post-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
}
.post-title {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.post-title:hover { color: var(--rust); }
.post-date {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--slate);
  white-space: nowrap;
}

.small-note {
  font-size: 0.85rem;
  color: var(--slate);
  font-style: italic;
  margin-top: 1rem;
}

/* ── Nonsense NYC page ──────────────────────────────────────────────────── */
.nonsense-header {
  display: flex;
  gap: 1.8rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.nonsense-logo-wrap { flex-shrink: 0; }
.nonsense-logo { width: 160px; display: block; }
.nonsense-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  color: var(--ink);
  line-height: 1.2;
}
.nonsense-h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rust);
  margin: 2.2rem 0 0.6rem;
  letter-spacing: 0.01em;
}
.nonsense-map-pair {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.nonsense-map-pair figure {
  flex: 1;
  min-width: 240px;
  margin: 0;
}
.nonsense-map-pair img { width: 100%; height: auto; display: block; }
.nonsense-chart {
  margin: 1.5rem 0;
  text-align: center;
}
.nonsense-chart img { max-width: 600px; width: 100%; height: auto; }
.nonsense-embed {
  margin: 1.5rem 0;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.nonsense-embed iframe {
  display: block;
  width: 100%;
  height: 625px;
  border: 0;
}
.nonsense-full-img { margin: 1.5rem 0; }
.nonsense-full-img img { width: 100%; height: auto; display: block; }
.nonsense-photo {
  margin: 1.5rem 0;
  text-align: center;
}
.nonsense-photo img { max-width: 600px; width: 100%; height: auto; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { padding: 0.8rem 1.2rem; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.7rem; }

  section { padding: 3rem 1.4rem; }
  .home-header { padding: 5rem 1.4rem 2rem; }

  .home-portrait {
    width: 100px;
    height: 100px;
    margin: 0 0 1rem 1.2rem;
  }

  .skyline-banner { height: 140px; }

  .tab-nav button { padding: 0.5rem 0.8rem; font-size: 0.72rem; }
  .post-header { grid-template-columns: 1fr; gap: 0.15rem; }

  .nonsense-header { flex-direction: column; }
  .nonsense-logo { width: 120px; }
  .nonsense-embed iframe { height: 420px; }
}
