:root {
  --bg: #fdfdfb;
  --text: #1c1c1c;
  --muted: #666;
  --accent: #b3401f;
  --border: #e4e2dc;
  --max-width: 800px;
}

/* Smooth cross-page nav transitions (progressive enhancement — browsers
   without support just do a normal navigation, no fallback needed). Real,
   separate URLs per page are preserved; this only changes how the browser
   paints the swap. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: site-fade-out 0.15s ease-out both;
  }
  ::view-transition-new(root) {
    animation: site-fade-in 0.22s ease-in both;
  }
}

@keyframes site-fade-out {
  to { opacity: 0; }
}

@keyframes site-fade-in {
  from { opacity: 0; }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

.site-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

/* Nav */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem 2rem;
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
}

.site-nav-name {
  font-weight: 700;
  font-size: 1.9rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.site-nav nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
}

.site-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

/* Main content */
h1 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
p { margin: 0.75rem 0; }
a { color: var(--accent); }

img { max-width: 100%; border-radius: 4px; }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Lists of stories / appearances */
.entry-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.entry-list li {
  padding: 0.6rem 0;
}

.entry-title {
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--accent);
}

.entry-title:hover { color: var(--text); }

.entry-meta {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: italic;
}

.entry-meta::before { content: "— "; font-style: normal; }

/* Photography grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.photo-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Story / appearance detail pages */
.story-back {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.story-back a { color: var(--muted); text-decoration: none; }
.story-back a:hover { color: var(--accent); }

.story-meta {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-top: 0.25rem;
}
.story-dek {
  font-size: 1.15rem;
  color: var(--muted);
  margin-top: 1rem;
}
.story-link {
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.appearance-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin: 1.5rem 0;
}

.appearance-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}

.footer-links a { color: var(--muted); }
.footer-copy { font-size: 0.8rem; margin-top: 1rem; }

/* Responsive */
@media (max-width: 600px) {
  .site-shell { padding: 2rem 1rem 3rem; }

  .site-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .site-nav-name { font-size: 1.5rem; }

  .site-nav nav ul { gap: 1rem 1.25rem; }

  h1 { font-size: 1.6rem; }

  .photo-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .photo-grid img { height: 160px; }
}
