/* --- Base Styles ---
   Design tokens (shape, type, surfaces, palettes) live in palette.css. */
* {
  box-sizing: border-box;
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-color);
  color: var(--text-color);
  padding-top: 80px;
  transition: background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  outline: none;
}

.site-moved-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  /* Nearly opaque so the page behind only ghosts through, but still tinted by
     whichever palette is active. */
  background: color-mix(in srgb, var(--bg-color) 96%, transparent);
  color: var(--text-color);
}

.site-moved-overlay[hidden] {
  display: none;
}

.site-moved-card {
  width: min(100%, 520px);
  padding: 48px 32px;
  text-align: center;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.site-moved-card h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 6vw, 3rem);
}

.site-moved-card p {
  margin-bottom: 28px;
  color: var(--text-color-muted);
}

.site-moved-button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--accent-color);
  color: var(--on-accent-color);
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.site-moved-button:hover {
  background: var(--accent-hover-color);
  transform: translateY(-2px);
}

.site-moved-active {
  overflow: hidden;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--input-bg-color);
  border-radius: 10px;
  border: 3px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Visually hidden but still announced by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
