@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500&family=Playfair:wght@400;500;600;700&display=swap');

:root {
  --background: 210 40% 98%;
  --foreground: 0 0% 0%;
  --text: 215 28% 17%;
  --card: 0 0% 100%;
  --card-foreground: 0 0% 0%;
  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 0%;
  --primary: 213 56% 24%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 100%;
  --secondary-foreground: 0 0% 0%;
  --muted: 210 40% 96.1%;
  --muted-foreground: 220 9% 46%;
  --accent: 37 49% 58%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 220 9% 46%;
  --input: 0 0% 100%;
  --ring: 37 49% 58%;
  --radius: 0.375rem;
  --success: 196 52% 74%;
  --warning: 34 89% 85%;
  --error: 10 100% 86%;
  --accent-hover: 37 49% 52%;
}

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

html {
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: hsl(var(--primary));
}

h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.5rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2vw + 1rem, 1.875rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.125rem, 1.5vw + 0.75rem, 1.375rem);
  font-weight: 600;
}

h4,
h5,
h6 {
  font-size: clamp(1rem, 1vw + 0.75rem, 1.125rem);
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

small,
.text-small {
  font-size: 0.8125rem;
}

.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: 0.875rem 1.75rem;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 0.2s ease-out;
}

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

.btn-primary:hover {
  background-color: hsl(var(--accent-hover));
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 1.5px solid currentColor;
  color: inherit;
}

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

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border) / 0.12);
  border-radius: 0.625rem;
  box-shadow: 0 4px 20px hsl(var(--primary) / 0.06);
  padding: 1.5rem;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px hsl(var(--primary) / 0.1);
}

.input {
  display: block;
  width: 100%;
  background-color: hsl(var(--input));
  border: 1px solid hsl(var(--border) / 0.3);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: hsl(var(--foreground));
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background-color: hsl(var(--accent) / 0.12);
  color: hsl(var(--accent));
}

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

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

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

.site-header h1,
.site-header h2,
.site-header h3,
.site-header h4,
.site-header h5,
.site-header h6 {
  color: inherit;
}

.site-footer {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground) / 0.7);
}

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

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

.site-footer hr {
  border: 0;
  border-top: 1px solid hsl(var(--primary-foreground) / 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));
}

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

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

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

.font-heading {
  font-family: 'Playfair Display', serif;
}

.font-body {
  font-family: 'Inter', sans-serif;
}

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