/* ==========================================================================
   ORGANIC DESIGN SYSTEM - GLOBAL
   Base resets, global defaults, elements & utilities
   ========================================================================== */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--primary-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main, .main-content {
  flex: 1 0 auto;
}

/* Image & Media defaults */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-green);
}

ul, ol {
  list-style: none;
}

/* Outlined SVG Standards */
svg.cat-svg-icon,
svg.icon-outlined {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: all var(--transition-normal);
}

/* Focus styling */
:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: rgba(50, 89, 74, 0.16);
  color: var(--dark-green);
}

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

::-webkit-scrollbar-track {
  background: #F0F3F0;
}

::-webkit-scrollbar-thumb {
  background: #C4D3C9;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-green);
}
