:root {
  --cavalry-blue: #1b3456;
  --cavalry-blue-dark: #102238;
  --heading-strong: #14263d;
  --text-strong: #24313a;
  --parchment: #d9eaf3;
  --parchment-light: #f5f9fc;
  --parchment-deep: #bdd5e2;
  --brass: #b58a2a;
  --brass-dark: #7d5d19;
  --ink: #1f282e;
  --brown: #37464e;
  --rule: rgba(47, 76, 92, 0.23);
  --shadow: 0 18px 45px rgba(31, 40, 46, 0.16);
}

html {
  min-height: 100%;
  font-size: 15px;
  overflow-x: clip;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  position: relative;
  overflow-x: clip;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(circle at 8% 3%, rgba(72, 124, 153, 0.12), transparent 32rem),
    radial-gradient(circle at 84% 34%, rgba(27, 52, 86, 0.045), transparent 28rem),
    linear-gradient(rgba(217, 234, 243, 0.86), rgba(232, 244, 249, 0.82)),
    url("/images/textures/aged-ledger-paper.jpg") center top / 980px auto repeat,
    var(--parchment);
}

h1,
h2,
h3,
.site-brand,
.footer-brand {
  color: var(--heading-strong);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

a {
  color: var(--cavalry-blue);
}

a:hover {
  color: var(--brass-dark);
}

.container {
  width: min(100% - 2rem, 1260px);
  max-width: none;
  padding-right: 0;
  padding-left: 0;
}

.site-header {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(7, 18, 32, 0.94), rgba(16, 34, 56, 0.78) 48%, rgba(7, 18, 32, 0.95)),
    linear-gradient(180deg, rgba(7, 18, 32, 0.5), rgba(7, 18, 32, 0.88)),
    url("/images/hero/old-west-cavalry-panorama.png") center / cover no-repeat,
    var(--cavalry-blue);
  box-shadow: 0 10px 28px rgba(16, 31, 55, 0.24);
}

.site-header::before,
.site-footer::before {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 4px;
  pointer-events: none;
  background: url("/images/textures/engraved-brass-henry.jpg") center center / 100% auto no-repeat;
  filter: saturate(0.92) contrast(0.95) brightness(1.04);
}

.site-header::before {
  bottom: 0;
  z-index: 1;
  opacity: 0.45;
  filter: saturate(0.5) contrast(0.62) brightness(0.78);
  mix-blend-mode: screen;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(245, 249, 252, 0.1), transparent),
    linear-gradient(rgba(255, 255, 255, 0.08), transparent 45%, rgba(0, 0, 0, 0.18));
  opacity: 0.72;
}

.site-nav {
  padding: 1rem 0;
}

.site-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.05rem;
  max-width: min(72vw, 520px);
  color: var(--parchment-light);
  font-size: clamp(1.05rem, 2.1vw, 1.38rem);
  letter-spacing: 0.02em;
  text-align: left;
  text-transform: uppercase;
  word-break: normal;
}

.site-brand:hover,
.site-brand:focus {
  color: #fff7df;
}

.brand-kicker {
  color: var(--brass);
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.site-nav .nav-link {
  color: var(--parchment-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
  color: var(--brass);
}

.site-menu-button {
  border-color: rgba(245, 249, 252, 0.62);
}

.site-menu-button:focus,
.button:focus {
  box-shadow: 0 0 0 0.2rem rgba(181, 138, 42, 0.38);
  outline: none;
}

.navbar-toggler-icon {
  filter: invert(95%) sepia(12%) saturate(787%) hue-rotate(341deg) brightness(105%) contrast(94%);
}

.site-main {
  position: relative;
  isolation: isolate;
  width: min(100% - 2rem, 1260px);
  margin: 0 auto;
  padding: 3rem 0 4.5rem;
}

.site-main::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 8%, rgba(27, 52, 86, 0.06), transparent 28rem),
    radial-gradient(circle at 8% 40%, rgba(27, 52, 86, 0.04), transparent 22rem);
  opacity: 1;
}

.site-main::after {
  content: "";
  position: absolute;
  inset: -3rem calc(50% - 50vw) 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(27, 52, 86, 0.07), transparent 24rem),
    radial-gradient(circle at 12% 42%, rgba(27, 52, 86, 0.06), transparent 18rem);
}

.hero-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(320px, 34vw, 460px);
  aspect-ratio: 21 / 8;
  margin: 0 0 clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.15rem, 3vw, 2rem);
  background: var(--cavalry-blue-dark);
  border: 1px solid rgba(181, 138, 42, 0.46);
  border-radius: 4px;
  box-shadow:
    0 18px 40px rgba(7, 18, 32, 0.24),
    inset 0 0 0 1px rgba(245, 249, 252, 0.08);
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 18, 32, 0.3), transparent 38%, rgba(7, 18, 32, 0.22)),
    linear-gradient(180deg, rgba(7, 18, 32, 0.08), transparent 42%, rgba(7, 18, 32, 0.34));
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  height: 6px;
  pointer-events: none;
  background: url("/images/textures/engraved-brass-henry.jpg") center / 100% auto no-repeat;
  filter: saturate(0.62) contrast(0.72) brightness(0.88);
  opacity: 0.82;
}

.hero-intro-panel {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.1rem;
  align-content: start;
  width: min(100%, 520px);
  padding: clamp(1.15rem, 3vw, 1.85rem);
  background:
    linear-gradient(135deg, rgba(8, 20, 34, 0.94), rgba(16, 34, 56, 0.9)),
    url("/images/textures/blued-steel.jpg") center / cover no-repeat,
    var(--cavalry-blue-dark);
  background-blend-mode: normal, soft-light, normal;
  border: 1px solid rgba(181, 138, 42, 0.58);
  border-left: 6px solid rgba(181, 138, 42, 0.82);
  border-radius: 4px;
  box-shadow:
    0 18px 38px rgba(7, 18, 32, 0.42),
    inset 0 0 0 1px rgba(245, 249, 252, 0.09);
}

.hero-copy {
  position: relative;
}

.hero-copy h1 {
  color: var(--parchment-light);
  font-size: clamp(2.05rem, 4vw, 3.45rem);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.32);
}

.hero-copy .eyebrow {
  color: #d4b35e;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--brass-dark);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-subheading {
  max-width: 720px;
  margin: 1rem 0 0;
  color: rgba(245, 249, 252, 0.92);
  font-size: clamp(1.02rem, 1.7vw, 1.18rem);
  text-shadow: 0 1px 9px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--cavalry-blue);
  border-radius: 4px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--cavalry-blue);
  color: var(--parchment-light);
}

.button-primary:hover,
.button-primary:focus {
  background: var(--cavalry-blue-dark);
  border-color: var(--cavalry-blue-dark);
  color: #fff7df;
}

.button-secondary {
  background:
    linear-gradient(rgba(245, 249, 252, 0.9), rgba(217, 234, 243, 0.78)),
    url("/images/textures/aged-ledger-paper.jpg") center / 420px auto;
  color: var(--cavalry-blue);
}

.button-secondary:hover,
.button-secondary:focus {
  background: var(--brass);
  border-color: var(--brass);
  color: var(--ink);
}

.ledger-panel {
  isolation: isolate;
  overflow: hidden;
  padding: 1rem;
  background:
    linear-gradient(rgba(16, 34, 56, 0.045) 1px, transparent 1px),
    rgba(245, 249, 252, 0.42);
  background-size: 100% 31px, auto;
  border: 1px solid rgba(47, 76, 92, 0.2);
  border-radius: 4px;
  box-shadow: none;
}

.ledger-panel > * {
  position: relative;
  z-index: 1;
}

.ledger-panel::before {
  content: none;
}

.ledger-panel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 4px;
  background: url("/images/textures/engraved-brass-henry.jpg") center center / 100% auto no-repeat;
  filter: saturate(0.58) contrast(0.68) brightness(0.88);
  opacity: 0.62;
  mix-blend-mode: multiply;
}

.ledger-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--rule);
  color: var(--cavalry-blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ledger-panel dl {
  margin: 0;
}

.ledger-panel div {
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(84, 58, 32, 0.16);
}

.ledger-panel div:last-child {
  border-bottom: 0;
}

.ledger-panel dt {
  color: var(--brass-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ledger-panel dd {
  margin: 0.2rem 0 0;
  color: var(--brown);
}

.hero-panorama {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  margin: 0;
}

.hero-panorama img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0;
  filter: sepia(0.08) saturate(0.9) contrast(0.98) brightness(0.94);
  transition: opacity 1800ms ease-in-out;
}

.hero-panorama img.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-panorama img {
    transition: none;
  }

  .hero-panorama img:not(:first-child) {
    display: none;
  }
}

.content-section {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 6vw, 4.75rem) 0;
  border-top: 1px solid var(--rule);
}

.content-section::after {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(181, 138, 42, 0.55), transparent);
  pointer-events: none;
}

.category-section::before,
.featured-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  filter: sepia(0.5) saturate(0.48) contrast(0.55) brightness(1.14);
  mix-blend-mode: multiply;
  opacity: 0.1;
}

.category-section::before {
  right: min(-13rem, -12vw);
  top: 0.75rem;
  width: min(540px, 46vw);
  height: min(380px, 34vw);
  background: url("/images/textures/blued-steel.jpg") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 24%, rgba(0, 0, 0, 0.58) 45%, transparent 76%);
  mask-image: radial-gradient(ellipse at center, #000 0 24%, rgba(0, 0, 0, 0.58) 45%, transparent 76%);
}

.featured-section::before {
  left: min(-18rem, -16vw);
  top: 3rem;
  width: min(720px, 58vw);
  height: min(340px, 30vw);
  background: url("/images/textures/walnut-stock-grain.jpg") center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 18%, rgba(0, 0, 0, 0.46) 42%, transparent 77%);
  mask-image: radial-gradient(ellipse at center, #000 0 18%, rgba(0, 0, 0, 0.46) 42%, transparent 77%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  color: #14263d !important;
  opacity: 1;
  text-shadow: none;
}

.section-heading .eyebrow {
  color: #755713 !important;
  opacity: 1;
}

#categories-heading,
#featured-heading {
  color: #14263d !important;
  opacity: 1;
}

.content-section h2,
.content-section h3 {
  color: var(--heading-strong);
}

.category-grid,
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.category-card,
.inventory-card {
  background:
    linear-gradient(rgba(245, 249, 252, 0.9), rgba(232, 244, 249, 0.84)),
    url("/images/textures/aged-ledger-paper.jpg") center / 620px auto,
    rgba(245, 249, 252, 0.86);
  border: 1px solid rgba(89, 64, 43, 0.22);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(43, 33, 24, 0.08);
}

.category-card {
  display: block;
  min-height: 178px;
  padding: 1.15rem;
  color: var(--text-strong);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.category-card:hover,
.category-card:focus {
  border-color: rgba(181, 138, 42, 0.68);
  box-shadow: var(--shadow);
  color: var(--text-strong);
  transform: translateY(-2px);
}

.category-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  background: var(--cavalry-blue);
  border: 2px solid var(--brass);
  border-radius: 50%;
  color: var(--parchment-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.category-card p,
.inventory-card p,
.sell-section p,
.site-footer p {
  color: var(--brown);
}

.category-card p,
.inventory-card p {
  margin: 0.55rem 0 0;
}

.inventory-card {
  overflow: hidden;
}

.inventory-image-link {
  display: block;
  background: #e5d2a9;
  border-bottom: 1px solid rgba(89, 64, 43, 0.22);
}

.inventory-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.inventory-card-body {
  padding: 1.15rem;
}

.inventory-title-link {
  color: var(--heading-strong);
  text-decoration: none;
}

.inventory-title-link:hover,
.inventory-title-link:focus {
  color: var(--cavalry-blue);
  text-decoration: underline;
  text-decoration-color: rgba(181, 138, 42, 0.7);
  text-underline-offset: 0.18em;
}

.item-status {
  color: var(--brass-dark) !important;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.item-era {
  color: var(--brass-dark) !important;
  font-size: 0.95rem;
  font-weight: 700;
}

.section-action {
  display: flex;
  margin-top: 1.5rem;
}

.page-hero {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -1rem;
  right: min(-14rem, -16vw);
  z-index: -1;
  width: min(560px, 52vw);
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(90deg, rgba(217, 234, 243, 0), rgba(217, 234, 243, 0.88) 78%),
    url("/images/textures/engraved-metal.jpg") center / cover no-repeat;
  filter: grayscale(0.28) sepia(0.24) saturate(0.68) contrast(0.72) brightness(1.12);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 20%, rgba(0, 0, 0, 0.5) 44%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 0 20%, rgba(0, 0, 0, 0.5) 44%, transparent 78%);
  opacity: 0.18;
}

.compact-hero {
  max-width: 860px;
}

.compact-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.compact-hero p:not(.eyebrow) {
  margin: 1rem 0 0;
  color: var(--brown);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
}

.item-detail-hero {
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.item-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: start;
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
}

.item-detail-media,
.item-detail-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(245, 249, 252, 0.9), rgba(232, 244, 249, 0.84)),
    url("/images/textures/aged-ledger-paper.jpg") center / 620px auto,
    rgba(245, 249, 252, 0.86);
  border: 1px solid rgba(89, 64, 43, 0.22);
  border-radius: 6px;
  box-shadow: 0 10px 28px rgba(43, 33, 24, 0.08);
}

.item-detail-media {
  margin: 0;
}

.item-detail-media::before,
.item-detail-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  background: url("/images/textures/engraved-brass-henry.jpg") center center / 100% auto no-repeat;
  filter: saturate(0.5) contrast(0.62) brightness(0.84);
  opacity: 0.5;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.item-detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e5d2a9;
}

.gallery-stage {
  position: relative;
  background: #101820;
}

.gallery-image-button {
  display: block;
  width: 100%;
  padding: 0;
  background: #101820;
  border: 0;
  cursor: zoom-in;
}

.gallery-main-image {
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #101820;
}

.gallery-image-button[hidden],
.gallery-video[hidden] {
  display: none;
}

.is-video-active .gallery-nav {
  top: 0.75rem;
  transform: none;
}

.is-video-active .gallery-nav:hover,
.is-video-active .gallery-nav:focus {
  transform: scale(1.04);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  background: rgba(16, 24, 32, 0.76);
  border: 1px solid rgba(245, 249, 252, 0.58);
  border-radius: 50%;
  color: var(--parchment-light);
  line-height: 1;
  transform: translateY(-50%);
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.gallery-nav:hover,
.gallery-nav:focus {
  background: rgba(27, 52, 86, 0.92);
  border-color: var(--brass);
  color: var(--parchment-light);
  transform: translateY(-50%) scale(1.04);
}

.gallery-nav span {
  display: block;
  margin-top: -0.1rem;
  font-size: 2.35rem;
  line-height: 1;
}

.gallery-nav-previous {
  left: 0.75rem;
}

.gallery-nav-next {
  right: 0.75rem;
}

.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 0.5rem;
  padding: 0.8rem 1rem 0;
}

.gallery-thumbnail {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #e5d2a9;
  border: 2px solid rgba(89, 64, 43, 0.24);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus,
.gallery-thumbnail.is-active {
  border-color: var(--brass);
  box-shadow: 0 6px 16px rgba(43, 33, 24, 0.16);
}

.gallery-thumbnail.is-active {
  transform: translateY(-1px);
}

.gallery-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-video-badge {
  position: absolute;
  right: 0.2rem;
  bottom: 0.2rem;
  left: 0.2rem;
  padding: 0.15rem;
  background: rgba(16, 24, 32, 0.9);
  color: var(--parchment-light);
  font-size: 0.7rem;
  font-weight: 700;
}

.gallery-image-button:focus-visible,
.gallery-nav:focus-visible,
.gallery-thumbnail:focus-visible,
.image-lightbox-backdrop:focus-visible,
.image-lightbox-close:focus-visible {
  outline: 3px solid rgba(181, 138, 42, 0.82);
  outline-offset: 3px;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
  background: rgba(5, 10, 16, 0.88);
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-out;
}

.image-lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  max-width: 96vw;
  max-height: 92vh;
  background: #101820;
  border: 1px solid rgba(245, 249, 252, 0.28);
  border-radius: 4px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.image-lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
}

.image-lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(245, 249, 252, 0.58);
  border-radius: 50%;
  background: rgba(16, 24, 32, 0.85);
  color: var(--parchment-light);
  font-size: 1.75rem;
  line-height: 1;
}

body.is-lightbox-open {
  overflow: hidden;
}

.item-detail-media figcaption {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--brown);
  font-size: 0.9rem;
  font-style: italic;
}

.item-detail-panel {
  padding: clamp(1.1rem, 3vw, 1.65rem);
}

.item-detail-panel h2 {
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
}

.item-price {
  margin: 0.45rem 0 1.2rem;
  color: var(--cavalry-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 700;
}

.item-specs {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid rgba(84, 58, 32, 0.16);
}

.item-specs div {
  display: grid;
  grid-template-columns: minmax(110px, 0.36fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(84, 58, 32, 0.16);
}

.item-specs dt {
  color: var(--brass-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.item-specs dd {
  margin: 0;
  color: var(--brown);
}

.demo-disclaimer {
  margin: 1.1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(84, 58, 32, 0.16);
  color: var(--brown);
  font-weight: 700;
}

.policy-notice {
  display: grid;
  gap: 0.4rem;
}

.policy-notice p {
  margin: 0;
}

.item-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.3rem;
}

.back-link {
  color: var(--cavalry-blue);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.item-description-section {
  padding-top: clamp(2rem, 5vw, 3.5rem);
}

.item-description-section > p {
  max-width: 820px;
  color: var(--brown);
  font-size: 1.06rem;
}

.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

.two-column-section p {
  color: var(--brown);
}

.ledger-card,
.ledger-note {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(47, 76, 92, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(245, 249, 252, 0.9), rgba(245, 249, 252, 0.94)),
    url("/images/textures/aged-ledger-paper.jpg") center / 680px auto,
    var(--parchment-light);
  background-size: 100% 32px, auto, 680px auto, auto;
  border: 1px solid rgba(89, 64, 43, 0.28);
  box-shadow: 0 10px 28px rgba(43, 33, 24, 0.08);
}

.ledger-card::before,
.ledger-note::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 6px;
  pointer-events: none;
  background: url("/images/textures/engraved-brass-henry.jpg") center center / 100% auto no-repeat;
  filter: saturate(0.9) contrast(0.92) brightness(1.06);
}

.ledger-card {
  padding: 1.25rem;
}

.ledger-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
}

.ledger-note p {
  margin: 0;
  color: var(--brown);
}

.plain-list {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  color: var(--brown);
}

.plain-list li + li {
  margin-top: 0.5rem;
}

.contact-card {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  color: var(--brown);
  font-style: normal;
}

.sell-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background:
    linear-gradient(180deg, rgba(245, 249, 252, 0.12), transparent 24%, transparent 74%, rgba(7, 15, 28, 0.18)),
    linear-gradient(180deg, rgba(24, 45, 79, 0.91), rgba(16, 31, 55, 0.96)),
    url("/images/textures/blued-steel.jpg") center / cover no-repeat,
    var(--cavalry-blue);
  background-blend-mode: soft-light, multiply, soft-light, normal;
  border: 1px solid rgba(89, 64, 43, 0.18);
  border-radius: 6px;
  color: var(--parchment-light);
  box-shadow:
    inset 0 18px 34px rgba(245, 249, 252, 0.055),
    inset 0 -18px 34px rgba(7, 15, 28, 0.18),
    0 18px 45px rgba(43, 33, 24, 0.13);
}

.sell-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 8px;
  pointer-events: none;
  background: url("/images/textures/engraved-brass-henry.jpg") center center / auto 100% no-repeat;
  filter: saturate(0.5) contrast(0.62) brightness(0.78);
  mix-blend-mode: screen;
  opacity: 0.5;
}

.sell-section::after {
  content: "";
  position: absolute;
  top: -8rem;
  right: -8rem;
  bottom: -7rem;
  z-index: -1;
  width: min(620px, 58vw);
  background: url("/images/textures/engraved-metal.jpg") center / cover no-repeat;
  filter: grayscale(1) sepia(0.62) saturate(0.5) contrast(0.56) brightness(1.16);
  mix-blend-mode: screen;
  opacity: 0.13;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0 24%, rgba(0, 0, 0, 0.5) 48%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 0 24%, rgba(0, 0, 0, 0.5) 48%, transparent 78%);
}

.sell-section .eyebrow,
.sell-section h2,
.sell-section p,
.sell-section .button {
  position: relative;
  z-index: 2;
}

.sell-section h2,
.sell-section p {
  color: var(--parchment-light);
}

.sell-section .eyebrow {
  color: var(--brass);
}

.sell-section p {
  max-width: 820px;
  margin: 0.85rem 0 0;
}

.sell-section .button-primary {
  border-color: var(--brass);
  background: var(--brass);
  color: var(--ink);
}

.sell-section .button-primary:hover,
.sell-section .button-primary:focus {
  border-color: var(--parchment-light);
  background: var(--parchment-light);
}

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 2.25rem 0;
  background:
    linear-gradient(180deg, rgba(245, 249, 252, 0.11), transparent 22%, transparent),
    linear-gradient(180deg, rgba(16, 31, 55, 0.94), rgba(10, 20, 36, 0.98)),
    url("/images/textures/blued-steel.jpg") center / cover no-repeat,
    var(--cavalry-blue-dark);
  background-blend-mode: soft-light, multiply, soft-light, normal;
  box-shadow: inset 0 24px 34px rgba(245, 249, 252, 0.045);
  color: var(--parchment-light);
}

.site-footer::before {
  top: 0;
  z-index: 2;
  opacity: 0.45;
  filter: saturate(0.5) contrast(0.62) brightness(0.78);
  mix-blend-mode: screen;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 249, 252, 0.16), rgba(245, 249, 252, 0.045) 42%, transparent);
}

.site-footer .container {
  position: relative;
  z-index: 3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  margin: 0 0 0.35rem;
  color: var(--parchment-light) !important;
  font-size: 1.35rem;
}

.site-footer p,
.site-footer address,
.site-footer a {
  color: rgba(245, 249, 252, 0.88);
}

.site-footer address {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  font-style: normal;
}

.site-footer a:hover {
  color: var(--brass);
}

.legal-note {
  margin: 1.35rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(245, 249, 252, 0.16);
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-main::before {
    background:
      radial-gradient(circle at 84% 8%, rgba(27, 52, 86, 0.06), transparent 22rem);
    opacity: 0.9;
  }

  .category-section::before,
  .featured-section::before,
  .page-hero::before {
    opacity: 0.08;
  }

  .hero-section,
  .sell-section,
  .footer-grid,
  .item-detail-layout,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    display: grid;
    min-height: 0;
    aspect-ratio: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero-section::before,
  .hero-section::after {
    content: none;
  }

  .hero-panorama {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 0;
    border: 1px solid rgba(181, 138, 42, 0.46);
    border-radius: 4px;
    box-shadow: 0 14px 28px rgba(7, 18, 32, 0.22);
  }

  .hero-panorama::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    pointer-events: none;
    background: url("/images/textures/engraved-brass-henry.jpg") center / 100% auto no-repeat;
    filter: saturate(0.62) contrast(0.72) brightness(0.88);
    opacity: 0.82;
  }

  .hero-intro-panel {
    width: auto;
    margin-top: -0.35rem;
  }

  .category-grid,
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sell-section .button {
    justify-self: start;
  }

  .section-action {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-main {
    padding-top: 1.5rem;
  }

  .site-main::before,
  .category-section::before,
  .featured-section::before,
  .page-hero::before {
    opacity: 0.045;
  }

  .sell-section::before {
    width: 6px;
    opacity: 0.42;
  }

  .sell-section::after {
    width: 74vw;
    opacity: 0.1;
  }

  .hero-section {
    min-height: 0;
    padding: 0;
  }

  .hero-intro-panel {
    padding: 1rem;
  }

  .hero-panorama {
    aspect-ratio: 16 / 8;
  }

  .category-grid,
  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .ledger-panel-header {
    flex-direction: column;
    gap: 0.25rem;
  }

  .item-specs div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .item-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-nav {
    width: 2.35rem;
    height: 2.35rem;
  }

  .gallery-nav span {
    font-size: 2rem;
  }

  .gallery-nav-previous {
    left: 0.45rem;
  }

  .gallery-nav-next {
    right: 0.45rem;
  }

  .gallery-thumbnails {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.65rem 0.65rem 0;
  }

  .image-lightbox {
    padding: 0.65rem;
  }

  .back-link {
    text-align: center;
  }
}
