:root {
  --safelight: #C23B22;
  --tray: #121212;
  --developer: #3D4F3A;
  --paper: #EDE6D9;
  --steel: #8A9096;
  --display: "Courier Prime", "Courier New", monospace;
  --sans: "Hind", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body.skin-darkroom {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--sans);
  color: var(--paper);
  background: var(--tray);
  line-height: 1.65;
}

body.skin-darkroom::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 9rem;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse 90% 120% at 50% -30%, rgba(194, 59, 34, 0.55), transparent 68%);
}

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

a {
  color: var(--safelight);
}

a:hover {
  color: var(--paper);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}

h1 {
  font-size: clamp(1.35rem, 6.2vw, 3.1rem);
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

p {
  margin: 0 0 1rem;
}

.hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  position: absolute;
  z-index: 90;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--tray);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
}

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.wrap-wide {
  width: min(82rem, calc(100% - 1.4rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.kicker,
.eyebrow {
  font-family: var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--safelight);
  margin: 0 0 0.5rem;
}

.lead {
  font-size: 1.05rem;
  color: #d4cdc0;
  overflow-wrap: anywhere;
}

.hero,
.band,
.wrap,
.wrap-wide {
  max-width: 100%;
  min-width: 0;
}

.safelight-bar {
  position: relative;
  z-index: 20;
  background: var(--safelight);
  color: var(--paper);
  box-shadow:
    0 0 42px 6px rgba(194, 59, 34, 0.55),
    inset 0 -10px 18px rgba(18, 18, 18, 0.22);
}

.safelight-inner {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 30px;
  height: 20px;
  flex-shrink: 0;
  background: var(--tray);
  box-shadow: inset 3px 0 0 var(--paper), inset -3px 0 0 var(--paper);
}

.brand-name {
  font-family: var(--display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  letter-spacing: 0.04em;
  font-weight: 700;
}

.brand-tag {
  display: block;
  font-size: 0.72rem;
  opacity: 0.92;
  font-family: var(--sans);
  letter-spacing: 0.04em;
}

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

.site-nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.site-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.28em;
  color: var(--tray);
}

.cart-link {
  margin-left: auto;
  color: var(--paper);
  text-decoration: none;
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-family: var(--display);
}

.cart-link strong {
  background: var(--tray);
  color: var(--paper);
  min-width: 1.45rem;
  text-align: center;
  padding: 0.05rem 0.4rem;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--paper);
  color: var(--paper);
  padding: 0.35rem 0.65rem;
  font-family: var(--display);
  cursor: pointer;
}

.btn {
  display: inline-block;
  background: var(--safelight);
  color: var(--paper);
  text-decoration: none;
  padding: 0.72rem 1.15rem;
  border: 0;
  font-family: var(--display);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.btn:hover {
  color: var(--paper);
  filter: brightness(1.08);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--steel);
}

.btn-wide {
  width: 100%;
  text-align: center;
}

.hero {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.6rem;
  width: min(72rem, calc(100% - 2rem));
  margin: 1.4rem auto 2rem;
  align-items: center;
}

.hero-copy {
  background: linear-gradient(180deg, rgba(61, 79, 58, 0.55), rgba(18, 18, 18, 0.2));
  padding: 1.5rem 1.3rem 1.6rem;
  border: 1px solid #2c3a2a;
  box-shadow: inset 0 10px 22px rgba(0, 0, 0, 0.28);
}

.hero-frame {
  position: relative;
  background: #0a0a0a;
  padding: 1.4rem 1.35rem 1.2rem;
  margin: 0;
}

.hero-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.06) saturate(0.82);
}

.hero-frame .steel-clip {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head a {
  font-family: var(--display);
  color: var(--paper);
  text-underline-offset: 0.2em;
}

.hang-room {
  position: relative;
  z-index: 2;
}

.rail {
  height: 7px;
  margin: 0 3% 0;
  background: linear-gradient(180deg, #c9ced3, var(--steel) 42%, #5a6066);
  box-shadow: 0 2px 0 #2e3236, 0 6px 10px rgba(0, 0, 0, 0.35);
}

.hang-room {
  overflow-x: auto;
  max-width: 100%;
}

.strips,
[data-render="featured"] {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  padding: 0 4% 1rem;
  margin-top: 0;
  overflow-x: auto;
  max-width: 100%;
  scroll-snap-type: x mandatory;
}

.strips .film-strip,
[data-render="featured"] .film-strip {
  flex: 0 0 78%;
  scroll-snap-align: start;
}

.film-strip {
  position: relative;
  background: #0d0d0d;
  padding: 1.7rem 1.35rem 1.1rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45);
  margin-top: 10px;
}

.film-strip .hang-line {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 2px;
  height: 18px;
  background: var(--steel);
}

.film-strip .steel-clip {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
}

.sprocket {
  position: absolute;
  top: 10px;
  bottom: 10px;
  width: 9px;
  background-image: repeating-linear-gradient(
    to bottom,
    #0d0d0d 0 5px,
    var(--paper) 5px 13px,
    #0d0d0d 13px 18px
  );
}

.sprocket-left {
  left: 4px;
}

.sprocket-right {
  right: 4px;
}

.strip-label {
  font-family: var(--display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  text-align: center;
  margin: 0 0 0.7rem;
}

.film-strip .cell {
  display: block;
  text-decoration: none;
  color: var(--paper);
  margin-bottom: 0.85rem;
}

.film-strip .cell img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.8);
  border: 2px solid #1c1c1c;
}

.film-strip .cell h3 {
  font-size: 1rem;
  margin: 0.35rem 0 0.15rem;
}

.film-strip .cell .kicker {
  margin: 0.4rem 0 0.15rem;
}

.steel-clip {
  position: relative;
  display: block;
  width: 26px;
  height: 15px;
  background: linear-gradient(90deg, #6a7076, #c5cbd0 16%, var(--steel) 50%, #c5cbd0 84%, #6a7076);
  border-radius: 1px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  z-index: 3;
}

.steel-clip::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -10px;
  width: 13px;
  height: 12px;
  margin-left: -6.5px;
  border: 2px solid var(--steel);
  border-bottom-color: transparent;
  border-radius: 50% 50% 0 0;
  box-sizing: border-box;
}

.steel-clip::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -7px;
  height: 8px;
  background: linear-gradient(#9aa0a6, #5c6268);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 18% 100%);
}

.tray {
  background: var(--developer);
  color: var(--paper);
  padding: 1.6rem 1.3rem;
  border: 1px solid #2a3828;
  box-shadow: inset 0 12px 24px rgba(0, 0, 0, 0.32), inset 0 -5px 0 #2a3828;
}

.band {
  display: grid;
  gap: 1.4rem;
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.band img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.78);
}

.product-grid,
[data-render="catalog"] {
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
  width: min(38rem, 100%);
  margin: 0 auto;
}

.film-frame {
  position: relative;
  background: #0d0d0d;
  padding: 2rem 1.7rem 1.4rem;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.4);
}

.film-frame .steel-clip {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.film-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.82);
  border: 2px solid #1c1c1c;
}

.film-frame h2 {
  margin-top: 0.7rem;
}

.film-frame h2 a {
  color: var(--paper);
  text-decoration: none;
}

.film-frame h2 a:hover {
  color: var(--safelight);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.4rem;
}

.filters button {
  border: 1px solid var(--steel);
  background: transparent;
  color: var(--paper);
  padding: 0.35rem 0.7rem;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.filters button.is-active {
  background: var(--safelight);
  border-color: var(--safelight);
  color: var(--paper);
}

.product-detail {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.product-detail img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.82);
}

.product-detail .film-frame img {
  padding: 0;
  background: transparent;
}

.product-stage {
  position: relative;
}

.about-layout,
.contact-layout,
.checkout-layout,
.cart-layout {
  display: grid;
  gap: 1.5rem;
}

.about-layout img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.8);
}

.ticket-form,
.side-card,
.summary {
  background: var(--paper);
  color: var(--tray);
  padding: 1.15rem 1.1rem 1.3rem;
  box-shadow: inset 0 8px 16px rgba(61, 79, 58, 0.12);
}

.ticket-form h2,
.side-card h2,
.summary h2 {
  color: var(--tray);
}

.ticket-form a,
.side-card a,
.summary a {
  color: var(--safelight);
}

.field,
select.field,
textarea.field {
  width: 100%;
  padding: 0.65rem;
  border: 1px solid var(--steel);
  font-family: var(--sans);
  font-size: 1rem;
  background: #f6f1e8;
  color: var(--tray);
  margin: 0 0 0.8rem;
}

label {
  display: block;
  margin: 0.35rem 0 0.2rem;
}

textarea.field {
  min-height: 8rem;
  resize: vertical;
}

.field-hint {
  color: #3a3a3a;
  font-size: 0.9rem;
  margin: -0.4rem 0 0.8rem;
}

.checkbox-line {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.45rem 0;
}

.checkbox-line.full {
  width: 100%;
}

.checkbox-line a {
  color: inherit;
  text-decoration: underline;
}

.pay-option {
  display: block;
  border: 1px solid var(--steel);
  padding: 0.7rem;
  margin: 0.4rem 0;
  background: #f6f1e8;
}

.pay-option p {
  margin: 0.25rem 0 0 1.4rem;
  color: #333;
}

.cart-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1rem;
  background: #0d0d0d;
  padding: 0.85rem;
  margin-bottom: 0.8rem;
  color: var(--paper);
}

.cart-item img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.cart-item a {
  color: var(--paper);
}

.cart-item h2 {
  font-size: 1.05rem;
}

.quantity {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin: 0.45rem 0;
}

.remove-btn,
.quantity button {
  background: transparent;
  border: 1px solid var(--steel);
  color: var(--paper);
  cursor: pointer;
  font-family: var(--display);
  min-width: 1.8rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin: 0.35rem 0;
  gap: 1rem;
}

.legal-wrap {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.5rem;
  align-items: start;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: sticky;
  top: 1rem;
}

.legal-nav a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.legal-nav a[aria-current="page"] {
  color: var(--safelight);
  font-weight: 700;
}

.legal-page h1,
.legal-article,
.legal-article h1,
.legal-article h2 {
  font-family: var(--sans);
}

.legal-article {
  max-width: 46rem;
  color: var(--paper);
}

.legal-article h2 {
  font-size: 1.15rem;
  margin-top: 1.4rem;
}

.form-feedback {
  margin-top: 1rem;
  font-weight: 600;
}

.toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  background: var(--safelight);
  color: var(--paper);
  padding: 0.75rem 1.05rem;
  z-index: 80;
  font-family: var(--display);
  box-shadow: 0 0 24px rgba(194, 59, 34, 0.5);
}

.site-footer {
  position: relative;
  z-index: 2;
  background: #0a0a0a;
  color: var(--paper);
  padding: 2.5rem 0 1.5rem;
  border-top: 6px solid var(--safelight);
}

.footer-news,
.footer-main {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.footer-main {
  display: grid;
  gap: 1.6rem;
  margin-top: 1.8rem;
}

.site-footer a {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: var(--paper);
}

.footer-main a,
.footer-main p {
  display: block;
  margin: 0 0 0.45rem;
  color: var(--paper);
}

.site-footer .checkbox-line {
  color: var(--paper);
}

.site-footer .checkbox-line a,
.site-footer .checkbox-line u {
  color: var(--paper);
  text-decoration: underline;
}

.site-footer .field {
  background: var(--paper);
  color: var(--tray);
}

.site-footer .btn {
  margin: 0.2rem 0 0.6rem;
}

.copyright {
  margin-top: 1.4rem;
  font-size: 0.92rem;
}

@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .band,
  .about-layout,
  .product-detail,
  .contact-layout,
  .checkout-layout,
  .cart-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .footer-main {
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
  }

  .strips,
  [data-render="featured"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem 1.7rem;
    align-items: start;
    padding: 0 5%;
    margin-top: -4px;
    overflow: visible;
  }

  .strips .film-strip,
  [data-render="featured"] .film-strip {
    flex: none;
    width: auto;
  }
}

@media (max-width: 799px) {
  .safelight-bar {
    position: relative;
  }

  .safelight-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0.75rem 4.8rem 0.75rem 0.75rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .menu-toggle {
    display: block;
    flex: 0 0 100%;
    order: 3;
    margin-top: 0.45rem;
  }

  .cart-link {
    position: absolute;
    top: 0.7rem;
    right: 0.6rem;
    margin: 0;
  }

  .cart-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .site-nav {
    display: none;
    flex-basis: 100%;
    order: 4;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav.is-open ul {
    flex-direction: column;
    padding: 0.4rem 0 0.6rem;
  }

  .legal-wrap {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    position: static;
  }

  .hero,
  .band,
  .about-layout,
  .product-detail,
  .contact-layout,
  .checkout-layout,
  .cart-layout,
  .footer-main {
    grid-template-columns: 1fr;
  }
}
