/* Collectaporium shop — from the Paper mockup "Collectaporium Shop — first mock".
   Bottle green (#243B2C, matched to the logo's own background) and cream,
   postcards on white mats, oxblood only for sold stamps and the basket count. */
:root {
  --green: #243b2c;
  --green-2: #2e4a38;
  --cream: #f6f0e2;
  --cream-2: #fbf7ee;
  --white: #ffffff;
  --muted: #56635a;
  --rule: #d8cfba;
  --rule-2: #e5ddcb;
  --oxblood: #9a3324;
  --on-green: #f6f0e2;
  --on-green-muted: #d8d2bf;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --script: 'Instrument Serif', Georgia, serif;
  --mat-shadow: 0 1px 2px rgba(36, 59, 44, 0.08), 0 12px 32px rgba(36, 59, 44, 0.08);
  --gutter: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--green); font: 400 16px/1.6 var(--sans); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
p { margin: 0; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px var(--gutter) 88px; max-width: 1440px; margin: 0 auto; }
.wrap.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); padding: 8px 12px; }
.kicker { font-size: 13px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.kicker.light { color: #c9d3c3; }
.lede { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 640px; margin-top: 16px; }
.muted { color: var(--muted); font-family: var(--sans); font-size: 16px; font-weight: 400; letter-spacing: 0; }
.note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.center { text-align: center; }
.empty { color: var(--muted); padding: 24px 0; }
.text-link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border: 0; border-radius: 6px; background: var(--green); color: var(--cream);
  font: 600 16px var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-2); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-wide { width: 100%; }
:focus-visible { outline: 3px solid var(--oxblood); outline-offset: 2px; }

/* Header */
.site-header { background: var(--green); color: var(--on-green); }
.header-row { display: flex; align-items: center; gap: 36px; padding-top: 18px; padding-bottom: 18px; }
.logo {
  display: block; flex-shrink: 0; width: 240px; height: 37px;
  background: url('/static/logo.webp') -47px -88px / 334px 222px no-repeat;
}
.main-nav { display: flex; gap: 32px; font-size: 15px; margin-left: auto; }
.main-nav a, .basket-link { color: var(--on-green); text-decoration: none; }
.main-nav a:hover, .basket-link:hover { text-decoration: underline; }
.search { display: flex; align-items: center; gap: 10px; width: 280px; padding: 10px 14px; background: var(--cream-2); border-radius: 6px; color: var(--muted); }
.search input { border: 0; background: transparent; font: 15px var(--sans); color: var(--green); width: 100%; outline: none; }
.search.big { width: 100%; max-width: 560px; margin: 24px 0 8px; background: var(--white); border: 1px solid var(--rule); padding: 6px 6px 6px 16px; }
.search.big .btn { padding: 10px 20px; }
.basket-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; }
[hidden] { display: none !important; }
.basket-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--oxblood); color: var(--white); font-size: 12px; font-weight: 600; }

/* Footer */
.site-footer { background: var(--green); color: var(--on-green-muted); margin-top: 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-top: 40px; padding-bottom: 40px; }
.logo-lockup { display: block; width: 200px; height: 132px; flex-shrink: 0; background: url('/static/logo.webp') -35px -18px / 270px 180px no-repeat; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 14px; }
.site-footer nav a { color: var(--on-green-muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--on-green); text-decoration: underline; }

/* Hero */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 64px; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; max-width: 600px; }
.hero h1 { font-size: clamp(44px, 6vw, 76px); line-height: 1.05; letter-spacing: -0.03em; }
.hero .lede { margin: 0; max-width: 500px; }
.hero-actions { display: flex; align-items: center; gap: 28px; padding-top: 8px; }
.hero-cards { position: relative; width: 620px; max-width: 46vw; aspect-ratio: 620 / 460; flex-shrink: 0; }
.hero-mat { position: absolute; display: block; padding: 18px; background: var(--white); box-shadow: 0 1px 2px rgba(36, 59, 44, 0.08), 0 16px 40px rgba(36, 59, 44, 0.14); }
.hero-mat img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-mat-1 { left: 0; top: 33%; width: 74%; transform: rotate(-2deg); z-index: 2; }
.hero-mat-2 { right: 5%; top: 0; width: 71%; transform: rotate(3deg); }

/* Atlas band */
.atlas-band { background: var(--green); color: var(--on-green); overflow-x: clip; }
.atlas-row { display: flex; align-items: center; gap: 72px; padding-top: 80px; padding-bottom: 80px; }
.atlas-copy { display: flex; flex-direction: column; gap: 24px; width: 420px; flex-shrink: 0; }
.atlas-copy h2 { font-size: clamp(36px, 4vw, 52px); color: var(--on-green); }
.atlas-copy p { color: var(--on-green-muted); font-size: 18px; line-height: 1.55; }
.atlas-preview { display: flex; align-items: center; gap: 18px; padding: 14px; border: 1px solid rgba(246, 240, 226, 0.2); background: rgba(246, 240, 226, 0.08); border-radius: 8px; }
.atlas-preview img { width: 96px; height: 64px; object-fit: cover; border: 5px solid var(--white); flex-shrink: 0; }
.atlas-preview div { display: flex; flex-direction: column; flex: 1; font-size: 14px; color: var(--on-green-muted); }
.atlas-preview strong { font-family: var(--serif); font-size: 18px; color: var(--on-green); font-weight: 600; }
.atlas-preview a, .atlas-links a { color: var(--on-green); }
.atlas-links { font-size: 15px; }
.atlas { position: relative; margin: 0; flex: 1; min-width: 0; transform: rotate(-1deg); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 24px 48px rgba(0, 0, 0, 0.35); }
.atlas::before, .atlas::after { content: ''; position: absolute; width: 84px; height: 24px; background: rgba(246, 240, 226, 0.55); z-index: 2; pointer-events: none; }
.atlas::before { left: -18px; top: -10px; transform: rotate(-32deg); }
.atlas::after { right: -18px; bottom: -6px; transform: rotate(-32deg); }
.atlas-svg { display: block; width: 100%; height: auto; }
.atlas-pin circle { transition: transform 0.15s; transform-box: fill-box; transform-origin: center; }
.atlas-pin:hover circle, .atlas-pin.is-active circle { transform: scale(1.5); }
.atlas-pin:focus-visible { outline: none; }
.atlas-pin:focus-visible circle:nth-child(3) { stroke: var(--oxblood); stroke-width: 2; }
.atlas-cartouche { position: absolute; left: 50%; bottom: 4.5%; transform: translateX(-50%); padding: 3px 18px 4px; background: #f5ebd3; border: 1px solid #5b4330; outline: 1px solid #5b4330; outline-offset: 2px; font: italic 17px var(--script); color: #5b4330; white-space: nowrap; }
.atlas-tag { position: absolute; display: flex; flex-direction: column; padding: 7px 13px 8px; background: #f5ebd3; border: 1px solid #5b4330; box-shadow: 2px 3px 0 rgba(91, 67, 48, 0.35); transform: rotate(-3deg) translate(12px, -110%); pointer-events: none; white-space: nowrap; z-index: 3; }
.atlas-tag.flip { transform: rotate(3deg) translate(calc(-100% - 12px), -110%); }
.atlas-tag em { font: italic 20px/1.1 var(--script); color: #5b4330; }
.atlas-tag span { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--oxblood); }

/* Grids and tiles */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 span { font: 400 16px var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 40px 32px; margin-top: 32px; }
.section-head + .grid { margin-top: 0; }
.tile { display: flex; flex-direction: column; gap: 16px; }
.tile-mat { position: relative; display: block; padding: 14px; background: var(--white); box-shadow: 0 1px 2px rgba(36, 59, 44, 0.08); }
.tile-mat img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.tile:hover .tile-mat { box-shadow: var(--mat-shadow); }
.tile.is-sold img { opacity: 0.55; }
.tile-text { display: flex; flex-direction: column; gap: 6px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted); }
.tile-title { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.tile-title a { text-decoration: none; }
.tile-title a:hover { text-decoration: underline; }
.tile-meta { font-size: 15px; color: var(--muted); }
.tile-meta strong { color: var(--green); }
.sold-stamp { position: absolute; right: 22px; top: 22px; padding: 6px 12px; border: 2px solid var(--oxblood); background: var(--white); color: var(--oxblood); font: 700 13px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; transform: rotate(-6deg); }
.sold-stamp.big { position: static; display: inline-block; font-size: 18px; padding: 8px 16px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; font-size: 15px; color: var(--muted); }
.pager a { color: var(--green); }

/* Promises */
.promises { background: var(--white); border-top: 1px solid var(--rule); }
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; padding-top: 56px; padding-bottom: 56px; }
.promise-row h3 { font-size: 22px; margin-bottom: 10px; }
.promise-row p { color: var(--muted); }

/* Card page */
.crumbs { padding-top: 28px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 760px) minmax(0, 1fr); gap: 80px; padding: 32px 0 64px; align-items: start; }
.photos { display: flex; flex-direction: column; gap: 20px; }
.photo-mat { display: block; padding: 28px; background: var(--white); box-shadow: var(--mat-shadow); cursor: zoom-in; }
.photo-mat img { width: 100%; height: auto; }
.thumbs { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.thumb { padding: 6px; background: var(--white); border: 2px solid transparent; cursor: pointer; }
.thumb.is-active { border-color: var(--green); }
.thumb img { width: 120px; height: 80px; object-fit: cover; }
.details { display: flex; flex-direction: column; gap: 14px; padding-top: 12px; }
.details h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.12; }
.details .sub { font-size: 17px; color: var(--muted); }
.buy { display: flex; flex-direction: column; gap: 16px; padding: 28px 0; margin: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.buy-row { display: flex; align-items: center; gap: 24px; }
.price { display: flex; flex-direction: column; font: 600 36px/1 var(--serif); }
.local-price { font: 400 14px var(--sans); color: var(--muted); margin-top: 6px; }
.buy-note { font-size: 15px; color: var(--muted); }
.buy-note strong { color: var(--green); }
.buy.sold p { color: var(--muted); }
.facts { margin: 0; font-size: 15px; }
.facts div { display: flex; padding: 12px 0; border-bottom: 1px solid var(--rule-2); }
.facts div:last-child { border-bottom: 0; }
.facts dt { width: 130px; flex-shrink: 0; color: var(--muted); }
.facts dd { margin: 0; }
.small-head { font-size: 20px; margin-top: 14px; }
.about { color: var(--muted); line-height: 1.65; }
.zoom-overlay { position: fixed; inset: 0; background: rgba(20, 30, 24, 0.92); display: flex; align-items: center; justify-content: center; z-index: 20; cursor: zoom-out; padding: 24px; }
.zoom-overlay img { max-width: 100%; max-height: 100%; background: var(--white); padding: 12px; }

/* Places */
.country { margin-top: 48px; }
.country h2 { font-size: 28px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.place-list { list-style: none; margin: 16px 0 0; padding: 0; columns: 4 220px; column-gap: 32px; }
.place-list li { padding: 5px 0; break-inside: avoid; }
.place-list a { color: var(--green); }
.place-list span { color: var(--muted); font-size: 14px; }

/* Basket */
.basket-page { display: grid; grid-template-columns: minmax(0, 1fr) 472px; gap: 80px; align-items: start; }
.basket-items h1 { display: flex; align-items: baseline; gap: 20px; padding-bottom: 28px; }
.basket-row { display: flex; align-items: center; gap: 28px; padding: 24px 0; border-top: 1px solid var(--rule); }
.basket-row:last-of-type { border-bottom: 1px solid var(--rule); }
.basket-row .mat { padding: 8px; background: var(--white); flex-shrink: 0; box-shadow: 0 1px 2px rgba(36, 59, 44, 0.08); }
.basket-row .mat img { width: 120px; height: 80px; object-fit: cover; }
.basket-row .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.basket-row .info a { font: 500 21px var(--serif); text-decoration: none; }
.basket-row .info span { font-size: 14px; color: var(--muted); }
.basket-row .info .warn { color: var(--oxblood); font-weight: 600; }
.basket-row .amount { width: 72px; flex-shrink: 0; text-align: right; font-weight: 600; font-size: 17px; }
.basket-row .remove { width: 64px; flex-shrink: 0; text-align: right; background: none; border: 0; padding: 0; font: 14px var(--sans); color: var(--muted); text-decoration: underline; cursor: pointer; }
.basket-summary, .checkout-summary { display: flex; flex-direction: column; gap: 24px; }
.panel { padding: 28px; background: var(--white); box-shadow: 0 1px 2px rgba(36, 59, 44, 0.08); }
.panel h2 { font-size: 22px; margin-bottom: 14px; }
.segmented { display: flex; padding: 4px; background: var(--cream); border-radius: 8px; }
.segmented button { flex: 1; padding: 11px 6px; border: 0; background: none; border-radius: 6px; font: 15px var(--sans); color: var(--muted); cursor: pointer; }
.segmented button[aria-checked='true'] { background: var(--green); color: var(--cream); font-weight: 600; }
.panel .note { margin-top: 12px; }
.postage-options { display: flex; flex-direction: column; gap: 10px; }
.postage-option { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--white); border: 2px solid var(--rule-2); border-radius: 8px; cursor: pointer; }
.postage-option:has(input:checked) { border-color: var(--green); }
.postage-option input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; margin: 0; }
.postage-option span { flex: 1; display: flex; flex-direction: column; }
.postage-option strong { font-size: 16px; }
.postage-option small { font-size: 14px; color: var(--muted); }
.postage-option b { width: 64px; flex-shrink: 0; text-align: right; }
.totals { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals dd { margin: 0; color: var(--green); }
.totals .grand { padding-top: 14px; border-top: 1px solid var(--rule); align-items: baseline; }
.totals .grand dt { font: 600 24px var(--serif); color: var(--green); }
.totals .grand dd { font: 600 30px var(--serif); }

/* Checkout */
.checkout-page { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 80px; align-items: start; }
.checkout-form .panel { padding: 24px; min-height: 400px; }
.order-line { display: flex; align-items: center; gap: 16px; font-size: 15px; }
.order-line img { width: 82px; height: 58px; object-fit: cover; border: 5px solid var(--white); flex-shrink: 0; }
.order-line span { flex: 1; }
[data-order-lines] { display: flex; flex-direction: column; gap: 14px; }

/* Info pages */
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose ul { color: var(--muted); margin: 14px 0 0; font-size: 17px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--green); }

/* Tablet */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .main-nav { display: none; }
  .search { margin-left: auto; }
  .hero { flex-direction: column; align-items: flex-start; padding-top: 56px; padding-bottom: 72px; }
  .hero-cards { width: 100%; max-width: 620px; }
  .atlas-row { flex-direction: column; align-items: stretch; gap: 48px; }
  .atlas-copy { width: auto; }
  .product, .basket-page, .checkout-page { grid-template-columns: 1fr; gap: 40px; }
  .promise-row { grid-template-columns: 1fr; gap: 28px; }
}

/* Phone */
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .header-row { flex-wrap: wrap; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
  .logo { width: 190px; height: 29px; background-position: -37px -70px; background-size: 264px 176px; }
  .basket-link { margin-left: auto; }
  .search { order: 3; width: 100%; margin: 0; }
  .hero { padding-top: 40px; padding-bottom: 56px; gap: 40px; }
  .hero-actions { flex-wrap: wrap; gap: 16px; }
  .hero-mat { padding: 10px; }
  .section { padding-top: 48px; padding-bottom: 64px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .tile-mat { padding: 8px; }
  .tile-title { font-size: 17px; }
  .sold-stamp { right: 12px; top: 12px; font-size: 11px; padding: 4px 8px; }
  .atlas-row { padding-top: 56px; padding-bottom: 56px; }
  .atlas::before, .atlas::after { width: 56px; height: 18px; }
  .atlas-cartouche { font-size: 13px; padding: 2px 10px; }
  .photo-mat { padding: 12px; }
  .thumb img { width: 90px; height: 60px; }
  .buy-row { flex-direction: column; align-items: stretch; gap: 16px; }
  .facts dt { width: 100px; }
  .basket-row { gap: 14px; flex-wrap: wrap; }
  .basket-row .mat img { width: 90px; height: 60px; }
  .basket-row .info a { font-size: 18px; }
  .basket-row .amount { width: auto; }
  .panel { padding: 20px; }
  .segmented button { font-size: 14px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}
