/* ==========================================
   Base Styles
   ========================================== */

/* Use a more modern CSS reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Improve default text rendering */
html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--color-background-primary);
  color: var(--thicket-bauhaus-color-semantic-foreground-on-brand);
  font-family: var(--font-family-primary);
  font-size: var(--thicket-bauhaus-text-sizes-base);
  font-weight: var(--thicket-bauhaus-text-weights-regular);
  line-height: var(--thicket-bauhaus-text-line-heights-normal);
  transition: background-color var(--transition-speed-medium) ease,
    color var(--transition-speed-medium) ease;
}

/* Typography with Gabarito for all display elements */
h1,
h2,
h3,
h4,
h5,
h6,
.project-title,
.section-title,
.display-text,
.hero-title,
.card-title {
  font-family: var(--font-family-display);
  /* font-size removed to allow Tailwind classes to control it */
  font-weight: var(--thicket-bauhaus-text-weights-bold);
  line-height: var(--thicket-bauhaus-text-line-heights-large);
  margin-block-end: var(--spacing-sm);
  color: var(--thicket-bauhaus-color-semantic-foreground-on-brand);
  transition: color var(--transition-speed-medium) ease;
}

/* Paragraph styling using Open Sans */
p {
  font-family: var(--font-family-primary);
  font-size: var(--thicket-bauhaus-text-sizes-base);
  font-weight: var(--thicket-bauhaus-text-weights-regular);
  line-height: var(--thicket-bauhaus-text-line-heights-normal);
}

/* Ensure all text content has proper line height */
.content-column p,
.card-content p,
.metadata-value,
.meta-value,
.description,
.text-content {
  line-height: var(--thicket-bauhaus-text-line-heights-normal);
}

/* Modern link styles */
a {
  color: var(--thicket-bauhaus-color-semantic-foreground-on-brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.inline-link {
  color: var(--thicket-bauhaus-color-semantic-background-accent-quiet);
  text-decoration: underline;
  transition: color var(--transition-speed-medium) ease;
}

.inline-link:hover {
  color: var(--thicket-bauhaus-color-semantic-background-brand-quiet);
}

/* Modern media handling */
img,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Updated button reset */
button,
.button {
  cursor: pointer;
  background: transparent;
  border: none;
  font: inherit;
  color: inherit;
  padding: 0;
}

/* Modern focus states */
:focus-visible {
  outline: 2px solid var(--thicket-bauhaus-color-semantic-background-accent);
  outline-offset: 2px;
}

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

::-webkit-scrollbar-track {
  background: var(--thicket-bauhaus-color-gray-200);
}

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

::-webkit-scrollbar-thumb:hover {
  background: #000000;
}
