/*
  David Edward Byrd estate site
  Active direction: Byrd Estate / Rustic Poet structure
  Structure reference: top nav, full-bleed hero, compact capture band,
  feature split, author preview, curated gallery routes.
*/

:root {
  --ink: #160c08;
  --text: #21130c;
  --muted: #694832;
  --paper: #f4e6c8;
  --parchment: #e7cf9d;
  --surface: rgba(255, 249, 234, 0.66);
  --surface-strong: rgba(255, 247, 224, 0.86);
  --border: rgba(95, 55, 27, 0.24);
  --shadow: 0 16px 42px rgba(47, 22, 8, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  --red: #a72f22;
  --blue: #254f8f;
  --gold: #b8873b;
  --green: #426a4d;
  --cream: #fff7e6;
  --font-body: Avenir, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--parchment);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  padding: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(231, 207, 157, 0.86), rgba(231, 207, 157, 0.86)),
    radial-gradient(circle at 20% 8%, rgba(167, 47, 34, 0.16), transparent 32rem),
    radial-gradient(circle at 86% 12%, rgba(37, 79, 143, 0.14), transparent 30rem),
    var(--parchment) !important;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(79, 46, 19, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(79, 46, 19, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: var(--red);
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(260px, auto) 1fr;
  align-items: center;
  gap: 1.5rem;
  min-height: 82px;
  padding: 0.65rem clamp(1rem, 3vw, 2.4rem);
  color: var(--ink);
  background: rgba(244, 230, 200, 0.9) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(47, 22, 8, 0.12);
  backdrop-filter: blur(18px) saturate(135%);
}

.brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: var(--ink);
  border: 2px solid rgba(255, 247, 224, 0.86);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 14px rgba(47, 22, 8, 0.22);
}

.brand strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.05;
}

.brand small {
  display: block;
  margin-top: 0.18rem;
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-header nav a,
.cart-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.45rem 0.75rem;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
}

.site-header nav a:hover,
.cart-toggle:hover {
  color: var(--cream);
  background: var(--ink);
  border-color: var(--ink);
}

.cart-toggle span {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 0.45rem;
  color: var(--cream);
  background: var(--red);
  border-radius: 999px;
}

main,
.product-panel,
.cart-panel {
  margin: 0;
}

.hero {
  min-height: 76vh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 8vw, 7rem) 1.5rem;
  text-align: center;
  color: var(--cream);
  background:
    linear-gradient(to bottom, rgba(8, 4, 2, 0.56), rgba(8, 4, 2, 0.34) 58%, rgba(8, 4, 2, 0.62)),
    url("../bigcartel-20260604-155507/assets/f8da767ba77f19ceba205bc2ca492665-RollingStones1969.jpg") center / cover no-repeat,
    var(--ink) !important;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0 32%, rgba(0, 0, 0, 0.5) 100%);
  pointer-events: none;
}

.hero__inner,
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
}

.hero .poster-wall,
.hero-ribbon {
  display: none;
}

.eyebrow,
.hero__eyebrow,
.section__eyebrow {
  display: block;
  margin: 0 0 0.85rem;
  color: #e8c986;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  color: inherit;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.hero h1,
.hero__title,
.page-hero h1,
.works-hero h1 {
  max-width: 940px;
  margin: 0 auto 1rem;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.95;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero h1 span {
  display: inline;
}

.hero h1 .h1-last::before {
  content: " ";
}

.lede,
.hero__byline,
.page-hero p:not(.eyebrow),
.works-hero p {
  max-width: 720px;
  margin: 0 auto 1.65rem;
  color: rgba(255, 247, 224, 0.88);
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-style: italic;
  line-height: 1.55;
}

.hero-actions,
.hero__actions,
.split-actions,
.panel-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.button,
.btn,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.74rem 1.25rem;
  color: var(--cream);
  background: rgba(22, 12, 8, 0.34);
  border: 1px solid rgba(255, 247, 224, 0.48);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button.primary,
.btn--ghost,
.btn--primary,
button.primary {
  color: var(--ink);
  background: #e8c986;
  border-color: #e8c986;
}

.button:hover,
.btn:hover,
button:hover {
  color: var(--cream);
  background: var(--red);
  border-color: var(--red);
}

.hero-capture,
.estate-letter {
  padding: 2.6rem 1rem;
  background: var(--parchment);
}

.hero-letter,
.estate-note,
.glass-panel,
.author-preview,
.portrait-card,
.tl-card,
.product-card,
.media-card,
.research-grid article,
.copy-grid article,
.legacy-list article,
.estate-cards article {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px) saturate(135%);
}

.estate-note,
.hero-letter {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.3rem);
}

.estate-note h2,
.hero-letter h2 {
  color: var(--text);
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.estate-note p,
.hero-letter p {
  color: var(--muted);
}

.estate-note__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.estate-note__stats div {
  padding: 1rem;
  color: var(--cream);
  background: var(--ink);
  border-radius: 6px;
}

.estate-note__stats strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.estate-note__stats span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 247, 224, 0.72);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stats {
  display: none;
}

.section,
.home-gateways,
.gallery-lobby,
.research-section,
.copy-grid,
.split-page,
.timeline-section,
.shop-section,
.media-library,
.works-shell,
.legacy-section,
.source-strip,
.person-strip,
.home-signature,
.estate-section,
.facebook-section,
.archive-summary {
  padding: clamp(2.5rem, 6vw, 5.5rem) 1.5rem;
}

.container,
.section-heading,
.gateway-grid,
.copy-grid,
.timeline,
.product-grid,
.media-grid,
.research-grid,
.legacy-list,
.estate-cards,
.store-featured,
.person-strip {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  display: block;
  margin-bottom: 1.8rem;
  text-align: center;
}

.section-heading h2,
.home-signature h2,
.split-page h2,
.research-section h2,
.estate-section h2,
.facebook-section h2,
.section__title {
  color: var(--text);
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.section-heading p,
.home-signature p,
.split-page p,
.research-section p,
.estate-section p,
.facebook-section p,
.section__subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-style: italic;
  line-height: 1.65;
}

.feature-split,
.section--split,
.split-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  padding: 0;
  max-width: none;
}

.feature-split__image,
.split__image,
.split__photo,
.portrait-card {
  min-height: 460px;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.feature-split__image img,
.split__image img,
.split__photo img,
.portrait-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.feature-split__copy,
.split__dark,
.split-page > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2.4rem, 5vw, 5rem);
  color: var(--cream);
  background: rgba(18, 9, 4, 0.92);
}

.feature-split__copy h2,
.split__dark h2,
.split-page > div h2 {
  color: var(--cream);
}

.feature-split__copy p,
.split__dark p,
.split-page > div p {
  color: rgba(255, 247, 224, 0.82);
}

.author-preview,
.artist-preview {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}

.author-preview img,
.artist-preview img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 7px;
}

.author-preview h2,
.artist-preview h2 {
  color: var(--text);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
}

.author-preview p,
.artist-preview p {
  color: var(--muted);
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gateway-card {
  position: relative;
  min-height: 330px;
  display: grid;
  align-content: end;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-decoration: none;
}

.gateway-card:nth-child(4),
.gateway-card:nth-child(5) {
  min-height: 300px;
}

.gateway-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gateway-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(8, 4, 2, 0.82));
}

.gateway-card span,
.gateway-card strong {
  position: relative;
  z-index: 1;
  margin-left: 1rem;
  margin-right: 1rem;
}

.gateway-card span {
  color: #e8c986;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gateway-card strong {
  margin-bottom: 1rem;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.02;
}

.gateway-card:hover img {
  transform: scale(1.04);
}

.home-signature {
  display: block !important;
  color: var(--cream);
  background:
    linear-gradient(rgba(18, 9, 4, 0.88), rgba(18, 9, 4, 0.88)),
    url("../bigcartel-20260604-155507/assets/274ae1e8b248b08f66490463a542291b-Woodstock.jpg") center / cover no-repeat;
  text-align: center;
}

.home-signature h2,
.home-signature p {
  color: var(--cream);
}

.home-signature h2 {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.home-signature p {
  max-width: 760px;
}

.page-hero,
.works-hero {
  min-height: 54vh;
  display: grid;
  place-items: center;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
  text-align: center;
  color: var(--cream);
  background:
    linear-gradient(to bottom, rgba(8, 4, 2, 0.52), rgba(8, 4, 2, 0.58)),
    url("../assets/imports/desktop-david-bryd/505765473_2749029668820491_6810394146511659701_n.jpg") center / cover no-repeat,
    var(--ink) !important;
}

.timeline-hero {
  background:
    linear-gradient(to bottom, rgba(8, 4, 2, 0.5), rgba(8, 4, 2, 0.62)),
    url("../assets/people/Beserra_Byrd_0202_photo26-1024x765.jpeg") center / cover no-repeat,
    var(--ink) !important;
}

.shop-hero,
.works-hero {
  background:
    linear-gradient(to bottom, rgba(8, 4, 2, 0.55), rgba(8, 4, 2, 0.62)),
    url("../bigcartel-20260604-155507/assets/5d91bc938728496360d56fff91ac70b5-JimiHendrix-680.jpg") center / cover no-repeat,
    var(--ink) !important;
}

.legacy-hero,
.press-hero {
  background:
    linear-gradient(to bottom, rgba(8, 4, 2, 0.55), rgba(8, 4, 2, 0.62)),
    url("../bigcartel-20260604-155507/assets/3251233163e57a34b4d2e5bf87f7e74f-ByrdShow1971.jpg") center / cover no-repeat,
    var(--ink) !important;
}

.media-hero {
  background:
    linear-gradient(to bottom, rgba(8, 4, 2, 0.55), rgba(8, 4, 2, 0.62)),
    url("../assets/people/Beserra_Byrd_0202_photo1-1024x867.jpeg") center / cover no-repeat,
    var(--ink) !important;
}

.person-strip,
.copy-grid,
.research-grid,
.legacy-list,
.estate-cards,
.timeline,
.product-grid,
.media-grid,
.store-featured,
.category-tiles {
  display: grid;
  gap: 1rem;
}

.person-strip {
  grid-template-columns: repeat(4, 1fr);
}

.person-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.person-strip img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.person-strip figcaption,
.media-card figcaption,
.portrait-card figcaption {
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.copy-grid,
.research-grid,
.legacy-list,
.estate-cards,
.store-featured {
  grid-template-columns: repeat(3, 1fr);
}

.copy-grid article,
.research-grid article,
.legacy-list article,
.estate-cards article {
  padding: 1.2rem;
}

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

.tl-card {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  cursor: pointer;
}

.tl-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.tl-card span:not(.tl-more),
.product-card span,
.media-card span,
.research-grid article span {
  display: inline-block;
  margin: 1rem 1rem 0.35rem;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-card h3,
.tl-card p,
.tl-more {
  margin-left: 1rem;
  margin-right: 1rem;
}

.tl-card h3,
.product-card h3,
.media-card h3,
.research-grid article strong {
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.tl-card p,
.product-card p,
.media-card p {
  color: var(--muted);
}

.tl-more {
  margin-bottom: 1.1rem;
  color: var(--red) !important;
}

.product-grid,
.media-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.product-card,
.media-card,
.store-featured article,
.category-tiles > * {
  overflow: hidden;
}

.product-grid,
.media-grid,
.store-featured {
  align-items: start;
}

.product-card img,
.media-card img,
.store-featured img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.product-card .product-info,
.media-card .media-card__body,
.media-card > div,
.store-featured article div {
  padding: 1rem;
}

.media-missing {
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  color: var(--cream);
  background: var(--ink);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.archive-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.archive-summary div {
  padding: 1.2rem;
  color: var(--cream);
  background: var(--ink);
  border-radius: 7px;
}

.archive-summary strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.archive-summary span {
  color: rgba(255, 247, 224, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.toolbar,
.filters,
.media-controls,
.works-controls,
.catalog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

label span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

input,
select,
textarea {
  min-height: 42px;
  color: var(--text);
  background: rgba(255, 249, 234, 0.86);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
  font: inherit;
}

.works-table,
table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}

thead {
  position: sticky;
  top: 82px;
  z-index: 5;
}

th,
td {
  padding: 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--cream);
  background: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.source-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(22, 12, 8, 0.88);
}

.source-strip a {
  color: var(--cream);
  border: 1px solid rgba(255, 247, 224, 0.34);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.source-strip a:hover {
  background: var(--red);
}

.tl-modal__backdrop {
  background: rgba(22, 12, 8, 0.72) !important;
}

.tl-modal__panel,
.panel-card,
.cart-card {
  color: var(--text) !important;
  background: var(--paper) !important;
  border: 1px solid var(--border) !important;
  border-radius: 9px !important;
  box-shadow: var(--shadow) !important;
}

.tl-modal__head {
  background: var(--paper) !important;
  border-bottom: 1px solid var(--border) !important;
}

.tl-close,
.panel-close {
  color: var(--cream);
  background: var(--ink);
  border: 0;
  border-radius: 50%;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .site-header nav {
    justify-content: center;
  }

  .estate-note,
  .hero-letter,
  .feature-split,
  .section--split,
  .split-page,
  .author-preview,
  .artist-preview {
    grid-template-columns: 1fr;
  }

  .gateway-grid,
  .copy-grid,
  .research-grid,
  .legacy-list,
  .estate-cards,
  .store-featured,
  .person-strip,
  .archive-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: relative;
  }

  .hero {
    min-height: 68vh;
  }

  .gateway-grid,
  .copy-grid,
  .research-grid,
  .legacy-list,
  .estate-cards,
  .store-featured,
  .person-strip,
  .archive-summary,
  .estate-note__stats {
    grid-template-columns: 1fr;
  }

  .feature-split__image,
  .split__image,
  .split__photo,
  .portrait-card,
  .feature-split__image img,
  .split__image img,
  .split__photo img,
  .portrait-card img {
    min-height: 320px;
  }
}
