/* tokens
   paper: #ede6d2 (light) to #d8caa2 (edge), aged catalogue-card stock
   ink: #23190f (caption), #4a3b24 (soft label)
   bronze: #8a6b3a (rules, credit line)
   type: Newsreader (issue line + labels, bundled locally), monospace for the lot number (real case, copyable)
   corner radius: 0 everywhere, this is a printed plate, not a UI card
   motion: none, the page is a still photographic plate
*/

@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("assets/fonts/newsreader-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 38%, #ede6d2 0%, #ddd0aa 62%, #c9b98a 100%);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3vh 4vw;
  font-family: "Newsreader", "Iowan Old Style", Georgia, serif;
  color: #23190f;
}

.plate {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.frame {
  margin: 0;
  width: min(88vw, 70vh);
  aspect-ratio: 1 / 1;
  padding: 10px;
  background: #f4efe0;
  border: 1px solid #8a6b3a;
  box-shadow: 0 14px 30px rgba(35, 25, 15, 0.28);
}

.coin {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.caption {
  margin: 2vh 0 0;
  width: min(88vw, 70vh);
  text-align: center;
}

.issue {
  margin: 0;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(13px, 1.7vw, 17px);
  line-height: 1.4;
  color: #23190f;
}

.record {
  margin: 1vh 0 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5em;
  font-weight: 500;
  font-size: clamp(11px, 1.4vw, 14px);
  letter-spacing: 0.06em;
  color: #4a3b24;
}

.ticker {
  font-weight: 600;
}

.sep {
  color: #8a6b3a;
}

.lot-label {
  letter-spacing: 0.12em;
}

.lot-ca {
  font-family: ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
  font-variant: normal;
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  color: #23190f;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  border-bottom: 1px dotted #8a6b3a;
  word-break: break-all;
}

.plate-no {
  font-style: italic;
}

.credit {
  margin-top: 1.6vh;
  display: flex;
  gap: 1.4em;
}

.credit a {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: #8a6b3a;
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 107, 58, 0.5);
  padding-bottom: 1px;
}

.credit a:hover {
  color: #23190f;
  border-bottom-color: #23190f;
}

@media (max-width: 480px) {
  .frame { width: min(92vw, 58vh); }
  .caption, .record { width: min(92vw, 58vh); }
}
