/* Phone first. Warm paper and copper, like a coin album; no web fonts so pages load fast on mobile data. */
:root {
  --paper: #fbf7f0;
  --card: #ffffff;
  --ink: #2a2420;
  --muted: #6d6259;
  --line: #e6dccd;
  --copper: #a8602f;
  --copper-dark: #7f4520;
  --silver: #eef0f2;
  --focus: #1f6feb;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
h1, h2, h3, .brand, .yr { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 0.4em 0 0.3em; }
h2 { font-size: 1.3rem; margin: 1.8em 0 0.5em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 0.4em; color: var(--muted); }
a { color: var(--copper-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 18px; }
.small { font-size: 0.86rem; color: var(--muted); }
.lede { font-size: 1.08rem; }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; flex-wrap: wrap; }
.brand { font-size: 1.25rem; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand .tld { color: var(--copper); }
.mark { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #d9955f, var(--copper) 60%, var(--copper-dark)); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
nav a { margin-left: 16px; text-decoration: none; font-weight: 600; color: var(--ink); }
nav a:first-child { margin-left: 0; }

.crumbs { font-size: 0.9rem; color: var(--muted); margin: 1em 0 0; }
.meta { color: var(--muted); margin: 0 0 1em; }

.btn, button {
  display: inline-block; background: var(--copper); color: #fff; border: 0; border-radius: 8px;
  padding: 12px 20px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 48px;
}
.btn:hover, button:hover { background: var(--copper-dark); }

/* Hero */
.hero { padding: 1.2em 0 0.4em; }
.hero h1 { font-size: 2.1rem; }

/* Set cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.card a { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.card a:hover { border-color: var(--copper); }
.card .yr { grid-row: span 2; font-size: 1.2rem; color: var(--copper); align-self: center; }
.card .t { font-weight: 600; }
.card .m { font-size: 0.86rem; color: var(--muted); }
.plain { padding-left: 1.1em; }
.plain.big li { margin-bottom: 0.8em; }

/* Photos and placeholders */
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0.5em 0; }
.photos figure { margin: 0; }
.photos img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.photos figcaption { font-size: 0.86rem; color: var(--muted); text-align: center; }
.ph { aspect-ratio: 1 / 1; border: 2px dashed var(--line); border-radius: 10px; background: var(--card); display: flex; align-items: center; justify-content: center; text-align: center; }
.ph-in { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 0.9rem; padding: 8px; }
.coin { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--line); box-shadow: inset 0 0 0 6px var(--paper); }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; gap: 12px; margin: 0.5em 0 1em; }
.gallery figure, figure.inline { margin: 0; }
.gallery img, figure.inline img { display: block; width: auto; max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.gallery figcaption, figure.inline figcaption { font-size: 0.86rem; color: var(--muted); margin-top: 4px; }

/* Versions */
.vers { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ver { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.ver p { margin: 0.2em 0; }
.ver-h { font-weight: 600; }
.fin { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.03em; padding: 1px 8px; border-radius: 99px; margin-right: 4px; vertical-align: 1px; }
.fin-proof { background: #2a2420; color: #fff; }
.fin-unc { background: var(--silver); color: var(--ink); border: 1px solid #d5d9dd; }
.coins { font-size: 0.95rem; }

/* Tables scroll sideways on small phones instead of squashing */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; background: var(--card); font-size: 0.95rem; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
thead th { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.glyph { font-size: 1.1em; color: var(--copper); }

.srcs { padding-left: 1.3em; font-size: 0.92rem; }
.srcs li { margin-bottom: 0.4em; overflow-wrap: anywhere; }
.kind { font-weight: 600; }

/* Offer form */
.offer { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--copper); border-radius: 10px; padding: 6px 18px 16px; margin: 2em 0 1em; scroll-margin-top: 12px; }
.offer h2 { margin-top: 0.7em; }
.offer label { display: block; font-weight: 600; font-size: 0.95rem; margin: 12px 0 4px; }
.offer .opt { font-weight: 400; color: var(--muted); }
.offer input, .offer select, .offer textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfc3b3; border-radius: 8px; background: #fff; color: var(--ink);
}
.offer input, .offer select { height: 50px; }
.offer button { margin-top: 16px; width: 100%; }
.row2 { display: grid; gap: 0 12px; }
.error { background: #fdecea; border: 1px solid #f3b5ae; color: #8a1c12; padding: 10px 12px; border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pn { display: flex; justify-content: space-between; gap: 12px; margin: 1.5em 0; font-size: 0.92rem; }
.pn a { max-width: 48%; }
.pn a:last-child { text-align: right; }

.how ol { padding-left: 1.3em; }
.how li { margin-bottom: 0.5em; }

.foot { border-top: 1px solid var(--line); margin-top: 3em; padding: 1em 0 2em; font-size: 0.88rem; color: var(--muted); }

@media (min-width: 620px) {
  .row2 { grid-template-columns: 1fr 1fr; }
  .offer button { width: auto; }
  .cards.two { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 2.1rem; }
}
