/* Layout concept: a dark green vault wall where stamped ingots carry the live price,
   then a quiet, cool paper shop floor. The ingot trapezoid from the logo is the only flourish. */
:root {
  --green: #143d32;
  --green-deep: #0e2c24;
  --green-soft: #2a5a4c;
  --gold: #c99d2f;
  --gold-light: #e3c875;
  --silver: #a8abae;
  --silver-light: #d5d7d9;
  --paper: #f4f6f3;
  --white: #ffffff;
  --ink: #12231e;
  --muted: #4d5f58;
  --line: #d3dad5;
  --error: #a4261c;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --page: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-stretch: 125%; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  width: 100%;
  max-width: calc(var(--page) + 48px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.section { padding-block: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.prose { max-width: 68ch; display: grid; gap: 14px; }
.prose h2 { margin-top: 24px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

/* Price strip */
.strip { background: var(--green-deep); color: var(--white); font-size: .875rem; }
.strip .wrap { display: flex; gap: 8px 24px; align-items: center; flex-wrap: wrap; padding-block: 7px; }
.strip b { font-weight: 600; }
.strip-note { margin-left: auto; color: var(--silver-light); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); margin-right: 6px; vertical-align: 1px; }
.dot.off { background: #e0776c; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--green); }
.brand img { width: 46px; height: 46px; }
.brand span { font-stretch: 125%; line-height: 1.02; font-size: 1.05rem; }
.brand b { display: block; font-weight: 800; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--gold); }
.nav .basket-link { background: var(--green); color: var(--white); padding: 8px 14px; border: 0; border-radius: 4px; font-weight: 600; }
.nav .basket-link:hover { background: var(--green-soft); }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--green); color: var(--white); border: 2px solid var(--green); border-radius: 4px; padding: 11px 20px;
  transition: background-color .15s;
}
.btn:hover { background: var(--green-soft); border-color: var(--green-soft); }
.btn[disabled] { background: var(--line); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn.gold { background: var(--gold-light); border-color: var(--gold-light); color: var(--green-deep); }
.btn.gold:hover { background: var(--gold); border-color: var(--gold); }
.btn.ghost { background: transparent; border-color: var(--silver-light); color: var(--white); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.quiet { background: transparent; color: var(--green); }
.btn.quiet:hover { background: var(--white); }
.btn.wide { width: 100%; }

/* Hero: ingots sit on the edge of the green wall */
.hero { background: var(--green); color: var(--white); padding-top: 32px; overflow: hidden; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 48px; align-items: end; margin-bottom: 24px; }
.hero-copy { display: grid; gap: 12px; }
.hero h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-side { display: grid; gap: 14px; justify-items: start; }
.units { display: inline-flex; border: 1px solid var(--green-soft); border-radius: 4px; padding: 3px; gap: 3px; }
.units button { font: inherit; font-size: .875rem; background: none; border: 0; color: var(--white); padding: 6px 12px; border-radius: 2px; cursor: pointer; }
.units button[aria-pressed="true"] { background: var(--white); color: var(--green); font-weight: 600; }
.hero-source { color: var(--silver-light); font-size: .875rem; max-width: 44ch; }
.ingots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: end; }
.ingot { color: var(--green-deep); text-decoration: none; display: block; transition: transform .2s; }
.ingot:hover { transform: translateY(-4px); }
.ingot-top { height: 18px; clip-path: polygon(5% 0, 95% 0, 97% 100%, 3% 100%); }
.ingot-body { clip-path: polygon(3% 0, 97% 0, 100% 100%, 0 100%); padding: 14px 8% 18px; display: grid; gap: 2px; }
.ingot.gold .ingot-top { background: var(--gold-light); }
.ingot.gold .ingot-body { background: var(--gold); }
.ingot.silver .ingot-top { background: var(--silver-light); }
.ingot.silver .ingot-body { background: var(--silver); }
.ingot-name { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; flex-wrap: wrap; }
.ingot-price { font-stretch: 125%; font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.01em; }
.ingot-unit { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; flex-wrap: wrap; }
.tick-up { animation: tick .9s ease-out; }
.tick-down { animation: tick .9s ease-out; }
@keyframes tick { from { opacity: .45; } to { opacity: 1; } }

/* Notices */
.notice { background: #f8ecd0; border: 1px solid var(--gold); padding: 12px 16px; border-radius: 4px; color: var(--ink); }
.notice.error { background: #fbe9e6; border-color: var(--error); }
.notice.onwall { margin-bottom: 20px; }

/* Products */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 20px; }
.product { display: flex; flex-direction: column; gap: 10px; }
/* Portrait thumbnails, the same 3:4 shape as the product photos */
.product-art { display: flex; align-items: center; aspect-ratio: 3 / 4; background: var(--white); border: 1px solid var(--line); padding: 14px; }
.product-art svg { width: 100%; height: auto; }
.product-art:has(.product-photo) { padding: 0; }
.product-art .product-photo { width: 100%; height: 100%; object-fit: cover; }
.product-art .product-photo.contain { object-fit: contain; padding: 10px; }
.product-photo { object-fit: contain; }
.detail-art:has(.product-photo) { padding: 0; }
.detail-art .product-photo { width: 100%; height: 376px; }
.detail-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.detail-photos img { width: 100%; height: auto; background: var(--white); border: 1px solid var(--line); }
/* Three photos: the first runs full width, cropped square around the coin, with the others below */
.detail-photos img:first-child:nth-last-child(3) { grid-column: 1 / -1; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-credit { margin-top: 10px; }
.credits { padding-left: 20px; display: grid; gap: 6px; margin: 0; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { text-decoration: underline; }
.product-price { font-size: 1.3rem; font-weight: 700; font-stretch: 112%; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: .8125rem; color: var(--muted); }
.tag { border: 1px solid var(--line); padding: 1px 7px; border-radius: 3px; background: var(--white); }
.product .btn { margin-top: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: end; margin-bottom: 28px; }
.filters label { display: grid; gap: 4px; font-size: .875rem; font-weight: 600; }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"] {
  font: inherit; color: var(--ink); background: var(--white); border: 1px solid #8b9a94; border-radius: 3px; padding: 9px 10px; width: 100%; max-width: 100%;
}
.qty { width: 84px; }

/* Product page */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.detail-art { background: var(--white); border: 1px solid var(--line); padding: 48px; }
.detail-art svg { width: 100%; height: 280px; }
.detail-info { display: grid; gap: 18px; }
.detail-price { font-size: 2.4rem; font-weight: 800; font-stretch: 125%; line-height: 1.1; }
.buy-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.buy-row label { display: grid; gap: 4px; font-size: .875rem; font-weight: 600; }
.specs { width: 100%; border-collapse: collapse; }
.specs th, .specs td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 500; color: var(--muted); width: 48%; }

/* Steps and VAT */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 6px; }
.steps li::before { content: counter(step); font-stretch: 125%; font-weight: 800; font-size: 2rem; color: var(--gold); line-height: 1; }
.band { background: var(--white); border-block: 1px solid var(--line); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }
.two > div { display: grid; gap: 8px; align-content: start; }

/* Basket and checkout */
.basket-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.table-wrap { overflow-x: auto; }
.lines { width: 100%; border-collapse: collapse; }
.lines th { text-align: left; font-size: .875rem; color: var(--muted); font-weight: 500; padding: 8px 12px 8px 0; border-bottom: 2px solid var(--green); }
.lines td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lines .right { text-align: right; padding-right: 0; }
.link-btn { font: inherit; font-size: .875rem; background: none; border: 0; padding: 0; color: var(--green); text-decoration: underline; cursor: pointer; }
.summary { background: var(--white); border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; position: sticky; top: 92px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; }
.summary-total { font-size: 1.3rem; font-weight: 700; border-top: 2px solid var(--green); padding-top: 12px; }
.hold { background: var(--green); color: var(--white); padding: 10px 14px; display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.hold.ended { background: var(--error); }
.form { display: grid; gap: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 4px; align-content: start; }
.field label { font-weight: 600; font-size: .9375rem; }
.field.full { grid-column: 1 / -1; }
.field-error { color: var(--error); font-size: .875rem; }
/* Hidden from people; bots that fill in every field give themselves away */
.spam-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.check input { margin-top: 5px; width: 18px; height: 18px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
legend { font-stretch: 125%; font-size: 1.2rem; font-weight: 700; padding: 0; margin-bottom: 14px; }
.bank { width: 100%; max-width: 480px; border-collapse: collapse; }
.bank th, .bank td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.bank th { font-weight: 500; color: var(--muted); width: 45%; }
.empty { display: grid; gap: 14px; justify-items: start; padding-block: 24px; }

/* Selling to us */
.sell-band { background: var(--green); color: var(--white); padding-block: 48px; }
.sell-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; }
.sell-copy { display: grid; gap: 16px; }
.sell-copy p { max-width: 56ch; }
.sell-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; }
.sell-prices p { grid-column: 1 / -1; color: var(--silver-light); }
.sell-price { display: grid; gap: 2px; font-size: .9375rem; }
.sell-price b { font-stretch: 125%; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.15; color: var(--gold-light); }
.sell-price:nth-child(2) b { color: var(--silver-light); }
.sell-form-wrap { max-width: 760px; margin-inline: 0; }
textarea { font: inherit; color: var(--ink); background: var(--white); border: 1px solid #8b9a94; border-radius: 3px; padding: 9px 10px; width: 100%; max-width: 100%; resize: vertical; }

/* Reviews */
.reviews-head { background: var(--green); color: var(--white); padding-block: 48px; }
.reviews-head-inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; }
.reviews-intro { display: grid; gap: 16px; }
.reviews-intro p { max-width: 62ch; }
.reviews-score { display: grid; gap: 4px; color: var(--silver-light); font-size: .9375rem; }
.reviews-score b { font-stretch: 125%; font-weight: 800; font-size: 4rem; line-height: 1; color: var(--gold-light); }
.reviews { columns: 3 280px; column-gap: 36px; }
.review { break-inside: avoid; margin: 0 0 28px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.review blockquote { margin: 0; font-size: 1.0625rem; overflow-wrap: anywhere; }
.review figcaption { color: var(--muted); font-size: .875rem; }

/* Footer */
.site-footer { background: var(--green); color: var(--white); margin-top: 24px; }
.site-footer .wrap { padding-block: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; font-size: .9375rem; }
.site-footer a { color: var(--white); }
.site-footer h3 { margin-bottom: 8px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-brand b { font-stretch: 125%; font-weight: 800; font-size: 1.15rem; display: block; line-height: 1.1; }
.footer-brand span { font-stretch: 125%; font-size: 1.15rem; display: block; margin-bottom: 8px; line-height: 1.1; }

@media (max-width: 860px) {
  .hero-top, .detail, .basket-layout, .reviews-head-inner, .sell-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .strip-note { margin-left: 0; }
  .site-header { position: static; }
  .site-header .wrap { position: relative; gap: 8px; }
  .nav { margin-left: 0; width: 100%; gap: 4px 16px; font-size: .9375rem; }
  .nav .basket-link { position: absolute; top: 16px; right: max(16px, env(safe-area-inset-right, 0px)); }
  /* Phones: the live prices come straight after the headline */
  .hero { padding-top: 24px; }
  .hero > .wrap { display: flex; flex-direction: column; }
  .hero-top, .hero-side { display: contents; }
  .hero-copy { order: 1; margin-bottom: 24px; }
  .units { order: 2; align-self: flex-start; margin-bottom: 16px; }
  #paused { order: 3; }
  .ingots { order: 4; }
  .hero-source { order: 5; padding-block: 18px; max-width: none; }
}
@media (max-width: 620px) {
  .ingots { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .ingot:last-child .ingot-body { padding-bottom: 26px; }
  .ingot-price { font-size: clamp(2rem, 10vw, 3rem); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-art { padding: 24px; }
  .section { padding-block: 40px; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
