@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --text: 215 28% 17%;
  --card: 0 0% 100%;
  --card-foreground: 215 28% 17%;
  --popover: 0 0% 100%;
  --popover-foreground: 215 28% 17%;
  --primary: 221 47% 20%;
  --primary-foreground: 0 0% 100%;
  --secondary: 221 37% 29%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 220 9% 46%;
  --accent: 36 47% 57%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 221 37% 29%;
  --input: 0 0% 100%;
  --ring: 36 47% 57%;
  --radius: 0.25rem;
  --success: 196 52% 74%;
  --warning: 34 89% 85%;
  --error: 10 100% 86%;

  --brand-header-background: 0 0% 100%;
  --brand-footer-background: 221 47% 20%;
  --brand-headline: 221 47% 20%;
  --brand-accent-border: #B08A4F;
  --brand-divider: 221 37% 29%;
  --brand-transition: 0.2s ease-in-out;
}

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

html {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: hsl(var(--text));
  background-color: hsl(var(--background));
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--brand-transition), opacity var(--brand-transition);
}

button {
  font: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: hsl(var(--brand-headline));
}

h1 {
  font-size: 1.875rem;
  font-weight: 700;
}

h2 {
  font-size: 1.25rem;
}

h3 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

small,
.caption {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.display {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  margin-inline: auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 960px;
  }
}

@media (min-width: 1440px) {
  .container {
    max-width: 1200px;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transition: background-color var(--brand-transition), border-color var(--brand-transition), color var(--brand-transition), transform var(--brand-transition);
}

.btn-primary {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border: 1px solid var(--brand-accent-border);
}

.btn-primary:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: hsl(var(--text));
  border: 1.5px solid hsl(var(--text));
}

.btn-secondary:hover {
  background-color: hsl(var(--text) / 0.06);
  border-color: hsl(var(--accent));
  color: hsl(var(--accent));
}

.btn:focus-visible,
.input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border) / 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--brand-transition), transform var(--brand-transition);
}

.card:hover {
  border-color: hsl(var(--border) / 0.4);
  transform: translateY(-2px);
}

.input {
  width: 100%;
  background-color: hsl(var(--input));
  color: hsl(var(--text));
  border: 1px solid hsl(var(--secondary) / 0.3);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color var(--brand-transition), box-shadow var(--brand-transition);
}

.input::placeholder {
  color: hsl(var(--muted-foreground));
}

.input:focus {
  border-color: hsl(var(--accent));
  box-shadow: 0 0 0 2px hsl(var(--accent) / 0.15);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: var(--radius);
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.site-header {
  background-color: hsl(var(--brand-header-background));
  color: #000000;
  border-bottom: 1px solid hsl(var(--brand-divider) / 0.15);
  min-height: 4.5rem;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.5rem;
}

.site-header a {
  color: #000000;
}

.site-header .nav-link {
  opacity: 0.7;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
  opacity: 1;
}

.site-header .btn-primary {
  color: #000000;
}

.site-footer {
  background-color: hsl(var(--brand-footer-background));
  color: #ffffff;
  padding: 4rem 0;
  font-size: 0.875rem;
}

.site-footer a {
  color: #ffffff;
  opacity: 0.8;
}

.site-footer a:hover,
.site-footer a:focus {
  opacity: 1;
}

.site-footer .footer-divider {
  border: 0;
  border-top: 1px solid hsl(0 0% 100% / 0.15);
  margin: 1.5rem 0;
}

.text-primary {
  color: hsl(var(--primary));
}

.text-secondary {
  color: hsl(var(--secondary));
}

.text-accent {
  color: hsl(var(--accent));
}

.text-muted {
  color: hsl(var(--muted-foreground));
}

.text-foreground {
  color: hsl(var(--foreground));
}

.bg-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.bg-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.bg-accent {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.bg-background {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.prose {
  --tw-prose-body: hsl(var(--text));
  --tw-prose-headings: hsl(var(--text));
  --tw-prose-lead: #4b5563;
  --tw-prose-links: #111827;
  --tw-prose-bold: #111827;
  --tw-prose-counters: #6b7280;
  --tw-prose-bullets: #d1d5db;
  --tw-prose-hr: #e5e7eb;
  --tw-prose-quotes: #111827;
  --tw-prose-quote-borders: #e5e7eb;
  --tw-prose-captions: #6b7280;
  --tw-prose-kbd: #111827;
  --tw-prose-kbd-shadows: rgb(17 24 39/10%);
  --tw-prose-code: #111827;
  --tw-prose-pre-code: #e5e7eb;
  --tw-prose-pre-bg: #1f2937;
  --tw-prose-th-borders: #d1d5db;
  --tw-prose-td-borders: #e5e7eb;
  --tw-prose-invert-body: #d1d5db;
  --tw-prose-invert-headings: #fff;
  --tw-prose-invert-lead: #9ca3af;
  --tw-prose-invert-links: #fff;
  --tw-prose-invert-bold: #fff;
  --tw-prose-invert-counters: #9ca3af;
  --tw-prose-invert-bullets: #4b5563;
  --tw-prose-invert-hr: #374151;
  --tw-prose-invert-quotes: #f3f4f6;
  --tw-prose-invert-quote-borders: #374151;
  --tw-prose-invert-captions: #9ca3af;
  --tw-prose-invert-kbd: #fff;
  --tw-prose-invert-kbd-shadows: rgb(255 255 255/10%);
  --tw-prose-invert-code: #fff;
  --tw-prose-invert-pre-code: #d1d5db;
  --tw-prose-invert-pre-bg: rgb(0 0 0/50%);
  --tw-prose-invert-th-borders: #4b5563;
  --tw-prose-invert-td-borders: #374151;
  font-size: 1rem;
  line-height: 1.75;
}
.posts-archive-grid img {
  aspect-ratio: 16/9;
}
