@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=DejaVu+Sans+Mono&display=swap');

:root {
  --paper: #FFFFFF;
  --paper-soft: #F7F5F0;
  --ink: #1E1C18;
  --faint: #787468;
  --rule: #CDC9C1;
  --frame: #C8C4BC;
  --accent: #4C6B2D;
  --accent-dark: #3a5322;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Lora', Georgia, serif;
  line-height: 1.6;
}

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

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

/* Header / nav */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
}
.brand-logo { height: 84px; width: auto; display: block; }
.nav-toggle {
  display: block;
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 20px;
  padding: 4px 10px;
  cursor: pointer;
}
.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  z-index: 20;
}
.site-nav.open { display: flex; }
.site-nav a {
  padding: 12px 20px;
  text-decoration: none;
  color: var(--ink);
  border-top: 1px solid var(--rule);
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.site-nav a.active { color: var(--accent-dark); font-weight: bold; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    position: static;
    border: none;
    background: none;
    gap: 4px;
  }
  .site-nav a { border-top: none; padding: 6px 12px; }
}

/* Breadcrumb */
.breadcrumb {
  padding: 10px 20px;
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 12px;
  color: var(--faint);
}
.breadcrumb a { color: var(--faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-dark); }
.breadcrumb .sep { margin: 0 4px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 20px 60px 20px; }

/* Hero */
.hero { text-align: center; padding: 40px 10px 20px 10px; }
.hero h1 { font-size: 40px; font-weight: 600; margin: 0 0 8px 0; }
.tagline { font-style: italic; color: var(--faint); font-size: 18px; margin: 0 0 18px 0; }
.hero-sub { max-width: 640px; margin: 0 auto; color: var(--faint); font-size: 15px; }

/* Hero rotating image */
.hero-carousel {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1143 / 1600;
  margin: 26px auto 6px auto;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--paper-soft);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; pointer-events: auto; cursor: pointer; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; }

/* Inline signup */
.signup-inline {
  background: var(--paper-soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px;
  margin: 24px 0;
  text-align: center;
}
.signup-form label { display: block; margin-bottom: 10px; font-size: 15px; }
.signup-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.signup-form input[type=email] {
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  flex: 1 1 220px;
  max-width: 320px;
}
.signup-form button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}
.signup-form button:hover { background: var(--accent-dark); }
.signup-form.large { max-width: 460px; margin: 0 auto; }

/* Filters */
.filters { margin: 24px 0; }
.filter-group { margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filter-label {
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  margin-right: 6px;
}
.filter-btn {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  color: var(--ink);
}
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Gallery grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin: 20px 0;
}
.card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.card-img { aspect-ratio: 1143 / 1600; overflow: hidden; background: var(--paper-soft); }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: 12px 14px; }
.card-body h3 { font-size: 16px; margin: 0 0 4px 0; }
.card-place { font-size: 13px; color: var(--faint); margin: 0 0 4px 0; }
.card-meta {
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 11px;
  color: var(--faint);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.empty-note { color: var(--faint); font-style: italic; }

/* Collection head */
.collection-head { padding: 30px 0 10px 0; }
.collection-head h1 { font-size: 30px; margin: 0 0 8px 0; }
.collection-blurb { color: var(--faint); max-width: 620px; }

/* Image page */
.image-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 20px;
}
@media (min-width: 900px) {
  .image-page { grid-template-columns: 1.9fr 1fr; align-items: start; }
}
@media (min-width: 1300px) {
  .image-page { grid-template-columns: 2.3fr 1fr; }
}
.image-stage { text-align: center; display: flex; flex-direction: column; align-items: center; }
.image-stage img.zoomable {
  border: 1px solid var(--rule);
  border-radius: 4px;
  cursor: zoom-in;
  display: inline-block;
  max-width: 100%;
  width: auto;
  /* Cap height to a share of the actual viewport (whatever the visitor's
     monitor turns out to be) rather than scaling to the column's full
     width — a tall portrait poster otherwise renders taller than the
     screen and forces a scroll just to see the whole thing. */
  max-height: 78vh;
}
.poster-toggle {
  display: inline-block;
  margin-top: 12px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 9px 16px;
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  cursor: pointer;
}
.poster-toggle:hover { background: var(--accent-dark); }
.ships-note { font-size: 12.5px; font-weight: 600; color: var(--ink); margin-top: 10px; max-width: 380px; margin-left: auto; margin-right: auto; }
.zoom-hint { font-size: 12px; color: var(--faint); margin-top: 6px; }

.image-info { font-size: 14px; }
.image-info h1 { font-size: 20px; margin: 0 0 4px 0; line-height: 1.25; }
.place-line { color: var(--faint); font-size: 13px; margin: 0 0 2px 0; }
.data-line { font-family: 'DejaVu Sans Mono', monospace; font-size: 11px; color: var(--faint); margin: 0 0 12px 0; }

.like-btn {
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 14px;
  cursor: pointer;
  font-family: 'Lora', Georgia, serif;
  font-size: 12.5px;
  color: var(--faint);
}
.like-btn .like-icon { color: var(--accent-dark); margin-right: 3px; }
.like-btn[aria-pressed="true"] { color: var(--ink); }
.like-btn[aria-pressed="true"] .like-icon { color: #a03030; }

.buy-list { margin: 0 0 10px 0; }
.buy-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: calc(100% + 20px);
  text-align: left;
  font-family: 'Lora', Georgia, serif;
  cursor: pointer;
  transition: background 0.15s ease;
}
.buy-line:hover, .buy-line:focus-visible { background: var(--paper-soft); }
.buy-price {
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 11.5px;
  color: #fff;
  background: var(--accent);
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.buy-line:hover .buy-price { background: var(--accent-dark); }
.waitlist-btn .buy-price { font-style: normal; background: var(--ink); }
.waitlist-btn:hover .buy-price { background: var(--ink); opacity: 0.85; }
.fulfillment-note { font-size: 11px; color: var(--faint); margin: 10px 0; }
.fulfillment-note a { color: var(--faint); }

/* Generic call-to-action button, used on Join/Newsletter pages */
.buy-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  padding: 10px 18px;
  font-family: 'DejaVu Sans Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
}
.buy-btn:hover { background: var(--accent-dark); }

.share-row { margin: 10px 0; font-size: 11.5px; color: var(--faint); }
.share-row a { color: var(--faint); }

.description { font-size: 15px; font-weight: 500; color: var(--ink); margin-top: 16px; }
.description p { margin: 0 0 10px 0; }
.description ul { margin: 0 0 10px 0; padding-left: 18px; }

.related { margin-top: 40px; border-top: 1px solid var(--rule); padding-top: 20px; }
.related h2 { font-size: 20px; }

/* Generic pages */
.page-head { padding: 30px 0 10px 0; }
.page-head.narrow { max-width: 680px; }
.page-head h1 { font-size: 30px; margin: 0 0 8px 0; }
.note { color: var(--faint); font-style: italic; font-size: 14px; }
.prose h2 { font-size: 19px; margin-top: 28px; }
.faq-list details { border-bottom: 1px solid var(--rule); padding: 14px 0; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { color: var(--faint); margin-top: 10px; }

/* Zoom overlay — deliberately NOT flex-centered: centering an overflowing
   child with align-items/justify-content:center makes the overflow on the
   "before" side (e.g. the top of a tall image) unreachable by scrolling in
   most browsers. Block layout + margin:auto scrolls correctly in all
   directions instead. */
.zoom-overlay {
  position: fixed; inset: 0; background: rgba(30,28,24,0.94);
  display: none;
  z-index: 100; overflow: auto; cursor: zoom-out;
  padding: 40px 20px; text-align: center;
}
.zoom-overlay.open { display: block; }
.zoom-overlay img { max-width: none; margin: 0 auto; touch-action: pinch-zoom; }

/* Fit-mode: used for "View artwork only" — a quick look, not a detail-zoom
   tool, so it should fill the screen with no scrolling needed. Safe to use
   flex centering here (unlike the default scroll-to-inspect mode above)
   because max-width/max-height guarantee the image never overflows the
   viewport in the first place. */
.zoom-overlay.fit-mode {
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  cursor: zoom-out;
}
.zoom-overlay.fit-mode.open { display: flex; }
.zoom-overlay.fit-mode img {
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
  margin: 0;
}

/* Applied to <html> while the zoom overlay is open, so the page behind it
   can't also scroll — without this, both the page and the overlay have
   their own scrollbar/scroll position active at once. */
html.lightbox-open { overflow: hidden; height: 100%; }
html.lightbox-open body { overflow: hidden; height: 100%; }

/* Cookie banner — default hidden via class (not the `hidden` attribute,
   which a same-specificity .cookie-banner{display:flex} rule was silently
   overriding, so the banner never actually disappeared on click). */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--ink); color: #fff;
  padding: 14px 20px; display: none; gap: 16px; align-items: center;
  flex-wrap: wrap; z-index: 50; font-size: 13.5px;
}
.cookie-banner.show { display: flex; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button {
  background: var(--accent); color: #fff; border: none; border-radius: 4px;
  padding: 8px 16px; cursor: pointer; font-family: 'DejaVu Sans Mono', monospace;
  font-size: 12px; text-transform: uppercase;
}

/* Soft signup modal (post-like) */
.soft-modal {
  position: fixed; inset: 0; background: rgba(30,28,24,0.5);
  display: none; align-items: center; justify-content: center; z-index: 60; padding: 20px;
}
.soft-modal.open { display: flex; }
.soft-modal-inner {
  background: var(--paper); border-radius: 8px; padding: 26px; max-width: 380px; text-align: center;
  border: 1px solid var(--rule);
}
.soft-modal-inner h3 { margin-top: 0; }
.soft-modal-close { background: none; border: none; color: var(--faint); text-decoration: underline; cursor: pointer; margin-top: 10px; font-size: 13px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding: 30px 20px 40px 20px; text-align: center; }
.footer-signup { max-width: 460px; margin: 0 auto 20px auto; }
.footer-links { font-size: 13px; }
.footer-links a { color: var(--faint); text-decoration: none; margin: 0 4px; }
.attribution { font-size: 11.5px; color: var(--faint); }
