@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..600&family=Inter:wght@400;500&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #0b0f1a;
  --bg-panel: #10162480;
  --text: #e7e4da;
  --text-dim: #9aa0ad;
  --hairline: #2a3142;
  --amber: #e8a33d;
  --teal: #6fa8a0;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(231,228,218,.4) 0, transparent 100%),
    radial-gradient(1px 1px at 70% 65%, rgba(231,228,218,.3) 0, transparent 100%),
    radial-gradient(1px 1px at 40% 80%, rgba(231,228,218,.25) 0, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(231,228,218,.3) 0, transparent 100%),
    radial-gradient(1px 1px at 55% 45%, rgba(231,228,218,.2) 0, transparent 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 6vw;
  border-bottom: 1px solid var(--hairline);
}

.site-header .wordmark {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  justify-self: center;
  white-space: nowrap;
}

.search-toggle-btn {
  justify-self: start;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s;
  display: flex;
}

.search-toggle-btn:hover { color: var(--text); }

.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  padding: 2.5rem 6vw;
  box-shadow: 0 10px 30px rgba(5,7,12,0.8);

  /* Smooth, non-rigid drop animation */
  transform: translateY(-10px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.3s ease,
              visibility 0.3s;
}

.search-dropdown.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.dropdown-search-form {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  border-bottom: 1px solid var(--text-dim);
  padding-bottom: 0.5rem;
}

.dropdown-search-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  outline: none;
  padding: 0;
  border-radius: 0;
  /* Kills the default Mac/Safari white pill styling */
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

/* Hides the default 'x' Safari puts inside search bars so it doesn't clash with yours */
.dropdown-search-form input::-webkit-search-cancel-button {
  display: none;
}

/* The dark background overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.dropdown-search-icon, .search-close-btn { color: var(--text-dim); }

.search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem;
  display: flex;
  transition: color 0.2s;
}

.search-close-btn:hover { color: var(--text); }

.search-form input::placeholder { color: var(--text-dim); }
.search-form input:focus { outline: none; border-color: var(--teal); }

.cart-btn {
  justify-self: end;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.3rem;
  transition: color 0.2s;
}

.cart-btn:hover { color: var(--amber); }

main { padding: 0 6vw 5rem; }

/* ---------- Homepage: hero tagline + carousel ---------- */

.hero-tagline {
  max-width: 45ch;
  margin: 2.5rem auto 1.5rem;
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.hero-carousel {
  position: relative;
  height: min(60vh, 560px);
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-bottom: 3.5rem;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,7,12,0.85) 0%, rgba(5,7,12,0.15) 55%, transparent 100%);
}

.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.2rem 2.2rem 2rem;
  z-index: 1;
}

.hero-caption h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 0.3rem;
}

.hero-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--teal);
  margin: 0 0 1rem;
}

.hero-cta {
  display: inline-block;
  border: 1px solid var(--amber);
  color: var(--amber);
  padding: 0.5rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.hero-cta:hover { background: var(--amber); color: #0b0f1a; }

.hero-dots {
  position: absolute;
  right: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  gap: 0.5rem;
  z-index: 1;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--text-dim);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active { background: var(--amber); border-color: var(--amber); }

/* ---------- Spotlight print ---------- */

/* ---------- Spotlight print ---------- */

.spotlight {
  display: flex;
  align-items: center;
  gap: 4vw;
  /* Removed max-width so it expands naturally with your screen */
  margin: 0 auto 4rem auto;
  border: 1px solid var(--hairline);
  padding: 3rem; /* Slightly larger padding for a premium gallery feel */
}

.spotlight-media {
  flex: 1.4; /* Gives the image 40% more horizontal space than the text */
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 4px;
}

.spotlight-media img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.spotlight-media:hover img {
  transform: scale(1.06);
}

.spotlight-info {
  flex: 1; /* Keeps the text block contained so the image dominates */
  min-width: 0;
}

.spotlight-eyebrow {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 0 0 0.6rem;
}

.spotlight-info h2 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 0 0 0.9rem;
}

.spotlight-desc {
  color: var(--text-dim);
  max-width: 44ch;
  margin-bottom: 1.6rem;
}

.spotlight-link {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.88rem;
  color: var(--teal);
  border-bottom: 1px solid var(--hairline);
}

.spotlight-link:hover { border-color: var(--teal); }

/* ---------- Size-pill selector ---------- */

.print-selector .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.pill {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-dim);
  padding: 0.45rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.pill:hover { border-color: var(--teal); color: var(--text); }

.pill.active {
  border-color: var(--amber);
  color: var(--amber);
}

.print-selector .buy-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.selected-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---------- Collection grid section ---------- */

.collection { margin-bottom: 4rem; }

.collection-heading {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dim);
  margin: 0 0 1.2rem;
}

.search-results-heading {
  margin: 2.5rem 0 1.5rem;
  color: var(--text-dim);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}

/* ---------- Mission statement ---------- */

.mission {
  max-width: 60ch;
  margin: 0 auto 3rem;
  padding: 3rem 0;
  border-top: 1px solid var(--hairline);
  text-align: center;
}

.mission p {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
}

/* ---------- Gallery grid (cards) ---------- */

.gallery-intro {
  max-width: 46ch;
  margin: 3rem 0 2.5rem;
}

.gallery-intro h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  margin: 0 0 0.75rem;
}

.gallery-intro p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

/* ---------- Collection Toolbar ---------- */
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: var(--text-dim);
}

@media (max-width: 768px) {
  .collection-toolbar { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.toolbar-group span { color: var(--text-dim); }

.dropdown-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0;
  transition: color 0.2s;
}

.dropdown-btn:hover { color: var(--text); }

/* ---------- Gallery grid (cards) ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3rem 1.5rem;
  background: transparent;
  border: none;
}

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

.card {
  background: transparent;
  display: block;
  position: relative;
  overflow: hidden;
}

.card .frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(to top, var(--bg) 0%, rgba(25, 32, 48, 0.6) 50%, var(--bg) 100%);
}

.card img {
  width: 100%;
  height: 100%;
  padding: 0.5rem;
  box-sizing: border-box;
  object-fit: contain;
  display: block;
  filter: saturate(1.05) contrast(1.02);
  transition: transform 0.6s cubic-bezier(.2,.7,.2,1);
}

.card:hover img { transform: scale(1.045); }

.card .meta {
  padding: 1.2rem 0 0;
  border-top: none;
  text-align: center;
}

.card .meta h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: var(--text);
}

.card:hover .meta h2 { text-decoration: underline; text-underline-offset: 4px; }

.card-price {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.empty-state {
  padding: 4rem 0;
  color: var(--text-dim);
  max-width: 40ch;
}

/* ---------- Product page ---------- */

.breadcrumb {
  margin: 2rem 0 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.breadcrumb a { border-bottom: 1px solid var(--hairline); }
.breadcrumb a:hover { border-color: var(--teal); color: var(--teal); }

.product {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4vw;
  align-items: start;
}

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

.product .frame {
  border: 1px solid var(--hairline);
  background: #05070c;
  overflow: hidden;
}

.product .frame img {
  width: 100%;
  display: block;
}

.product-info h1 {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
  line-height: 1.1;
}

.product-info .description {
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 1.75rem;
}

.readout-block {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
  border: 1px solid var(--hairline);
  padding: 1rem 1.1rem;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.5rem;
}

.readout-block .row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-dim);
}

.readout-block .row span:last-child {
  color: var(--text);
  text-align: right;
}

.print-options h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dim);
  margin: 0 0 0.9rem;
}

.print-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--hairline);
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
}

.print-option .label { font-size: 0.95rem; }
.print-option .price { color: var(--text-dim); font-family: 'IBM Plex Mono', monospace; font-size: 0.85rem; margin-left: 0.6rem; }

.buy-btn {
  border: 1px solid var(--amber);
  color: var(--amber);
  background: transparent;
  padding: 0.5rem 1.1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.buy-btn:hover { background: var(--amber); color: #0b0f1a; }

.no-options {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.site-footer {
  padding: 2.5rem 6vw 3rem;
  border-top: 1px solid var(--hairline);
  color: var(--text-dim);
  font-size: 0.85rem;
  font-family: 'IBM Plex Mono', monospace;
}

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

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* =========================================
   MOBILE RESPONSIVE TWEAKS
   ========================================= */
@media (max-width: 768px) {
  /* 1. Add breathing room to header edges */
  .site-header {
    padding: 2rem 1rem 1rem !important;
  }

  /* 2. Scale down banner text and allow clean wrapping */
  .wordmark {
    font-size: 1.05rem !important;
    letter-spacing: 0.05em !important;
    text-align: center;
    display: inline-block;
    line-height: 1.4;
    max-width: 90vw;
  }

  /* 3. Stack spotlight vertically with edge-to-edge image */
  .spotlight {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  .spotlight-media {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    border: none !important;
    border-bottom: 1px solid var(--hairline) !important;
    border-radius: 0 !important;
  }

  .spotlight-media img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover !important;
  }

  .spotlight-info {
    width: 100% !important;
    padding: 1.5rem 1.25rem !important;
    box-sizing: border-box !important;
  }

  /* 4. Pad the mission statement and footer */
  .mission,
  .site-footer {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    text-align: center;
  }
}