/* ════════════════════════════════════════════════════════════
   Love Counter — Editorial Theme
   Inspired by independent magazines: warm paper, deep ink,
   confident typography, asymmetric rhythm.
════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --paper:        #faf6ef;        /* warm cream */
  --paper-2:      #f3ece0;
  --surface:      #ffffff;
  --surface-2:    #fbfaf7;

  /* Ink */
  --ink:          #1d1a18;
  --ink-soft:     #4a423d;
  --muted:        #8a7d74;
  --line:         #e6dccd;
  --line-soft:    #f0e8d8;

  /* Accents — wine rose + warm yellow */
  --accent:       #b73954;
  --accent-deep:  #7d1f33;
  --accent-soft:  #fbe6ec;
  --accent-glow:  #ffd5e0;
  --highlight:    #d4a017;
  --good:         #4a7c59;
  --danger:       #c0392b;

  /* Type */
  --font-body:    'Be Vietnam Pro', 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-serif:   'Lora', 'Be Vietnam Pro', Georgia, serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Misc */
  --radius:        4px;
  --radius-lg:     12px;
  --shadow-sm:     0 1px 2px rgba(29, 26, 24, 0.04);
  --shadow:        0 2px 8px rgba(29, 26, 24, 0.06), 0 1px 2px rgba(29, 26, 24, 0.04);
  --shadow-lg:     0 12px 32px rgba(29, 26, 24, 0.08), 0 2px 6px rgba(29, 26, 24, 0.05);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle paper texture using SVG noise */
body::before {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 0; opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.16 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
#app, #toast { position: relative; z-index: 1; }

/* ─── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
h4 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
p  { margin: 0 0 1em; }

a { color: var(--accent-deep); text-decoration: none; border-bottom: 1px solid currentColor; transition: color .12s; }
a:hover { color: var(--accent); }

.muted { color: var(--muted); }
.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--muted); font-weight: 500;
}
.serif    { font-family: var(--font-serif); }
.display  { font-family: var(--font-display); }
.mono     { font-family: var(--font-mono); }

/* ─── Inputs ──────────────────────────────────────────────── */
input, textarea, select {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: var(--surface);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
label {
  display: block; font-size: 12px; color: var(--muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 500;
}

/* ─── Buttons ─────────────────────────────────────────────── */
button { font: inherit; cursor: pointer; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background .15s, color .15s, transform .08s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

.btn.secondary {
  background: transparent; color: var(--ink); border-color: var(--ink);
}
.btn.secondary:hover { background: var(--ink); color: var(--paper); }

.btn.accent { background: var(--accent); border-color: var(--accent); color: white; }
.btn.accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

.btn.ghost { background: transparent; color: var(--ink-soft); border-color: transparent; }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); border-color: transparent; }

.btn.danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn.danger:hover { background: #a02a1e; border-color: #a02a1e; }

.btn.small { padding: 6px 14px; font-size: 12.5px; }
.btn.large { padding: 14px 28px; font-size: 15px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Auth pages (login/register/recover) ─────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.auth-art {
  background: var(--ink);
  color: var(--paper);
  padding: 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-art::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(183, 57, 84, 0.4), transparent 60%);
}
.auth-art-content { position: relative; z-index: 1; }
.auth-art .brand {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-art h2 {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(40px, 5vw, 64px); font-weight: 400;
  margin-top: 80px; line-height: 1.1; color: var(--paper);
}
.auth-art h2 span { color: var(--accent-glow); }
.auth-art .quote {
  margin-top: 24px; font-size: 15px; opacity: 0.7;
  font-family: var(--font-serif); font-style: italic;
  max-width: 380px;
}
.auth-form-side {
  padding: 64px;
  display: flex; align-items: center; justify-content: center;
}
.auth-card {
  width: 100%; max-width: 380px;
}
.auth-card .eyebrow { margin-bottom: 8px; }
.auth-card h1 {
  font-family: var(--font-display); font-size: 32px;
  margin: 0 0 28px;
}
.field { margin-bottom: 16px; }
.field-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.recovery-box {
  background: #fff8e6; border: 1px dashed var(--highlight); padding: 16px;
  border-radius: var(--radius); margin-top: 16px;
  font-family: var(--font-mono); font-size: 17px; text-align: center;
  letter-spacing: 2px; color: var(--ink);
}

@media (max-width: 800px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-form-side { padding: 32px 24px; }
}

/* ─── App shell ───────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 248px;
  background: var(--ink);
  color: var(--paper);
  padding: 32px 20px;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--paper); margin-bottom: 4px;
}
.sidebar .brand-sub {
  font-family: var(--font-serif); font-style: italic;
  color: var(--accent-glow); font-size: 13px; margin-bottom: 32px;
}
.sidebar .me {
  padding: 14px; background: rgba(255,255,255,0.04);
  border-radius: var(--radius); margin-bottom: 24px;
  border: 1px solid rgba(255,255,255,0.06);
}
.sidebar .me .name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 15px; color: var(--paper);
}
.sidebar .me .balance {
  font-size: 13px; color: var(--accent-glow); margin-top: 4px;
  font-family: var(--font-mono);
}
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; border-radius: var(--radius);
  color: rgba(250, 246, 239, 0.7);
  font-size: 14px; font-weight: 400;
  border-bottom: none;
  transition: background .12s, color .12s;
}
.nav a:hover { background: rgba(255,255,255,0.04); color: var(--paper); text-decoration: none; }
.nav a.active {
  background: var(--paper); color: var(--ink); font-weight: 500;
}
.nav .icon { width: 18px; text-align: center; opacity: 0.85; }
.sidebar-bottom { margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); }

.main {
  flex: 1; padding: 48px 56px; max-width: 1200px;
}
@media (max-width: 900px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; padding: 20px; }
  .sidebar .brand-sub { display: none; }
  .sidebar .me { display: none; }
  .nav { flex-direction: row; gap: 4px; overflow-x: auto; padding-bottom: 4px; }
  .nav a { white-space: nowrap; padding: 8px 12px; }
  .nav .icon { display: none; }
  .main { padding: 24px 20px; }
  .sidebar-bottom { display: none; }
}

/* ─── Cards & sections ────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.card-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.card-title h3 { margin: 0; }
.card-title .eyebrow { margin: 0; }

.section-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 40px 0 20px;
}
.section-divider::before,
.section-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.section-divider span {
  font-family: var(--font-serif); font-style: italic;
  color: var(--muted); font-size: 14px;
}

/* ─── Counter Hero (the centerpiece) ──────────────────────── */
.counter-hero {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 56px 32px 48px;
  text-align: center;
  margin-bottom: 24px;
  overflow: hidden;
}
.counter-hero::before, .counter-hero::after {
  content: '';
  position: absolute;
  width: 240px; height: 240px;
  border-radius: 50%;
  filter: blur(60px); opacity: 0.4;
  pointer-events: none;
}
.counter-hero::before { background: var(--accent-glow); top: -60px; left: -60px; }
.counter-hero::after  { background: var(--highlight); bottom: -80px; right: -80px; opacity: 0.18; }

.counter-hero .eyebrow { display: block; }
.counter-hero .names {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(22px, 3vw, 32px); margin: 14px 0 4px; color: var(--ink);
  position: relative;
}
.counter-hero .names .amp { color: var(--accent); margin: 0 14px; font-weight: 400; }
.counter-hero .heart {
  font-size: 22px; color: var(--accent); margin: 8px 0 16px;
  position: relative;
}
.counter-hero .big {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 168px);
  font-weight: 700; line-height: 0.95;
  color: var(--ink);
  letter-spacing: -0.04em;
  position: relative;
}
.counter-hero .big sup {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 0.3em; vertical-align: top; color: var(--accent);
  margin-left: 6px;
}
.counter-hero .label-line {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 14px;
  position: relative;
}
.counter-hero .label-line::before,
.counter-hero .label-line::after {
  content: ''; width: 40px; height: 1px; background: var(--line);
}
.counter-hero .label {
  font-family: var(--font-display); font-weight: 500;
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.24em;
}
.counter-hero .units {
  display: flex; justify-content: center; gap: 28px;
  margin-top: 28px; flex-wrap: wrap;
  font-family: var(--font-mono);
  position: relative;
}
.counter-hero .unit {
  text-align: center; min-width: 60px;
}
.counter-hero .unit .v { font-size: 22px; font-weight: 600; color: var(--ink); display: block; }
.counter-hero .unit .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

/* Anniversary banner */
.anniv-banner {
  display: flex; align-items: center; gap: 20px;
  padding: 20px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative; overflow: hidden;
}
.anniv-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--accent-deep), transparent 70%);
  opacity: 0.6;
}
.anniv-banner > * { position: relative; }
.anniv-banner .icon { font-size: 32px; }
.anniv-banner .label { font-size: 12px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.12em; }
.anniv-banner .text { font-family: var(--font-serif); font-size: 18px; font-style: italic; margin-top: 4px; }
.anniv-banner .days {
  font-family: var(--font-display); font-weight: 700;
  color: var(--accent-glow);
}

/* Quick stats grid */
.quick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: relative;
}
.stat .eyebrow { margin-bottom: 8px; }
.stat .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 28px; color: var(--ink); line-height: 1;
}
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ─── Gallery ─────────────────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px;
}
.gallery-item {
  position: relative; aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-item .badge {
  position: absolute; top: 8px; right: 8px;
  background: rgba(29, 26, 24, 0.8); color: var(--paper);
  font-size: 11px; padding: 3px 8px; border-radius: 99px;
  backdrop-filter: blur(4px);
}

/* ─── Diary ───────────────────────────────────────────────── */
.diary-list { display: flex; flex-direction: column; gap: 16px; }
.diary-list .entry {
  background: var(--surface);
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}
.diary-list .entry-meta {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.diary-list .entry-date {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  letter-spacing: 0.04em;
}
.diary-list .entry-text {
  white-space: pre-wrap; line-height: 1.7;
  font-family: var(--font-serif); font-size: 15.5px; color: var(--ink-soft);
}
.mood {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--paper-2); border-radius: 50%;
  font-size: 18px;
}

/* Mood selector chips */
.mood-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.mood-chip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 99px; padding: 8px 14px; font-size: 18px;
  cursor: pointer; transition: all .12s;
  display: flex; align-items: center; gap: 6px;
}
.mood-chip:hover { border-color: var(--accent); }
.mood-chip.active {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.mood-chip .lbl { font-size: 12px; font-weight: 500; }

/* ─── Templates ───────────────────────────────────────────── */
.template-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.template-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.template-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.template-card .preview {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--accent-soft), var(--paper-2));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--font-display);
  font-size: 24px; font-weight: 700; letter-spacing: -0.02em;
}
.template-card .body { padding: 16px 18px; }
.template-card .name { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.template-card .meta { font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.template-card .meta-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.price-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--ink); color: var(--paper);
  border-radius: 99px; font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.02em;
}
.price-tag.free { background: var(--good); }
.rating { font-size: 12px; color: var(--muted); }

/* ─── Token wallet ────────────────────────────────────────── */
.balance-hero {
  position: relative;
  background: var(--ink); color: var(--paper);
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  text-align: center;
}
.balance-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 50%, var(--accent), transparent 60%);
  opacity: 0.5;
}
.balance-hero > * { position: relative; }
.balance-hero .label { font-size: 12px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.16em; }
.balance-hero .num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 80px; line-height: 1; margin: 16px 0 8px;
  letter-spacing: -0.04em;
}
.balance-hero .unit { font-family: var(--font-serif); font-style: italic; font-size: 18px; opacity: 0.8; }

.tx-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.tx-row:last-child { border: none; }
.tx-row .left .label { font-size: 14px; font-weight: 500; }
.tx-row .left .sub { font-size: 12px; color: var(--muted); margin-top: 2px; font-family: var(--font-mono); }
.tx-amount {
  font-family: var(--font-mono); font-weight: 600; font-size: 14px;
}
.tx-amount.pos { color: var(--good); }
.tx-amount.neg { color: var(--danger); }

/* ─── Toast ───────────────────────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  background: var(--ink); color: var(--paper);
  padding: 14px 22px; border-radius: var(--radius);
  font-size: 14px; max-width: 360px;
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--paper);
  animation: toast-in .2s ease-out;
}
.toast.success { border-left-color: var(--good); }
.toast.error   { border-left-color: var(--danger); }
@keyframes toast-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ─── Modal ───────────────────────────────────────────────── */
.modal-bg {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(29, 26, 24, 0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade-in .15s;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--paper); border-radius: var(--radius-lg);
  padding: 32px; max-width: 540px; width: 100%;
  max-height: 90vh; overflow: auto;
  border: 1px solid var(--line);
}
.modal h2 { font-family: var(--font-display); margin: 0 0 20px; }

/* ─── Misc utilities ──────────────────────────────────────── */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 200px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-8  { gap: 8px;  }
.gap-16 { gap: 16px; }
.mt-8   { margin-top: 8px;  }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mb-8   { margin-bottom: 8px;  }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

.tag {
  display: inline-block; padding: 3px 10px; font-size: 11.5px;
  background: var(--paper-2); color: var(--ink-soft);
  border-radius: 99px; letter-spacing: 0.02em;
}
.badge-private { background: #ece6db; color: #6e655a; }
.badge-partner { background: #fff3cd; color: #856404; }
.badge-public  { background: #e3f1e8; color: #2d5a3d; }

.empty {
  text-align: center; padding: 80px 24px; color: var(--muted);
}
.empty .icon { font-size: 56px; opacity: 0.4; margin-bottom: 16px; }
.empty .h { font-family: var(--font-serif); font-style: italic; font-size: 18px; }

.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--line); border-top-color: var(--ink);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Onboarding wizard ───────────────────────────────────── */
.wizard {
  max-width: 560px; margin: 0 auto;
}
.wizard-progress {
  display: flex; gap: 6px; margin-bottom: 32px;
}
.wizard-progress .step {
  flex: 1; height: 3px; background: var(--line); border-radius: 99px;
  transition: background .2s;
}
.wizard-progress .step.done { background: var(--ink); }
.wizard-progress .step.current { background: var(--accent); }

/* ─── Font picker grid ────────────────────────────────────── */
.font-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.font-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
  cursor: pointer; transition: border-color .12s, transform .08s;
}
.font-card:hover { border-color: var(--accent); }
.font-card.selected {
  border-color: var(--ink); background: var(--surface-2);
  box-shadow: 0 0 0 3px var(--paper-2);
}
.font-card .sample {
  font-size: 22px; font-weight: 600; line-height: 1.2;
  margin-bottom: 6px; color: var(--ink);
}
.font-card .meta {
  font-size: 11.5px; color: var(--muted);
  font-family: var(--font-body) !important;
}
