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

/* ── Theme variables ── */
:root {
  --bg: #fff;
  --bg-nav: hsla(0, 0%, 100%, 0.85);
  --text: #111;
  --text-muted: #767676;
  --border: #eee;
  --card-overlay-from: rgba(0, 0, 0, 0.55);
  --toggle-bg: #f0f0f0;
  --toggle-hover: #e0e0e0;
  --dialog-bg: #fff;
  --dialog-surface: #f6f6f6;
  --input-bg: #fff;
  --input-border: #ddd;
  --error: #b42318;
  --alert-bg: #fff4c4;
  --alert-text: #6b5200;
  --print-media-border: #e2e2e2;
}

[data-theme="dark"] {
  --bg: #0e0e0e;
  --bg-nav: hsla(0, 0%, 6%, 0.85);
  --text: #f0f0f0;
  --text-muted: #888;
  --border: #222;
  --card-overlay-from: rgba(0, 0, 0, 0.65);
  --toggle-bg: #2a2a2a;
  --toggle-hover: #383838;
  --dialog-bg: #161616;
  --dialog-surface: #1f1f1f;
  --input-bg: #121212;
  --input-border: #333;
  --error: #f97066;
  --alert-bg: #3d3410;
  --alert-text: #f5e6a3;
  --print-media-border: #3a3a3a;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.nav-divider {
  width: 1px;
  height: 18px;
  margin: 0 0.35rem 0 0.15rem;
  background: var(--border);
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  background: transparent;
}

/* ── Theme toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--toggle-bg);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: var(--toggle-hover);
}

/* Show sun in dark mode, moon in light mode */
.icon-sun { display: none; }
.icon-moon { display: block; }

.nav-menu-toggle {
  display: none;
}

.nav-menu-toggle .icon-close {
  display: none;
}

.navbar.is-nav-open .nav-menu-toggle .icon-menu {
  display: none;
}

.navbar.is-nav-open .nav-menu-toggle .icon-close {
  display: block;
}

/* ── Hero ── */
.hero {
  padding: 10rem 1.5rem 8rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero p {
  margin-top: 0.625rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ── Masonry grid ── */
main {
  flex: 1;
  padding: 0 1rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.masonry {
  columns: 3;
  column-gap: 1rem;
}

body[data-gallery="home"] .masonry {
  columns: 4;
}

.site-nav-link {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-link:hover {
  color: var(--text);
}

.site-nav-link.is-active {
  color: var(--text);
  font-weight: 600;
  background: var(--toggle-bg);
}

.card.is-placeholder {
  cursor: default;
  pointer-events: none;
}

.placeholder-block {
  width: 100%;
  border-radius: 8px;
  background: var(--dialog-surface);
  border: 1px solid var(--border);
}

.poster-zoom {
  position: fixed;
  inset: 0;
  z-index: 200;
}

/* Order dialog must sit above the zoom overlay. The zoom uses
   cursor: zoom-out on a full-viewport backdrop; if it stays on top,
   the pointer disappears and clicks never reach the form. */
body:has(.order-dialog[open]) .poster-zoom {
  pointer-events: none;
}

.poster-zoom[hidden] {
  display: none;
}

.poster-zoom.is-preparing {
  visibility: hidden;
}

.poster-zoom-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  backdrop-filter: blur(3px);
  cursor: zoom-out;
}

.poster-zoom-layout {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 0.85rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  pointer-events: none;
}

.poster-zoom-layout.is-details-left {
  flex-direction: row-reverse;
}

.poster-zoom-layout.is-details-left .poster-zoom-copy {
  text-align: right;
  align-items: flex-end;
}

.poster-zoom-layout.is-details-left .poster-zoom-actions {
  justify-content: flex-end;
}

.poster-zoom-layout.is-details-left .btn-buy {
  align-self: flex-end;
}

.poster-zoom-media,
.poster-zoom-copy {
  pointer-events: auto;
}

.poster-zoom-media {
  min-width: 0;
  cursor: zoom-out;
}

.poster-zoom-media img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, calc(100vw - 22rem));
  max-height: calc(100vh - 2rem);
  border-radius: 8px;
  transform-origin: top left;
  box-shadow: 0 16px 48px color-mix(in srgb, #000 28%, transparent);
}

.poster-zoom-copy {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 0 0 18.5rem;
  width: 18.5rem;
  padding: 0;
  min-width: 0;
}

.poster-zoom-copy h2 {
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.poster-zoom-copy p {
  display: none;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.poster-zoom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  pointer-events: auto;
}

.poster-zoom .btn-buy {
  align-self: flex-start;
  padding: 0.75rem 1.35rem;
  font-size: 0.95rem;
  background: var(--text);
  color: var(--bg);
}

.poster-zoom .btn-buy:hover {
  opacity: 0.88;
  background: var(--text);
}

.poster-zoom .btn-share {
  padding: 0.75rem 1.1rem;
  font-size: 0.95rem;
  background: var(--toggle-bg);
  color: var(--text);
  border-color: var(--border);
}

.poster-zoom .btn-share:hover {
  background: var(--toggle-hover);
}

body[data-gallery="home"] .poster-zoom .btn-share {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}

body[data-gallery="home"] .poster-zoom .btn-share:hover {
  background: var(--text);
  opacity: 0.88;
}

.poster-zoom .btn-share span {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

.card.is-zoomed img,
.card.is-zoomed .card-overlay {
  opacity: 0;
}

/* ── Card ── */
.card {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}

.card-hit {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: zoom-in;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: filter 0.2s;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  background: linear-gradient(
    to top,
    var(--card-overlay-from) 0%,
    rgba(0, 0, 0, 0) 50%
  );
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}

.card-info {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  text-decoration: none;
}

.card-actions {
  display: flex;
  flex-shrink: 0;
  gap: 0.4rem;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-overlay {
    opacity: 1;
  }

  .card:hover img {
    filter: brightness(0.92);
  }

  .card:hover .card-actions {
    pointer-events: auto;
  }
}

.btn-buy {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #111;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-buy[hidden] {
  display: none;
}

.btn-buy:hover {
  background: #e0e0e0;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.card-overlay .btn-share span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.card-overlay .btn-share {
  padding: 0.5rem;
}

/* ── Order dialog ──
   Use dialog.show() (not showModal()) so this stays in normal stacking,
   not the browser top layer. Cursor's element picker cannot sit above
   a top-layer modal. */
.order-dialog {
  position: fixed;
  inset: 0;
  z-index: 400;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  overflow: hidden;
  box-shadow: none;
}

.order-dialog[open] {
  display: grid;
  place-items: center;
}

.order-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(920px, 100%);
  height: auto;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  background: var(--dialog-bg);
  color: var(--text);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.order-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: var(--toggle-bg);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.order-close:hover {
  background: var(--toggle-hover);
}

.order-close[hidden] {
  display: none;
}

.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--dialog-bg);
}

.order-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.order-layout {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "sidebar form";
  gap: 1.75rem;
  padding: 1.25rem 1.75rem 1.75rem;
}

.order-sidebar {
  grid-area: sidebar;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
}

.order-preview {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: visible;
}

.order-preview-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.order-form-view {
  grid-area: form;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.3rem;
}

.order-form-view[hidden],
.order-confirm-view[hidden] {
  display: none;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.order-faq {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.order-faq[hidden] {
  display: none;
}

.order-preview img {
  width: 100%;
  display: block;
  border-radius: 8px;
  background: var(--dialog-surface);
  border: 1px solid var(--border);
}

.order-poster-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.order-unit-price {
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.order-fieldset {
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.order-fieldset[hidden] {
  display: none;
}

.order-fieldset legend {
  display: block;
  width: 100%;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.order-fieldset:not([hidden]) + .order-fieldset legend {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.order-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.order-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.order-row-split > div {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.order-form label,
.order-size-heading {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.order-form input,
.order-form select {
  width: 100%;
  margin-block: 3px;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding-right: 2.4rem;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 0.5rem;
  height: 0.5rem;
  pointer-events: none;
  border-right: 1.6px solid var(--text-muted);
  border-bottom: 1.6px solid var(--text-muted);
  transform: translateY(-70%) rotate(45deg);
}

.order-form input:focus,
.order-form select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--dialog-bg), 0 0 0 4px var(--text);
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.size-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  text-align: left;
  line-height: 1.2;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.size-chip:hover {
  border-color: var(--text-muted);
}

.size-chip:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.size-chip.is-selected {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.size-chip-size {
  font-size: 0.78rem;
  font-weight: 600;
}

.size-chip-price {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.72;
}

.size-chip.is-selected .size-chip-price {
  opacity: 0.85;
}

#orderPrintPicker {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.order-print-meta {
  margin: 0.15rem 0 0.1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.order-print-meta[hidden] {
  display: none;
}

.order-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  background: var(--dialog-surface);
  font-size: 0.95rem;
}

.order-total-bar strong {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.order-submit {
  width: 100%;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.15s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.order-submit:hover:not(:disabled) {
  opacity: 0.88;
}

.order-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.order-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

.order-faq-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.order-faq-item {
  border-radius: 8px;
  background: var(--dialog-surface);
}

.order-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.order-faq-item summary::-webkit-details-marker {
  display: none;
}

.order-faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  transition: transform 0.28s ease;
}

.order-faq-item[open] summary::after {
  transform: rotate(45deg);
}

.order-faq-item::details-content {
  display: block;
  overflow: hidden;
  interpolate-size: allow-keywords;
  height: 0;
  opacity: 0;
  transition:
    height 0.28s ease,
    opacity 0.22s ease,
    content-visibility 0.28s allow-discrete;
}

.order-faq-item[open]::details-content {
  height: auto;
  opacity: 1;
}

@starting-style {
  .order-faq-item[open]::details-content {
    height: 0;
    opacity: 0;
  }
}

.order-faq-item p {
  margin: 0;
  padding: 0 0.85rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.order-faq-item a {
  color: var(--text);
}

.order-error {
  margin: 0;
  font-size: 0.85rem;
  color: var(--error);
}

.order-layout.is-confirm {
  grid-template-areas: "sidebar confirm";
}

.order-confirm-view {
  grid-area: confirm;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
}

.order-confirm {
  max-width: none;
  margin: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-confirm-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.order-confirm-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.order-confirm-code {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.order-confirm-copy {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.order-confirm-copy strong {
  color: var(--text);
}

.order-confirm-pay {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--input-border);
}

.order-alert {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: var(--alert-bg);
  color: var(--alert-text);
  font-size: 0.9rem;
  line-height: 1.45;
}

.order-pay-test {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--error);
}

.order-pay-methods {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
}

.order-pay-method {
  border-radius: 12px;
  background: var(--dialog-surface);
  overflow: hidden;
}

.order-pay-method-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.05rem 1.15rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.order-pay-method-toggle::-webkit-details-marker {
  display: none;
}

.order-pay-method-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.order-pay-method-toggle::after {
  content: "";
  flex-shrink: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  translate: 0 -0.1rem;
  transition: transform 0.28s ease;
}

.order-pay-method.is-open .order-pay-method-toggle::after {
  transform: rotate(225deg);
  translate: 0 0.15rem;
}

.order-pay-method-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.order-pay-method.is-open .order-pay-method-panel {
  grid-template-rows: 1fr;
}

.order-pay-method-clip {
  min-height: 0;
  overflow: hidden;
}

.order-pay-method-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0 1.15rem 1.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .order-pay-method-panel,
  .order-pay-method-toggle::after,
  .order-faq-item summary::after,
  .order-faq-item::details-content {
    transition: none;
  }
}

.order-pay-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.order-pay-card-copy {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.order-pay-qr {
  width: min(168px, 100%);
  aspect-ratio: 1;
  align-self: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.4rem;
}

.order-pay-qr svg,
.order-pay-qr img {
  display: block;
  width: 100%;
  height: auto;
}

.order-pay-qr--paypal {
  aspect-ratio: auto;
}

.order-paypal {
  display: block;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.order-paypal:hover {
  opacity: 0.88;
}

.order-bank-details {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 0.55rem;
}

.order-bank-details > div {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  gap: 0.5rem;
  align-items: start;
}

.order-bank-details dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-top: 0.15rem;
}

.order-bank-details dd {
  margin: 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.order-copy {
  flex-shrink: 0;
  border: 0;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--toggle-bg);
  color: var(--text);
  cursor: pointer;
}

.order-copy:hover {
  filter: brightness(0.97);
}

/* ── Home ── */
.home-hero {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 13rem 1rem 11rem;
  text-align: center;
}

.home-hero-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.home-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.home-hero-copy > p:last-child {
  margin: 0.875rem auto 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 28rem;
}

.about-main {
  flex: 1;
  padding: 0 1rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.about-intro {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 42%);
  gap: 3rem;
  align-items: start;
  padding: 13rem 0 11rem;
}

.about-copy h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.about-copy p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 38rem;
}

.about-photo {
  overflow: hidden;
  border-radius: 24px;
  background: var(--dialog-surface);
}

.about-photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center 30%;
}

.home-press {
  margin-top: 3rem;
}

.press-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.press-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--dialog-surface);
  color: var(--text);
  text-decoration: none;
}

.press-card:hover {
  filter: brightness(0.97);
}

.press-thumb {
  display: block;
  width: 9rem;
  flex-shrink: 0;
  aspect-ratio: 819 / 1024;
  object-fit: cover;
  object-position: center top;
}

.press-copy {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.9rem 1rem 0.85rem 0.95rem;
}

.press-source {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.press-title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.press-logo {
  margin-top: auto;
  padding-top: 0.35rem;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  object-position: left center;
  pointer-events: none;
}

.press-logo--hindu {
  height: 0.95rem;
}

.press-logo--homegrown {
  height: 1.7rem;
  filter: invert(1);
}

.press-logo--ketchup {
  height: 1.35rem;
}

[data-theme="dark"] .press-logo--hindu,
[data-theme="dark"] .press-logo--ketchup {
  filter: invert(1);
}

[data-theme="dark"] .press-logo--homegrown {
  filter: none;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}

.footer-credit {
  margin-top: 0.35rem;
}

.print-page {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
  gap: 2.5rem;
  align-items: start;
}

main:has(.print-page) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.print-related {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.print-related .home-kicker {
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.print-page--narrow {
  grid-template-columns: 1fr;
  max-width: 40rem;
}

.print-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.print-thumbs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.45rem;
}

.print-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: var(--toggle-bg);
  flex-shrink: 0;
}

.print-thumb.is-active {
  border-color: var(--text);
}

.print-thumb:hover {
  border-color: var(--text-muted);
}

.print-thumb.is-active:hover {
  border-color: var(--text);
}

.print-thumb:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.print-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.print-thumb--placeholder {
  cursor: pointer;
}

.print-thumb--placeholder .placeholder-block {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.print-media-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: var(--dialog-surface);
}

.print-media {
  position: relative;
  margin: 0 auto;
  width: min(100%, calc(min(78vh, 52rem) * 3 / 4));
  aspect-ratio: 3 / 4;
  border: 1px solid var(--print-media-border);
  border-radius: 8px;
}

.print-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.print-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.print-kicker a {
  color: var(--text-muted);
  text-decoration: none;
}

.print-kicker a:hover {
  color: var(--text);
}

.print-copy h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.print-blurb {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.print-price {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.print-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.print-options .print-price {
  margin-bottom: 0;
}

.print-option {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.print-options input[type="number"],
.print-options select {
  width: 100%;
  margin: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.print-options select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.4rem;
}

.print-options input[type="number"]:focus,
.print-options select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

.print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.print-actions .btn-buy {
  width: 100%;
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.print-actions .btn-buy:hover {
  background: var(--text);
  color: var(--bg);
  opacity: 0.88;
}

.print-actions .btn-share {
  width: 100%;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  font-size: 0.95rem;
  background: var(--toggle-bg);
  color: var(--text);
  border-color: var(--border);
  border-radius: 999px;
}

.print-actions .btn-share:hover {
  background: var(--toggle-hover);
}

.print-page a {
  color: inherit;
}

/* ── Responsive ── */
@media (max-width: 1200px) {
  body[data-gallery="home"] .masonry {
    columns: 3;
  }
}

@media (max-width: 960px) {
  .navbar {
    padding: 0.7rem 1rem;
    gap: 0.45rem 0.75rem;
  }

  .nav-menu-toggle {
    display: flex;
  }

  .nav-divider {
    display: none;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% - 0.35rem);
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    min-width: 11rem;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--dialog-bg);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  }

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

  .site-nav-link {
    font-size: 0.88rem;
    padding: 0.55rem 0.7rem;
  }

  .masonry,
  body[data-gallery="home"] .masonry {
    columns: 2;
  }

  .press-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .home-hero {
    padding: 8rem 1rem 7rem;
  }

  .about-intro {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 8rem 0 7rem;
    gap: 1.5rem;
  }

  .about-copy {
    order: 1;
  }

  .about-copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .about-photo {
    order: -1;
    width: 160px;
    height: 160px;
    min-height: 0;
    border-radius: 50%;
  }

  .about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
  }

  .print-page {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem 3rem;
  }

  .print-thumb {
    flex: 0 0 3.75rem;
    width: 3.75rem;
    height: 3.75rem;
  }

  .press-cards {
    grid-template-columns: 1fr;
  }

  .press-thumb {
    width: 6.75rem;
  }

  .order-header {
    position: sticky;
    top: 0;
    z-index: 2;
  }

  .order-panel {
    height: auto;
    max-height: calc(100vh - 2rem);
    overflow: auto;
  }

  .order-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 1.25rem;
    gap: 1.25rem;
  }

  .order-sidebar {
    display: contents;
  }

  .order-preview,
  .order-form-view,
  .order-confirm-view,
  .order-faq {
    flex: 0 0 auto;
    min-height: auto;
    overflow: visible;
    width: 100%;
  }

  .order-preview {
    order: 1;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    column-gap: 0.9rem;
    row-gap: 0.15rem;
    padding: 0;
  }

  .order-form-view,
  .order-confirm-view {
    order: 2;
  }

  .order-faq {
    order: 3;
  }

  .order-preview img {
    grid-row: 1;
    width: 96px;
    flex-shrink: 0;
  }

  .order-preview-copy {
    min-width: 0;
  }

  .order-layout.is-confirm .order-preview {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .order-layout.is-confirm .order-preview img {
    width: 104px;
  }

  .order-poster-title {
    font-size: 1.15rem;
    min-width: 0;
  }

  .order-unit-price {
    min-width: 0;
  }

  .order-faq {
    padding-top: 0.5rem;
  }

  .order-row-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .masonry,
  body[data-gallery="home"] .masonry {
    columns: 1;
  }

  .poster-zoom-layout,
  .poster-zoom-layout.is-details-left {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .poster-zoom-media img {
    max-width: 100%;
    max-height: calc(100vh - 12rem);
  }

  .poster-zoom-copy {
    flex: none;
    width: 100%;
  }

  .hero {
    padding: 6rem 1.25rem 5rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }
}
