@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@24,400,0,0&family=Source+Sans+3:wght@600;700&display=swap');

:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;
  --text: 0 0% 20%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 20%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 20%;
  --primary: 214 52% 25%;
  --primary-foreground: 0 0% 100%;
  --secondary: 173 58% 39%;
  --secondary-foreground: 0 0% 0%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;
  --accent: 43 74% 66%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 173 58% 39%;
  --input: 0 0% 100%;
  --ring: 43 74% 66%;
  --radius: 3px;
  --success: 196 52% 74%;
  --warning: 34 89% 85%;
  --error: 10 100% 86%;

  --brand-primary: 214 52% 25%;
  --brand-secondary: 173 58% 39%;
  --brand-accent: 43 74% 66%;
  --brand-text: 0 0% 20%;
  --brand-background: 0 0% 100%;
}

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

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

body {
  min-height: 100vh;
  font-family: 'IBM Plex Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  background-color: hsl(var(--background));
  color: hsl(var(--text));
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

p {
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: hsl(var(--text));
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 1.875rem;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
}

.display-hero {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: hsl(var(--primary-foreground));
}

small,
.text-small {
  font-size: 0.75rem;
  line-height: 1.5;
}

.text-caption {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: 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: 12px 24px;
  border-radius: 3px;
  border: 1px solid transparent;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}

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

.btn-primary {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(0 0% 0% / 0.15);
}

.btn-primary:hover {
  background-color: hsl(var(--accent) / 0.9);
}

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

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

.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 3px;
  padding: 1.5rem;
  color: hsl(var(--card-foreground));
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

.card:hover {
  border-color: hsl(var(--accent));
}

.input {
  width: 100%;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border));
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 0.875rem;
  color: hsl(var(--text));
  outline: none;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  background-color: hsl(var(--accent) / 0.1);
  color: hsl(var(--accent));
}

.site-header {
  background-color: hsl(var(--primary));
  border-bottom: 1px solid hsl(0 0% 100% / 0.15);
  min-height: 64px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1.5rem;
}

.site-header .brand-logo {
  min-width: 120px;
}

.site-header nav,
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header .nav-link {
  color: hsl(var(--primary-foreground));
  transition: opacity 0.2s ease-out;
}

.site-header .nav-link:hover {
  opacity: 0.8;
}

.site-header .nav-link.is-secondary {
  opacity: 0.65;
}

.site-header .btn-primary {
  color: hsl(var(--accent-foreground));
}

@media (min-width: 1024px) {
  .site-header {
    min-height: 72px;
  }

  .site-header .container {
    height: 72px;
  }
}

.site-footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground) / 0.7);
  padding-block: 3rem 2rem;
  border-top: 1px solid hsl(0 0% 100% / 0.15);
}

.site-footer a {
  color: hsl(var(--primary-foreground));
  transition: color 0.2s ease-out;
}

.site-footer a:hover {
  color: hsl(var(--accent));
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

.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));
}

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

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

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

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

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

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

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

@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;
}
