@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap");

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.disclaimer-bar {
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid rgba(240,160,138,0.2);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid #e8c4bc;
}
.topbar {
  background: var(--teal-light);
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.logo span { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
}
.nav a:hover, .nav a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; }

.site-footer {
  margin-top: 4rem;
  background: var(--ink-footer);
  color: #9aabc0;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.footer-grid h4 { color: #fff; margin: 0 0 0.75rem; font-size: 0.9rem; }
.footer-grid a { display: block; color: #9aabc0; text-decoration: none; font-size: 0.88rem; margin-bottom: 0.4rem; }
.footer-grid a:hover { color: #fff; }
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: #7f92a8;
}

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--paper); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
}