@import "./variables.css";

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--background-color);
  color: var(--foreground-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  flex: 1;
}

h1 {
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h1, h2, h3, h4 {
  margin-bottom: 1em;
}

li {
  padding-bottom: 0.5em;
  margin-left: 1em;
}

ul {
  margin-bottom: 1em;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--foreground-color);
}

/* ─── Page Transition Overlay ─── */
.page-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--background-color, #fcf9f0);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: auto;
}
.page-transition-overlay.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ─── Site Footer ─── */
.site-footer {
  background-color: var(--secondary-color);
  border-top: 1px solid var(--quaternary-color);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: var(--trinary-color);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-brand {
  font-weight: 600;
}

.footer-disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-disclaimer a:hover {
  opacity: 0.7;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  main {
    padding: 1.5rem 0.75rem;
  }

  .footer-inner {
    padding: 1rem 0.75rem;
    justify-content: center;
    text-align: center;
  }
}
