
:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --surface: #fffefa;
  --ink: #1f2924;
  --muted: #7e847e;
  --line: #e8e5dc;
  --green: #274d3d;
  --green-soft: #eaf0eb;
  --gold: #b9893e;
  --gold-light: #ead9b6;
  --silver: #818995;
  --silver-light: #e3e6e9;
  --danger: #aa5b53;
  --shadow: 0 16px 38px rgb(37 43 37 / 5%);
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(ellipse at 83% 13%, rgb(236 228 208 / 44%), transparent 30rem),
    var(--paper);
  color: var(--ink);
}

button, a { font: inherit; }
a { color: inherit; }

.site-header,
.page-shell,
.site-footer {
  width: min(1120px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(34 45 38 / 10%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand-mark { width: 39px; height: 39px; color: var(--gold); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; gap: 1px; font-weight: 700; font-size: 15px; letter-spacing: -.035em; line-height: 1.2; }
.brand-name span { color: #69716b; font-size: 11px; font-weight: 500; letter-spacing: .075em; text-transform: uppercase; }

.market-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #e3e7e1;
  border-radius: 999px;
  background: rgb(255 255 255 / 65%);
  color: #68726b;
  font-size: 12px;
  font-weight: 600;
}

.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b2b6b2; }
.market-pill[data-state="live"] { border-color: #d7e4d9; color: var(--green); }
.market-pill[data-state="live"] .status-dot { background: #3f8a61; box-shadow: 0 0 0 3px rgb(63 138 97 / 12%); }
.market-pill[data-state="stale"] { border-color: #eadfc9; color: #88672e; }
.market-pill[data-state="stale"] .status-dot { background: #c39748; }
.market-pill[data-state="error"] { border-color: #eedbd8; color: #9a554d; }
.market-pill[data-state="error"] .status-dot { background: #b7635a; }

.page-shell { padding-top: 63px; padding-bottom: 70px; }

.intro {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 245px;
  overflow: hidden;
  padding: 12px 12px 32px 0;
}

.intro-copy { position: relative; z-index: 1; max-width: 630px; }
.eyebrow, .section-kicker, .card-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
}
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow-line { width: 25px; height: 1px; background: var(--gold); }
.eyebrow-separator { color: #b4b5af; }

h1 {
  margin: 21px 0 13px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(39px, 5.3vw, 62px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: 1.09;
}
h1 span { color: var(--green); }
.intro-description { max-width: 440px; margin: 0; color: #737b74; font-size: 14px; line-height: 1.75; }

.intro-art { position: relative; width: 230px; height: 190px; flex: 0 0 230px; margin-right: 45px; }
.coin { position: absolute; display: block; border-radius: 50%; }
.coin-gold {
  top: 8px;
  right: 24px;
  width: 148px;
  height: 148px;
  border: 1px solid #cfb378;
  background: radial-gradient(circle at 36% 30%, #f4e9d0 0 9%, #d8bc81 10% 13%, #e8d5ac 14% 63%, #c3a164 64% 66%, #dfc999 67% 100%);
  box-shadow: 0 14px 30px rgb(140 105 46 / 16%), inset 0 0 0 7px rgb(255 255 255 / 24%);
}
.coin-silver {
  right: 105px;
  bottom: 4px;
  width: 103px;
  height: 103px;
  border: 1px solid #b5bac1;
  background: radial-gradient(circle at 36% 30%, #fff 0 9%, #d8dce0 10% 13%, #e7e9eb 14% 63%, #c1c6cc 64% 66%, #e3e5e8 67% 100%);
  box-shadow: 0 13px 26px rgb(74 85 98 / 13%), inset 0 0 0 6px rgb(255 255 255 / 38%);
}
.art-spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #b9893e; opacity: .65; }
.spark-one { top: 22px; left: 20px; }
.spark-two { right: 3px; bottom: 52px; width: 3px; height: 3px; background: #858e98; }

.update-line { display: flex; align-items: center; gap: 10px; min-height: 45px; margin-bottom: 25px; border-top: 1px solid var(--line); color: #7d837d; font-size: 11px; }
.update-label { font-weight: 600; }
.update-line time { color: #38443d; font-variant-numeric: tabular-nums; font-weight: 600; }
.update-divider { width: 3px; height: 3px; border-radius: 50%; background: #b7b8b0; }
.refresh-note { color: #999b95; }

.market-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(260px, .8fr); gap: 48px; align-items: start; }
.section-heading { display: flex; align-items: end; justify-content: space-between; min-height: 55px; margin-bottom: 15px; }
.section-kicker { margin-bottom: 6px; font-size: 9px; letter-spacing: .15em; }
.section-heading h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.025em; }
.section-count { padding-bottom: 4px; color: #92958e; font-size: 11px; }

.gold-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.price-card { border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.gold-card { min-height: 150px; padding: 17px 18px 14px; }
.card-heading { display: flex; align-items: center; gap: 11px; }
.metal-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 35px; height: 35px; border-radius: 50%; font-size: 12px; font-weight: 700; }
.gold-icon { border: 1px solid #e8d8b7; background: #f7f0e2; color: #a67830; }
.silver-icon { border: 1px solid #dce0e4; background: #f1f2f3; color: #717987; }
.card-title-wrap { min-width: 0; flex: 1; }
.card-kicker { margin-bottom: 3px; color: #9c927f; font-size: 8px; letter-spacing: .12em; }
.card-title-wrap h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.015em; }
.change-chip { flex: 0 0 auto; padding: 5px 7px; border-radius: 5px; background: #f0f1ed; color: #747b73; font-size: 10px; font-variant-numeric: tabular-nums; font-weight: 700; }
.change-chip.trend-up { background: #edf4ee; color: #398057; }
.change-chip.trend-down { background: #f8efee; color: #aa5d54; }
.price-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; padding-top: 11px; border-top: 1px solid #efede7; }
.price-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.price-cell > span { color: #969991; font-size: 10px; }
.price-cell strong { overflow: hidden; color: #26352c; font-size: clamp(14px, 1.4vw, 17px); font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.price-cell:last-child strong { color: var(--green); }

.silver-section { position: relative; }
.silver-stamp { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #d8dce0; border-radius: 50%; color: #75808d; font-family: Georgia, serif; font-size: 11px; }
.silver-card { position: relative; min-height: 314px; overflow: hidden; padding: 21px 21px 17px; background: linear-gradient(151deg, #fffefa 0%, #f6f7f7 100%); }
.silver-card::after { position: absolute; right: -28px; bottom: -73px; width: 170px; height: 170px; border: 1px solid rgb(148 157 166 / 22%); border-radius: 50%; box-shadow: 0 0 0 12px rgb(148 157 166 / 5%), 0 0 0 26px rgb(148 157 166 / 4%); content: ""; pointer-events: none; }
.silver-card-top { display: flex; align-items: center; justify-content: space-between; }
.silver-product-name { margin: 24px 0 0; color: #38444d; font-family: "Playfair Display", Georgia, serif; font-size: 23px; letter-spacing: -.025em; }
.silver-card .price-pair { position: relative; z-index: 1; margin-top: 22px; padding-top: 16px; }
.silver-card .price-cell strong { font-size: clamp(16px, 1.8vw, 20px); }
.silver-footnote { position: relative; z-index: 1; margin: 22px 0 0; color: #949aa1; font-size: 10px; letter-spacing: .04em; }

.connection-message { min-height: 18px; margin: 19px 0 0; color: #8b7660; font-size: 11px; }
.connection-message:empty { display: none; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; min-height: 74px; border-top: 1px solid var(--line); color: #8c9089; font-size: 10px; }
.footer-brand { color: #56625a; font-weight: 700; text-decoration: none; }
.site-footer p { margin: 0; text-align: center; }
.source-link { color: #647268; text-decoration: none; }
.source-link:hover, .source-link:focus-visible { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.source-link span { color: var(--gold); }
.noscript-note { margin: 16px auto; width: min(1120px, calc(100% - 40px)); color: #8f5d48; font-size: 13px; }

@media (max-width: 820px) {
  .market-layout { grid-template-columns: 1fr; gap: 31px; }
  .silver-card { min-height: 245px; }
  .silver-card::after { right: 25px; bottom: -99px; }
  .intro-art { margin-right: 2px; transform: scale(.82); transform-origin: center right; }
  .site-footer { grid-template-columns: 1fr auto; gap: 8px 16px; padding-block: 17px; }
  .site-footer p { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  .source-link { grid-column: 2; grid-row: 1; }
}

@media (max-width: 560px) {
  .site-header, .page-shell, .site-footer { width: min(100% - 36px, 460px); }
  .site-header { min-height: 70px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { font-size: 13px; }
  .brand-name span { font-size: 9px; }
  .market-pill { min-height: 31px; gap: 7px; padding-inline: 9px; font-size: 10px; }
  .page-shell { padding-top: 38px; padding-bottom: 45px; }
  .intro { min-height: 226px; padding: 0 0 28px; }
  .intro-copy { max-width: 100%; }
  .intro-art { position: absolute; top: 14px; right: -89px; width: 175px; margin: 0; opacity: .4; transform: scale(.8); }
  .eyebrow { font-size: 9px; }
  h1 { position: relative; max-width: 360px; margin-top: 24px; font-size: clamp(38px, 10vw, 49px); }
  .intro-description { position: relative; max-width: 330px; font-size: 12px; }
  .update-line { flex-wrap: wrap; gap: 6px 9px; padding-block: 9px; font-size: 10px; }
  .update-label { width: auto; }
  .refresh-note { width: 100%; }
  .gold-grid { grid-template-columns: 1fr; gap: 10px; }
  .gold-card { min-height: 139px; padding: 15px 16px 13px; }
  .price-cell strong { font-size: 17px; }
  .silver-card { min-height: 244px; padding: 18px; }
  .silver-product-name { font-size: 21px; }
  .site-footer { grid-template-columns: 1fr; gap: 9px; align-items: start; padding-block: 17px; }
  .site-footer p, .source-link { grid-column: 1; grid-row: auto; }
  .site-footer p { font-size: 10px; line-height: 1.6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
