@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Nunito:wght@400;600&family=Caveat&display=swap');

:root {
  --background: 210 33% 98%;
  --foreground: 218 45% 15%;
  --text: 218 45% 15%;
  --card: 210 33% 98%;
  --card-foreground: 218 45% 15%;
  --popover: 0 0% 99%;
  --popover-foreground: 218 45% 15%;
  --primary: 214 52% 25%;
  --primary-foreground: 0 0% 100%;
  --secondary: 213 62% 15%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 33% 98%;
  --muted-foreground: 0 0% 9%;
  --accent: 46 100% 47%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 210 40% 98%;
  --border: 213 62% 15%;
  --input: 213 62% 15%;
  --ring: 46 100% 47%;
  --radius: 0.75rem;
  --success: 196 52% 74%;
  --warning: 34 89% 85%;
  --error: 10 100% 86%;

  --brand-primary: 214 52% 25%;
  --brand-secondary: 213 62% 15%;
  --brand-background: 210 33% 98%;
  --brand-accent: 46 100% 47%;
  --brand-text: 218 45% 15%;
  --brand-header-bg: 0 0% 99%;
  --brand-footer-bg: 213 62% 15%;
  --brand-headline: 46 91% 50%;
  --brand-muted-text: 216 100% 99%;
}

*,
*::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 {
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: hsl(var(--text));
  background-color: hsl(var(--background));
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lora', serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: hsl(var(--text));
}

h1 {
  font-size: 2.25rem;
  font-weight: 600;
}

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

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

p {
  margin-bottom: 1rem;
}

a {
  color: hsl(var(--accent));
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: hsl(var(--brand-headline));
}

blockquote,
.pull-quote {
  font-family: 'Caveat', cursive;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.4;
  color: hsl(var(--brand-primary));
}

.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;
  padding: 14px 28px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: hsl(var(--brand-headline));
  color: hsl(var(--accent-foreground));
  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));
  color: hsl(var(--background));
}

.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--brand-secondary) / 0.15);
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 2px 12px hsl(var(--brand-accent) / 0.12);
  transition: all 0.25s ease-in-out;
}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px hsl(var(--brand-accent) / 0.18);
}

.input {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: hsl(var(--text));
  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--brand-secondary) / 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.25s ease-in-out, box-shadow 0.25s ease-in-out;
}

.input::placeholder {
  color: hsl(var(--text) / 0.5);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: hsl(var(--accent));
  background-color: hsl(var(--accent) / 0.1);
  border-radius: 6px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background-color: hsl(var(--brand-header-bg));
  border-bottom: 1px solid hsl(var(--border) / 0.1);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-header a {
  color: #000000;
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.2s ease-in-out;
}

.site-header a:hover {
  opacity: 0.7;
}

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

@media (max-width: 767px) {
  .site-header {
    height: 64px;
  }
}

.site-footer {
  background-color: hsl(var(--brand-footer-bg));
  color: hsl(0 0% 100% / 0.7);
  padding: 64px 0 32px;
}

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  color: hsl(0 0% 100%);
}

.site-footer a {
  color: hsl(0 0% 100% / 0.7);
  transition: color 0.2s ease-in-out;
}

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

.site-footer hr,
.site-footer .divider {
  border: none;
  border-top: 1px solid hsl(0 0% 100% / 0.15);
}

.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-header {
  background-color: hsl(var(--brand-header-bg));
}

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

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

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

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

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

.text-white {
  color: hsl(0 0% 100%);
}

.text-black {
  color: #000000;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !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;
}
