/* Buffaloegbert poetry site
   Dark ground, gold accents, dark gradient behind hero text, gold byline. */

:root {
  --bg: #0c0b09;
  --bg-alt: #14120f;
  --bg-card: #1a1814;
  --ink: #efe7d6;
  --ink-dim: #a89f8c;
  --gold: #d4b45a;
  --gold-bright: #f0d78c;
  --gold-deep: #9a7b32;
  --line: rgba(212, 180, 90, 0.28);
  --shade: rgba(8, 7, 6, 0.72);
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --wrap: 1120px;
  --header-h: 64px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
  padding-bottom: env(safe-area-inset-bottom);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-underline-offset: 0.18em; }
a:hover { color: #fff6d4; }
h1, h2, h3, .wordmark, .poem-title, .byline, .foot-name {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 0 0.4em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 0.5em; color: var(--ink); }
h3 { font-size: 1.35rem; margin: 0 0 0.4em; }

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}
.wrap.narrow { width: min(100% - 2rem, 680px); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--gold);
  color: #1a1408;
  padding: 0.5rem 0.8rem;
  z-index: 100;
  border-radius: 6px;
}
.skip-link:focus { top: 0.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 11, 9, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.wordmark {
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 700;
  white-space: nowrap;
}
.wordmark:hover { color: #fff6d4; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.95rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--gold-bright); }

.hero {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  isolation: isolate;
}
/* Full 4:3 photograph as a block; title and buttons sit below, not over the deck. */
.hero-media {
  display: flex;
  justify-content: center;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-media picture {
  display: flex;
  justify-content: center;
  max-width: 100%;
  line-height: 0;
}
.hero-photo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
}
.hero-copy {
  position: relative;
  padding: 2.4rem 0 3rem;
}
.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  font-family: var(--font-sans);
}
.byline {
  color: var(--gold);
  font-style: italic;
  font-size: 1.2rem;
  margin: 0;
  font-weight: 500;
}
.byline-inline {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
.hero-actions .btn {
  flex: 0 1 auto;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-gold {
  background: var(--gold);
  color: #1a1408;
}
.btn-gold:hover { background: var(--gold-bright); color: #1a1408; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
button.btn { font: inherit; }

.section { padding: 4.2rem 0 4.5rem; }
.section-alt { background: var(--bg-alt); }
.lede { color: var(--ink-dim); max-width: 42rem; margin: 0 0 2rem; }

.poem-feature, .poem-card {
  margin: 0 0 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.poem-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
}
.poem-open img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
}
.poem-card-light {
  background: #f3efe4;
}
.poem-card-light .poem-open { background: #f7f3ea; }
.poem-card-light .poem-title { color: #1a1408; }
.poem-feature figcaption,
.poem-card figcaption {
  padding: 0.9rem 1.1rem 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.8rem;
  align-items: baseline;
}
.poem-title { font-size: 1.35rem; color: var(--ink); }
.poem-variant { color: var(--ink-dim); font-size: 0.88rem; }
.poem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.poem-grid-pair { grid-template-columns: 1fr 1fr; }
@media (min-width: 700px) {
  .poem-grid { grid-template-columns: 1fr 1fr; }
}

.text-poem {
  margin: 0 0 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background:
    linear-gradient(to top, rgba(8,7,6,0.92), rgba(20,16,10,0.72)),
    #14110c;
}
.text-poem-inner { padding: 2rem 1.4rem 1.6rem; max-width: 40rem; }
.text-poem h3 {
  font-size: 1.8rem;
  margin-bottom: 0.9rem;
}
.text-poem p { margin: 0 0 1rem; color: var(--ink); }
.source-note {
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.empty-slot {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  color: var(--ink-dim);
  background: rgba(212, 180, 90, 0.04);
}
.empty-kicker {
  margin: 0 0 0.35rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-family: var(--font-sans);
  font-weight: 500;
}
.empty-slot p:last-child { margin: 0; }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #000;
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-card h3 {
  font-size: 1.2rem;
  padding: 0.85rem 1rem 1rem;
  margin: 0;
}
.more-yt {
  margin: 0 0 2.2rem;
  color: var(--ink-dim);
}
.missing-block {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem 1.1rem;
  background: rgba(212, 180, 90, 0.04);
}
.missing-block h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.missing-block p { color: var(--ink-dim); margin-top: 0; }
.missing-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.missing-list li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.missing-list li:first-of-type { border-top: 0; }
.missing-flag {
  display: inline-block;
  margin-right: 0.5rem;
  margin-bottom: 0.25rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}
.contact-form label span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  background: #0c0b09;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.contact-form textarea { resize: vertical; min-height: 8rem; }
.contact-form .btn { justify-self: start; border: 0; }
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  padding: 2.4rem 0 6.5rem; /* room for the deed.page badge */
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
}
.foot-name {
  color: var(--gold);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  justify-content: center;
  margin: 0;
}
.foot-links a { color: var(--ink-dim); text-decoration: none; }
.foot-links a:hover { color: var(--gold-bright); }
.visit-counter {
  margin-top: 1rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #7a746a;
}
.visit-counter[hidden] { display: none; }

/* Lightbox */
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 5, 4, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 0.75rem 1.5rem;
}
.lb-figure {
  margin: 0;
  max-width: min(100%, 1100px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-figure img {
  max-height: min(82vh, 900px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}
.lb-figure figcaption {
  color: var(--gold);
  font-family: var(--font-serif);
  font-style: italic;
  margin-top: 0.7rem;
  text-align: center;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: transparent;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: var(--font-sans);
}
.lb-close {
  top: calc(0.6rem + env(safe-area-inset-top));
  right: 0.7rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  z-index: 2;
}
.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
}
.lb-prev { left: 0.4rem; }
.lb-next { right: 0.4rem; }
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  border-color: var(--gold);
  background: rgba(212, 180, 90, 0.12);
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 1.5rem, var(--wrap)); }
  .header-inner { flex-direction: column; align-items: flex-start; padding: 0.55rem 0 0.7rem; gap: 0.35rem; }
  .nav { gap: 0.3rem 0.8rem; }
  .nav a { font-size: 0.8rem; }
  .hero-copy { padding: 1.8rem 0 2.4rem; }
  .hero-actions { gap: 0.6rem; }
  .hero-actions .btn { padding: 0.7rem 1rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.6rem; transform: none; }
  .lb-figure { padding-bottom: 3rem; }
}

/* Thank-you page */
.thanks-main { min-height: 70vh; display: flex; align-items: center; }

.subhead { margin: 2rem 0 0.9rem; font-size: 1.45rem; }
.lede.tighter { margin-bottom: 1.1rem; }
.playlist-embed { margin: 0 0 2rem; }
.playlist-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.playlist-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.playlist-name {
  margin: 0.85rem 0 0.25rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink-dim);
}
.playlist-link { margin: 0; }
.playlist-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
@media (min-width: 640px) {
  .playlist-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .playlist-cards { grid-template-columns: repeat(4, 1fr); }
}
.pl-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.pl-card:hover { border-color: var(--gold); color: var(--gold-bright); }
.pl-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.pl-title {
  display: block;
  padding: 0.75rem 0.85rem 0.9rem;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.3;
}
.featured-short { margin: 0 0 2.2rem; }
.featured-short-inner { max-width: 360px; }
.featured-title { padding-left: 0; padding-right: 0; }

.exclusive-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 0 2.2rem;
}
.exclusive-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--ink);
}
.exclusive-badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.28rem 0.8rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(212, 180, 90, 0.12);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-sans);
}
.exclusive-frame {
  width: min(100%, 420px);
}
.exclusive-frame video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(78vh, 720px);
  object-fit: contain;
  background: #000;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.exclusive-video .playlist-link { margin: 1rem 0 0; }
