/* ============================================================
   Celebrity Coin Collectors (CGC) — shared stylesheet
   Palette: espresso #1E1610 · bronze #6E4B2A · antique gold #B68A2E
            lustre gold #E4C66A · parchment #F3EAD7 · sand #E6D7BC
   Type: Fraunces (display) · Inter (body) · Space Mono (data)
   ============================================================ */

:root {
  --espresso: #1E1610;
  --espresso-2: #2A2014;
  --bronze: #6E4B2A;
  --gold: #B68A2E;
  --gold-lustre: #E4C66A;
  --parchment: #F3EAD7;
  --sand: #E6D7BC;
  --ink: #211A11;
  --muted: #8A7A5E;
  --muted-light: #C7B38A;

  --max: 1100px;
  --gold-grad: linear-gradient(135deg, #E4C66A 0%, #B68A2E 55%, #8A6420 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

a { color: var(--bronze); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

.eyebrow {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---- Reeded divider (echoes the coin's milled edge) ---- */
.reeded {
  height: 10px;
  background-image: repeating-linear-gradient(90deg,
    var(--gold) 0 1px, transparent 1px 7px);
  opacity: 0.55;
  border: none;
  margin: 0;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30,22,16,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(182,138,46,0.35);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; display: block; }
.brand .name {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600; font-size: 1.18rem; color: var(--parchment);
  letter-spacing: 0.01em; line-height: 1;
}
.brand .name small {
  display: block; font-family: "Space Mono", monospace;
  font-size: 0.6rem; letter-spacing: 0.28em; color: var(--gold);
  margin-top: 2px;
}
.nav { display: flex; gap: 1.4rem; }
.nav a {
  color: var(--sand); text-decoration: none; font-size: 0.92rem;
  letter-spacing: 0.02em;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-lustre); }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(900px 500px at 78% 18%, rgba(182,138,46,0.16), transparent 60%),
    var(--espresso);
  color: var(--parchment);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 1rem;
}
.hero h1 .accent {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 1.15rem; color: var(--sand); max-width: 46ch; }
.hero-coin { display: flex; justify-content: center; }
.hero-coin svg {
  width: min(360px, 78vw); height: auto;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,0.55));
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-block; padding: 0.75rem 1.4rem; border-radius: 2px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  letter-spacing: 0.01em; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-gold { background: var(--gold-grad); color: #221908; box-shadow: 0 6px 18px rgba(182,138,46,0.3); }
.btn-gold:hover { transform: translateY(-2px); color: #221908; }
.btn-ghost { border: 1px solid var(--gold); color: var(--gold-lustre); }
.btn-ghost:hover { background: rgba(182,138,46,0.12); color: var(--gold-lustre); }

.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "Space Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-lustre); border: 1px solid rgba(182,138,46,0.4);
  padding: 0.35rem 0.7rem; border-radius: 2px; margin-bottom: 1.2rem;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-lustre); }

/* ---- Sections ---- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section.alt { background: var(--sand); }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section .intro { max-width: 60ch; color: #4A3A26; font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.card {
  background: var(--parchment); border: 1px solid rgba(110,75,42,0.2);
  border-radius: 4px; padding: 1.6rem; position: relative;
}
.section.alt .card { background: #fff; }
.card .num {
  font-family: "Space Mono", monospace; font-size: 0.8rem;
  color: var(--gold); letter-spacing: 0.1em;
}
.card h3 { font-size: 1.25rem; margin-top: 0.5rem; }
.card p { color: #4A3A26; font-size: 0.98rem; margin: 0; }

/* ---- Content pages (legal/about/contact) ---- */
.page-head {
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(182,138,46,0.14), transparent 60%),
    var(--espresso);
  color: var(--parchment); padding: clamp(2.6rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.page-head p { color: var(--sand); margin: 0.6rem 0 0; max-width: 60ch; }

.prose { max-width: 70ch; margin: clamp(2.5rem,5vw,4rem) auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; color: var(--bronze); }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose p, .prose li { color: #3A2E1E; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose .updated {
  font-family: "Space Mono", monospace; font-size: 0.8rem;
  color: var(--muted); letter-spacing: 0.05em;
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label {
  font-family: "Space Mono", monospace; font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze);
}
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 0.7rem 0.8rem;
  border: 1px solid rgba(110,75,42,0.35); border-radius: 3px;
  background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.contact-aside {
  background: var(--espresso); color: var(--parchment);
  padding: 2rem; border-radius: 4px;
}
.contact-aside a { color: var(--gold-lustre); }
.contact-aside .label {
  font-family: "Space Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
  margin-top: 1.4rem; display: block;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--espresso); color: var(--sand);
  padding: 3rem 0 2rem; margin-top: 0;
}
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; align-items: start;
}
.site-footer .brand .name { color: var(--parchment); }
.site-footer p { color: var(--muted-light); font-size: 0.92rem; max-width: 36ch; }
.site-footer h4 {
  font-family: "Space Mono", monospace; font-size: 0.74rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 0.9rem;
}
.site-footer a { color: var(--sand); text-decoration: none; display: block; margin-bottom: 0.5rem; font-size: 0.92rem; }
.site-footer a:hover { color: var(--gold-lustre); }
.footer-bottom {
  border-top: 1px solid rgba(182,138,46,0.25); margin-top: 2.4rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  font-family: "Space Mono", monospace; font-size: 0.74rem; color: var(--muted);
  letter-spacing: 0.04em;
}

/* ---- Focus + accessibility ---- */
:focus-visible { outline: 2px solid var(--gold-lustre); outline-offset: 2px; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-coin { order: -1; }
  .hero p.lead { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; gap: 1.6rem; }
  .nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-coin svg { animation: none; }
  html { scroll-behavior: auto; }
}
