/* ==========================================================================
   Minimal CSS Reset / Normalize
   ==========================================================================
   Provides consistent cross-browser rendering by resetting default styles
   and normalizing browser inconsistencies.
   ========================================================================== */

/* Box sizing — border-box everywhere */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins */
* {
  margin: 0;
}

/* Improve text rendering */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  tab-size: 4;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
}

/* Remove list styles on ul/ol with role="list" or class */
ul[role="list"],
ol[role="list"],
ul.unstyled,
ol.unstyled {
  list-style: none;
  padding: 0;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

/* A elements */
a {
  color: inherit;
  text-decoration: none;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Remove default button styles */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Textarea — only vertical resize */
textarea {
  resize: vertical;
}

/* Remove default fieldset styles */
fieldset {
  border: none;
  padding: 0;
}

/* Table defaults */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove built-in form typography */
input,
textarea,
select {
  background: transparent;
  border: none;
  outline: none;
}

/* Prevent textarea from overflowing container */
textarea {
  overflow: auto;
}

/* Remove the inner padding and cancel buttons in Chrome and Safari on macOS */
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/* Fix the cursor style for Chrome's increment/decrement buttons */
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/* Remove the default appearance of temporal inputs in Chrome and others */
[type="date"],
[type="time"],
[type="datetime-local"],
[type="month"] {
  -webkit-appearance: textfield;
}

/* Correct focus styles */
:focus-visible {
  outline: 2px solid var(--color-border-focus, #ffb300);
  outline-offset: 2px;
}

/* Remove focus ring for non-keyboard focus (mouse/touch) */
:focus:not(:focus-visible) {
  outline: none;
}

/* Remove animations for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Prevent horizontal scrollbar */
html {
  overflow-x: hidden;
}

/* Hidden attribute support */
[hidden] {
  display: none !important;
}

/* Summary element cursor */
summary {
  cursor: pointer;
}

/* Strong and b elements */
strong,
b {
  font-weight: bolder;
}

/* Code elements */
code,
kbd,
samp,
pre {
  font-family: var(--font-family-mono, monospace);
  font-size: 1em;
}

/* Small text */
small {
  font-size: 80%;
}

/* Prevent sub and sup from affecting line-height */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Remove default hr styles */
hr {
  border: none;
  height: 1px;
  background: var(--color-border, #e2dfd8);
}

/* Dialog element */
dialog {
  padding: 0;
  border: none;
}
