:root {
  color-scheme: light;
  --paper: #f8f4ed;
  --ink: #28291f;
  --olive: #323b29;
  --gold: #775a30;
  --serif: "Baskervville", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --gutter: clamp(1rem, .55rem + 2.4vw, 5.625rem);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--sans); }
a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.site-header, footer {
  max-width: 1480px; margin: auto; padding: clamp(.75rem, .6rem + .6vw, 1.2rem) var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1rem;
}
.wordmark { font: clamp(1.2rem, 1rem + .65vw, 1.6rem)/1 var(--serif); text-decoration: none; text-transform: uppercase; letter-spacing: .09em; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { display: block; width: clamp(32px, 4vw, 42px); height: auto; flex: none; }
.brand small { display: block; margin-top: 7px; font: .61rem var(--sans); letter-spacing: .22em; color: var(--gold); }
nav { display: flex; flex-wrap: wrap; gap: .5rem clamp(.8rem, .5rem + 2vw, 2.8rem); }
#social-links[hidden] { display: none; }
nav a, footer > a:last-child { font-size: clamp(.875rem, .8rem + .25vw, 1.05rem); text-decoration: none; }
nav a:hover, footer > a:last-child:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-header .site-languages { gap: .15rem; }
.site-languages { display: flex; flex-wrap: wrap; gap: .15rem; }
.site-languages a { padding: .3rem .45rem; font-size: .8rem; font-weight: 600; }
.site-languages a[aria-current="page"] { background: #ede2cd; border-radius: .25rem; }
.hero { position: relative; display: grid; align-items: center; min-height: clamp(440px, 42vw, 670px); isolation: isolate; background: #e8d6bc; }
.hero > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; }
.hero::before { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg,#efe1cd 1%,#efe1cde0 26%,#efe1cd00 64%); }
.hero-copy { padding: 48px clamp(24px, 9vw, 150px); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; }
h1 { margin: 0; font-size: clamp(3.8rem, 8.5vw, 8rem); line-height: .9; letter-spacing: -.065em; }
h1 em { color: #5b482f; }
.hero-copy p { margin: 26px 0; }
.button { display: inline-flex; gap: 22px; align-items: center; padding: 12px 18px; background: var(--olive); color: white; text-decoration: none; }
.button:hover { background: #49553d; }
.collection { max-width: 1480px; margin: auto; padding: clamp(45px, 7vw, 105px) var(--gutter); }
h2 { margin: 0 0 23px; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: 1.02; letter-spacing: -.04em; }
.collection-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 42px); }
.collection-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1.65; object-fit: cover; object-position: right center; }
h3 { margin: 12px 0 2px; font-size: clamp(1.5rem, 2.8vw, 2.4rem); }
article p { margin: 0; }
.gold { background: var(--olive); color: var(--paper); padding: clamp(38px, 6vw, 90px) clamp(24px, 9vw, 150px); display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 16px 50px; }
.gold h2, .gold p { margin: 0; }
.gold .category { margin-bottom: 12px; color: #f0d8af; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }
footer { padding-block: 30px; }
@media (max-width: 650px) {
  .hero { min-height: auto; }
  .hero > img { position: static; height: auto; aspect-ratio: 1.5; object-position: right; }
  .hero::before { display: none; }
  .hero-copy { padding: 26px 24px 36px; }
  h1 { font-size: clamp(3.15rem, 13vw, 5rem); }
  .hero-copy p { margin: 18px 0; }
  .collection-grid, .gold { grid-template-columns: 1fr; }
  .collection-grid { gap: 30px; }
}

.buy-page { max-width: 1240px; margin: auto; padding: clamp(.75rem, 2vw, 1.5rem) var(--gutter) clamp(2rem, 5vw, 3.4rem); }
.buy-page [hidden] { display: none; }
.buy-market {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .5rem;
  padding: .8rem clamp(.75rem, 3vw, 2rem) .65rem; background: #314131; color: #fff9ed;
  text-align: center;
}
.buy-market-quote { display: grid; align-content: center; gap: .12rem; padding-inline: .25rem; }
.buy-market-quote + .buy-market-quote { border-inline-start: 1px solid #fff9ed38; }
.buy-market span { color: #e9c995; font-size: .72rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.buy-market small { grid-column: 1 / -1; font-size: .74rem; color: #ede2cd; }
.buy-market strong { font: 700 clamp(1.25rem, 4vw, 1.9rem)/1.16 var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }
.buy-hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(24px, 5vw, 62px);
  color: #fffaf2; background: linear-gradient(90deg, #21291f 32%, #21291fe8 58%, #21291f66), url("/campagne/goud.jpg") right center / cover #21291f;
}
.buy-hero h1 { font-size: clamp(2.55rem, 1.6rem + 4.5vw, 6.3rem); }
.buy-hero h1 em { display: block; color: #e9c995; }
.buy-label { margin-top: 0; color: #e9c995; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.buy-hero p:not(.buy-label) { max-width: 39ch; }
.buy-hero-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.buy-hero-actions .button { background: #e9c995; color: #24291f; font-weight: 650; }
.buy-hero-actions .button:hover { background: #f5dfb9; }
.buy-hero-actions a:last-child { text-underline-offset: .2em; }
.buy-hero-rates { background: var(--paper); color: var(--ink); padding: clamp(18px, 3vw, 34px); border-top: 3px solid #ba945a; }
.buy-hero-rates h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); margin: 0 0 12px; }
.buy-hero-rates dl { margin: 0; }
.buy-hero-rates dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid #d9c9b0; }
.buy-hero-rates dd { margin: 0; color: #574225; font: 700 clamp(1.2rem, 3vw, 1.7rem)/1.2 var(--serif); white-space: nowrap; }
.buy-hero-rates p { margin: 10px 0 0; font-size: .78rem; }
.buy-proof {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 32px;
  padding: clamp(18px, 3vw, 34px) clamp(20px, 5vw, 62px);
  border-top: 3px solid #a28650; background: #efe3cf; color: #49351d; text-decoration: none;
}
.buy-proof-source { display: block; font-size: .8rem; font-weight: 650; }
.buy-proof strong { display: block; margin: 3px 0 5px; font: 400 clamp(1.65rem, 3.5vw, 2.85rem)/1.08 var(--serif); }
.buy-proof-promise { display: block; margin-bottom: 6px; font-weight: 650; }
.buy-proof-link { font-size: .85rem; text-decoration: underline; text-underline-offset: .2em; }
.buy-proof:hover { background: #eaddc6; }
.buy-proof-result { display: grid; gap: 4px; text-align: end; }
.buy-proof-result b { font: 700 clamp(2rem, 4.4vw, 3.5rem)/1 var(--serif); white-space: nowrap; }
.buy-proof-result span { font-size: .83rem; }
.buy-calculator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 5vw, 60px); align-items: start; }
.buy-calculator-card { padding: clamp(16px, 3vw, 28px); border: 1px solid #d9c9b0; background: #fffaf2; }
.buy-calculator-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.buy-calculator-fields label { display: grid; gap: 5px; min-width: 0; font-size: .9rem; }
.buy-calculator-fields input, .buy-calculator-fields select { min-width: 0; width: 100%; padding: 9px; border: 1px solid #a9987e; border-radius: 0; background: white; color: var(--ink); font: inherit; font-size: 1rem; }
.buy-calculator output { display: block; margin-top: 16px; font-weight: 700; font-size: 1.15rem; color: var(--olive); }
#estimate-date { margin: 4px 0 0; font-size: .8rem; }
.buy-section { border-top: 1px solid #d9c9b0; padding-block: 30px; }
.buy-section h2 { font-size: clamp(2rem, 4.4vw, 3.55rem); margin-bottom: 12px; }
.buy-section p { max-width: 68ch; }
.buy-price-grid {
  display: grid; gap: clamp(14px, 2.5vw, 26px); margin: clamp(18px, 3vw, 36px) 0;
}
.buy-price-panel { min-width: 0; border: 1px solid #d9c9b0; background: #fffaf2; }
.buy-price-head { padding: 14px clamp(10px, 2vw, 22px); background: #242e23; color: #fffaf2; border-top: 3px solid #c19a5e; }
.buy-price-head h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.25rem); }
.buy-price-head p { margin: 4px 0 0; font-size: .8rem; color: #f0d7af; }
.buy-table { border-collapse: collapse; width: 100%; font-size: clamp(.875rem, .8rem + .3vw, 1rem); font-variant-numeric: tabular-nums; line-height: 1.35; }
.buy-table th, .buy-table td { padding: 8px clamp(7px, 1.45vw, 17px); text-align: left; border-bottom: 1px solid #e5dac7; }
.buy-table thead { background: #e9dcc3; color: #49351d; font-size: .875em; }
.buy-table tbody th { font-weight: 600; }
.buy-table tbody tr:nth-child(even) { background: #f5eee1; }
.buy-table th:last-child, .buy-table td:last-child { text-align: right; }
.buy-table tbody td:last-child { color: #3d2c16; font-weight: 750; white-space: nowrap; }
.buy-table tbody td.buy-on-request { color: #645b4d; font-size: .8rem; font-weight: 500; }
.buy-coins .buy-table tbody td:nth-child(2) { white-space: nowrap; }
.buy-coins-layout {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); align-items: start;
}
.buy-coin-gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; margin: 0; padding: clamp(10px, 1.6vw, 20px);
  list-style: none; background: #f5eee1;
}
.buy-coin-gallery li {
  display: grid; justify-items: center; align-content: start; grid-template-rows: auto 1fr auto;
  gap: .55rem; padding: clamp(.65rem, 1.7vw, 1.1rem) .4rem;
  text-align: center; background: #fffaf2; border: 1px solid #e5dac7;
}
.buy-coin-gallery .coin-photo { width: min(100%, 9rem); }
.buy-coin-card-name { font-size: clamp(.82rem, 1.3vw, 1rem); line-height: 1.25; font-weight: 600; }
.buy-coin-gallery strong {
  color: #574225; font: 700 clamp(1.12rem, 2vw, 1.55rem)/1.2 var(--serif);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.buy-coin-gallery .buy-on-request { color: #645b4d; font-size: .85rem; }
.buy-coin-list { min-width: 0; }
.coin-name { display: flex; align-items: center; gap: clamp(.4rem, 1vw, .75rem); overflow-wrap: anywhere; }
.coin-photo {
  position: relative; flex: none; width: clamp(2rem, 6vw, 2.75rem);
  aspect-ratio: 1; overflow: hidden; border-radius: 50%;
}
.coin-photo img {
  position: absolute; left: 50%; top: 50%; width: var(--photo-width, 101%); height: auto;
  max-width: none; transform: translate(var(--photo-x, -50%), var(--photo-y, -50%));
}
.coin-illustration { background-repeat: no-repeat; background-color: #eee4d4; }
.coin-illustration.coin-photo--maple, .coin-illustration.coin-photo--kangaroo {
  background-image: url("/gouden-muntengids/munt-1.webp"); background-size: 300% 200%;
}
.coin-illustration.coin-photo--maple { background-position: 50% 0; }
.coin-illustration.coin-photo--kangaroo { background-position: 100% 100%; }
.coin-illustration.coin-photo--canada100, .coin-illustration.coin-photo--ecu50 {
  background-image: url("/gouden-muntengids/munt-4.webp"); background-size: 400% 200%;
}
.coin-illustration.coin-photo--canada100 { background-position: 0 100%; }
.coin-illustration.coin-photo--ecu50 { background-position: 33.3333% 100%; }
.coin-photo--dukaat { --photo-width: 247%; --photo-x: -48.9%; --photo-y: -48.6%; }
/* Center one coin face and crop the surrounding background in the thumbnail. */
.coin-photo--wilhelmina { --photo-width: 229%; --photo-x: -50.4%; --photo-y: -48.6%; }
.coin-photo--sovereign { --photo-width: 264%; --photo-x: -50.2%; --photo-y: -27.1%; }
.coin-photo--krugerrand { --photo-width: 121%; --photo-y: -49.2%; }
.coin-photo--belgie, .coin-photo--zwitserland { --photo-width: 109%; }
.coin-photo--frankrijk { --photo-width: 111%; --photo-x: -49.6%; --photo-y: -49%; }
.coin-photo--frankrijk img { clip-path: circle(44% at 49.6% 49%); }
.coin-photo--italie { --photo-width: 211%; --photo-x: -24.4%; }
.coin-photo--duitsland { --photo-width: 107%; --photo-x: -50.2%; }
.coin-photo--denemarken { --photo-width: 233%; --photo-x: -28%; --photo-y: -47.7%; }
.coin-photo--double-eagle { --photo-width: 214%; --photo-x: -25.2%; }
.coin-photo--oostenrijk { --photo-width: 218%; --photo-x: -24.8%; --photo-y: -49.2%; }
.coin-photo--centenario { --photo-width: 163%; --photo-x: -49.6%; --photo-y: -32.3%; }
.buy-price-note { margin: 0; padding: 11px clamp(10px, 2vw, 22px); color: #51493d; font-size: .83rem; }
@media (max-width: 900px) {
  .buy-coins-layout { grid-template-columns: minmax(0, 1fr); }
  .buy-coin-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.buy-history a { text-underline-offset: .23em; }
.kassa-note { max-width: 72ch; margin-top: 22px; padding: clamp(16px, 4vw, 28px); border-inline-start: 3px solid var(--gold); background: #fffaf2; }
.kassa-note h3 { margin: 0; font-size: 1.2rem; }
.kassa-note p { margin: 12px 0; }
.kassa-note a { display: inline-block; margin-top: 4px; }
@media (max-width: 650px) {
  .buy-coin-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-hero, .buy-calculator { grid-template-columns: minmax(0, 1fr); }
  .buy-proof-result { text-align: start; }
  .buy-hero { padding: clamp(1rem, 4.5vw, 1.5rem); background-image: linear-gradient(#21291fdd, #21291fbb), url("/campagne/goud.jpg"); }
}
@media (max-width: 380px) {
  .buy-calculator-fields { grid-template-columns: minmax(0, 1fr); }
  .buy-table th, .buy-table td { padding-inline: .4rem; }
  .buy-coins .buy-table { table-layout: fixed; }
  .buy-coins .buy-table th:first-child { width: 48%; }
  .buy-coins .buy-table th:nth-child(2) { width: 24%; }
  .buy-coins .buy-table th, .buy-coins .buy-table td { padding-inline: .32rem; }
  .buy-coins .buy-table td { font-size: .8rem; }
  .buy-coins .buy-table tbody td:nth-child(2) { font-size: .75rem; padding-inline: .2rem; }
}
