/* -------------------------------------------------------- */
/* 🔹 Base Styles                                           */
/* -------------------------------------------------------- */
/* Website-specific — no Dart equivalent                     */
/* Reset, element defaults and layout utilities the browser  */
/* needs but Flutter handles by itself                       */


/* -------------------------------------------------------- */
/* 🔹 Reset                                                 */
/* -------------------------------------------------------- */

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

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  appearance: none;
  -webkit-appearance: none;
}


/* -------------------------------------------------------- */
/* 🔹 Document                                              */
/* -------------------------------------------------------- */

/* scrollbar-gutter keeps short pages (Support) aligned with scrolling ones —
   without it the centered layout shifts by the scrollbar width */
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-body-large);
  line-height: var(--text-body-large-height);
  color: var(--color-on-surface);
  background-color: var(--color-scaffold-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

/* Anchor targets land just under the sticky navbar. Every target is a
   section with its own 64px padding, so the navbar may cover most of it —
   the heading ends up a small step below the bar instead of far down */
:target {
  scroll-margin-top: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* -------------------------------------------------------- */
/* 🔹 Layout                                                */
/* -------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--max-content-width);
  margin-inline: auto;
  padding-inline: var(--space-lxl);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-xxxl);
  }
}

.container--narrow {
  max-width: var(--max-content-width-narrow);
}


/* -------------------------------------------------------- */
/* 🔹 Accessibility                                         */
/* -------------------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-small);
}
