:root {
  color-scheme: dark;
  --bg: #140810;
  --card: #241018;
  --ink: #fff4f6;
  --muted: #e7b8c4;
  --accent: #ff4d7a;
  --line: color-mix(in srgb, var(--accent) 35%, transparent);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, #3a1424 0%, transparent 42%),
    var(--bg);
}

a { color: var(--accent); }

p { margin: 0; }

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.75rem;
  color: var(--accent);
}

h1 {
  margin: 0.75rem 0 0.4rem;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  font-weight: 500;
  line-height: 0.95;
}

.domain,
.site-footer,
.nav-toggle,
.site-nav,
.card small,
.frame span,
.teasers small {
  font-family: "Segoe UI", sans-serif;
}

.domain { color: var(--muted); }

.lede {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  width: min(64rem, 100%);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.35rem;
  line-height: 1;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

.nav-toggle-bars { position: relative; }

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 0.35rem 0;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.home-wrap,
.page {
  width: min(52rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.hero {
  width: min(52rem, 100%);
  margin: 6vh auto 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.hero-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.2rem);
}

.hero-note {
  margin: 0.7rem 0 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
}

.hero-photo-button {
  flex: 0 0 auto;
  width: min(200px, 34vw);
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0.85rem;
  overflow: hidden;
  cursor: zoom-in;
  line-height: 0;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.hero-photo-button:hover .hero-photo,
.hero-photo-button:focus-visible .hero-photo {
  transform: scale(1.12);
}

.photo-popup[hidden] { display: none; }

.photo-popup {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.photo-popup-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 4, 8, 0.84);
  cursor: pointer;
}

.photo-popup-panel {
  position: relative;
  z-index: 1;
  max-width: min(40rem, 100%);
  padding: 0.75rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.photo-popup-panel img {
  display: block;
  max-width: min(36rem, 86vw);
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0.85rem;
}

.photo-popup-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.4rem 0.75rem;
  font-family: "Segoe UI", sans-serif;
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

body.popup-open { overflow: hidden; }

.page-head { margin-bottom: 1.5rem; }

.panel,
.card,
.teasers a,
.frame {
  background: color-mix(in srgb, var(--card) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
}

.panel { padding: 1.5rem 1.35rem; }

.panel + .panel,
.stack { margin-top: 1rem; }

.panel h2,
.card h2 {
  margin: 0 0 0.55rem;
  font-size: 1.45rem;
  font-weight: 500;
}

.panel p + p,
.card p + p { margin-top: 0.8rem; }

.muted { color: var(--muted); }

.cards,
.teasers,
.frames {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.card { padding: 1.2rem 1.15rem; }

.card small,
.teasers small,
.frame span {
  display: block;
  margin-top: 0.4rem;
  color: var(--muted);
  line-height: 1.45;
}

.teasers a {
  display: block;
  padding: 1rem 1.1rem;
  text-decoration: none;
  color: inherit;
}

.teasers a span {
  display: block;
  font-size: 1.25rem;
}

.teasers a:hover,
.card:hover {
  border-color: var(--accent);
}

.frames { margin-top: 0; }

.frame {
  min-height: 11rem;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  border-style: dashed;
}

.frame strong {
  font-size: 1.2rem;
  font-weight: 500;
}

.note {
  margin-top: 1rem;
  color: var(--muted);
  font-family: "Segoe UI", sans-serif;
  font-size: 0.95rem;
}

.site-footer {
  margin-top: auto;
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .site-header-inner { flex-wrap: wrap; }

  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding-bottom: 0.4rem;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.85rem 0;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .hero {
    margin-top: 1.25rem;
    padding: 1rem 1rem;
  }

  .hero-photo-button {
    width: min(140px, 38vw);
  }

  .hero-note { font-size: 0.85rem; }
}

@media (min-width: 700px) {
  .cards.two,
  .teasers { grid-template-columns: 1fr 1fr; }

  .frames { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
  .frames { grid-template-columns: 1fr 1fr 1fr; }
}
