/* Thesaurus Coin — treasury theme
   Rebuilt to match the existing index.html structure. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,800;1,9..144,500&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --gold: #d4af37;
  --gold-bright: #e8c860;
  --gold-deep: #a8821f;

  --ink: #100e0a;
  --ink-2: #19150e;
  --panel: #1f1a11;
  --panel-line: rgba(212, 175, 55, 0.22);

  --text: #ece5d4;
  --muted: #a59c86;

  --parchment: #f4ecd8;
  --parchment-2: #fbf6e9;
  --parchment-line: rgba(64, 48, 12, 0.14);
  --ink-on-light: #1c1810;
  --muted-on-light: #6c6149;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --wrap: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.08;
  margin: 0;
  font-weight: 600;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 14, 10, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--gold);
  letter-spacing: 0.2px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.nav-links a:hover { color: var(--gold-bright); }

/* ---------- Full-width banners ---------- */
.grand-banner-container { width: 100%; }

.full-width-banner {
  width: 100%;
  height: auto;
  display: block;
}

.section-break-img {
  border-radius: var(--radius);
  margin-top: 32px;
  border: 1px solid var(--panel-line);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 72px;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(212, 175, 55, 0.14), transparent 60%),
    var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero h1 span { color: var(--gold); }

.lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 48ch;
  margin: 22px 0 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1405;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  background: transparent;
  border-color: var(--gold-deep);
  color: var(--gold-bright);
}

.btn-secondary:hover { border-color: var(--gold-bright); transform: translateY(-2px); }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.stat { display: flex; flex-direction: column; }

.stat strong {
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
}

.stat span {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------- Hero card ---------- */
.hero-card {
  background: linear-gradient(160deg, var(--panel), var(--ink-2));
  border: 1px solid var(--panel-line);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-card-inner { padding: 22px; }

.card-image {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 20px;
}

.hero-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.hero-card p { color: var(--muted); margin: 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }

.section-title {
  max-width: 680px;
  margin: 0 auto 52px;
  text-align: center;
}

.kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
}

.section-title p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 16px 0 0;
}

/* Light section overrides */
.section-light {
  background: var(--parchment);
  color: var(--ink-on-light);
}

.section-light .section-title p { color: var(--muted-on-light); }

/* ---------- Origin grid ---------- */
.origin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.origin-card {
  background: var(--parchment-2);
  border: 1px solid var(--parchment-line);
  border-radius: var(--radius);
  padding: 30px;
}

.origin-card.big { grid-column: span 2; }

.origin-card h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.origin-card p {
  color: var(--muted-on-light);
  margin: 0;
}

.card-banner {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 18px;
}

/* ---------- Ticker ---------- */
.ticker-pill {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #1a1405;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(212, 175, 55, 0.28);
}

/* ---------- Memes ---------- */
.meme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.meme-card {
  background: var(--parchment-2);
  border: 1px solid var(--parchment-line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
}

.meme-card h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.meme-card p { color: var(--muted-on-light); margin: 0; }

.card-image-round {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  border: 3px solid var(--gold);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-2);
  border-top: 1px solid var(--panel-line);
  padding: 64px 0;
  text-align: center;
}

.footer h2 {
  color: var(--gold);
  font-size: 2rem;
  margin-bottom: 16px;
}

.footer p {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto 28px;
}

.disclaimer {
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--panel-line);
  padding-top: 22px;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- Focus + motion ---------- */
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .origin-grid { grid-template-columns: repeat(2, 1fr); }
  .origin-card.big { grid-column: span 2; }
  .meme-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 56px 0 48px; }
  .origin-grid { grid-template-columns: 1fr; }
  .origin-card.big { grid-column: span 1; }
  .stats { gap: 26px; }
  .ticker-pill { font-size: 2rem !important; padding: 16px 28px !important; }
}
