:root {
  --bg: #0c0b0a;
  --bg-elev: #161311;
  --ink: #f3ebe0;
  --ink-muted: #b5a894;
  --line: rgba(243, 235, 224, 0.14);
  --accent: #c4a35a;
  --accent-soft: rgba(196, 163, 90, 0.18);
  --danger: #d9896c;
  --max: 72rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 163, 90, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(90, 140, 150, 0.08), transparent 50%),
    var(--bg);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #e0c787;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #111;
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(12, 11, 10, 0.84);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand {
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.15rem;
}

.site-nav a,
.nav-dropdown-trigger {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.site-nav a:hover,
.nav-dropdown-trigger:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-cart {
  color: var(--ink) !important;
  border: 1px solid var(--line);
  padding: 0.35rem 0.7rem !important;
  border-radius: 999px;
}

.cart-count {
  display: inline-block;
  min-width: 1.25rem;
  text-align: center;
  color: var(--accent);
}

.cart-count.cart-pop {
  animation: cartPop 420ms var(--ease);
}

@keyframes cartPop {
  0% { transform: scale(1); }
  35% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 14rem;
  max-height: 70vh;
  overflow: auto;
  padding: 0.55rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  z-index: 50;
}

.nav-dropdown-panel a {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 0.35rem;
}

.nav-dropdown-panel a:hover {
  background: var(--accent-soft);
}

.nav-dropdown.open .nav-dropdown-panel {
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .site-nav.open {
    display: flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav-dropdown-panel {
    position: static;
    box-shadow: none;
    margin-top: 0.35rem;
    width: 100%;
  }
}

.hero {
  min-height: min(92vh, 52rem);
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #080706;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: transform, opacity;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4.5rem 1rem 2.75rem;
}

.hero-knockout {
  max-width: 36rem;
  padding: 1.15rem 1.25rem 1.3rem;
  border-radius: 0.35rem;
  background: rgba(8, 7, 6, 0.72);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}

.hero-knockout h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: none;
}

.hero-lede {
  max-width: 34rem;
  margin: 0 0 0.75rem;
  color: rgba(243, 235, 224, 0.92);
  font-size: clamp(0.95rem, 1.5vw, 1.05rem);
}

.hero-lede-sizes {
  margin-bottom: 1.25rem;
  color: rgba(243, 235, 224, 0.8);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Homepage Art Shop mosaic — full images, tight side margins */
.home-shop {
  padding: 2rem 0 3rem;
}

.home-shop-head {
  padding: 0 0.65rem 1.1rem;
}

.home-shop-head h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.home-shop-head p {
  margin: 0;
  color: var(--ink-muted);
}

.home-mosaic {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0 0.55rem;
}

.home-row {
  display: grid;
  gap: 0.55rem;
}

.home-row-single {
  grid-template-columns: 1fr;
}

.hero-knockout .btn-ghost {
  border-color: rgba(243, 235, 224, 0.35);
  color: #f3ebe0;
  background: rgba(255, 255, 255, 0.06);
}

.hero-knockout .btn-ghost:hover {
  color: #fff;
  border-color: rgba(243, 235, 224, 0.55);
}

.home-row-pair {
  align-items: start;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .home-row-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.home-cell {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--bg);
}

.home-cell figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-cell img {
  width: 100%;
  height: auto;
  max-height: min(88vh, 1100px);
  object-fit: contain;
  object-position: center;
  display: block;
  background: var(--bg);
}

.home-cell-horizontal img {
  max-height: min(72vh, 900px);
}

.home-cell figcaption {
  width: 100%;
  padding: 0.55rem 0.35rem 0.15rem;
  text-align: center;
}

.home-cell-cat {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.15rem;
}

.home-cell-explore {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
}

.home-cell-cat-name {
  font-weight: 700;
  color: var(--accent);
}

.home-cell-title {
  display: none;
}

.home-cell:hover .home-cell-explore {
  color: var(--ink);
}

.home-cell:hover .home-cell-cat-name {
  color: #e0c57a;
}

.category-footer-nav {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.category-footer-nav .see-also {
  color: var(--ink-muted);
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.category-footer-nav .see-also a {
  color: var(--accent);
  text-decoration: none;
}

.category-footer-nav .see-also a:hover {
  text-decoration: underline;
}

.category-footer-nav .next-category,
.category-footer-nav .return-home {
  margin: 0 0 0.65rem;
}

.category-footer-nav .return-home {
  margin-bottom: 0;
}

.category-footer-nav .next-category a,
.category-footer-nav .return-home a {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.category-footer-nav .next-category a:hover,
.category-footer-nav .return-home a:hover {
  color: var(--accent);
}

.category-footer-nav .see-also a {
  white-space: nowrap;
}

.contact-form {
  margin-top: 2rem;
  max-width: 32rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
}

.contact-form label span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
}

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

.form-status {
  margin: 0;
  font-size: 0.95rem;
}

.form-status.is-ok {
  color: #9bc49a;
}

.form-status.is-err {
  color: #e08a8a;
}

.about-layout {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 800px) {
  .about-layout {
    grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.about-photo {
  margin: 0;
  border: 1px solid var(--line);
  background: #080706;
  overflow: hidden;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(80vh, 880px);
  object-fit: contain;
  object-position: top center;
}

.about-photo figcaption {
  padding: 0.7rem 0.9rem 0.8rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}

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

.btn-primary {
  background: var(--accent);
  color: #1a1408;
}

.btn-primary:hover {
  color: #1a1408;
  background: #d4b56a;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.25rem 1.25rem;
}

.section-head {
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 40rem;
}

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

@media (min-width: 900px) {
  .category-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.category-tile {
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: var(--bg-elev);
  min-height: 14rem;
  isolation: isolate;
  transition: transform 400ms var(--ease), box-shadow 400ms var(--ease);
}

.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 900ms var(--ease);
}

.category-tile:hover img {
  transform: scale(1.06);
}

.category-tile span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 1.1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

.shop-page-title,
.page-title {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
}

.lede {
  color: var(--ink-muted);
  max-width: 42rem;
}

.shop-rows {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 2rem;
}

.shop-row {
  display: grid;
  gap: 1.25rem;
}

.shop-row.single {
  grid-template-columns: 1fr;
}

.shop-row.pair {
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .shop-row.pair {
    grid-template-columns: 1fr 1fr;
  }
}

/*
 * Lone verticals: match the width of one image in a pair row (not full bleed),
 * so height ≈ same as paired verticals — no oversized talls, no tiny boxed image.
 */
.shop-row.single-vertical {
  justify-items: center;
}

.shop-row.single-vertical .work-card {
  width: 100%;
}

@media (min-width: 760px) {
  .shop-row.single-vertical .work-card {
    /* Same column width as .shop-row.pair children (1fr 1fr + 1.25rem gap) */
    width: calc((100% - 1.25rem) / 2);
    max-width: none;
  }
}

.shop-row.single-vertical .work-frame {
  width: 100%;
  line-height: 0;
}

.shop-row.single-vertical .work-frame img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

.work-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-frame {
  background: #080706;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 280ms var(--ease), box-shadow 280ms var(--ease);
}

.work-card:hover .work-frame,
.work-card:focus-visible .work-frame {
  border-color: rgba(196, 163, 90, 0.45);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.work-frame img {
  width: 100%;
  height: auto;
  vertical-align: middle;
  transition: transform 700ms var(--ease), opacity 250ms var(--ease);
}

.work-card:hover .work-frame img {
  transform: scale(1.03);
  opacity: 0.94;
}

.work-title {
  margin: 0.7rem 0 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 220ms var(--ease);
}

.work-card:hover .work-title {
  color: var(--accent);
}

.product {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .product {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    align-items: start;
  }
}

.product-visual {
  background: #080706;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.product-visual img {
  width: 100%;
}

.product-panel h1 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.02em;
}

.product-panel .meta-line {
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
}

.sku-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.sku-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}

.sku-option:has(input:checked) {
  border-color: rgba(196, 163, 90, 0.55);
  background: var(--accent-soft);
}

.sku-option:hover {
  border-color: rgba(243, 235, 224, 0.28);
}

.sku-option label {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  cursor: pointer;
}

.sku-option .price {
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 600;
}

.boilerplate {
  margin: 1.5rem 0;
  padding: 0;
  color: var(--ink-muted);
}

.boilerplate h3 {
  margin: 1rem 0 0.35rem;
  color: var(--ink);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.boilerplate ul {
  margin: 0;
  padding-left: 1.1rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.share-row a,
.share-row button {
  font-size: 0.85rem;
}

.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--ink-muted);
  font-size: 1.05rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.contact-list a {
  font-size: 1.15rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.cart-table th,
.cart-table td {
  text-align: left;
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.cart-table th {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.cart-empty {
  color: var(--ink-muted);
}

.qty-input {
  width: 4rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
}

.checkout-note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px dashed var(--line);
  color: var(--ink-muted);
  background: rgba(196, 163, 90, 0.06);
}

.test-mode-notice {
  margin: 1.25rem 0 0;
  padding: 0.9rem 1.05rem;
  border: 2px solid var(--accent);
  border-radius: 0.35rem;
  background: rgba(196, 163, 90, 0.14);
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
  text-align: center;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1.25rem 2.75rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-links {
  margin-top: 0.5rem;
}

.btn:focus-visible,
.site-nav a:focus-visible,
.nav-dropdown-trigger:focus-visible,
.work-card:focus-visible,
.category-tile:focus-visible,
.sku-option input:focus-visible,
.qty-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@keyframes riseIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .hero-slide img {
    object-fit: contain;
    object-position: center center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .work-card,
  .category-tile img,
  .hero-slide {
    animation: none !important;
    transition: none !important;
  }
}
