/* Quality Fine Art — shop styles. Mobile-first (iPhone 390px), scales up. */

:root {
  --ink: #f0ece2;
  --muted: #a8a294;
  --paper: #0e0d0b;
  --wash: #1a1815;
  --line: #2e2a24;
  --gold: #c99a3a;
  --gold-deep: #d4a94e;
  --dark: #0e0d0b;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
}

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---- header ---- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}
.brand { text-decoration: none; color: var(--ink); }
.brand .name { font-size: 17px; letter-spacing: 0.04em; font-weight: bold; }
.brand .tag { display: block; font-size: 11px; letter-spacing: 0.28em; color: var(--gold-deep); text-transform: uppercase; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  padding: 12px 10px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}
.cart-link { position: relative; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--gold);
  color: #141414;
  font-size: 12px;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  padding: 0 6px;
  margin-left: 6px;
}

/* ---- hero ---- */
.hero { background: #14120e; color: #f3efe6; padding: 40px 0 34px; border-bottom: 1px solid var(--line); }
.hero h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; font-weight: normal; }
.hero p { margin: 0; color: #cfc9ba; font-size: 16px; max-width: 34em; }
.hero .kicker {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 10px;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
}

/* ---- gallery grid ---- */
.gallery { padding: 28px 0 60px; }
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid { grid-template-columns: 1fr 1fr 1fr; } }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #161411;
  display: flex;
  flex-direction: column;
}
.card a.card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card .thumb { aspect-ratio: 9 / 12; overflow: hidden; background: var(--wash); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px 16px 18px; }
.card h2 { font-size: 19px; margin: 0 0 6px; font-weight: normal; line-height: 1.3; }
.card .from { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.card .go { font-size: 14px; color: var(--gold-deep); letter-spacing: 0.06em; }
.card.placeholder .thumb { filter: saturate(0.85); }
.card .pill {
  display: inline-block;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px dashed var(--gold-deep); color: var(--gold-deep);
  border-radius: 20px; padding: 4px 10px; margin-bottom: 8px;
}
.card .notify-btn { margin-top: 4px; }

/* ---- buttons ---- */
.btn {
  appearance: none;
  border: 1px solid var(--gold-deep);
  background: var(--gold);
  color: #141414;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 14px 22px;
  min-height: 52px;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn.gold { background: var(--gold); border-color: var(--gold-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { width: auto; padding: 10px 18px; min-height: 48px; font-size: 15px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-row { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
@media (min-width: 640px) { .btn-row { flex-direction: row; } .btn-row .btn { width: auto; flex: 1; } }

/* ---- artwork detail ---- */
.detail { padding: 24px 0 60px; }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 900px) { .detail-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; } }
.detail .art-frame { background: var(--wash); border-radius: var(--radius); overflow: hidden; }
.detail .art-frame img { width: 100%; }
.detail h1 { font-size: 30px; margin: 0 0 10px; font-weight: normal; line-height: 1.25; }
.detail .story { color: #c9c2b2; margin: 0 0 20px; }
.spec { border-top: 1px solid var(--line); padding: 14px 0; }
.spec h3 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; font-family: -apple-system, Helvetica, Arial, sans-serif; font-weight: 600; }
.size-pick { display: flex; gap: 10px; }
.size-pick button {
  flex: 1; padding: 14px 8px; min-height: 56px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: #161411; color: var(--ink); font-size: 16px; cursor: pointer;
  font-family: Georgia, serif;
}
.size-pick button[aria-pressed="true"] { border: 2px solid var(--gold-deep); background: #241f14; }
.size-pick .dims { display: block; font-weight: bold; }
.size-pick .sub { display: block; font-size: 12px; color: var(--muted); font-family: -apple-system, Helvetica, Arial, sans-serif; }
.tier-line { font-size: 17px; margin: 6px 0 0; }
.tier-line strong { font-size: 22px; }
.edition-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.edition-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #161411;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  position: relative;
}
.edition-grid button.available:hover { border-color: var(--gold-deep); }
.edition-grid button.selected { background: var(--gold); color: #141414; border-color: var(--gold-deep); }
.edition-grid button:disabled { background: var(--wash); color: #6e6a5e; cursor: not-allowed; font-size: 11px; line-height: 1.2; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 12px; font-family: -apple-system, Helvetica, Arial, sans-serif; }
.legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l-avail::before { background: #161411; border: 1px solid var(--line); }
.legend .l-with::before { background: var(--wash); border: 1px solid var(--line); }
.legend .l-sold::before { background: #4a453c; }
.doctrine-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.notice {
  border: 1px solid var(--line); border-left: 4px solid var(--gold);
  background: #1e1a12; border-radius: 8px; padding: 12px 14px;
  font-size: 14.5px; margin-top: 16px;
}

/* ---- cart ---- */
.cart-page { padding: 24px 0 60px; }
.cart-page h1 { font-size: 28px; font-weight: normal; margin: 0 0 16px; }
.line-item {
  display: grid; grid-template-columns: 84px 1fr; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; margin-bottom: 14px; background: #161411;
}
.line-item img { width: 84px; aspect-ratio: 9/12; object-fit: cover; border-radius: 6px; }
.line-item h3 { margin: 0 0 4px; font-size: 17px; font-weight: normal; }
.line-item .meta { font-size: 14px; color: var(--muted); margin: 0 0 6px; font-family: -apple-system, Helvetica, Arial, sans-serif; }
.line-item .price { font-size: 18px; font-weight: bold; }
.line-item .remove {
  background: none; border: none; color: var(--muted); text-decoration: underline;
  font-size: 14px; cursor: pointer; padding: 8px 0; min-height: 44px;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
}
.subtotal-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--ink); padding-top: 12px; margin-top: 8px;
  font-size: 18px;
}
.subtotal-row strong { font-size: 24px; }
.ship-note { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.empty-cart { text-align: center; padding: 40px 0; color: var(--muted); }
.collector-form { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.collector-form h2 { font-size: 22px; font-weight: normal; margin: 0 0 6px; }
.collector-form p.lede { color: var(--muted); font-size: 15px; margin: 0 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-family: -apple-system, Helvetica, Arial, sans-serif; }
.field input, .field textarea {
  width: 100%; font-size: 16px; padding: 13px 12px; min-height: 52px;
  border: 1px solid var(--line); border-radius: 8px; font-family: -apple-system, Helvetica, Arial, sans-serif;
  background: #161411; color: var(--ink);
}
.field textarea { min-height: 88px; resize: vertical; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; }
.site-footer a { color: var(--gold-deep); }

.staged-banner {
  background: #3a2f16; color: #f3e9cf;
  font-family: -apple-system, Helvetica, Arial, sans-serif;
  font-size: 12.5px; letter-spacing: 0.06em;
  text-align: center; padding: 8px 12px;
}
