/**
 * Reusable UI — scales to Shop / Gallery / About / Contact
 *
 * Suggested map for future pages:
 *   SiteHeader    — global nav + wordmark
 *   SiteFooter    — legal, socials
 *   SectionShell  — .section + .section__header + .wrap
 *   ArchFrame     — hero / feature vignette
 *   ProductCard   — print or future SKU (image, title, meta, price, link)
 *   Plaque        — museum-style caption
 *   CtaGroup      — primary + ghost buttons
 *   EditorialBlock — pull quote / manifesto columns
 */

/* —— Site header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--color-bg) 93%, transparent);
  backdrop-filter: blur(14px) saturate(1.05);
  border-bottom: 1px solid color-mix(in srgb, var(--color-stone-200) 78%, transparent);
  box-shadow:
    0 1px 0 0 color-mix(in srgb, var(--color-gold-muted) 18%, transparent),
    0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--color-gold-muted) 45%, transparent) 35%,
    color-mix(in srgb, var(--color-gold-muted) 45%, transparent) 65%,
    transparent
  );
  opacity: 0.65;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem var(--gutter);
  width: min(var(--measure-wide), calc(100% - 2 * var(--gutter)));
  max-width: 100%;
  margin-inline: auto;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.6rem, 1.5vw, 0.85rem);
  flex-shrink: 0;
  max-width: min(100%, 20rem);
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.wordmark:hover {
  opacity: 0.92;
}

.wordmark__mark {
  display: block;
  width: clamp(1.85rem, 4.5vw, 2.35rem);
  height: auto;
  flex-shrink: 0;
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: clamp(var(--text-base), 2.2vw, var(--text-lg));
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  line-height: 1.12;
  color: var(--color-ink);
}

.wordmark__tagline {
  display: block;
  font-size: var(--text-xs);
  font-family: var(--font-ui);
  font-weight: 400;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
  line-height: 1.2;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}

.nav-main a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle-icon {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle-icon::before {
  top: -7px;
}
.nav-toggle-icon::after {
  top: 7px;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    position: fixed;
    inset: 3.5rem var(--gutter) auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .nav-main.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-main a {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-main a:last-child {
    border-bottom: 0;
  }
}

/* —— Sections —— */
.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: calc(var(--section-y) * 0.65);
}

.section__eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: var(--leading-tight);
  margin: 0 0 1rem;
  color: var(--color-ink);
}

.section__title--display {
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
}

.section__lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 36rem;
  margin: 0;
  line-height: var(--leading-snug);
}

.section__lead--wide {
  max-width: min(46rem, 100%);
}

/* —— Arch / pediment framing (vaulted top, museum mat) —— */
.arch-frame {
  --arch-mat: var(--frame-mat);
  position: relative;
  border-radius: var(--radius-arch) var(--radius-arch) 0 0;
  overflow: hidden;
  padding: var(--arch-mat) var(--arch-mat) 0;
  background: linear-gradient(
    165deg,
    var(--color-bg-surface),
    var(--color-bg-elevated) 48%,
    color-mix(in srgb, var(--color-bg-surface) 88%, var(--color-stone-200))
  );
  box-shadow:
    var(--shadow-soft),
    var(--shadow-inset-stone),
    inset 0 0 0 1px color-mix(in srgb, var(--color-gold) 18%, transparent);
}

.arch-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    ellipse 120% 45% at 50% 0%,
    color-mix(in srgb, var(--color-gold-muted) 14%, transparent),
    transparent 62%
  );
}

.arch-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--color-gold) 28%, transparent),
    inset 0 0 0 2px color-mix(in srgb, var(--color-gold) 22%, transparent);
  border-radius: inherit;
}

.arch-frame__media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-arch) - var(--arch-mat)) calc(var(--radius-arch) - var(--arch-mat)) 0 0;
  box-shadow: 0 1px 0 color-mix(in srgb, #000 35%, transparent);
}

/* —— Museum wall / salon plate —— */
.salon-plate {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: var(--frame-mat);
  background: linear-gradient(
    152deg,
    var(--color-bg-surface) 0%,
    var(--color-bg-elevated) 40%,
    var(--color-bg-surface) 100%
  );
  border-radius: var(--radius-lintel);
  box-shadow:
    var(--shadow-card),
    inset 0 0 0 1px var(--frame-liner),
    inset 0 0 0 3px color-mix(in srgb, var(--color-bg) 75%, transparent);
}

.salon-plate__media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lintel) - 2px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-ink) 06%, transparent);
}

.salon-plate__cap {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -40%;
  width: min(42%, 8rem);
  height: 0.35rem;
  border-radius: var(--radius-arch-soft);
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--color-gold-muted) 55%, transparent),
    transparent
  );
  opacity: 0.85;
  pointer-events: none;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
   
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-void);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-gold-bright);
  color: var(--color-void);
  border-color: var(--color-gold-bright);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: color-mix(in srgb, var(--color-gold) 55%, transparent);
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--color-gold) 14%, transparent);
  color: var(--color-warm-white);
  border-color: var(--color-gold);
}

/* —— Product cards (prints + future categories) —— */
.product-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: repeat(3, 1fr);
}

.product-grid--editorial {
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: stretch;
}

@media (min-width: 901px) {
  .product-grid--editorial {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .product-grid--editorial .product-card:first-child {
    grid-row: 1 / -1;
  }

  .product-grid--editorial .product-card:first-child .product-card__frame {
    aspect-ratio: auto;
    flex: 1;
    min-height: clamp(22rem, 42vh, 36rem);
  }

  .product-grid--editorial .product-card:first-child {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-grid--editorial {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }

  .product-grid--editorial .product-card:first-child {
    grid-row: auto;
  }

  .product-grid--editorial .product-card:first-child .product-card__frame {
    aspect-ratio: 3 / 4;
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

.product-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.product-card__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  padding: min(3%, 10px);
  background: linear-gradient(
    155deg,
    var(--color-bg-surface),
    var(--color-bg-elevated) 42%,
    var(--color-bg-surface) 100%
  );
  box-shadow: inset 0 0 0 1px var(--frame-liner), var(--shadow-inset-stone);
}

.product-card__frame::before {
  content: "";
  position: absolute;
  inset: min(3%, 10px);
  pointer-events: none;
  border-radius: 1px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-gold-muted) 35%, transparent);
}

.product-card__frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.5rem;
}

.product-card__collection {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-accent);
}

.product-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0;
  line-height: var(--leading-tight);
}

.product-card__meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin: 0;
}

.product-card__footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
}

.product-card__price {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.product-card__link {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-gold-dim);
  padding-bottom: 0.1rem;
}

.product-card__link:hover {
  border-color: var(--color-accent);
}

/* —— Product card — category proportions (shop + future grids) —— */
.product-card--book .product-card__frame {
  aspect-ratio: 2 / 3;
}

.product-card--square .product-card__frame {
  aspect-ratio: 1 / 1;
}

.product-card--landscape .product-card__frame {
  aspect-ratio: 5 / 4;
}

.product-card--state-soon:hover {
  transform: none;
  box-shadow: none;
}

.product-card--state-soon .product-card__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 14rem;
  padding: 1.35rem;
  background: linear-gradient(
    160deg,
    var(--color-stone-100) 0%,
    var(--color-bg-elevated) 45%,
    var(--color-stone-200) 100%
  );
}

.product-card--state-soon .product-card__frame::before {
  display: none;
}

.product-card--state-soon .product-card__frame img {
  display: none;
}

.product-card__soon-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-align: center;
  padding: 1.25rem;
  max-width: 14rem;
  line-height: var(--leading-snug);
}

.product-card__sku {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-taupe) 85%, var(--color-ink));
  margin-top: 0.15rem;
}

.product-card__na {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-stone-300);
}

/* —— Plaque / caption —— */
.plaque {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border-left: 3px solid var(--color-gold-muted);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.plaque strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.plaque--hero {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 0 1.1rem 1.35rem;
  background: transparent;
  border-left: 2px solid var(--color-gold-muted);
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.plaque--hero strong {
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  margin-bottom: 0;
}

.plaque__meta {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-snug);
  max-width: 28ch;
}

.plaque__id {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--color-taupe) 90%, var(--color-ink));
}

/* —— Editorial / manifesto —— */
.editorial-columns {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 720px) {
  .editorial-columns {
    grid-template-columns: 1fr;
  }
}

.pull-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: 500;
  line-height: var(--leading-snug);
  margin: 0;
  color: var(--color-ink);
  position: relative;
}

.pull-quote::before {
  content: "";
  display: block;
  width: 3rem;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: 1.25rem;
}

.editorial-columns--tension {
  gap: clamp(2.25rem, 6vw, 5rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.pull-quote--hero {
  font-size: var(--text-2xl);
  font-weight: 600;
  font-style: italic;
  letter-spacing: var(--tracking-display);
  padding-right: clamp(0rem, 3vw, 2rem);
}

.pull-quote--hero::before {
  width: 4rem;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  padding: 3rem var(--gutter);
  border-top: 3px double color-mix(in srgb, var(--color-stone-200) 72%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-bg-surface) 55%, var(--color-bg)) 0%,
    var(--color-bg-elevated) 38%,
    var(--color-bg) 100%
  );
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 12%,
    color-mix(in srgb, var(--color-gold-muted) 35%, transparent) 45%,
    color-mix(in srgb, var(--color-gold-muted) 35%, transparent) 55%,
    transparent 88%
  );
  opacity: 0.55;
  pointer-events: none;
}

.site-footer__inner {
  max-width: var(--measure-wide);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
