@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600;700;800&family=Instrument+Serif:ital@0;1&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-light: #f9f8f5;
  --panel-light: #fffdf8;
  --line-light: #d7d2c4;
  --text-light: #171512;
  --muted-light: #686155;
  --brand-light: #0b6354;
  --brand-strong-light: #06463b;
  --accent-light: #c5632f;

  --bg-dark: #141310;
  --panel-dark: #1d1a15;
  --line-dark: #3e382d;
  --text-dark: #f8f5ee;
  --muted-dark: #b5ae9e;
  --brand-dark: #4fd1b8;
  --brand-strong-dark: #7de9d4;
  --accent-dark: #ff955f;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Public Sans', sans-serif;
  background: var(--bg-light);
  color: var(--text-light);
  background-image:
    radial-gradient(circle at 10% 10%, rgba(11, 99, 84, 0.16), transparent 45%),
    radial-gradient(circle at 90% 0%, rgba(197, 99, 47, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(249, 248, 245, 0.98));
}

html.dark body {
  background: var(--bg-dark);
  color: var(--text-dark);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(79, 209, 184, 0.18), transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(255, 149, 95, 0.18), transparent 50%),
    linear-gradient(180deg, rgba(20, 19, 16, 0.98), rgba(20, 19, 16, 0.98));
}

h1,
h2,
h3,
.brand-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  letter-spacing: -0.02em;
}

.accent-serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
}

.surface {
  background: rgba(255, 253, 248, 0.76);
  border: 1px solid var(--line-light);
  backdrop-filter: blur(7px);
}

html.dark .surface {
  background: rgba(29, 26, 21, 0.8);
  border-color: var(--line-dark);
}

.glow-card {
  position: relative;
  overflow: hidden;
}

.glow-card::after {
  content: '';
  position: absolute;
  inset: -25% auto auto -25%;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(11, 99, 84, 0.18), transparent 70%);
  pointer-events: none;
}

html.dark .glow-card::after {
  background: radial-gradient(circle, rgba(79, 209, 184, 0.15), transparent 70%);
}

.panel {
  background: var(--panel-light);
  border: 1px solid var(--line-light);
}

html.dark .panel {
  background: var(--panel-dark);
  border-color: var(--line-dark);
}

.text-muted {
  color: var(--muted-light);
}

html.dark .text-muted {
  color: var(--muted-dark);
}

.brand-link {
  color: var(--brand-light);
}

.brand-link:hover {
  color: var(--brand-strong-light);
}

html.dark .brand-link {
  color: var(--brand-dark);
}

html.dark .brand-link:hover {
  color: var(--brand-strong-dark);
}

.badge {
  border-radius: 999px;
  border: 1px solid;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.badge-paid {
  border-color: rgba(197, 99, 47, 0.6);
  color: #8f3f1b;
  background: rgba(255, 179, 130, 0.2);
}

html.dark .badge-paid {
  border-color: rgba(255, 149, 95, 0.65);
  color: #ffc4a5;
  background: rgba(255, 149, 95, 0.16);
}

.badge-open {
  border-color: rgba(11, 99, 84, 0.55);
  color: #065042;
  background: rgba(11, 99, 84, 0.11);
}

html.dark .badge-open {
  border-color: rgba(79, 209, 184, 0.65);
  color: #94ecd9;
  background: rgba(79, 209, 184, 0.15);
}

.badge-free {
  border-color: rgba(73, 70, 61, 0.45);
  color: #4f4a3f;
  background: rgba(122, 113, 92, 0.12);
}

html.dark .badge-free {
  border-color: rgba(181, 174, 158, 0.55);
  color: #d5ccba;
  background: rgba(181, 174, 158, 0.14);
}

.btn-main {
  border-radius: 0.8rem;
  border: 1px solid transparent;
  background: var(--brand-light);
  color: #f5fffc;
  padding: 0.65rem 1rem;
  font-weight: 600;
  transition: all 0.18s ease;
}

.btn-main:hover {
  background: var(--brand-strong-light);
  transform: translateY(-1px);
}

html.dark .btn-main {
  background: var(--brand-dark);
  color: #0d1412;
}

html.dark .btn-main:hover {
  background: var(--brand-strong-dark);
}

.btn-ghost {
  border-radius: 0.8rem;
  border: 1px solid var(--line-light);
  background: rgba(255, 255, 255, 0.35);
  color: var(--text-light);
  padding: 0.65rem 0.95rem;
  font-weight: 600;
}

html.dark .btn-ghost {
  border-color: var(--line-dark);
  background: rgba(29, 26, 21, 0.55);
  color: var(--text-dark);
}

.btn-tag {
  border-radius: 999px;
  border: 1px solid var(--line-light);
  color: var(--muted-light);
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
}

.btn-tag.active,
.btn-tag:hover {
  color: var(--brand-light);
  border-color: rgba(11, 99, 84, 0.5);
  background: rgba(11, 99, 84, 0.1);
}

html.dark .btn-tag {
  border-color: var(--line-dark);
  color: var(--muted-dark);
}

html.dark .btn-tag.active,
html.dark .btn-tag:hover {
  color: var(--brand-dark);
  border-color: rgba(79, 209, 184, 0.55);
  background: rgba(79, 209, 184, 0.13);
}

.active-nav {
  color: var(--brand-light);
}

html.dark .active-nav {
  color: var(--brand-dark);
}

.metric-chip {
  border: 1px dashed var(--line-light);
  border-radius: 1rem;
  padding: 0.8rem;
}

html.dark .metric-chip {
  border-color: var(--line-dark);
}

.bookmark-btn.is-active {
  border-color: rgba(197, 99, 47, 0.65);
  color: #8f3f1b;
}

html.dark .bookmark-btn.is-active {
  border-color: rgba(255, 149, 95, 0.7);
  color: #ffc4a5;
}

.card-enter {
  animation: riseIn 0.3s ease both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
