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

:root {
  --background: 36 23% 96%;
  --foreground: 60 5% 7%;
  --text: 60 5% 7%;
  --card: 0 0% 100%;
  --card-foreground: 60 5% 7%;
  --popover: 0 0% 100%;
  --popover-foreground: 60 5% 7%;
  --primary: 95 9% 31%;
  --primary-foreground: 36 23% 96%;
  --secondary: 30 7% 56%;
  --secondary-foreground: 36 23% 96%;
  --muted: 36 23% 96%;
  --muted-foreground: 36 5% 40%;
  --accent: 37 28% 78%;
  --accent-foreground: 60 5% 7%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;
  --border: 37 28% 78%;
  --input: 30 7% 56%;
  --ring: 95 9% 31%;
  --radius: 0.75rem;
  --success: 196 52% 74%;
  --warning: 34 89% 85%;
  --error: 10 100% 86%;
}

.prose {
  --tw-prose-body: var(--text);
  --tw-prose-headings: var(--text);
  --tw-prose-lead: #6C6763;
  --tw-prose-links: #4E554B;
  --tw-prose-bold: #121210;
  --tw-prose-counters: #6C6763;
  --tw-prose-bullets: #D8CBB8;
  --tw-prose-hr: #D8CBB8;
  --tw-prose-quotes: #121210;
  --tw-prose-quote-borders: #D8CBB8;
  --tw-prose-captions: #6C6763;
  --tw-prose-kbd: #121210;
  --tw-prose-kbd-shadows: rgba(18 18 16 / 10%);
  --tw-prose-code: #121210;
  --tw-prose-pre-code: #F7F5F1;
  --tw-prose-pre-bg: #4E554B;
  --tw-prose-th-borders: #D8CBB8;
  --tw-prose-td-borders: #D8CBB8;
  --tw-prose-invert-body: #F7F5F1;
  --tw-prose-invert-headings: #F7F5F1;
  --tw-prose-invert-lead: #D8CBB8;
  --tw-prose-invert-links: #D8CBB8;
  --tw-prose-invert-bold: #F7F5F1;
  --tw-prose-invert-counters: #9A9188;
  --tw-prose-invert-bullets: #6C6763;
  --tw-prose-invert-hr: #4E554B;
  --tw-prose-invert-quotes: #F7F5F1;
  --tw-prose-invert-quote-borders: #4E554B;
  --tw-prose-invert-captions: #9A9188;
  --tw-prose-invert-kbd: #F7F5F1;
  --tw-prose-invert-kbd-shadows: rgba(247 245 241 / 10%);
  --tw-prose-invert-code: #F7F5F1;
  --tw-prose-invert-pre-code: #D8CBB8;
  --tw-prose-invert-pre-bg: rgba(18 18 16 / 50%);
  --tw-prose-invert-th-borders: #4E554B;
  --tw-prose-invert-td-borders: #4E554B;
  font-size: 1rem;
  line-height: 1.75;
}

*,
*::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;
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 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', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: hsl(var(--text));
}

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

h2 {
  font-size: 1.375rem;
}

h3 {
  font-size: 1.125rem;
}

h4,
h5,
h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

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

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

blockquote {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.4;
  padding-left: 1.5rem;
  border-left: 3px solid hsl(var(--accent));
  color: hsl(var(--text));
  margin: 1.5rem 0;
}

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  border: none;
  outline: none;
}

.btn:focus-visible {
  ring: 2px;
  ring-offset: 2px;
  ring-color: hsl(var(--ring));
}

.btn-primary {
  background-color: hsl(var(--accent));
  color: hsl(var(--text));
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
  background-color: hsl(37 28% 83%);
  transform: scale(1.02);
}

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

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

.card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: 0.875rem;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 12px rgba(158, 145, 136, 0.12);
  transition: all 0.3s ease-in-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(158, 145, 136, 0.15);
}

.card img {
  border-radius: 0.75rem 0.75rem 0 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  background-color: hsl(var(--accent) / 0.15);
  color: hsl(var(--primary));
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  font-family: 'Nunito', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 0.5rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid hsl(var(--secondary));
  color: hsl(var(--muted-foreground));
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.filter-pill:hover,
.filter-pill.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--text));
  border-color: transparent;
}

.input {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--input) / 0.4);
  border-radius: 0.5rem;
  background-color: hsl(var(--card));
  color: hsl(var(--text));
  outline: none;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

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

.navbar {
  position: sticky;
  top: 0;
  background-color: hsl(var(--background));
  padding: 1.25rem 0;
  z-index: 100;
  transition: box-shadow 0.3s ease-in-out;
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hero {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 5rem 0 6rem;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: 3.25rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.125rem;
  color: hsl(var(--primary-foreground) / 0.85);
  max-width: 600px;
}

.hero .btn-primary {
  margin-top: 1.5rem;
}

.footer {
  background-color: hsl(var(--text));
  color: hsl(var(--background) / 0.7);
  padding: 4rem 0 2rem;
}

.footer h4 {
  color: hsl(var(--background) / 0.9);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer a {
  color: hsl(var(--background) / 0.7);
  transition: color 0.25s ease-in-out;
}

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

.footer .tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  color: hsl(var(--accent));
  text-align: center;
  margin-top: 2rem;
}

.section {
  padding: 5rem 0 6rem;
}

@media (max-width: 767px) {
  .section {
    padding: 3rem 0 4rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

.posts-archive-grid img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

.meta {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
}

.meta-author {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

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