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

:root {
  --background: 40 23% 97%;
  --foreground: 0 0% 13%;
  --text: 0 0% 13%;
  --card: 40 23% 97%;
  --card-foreground: 0 0% 13%;
  --popover: 40 23% 97%;
  --popover-foreground: 0 0% 13%;
  --primary: 216 45% 19%;
  --primary-foreground: 0 0% 100%;
  --secondary: 218 26% 25%;
  --secondary-foreground: 0 0% 100%;
  --muted: 40 18% 92%;
  --muted-foreground: 220 9% 46%;
  --accent: 19 42% 50%;
  --accent-foreground: 0 0% 0%;
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;
  --border: 218 26% 25%;
  --input: 218 26% 25%;
  --ring: 19 42% 50%;
  --radius: 0.25rem;
  --success: 196 52% 74%;
  --warning: 34 89% 85%;
  --error: 10 100% 86%;
  --brand-header-background: 216 45% 19%;
  --brand-footer-background: 217 33% 17%;
  --brand-headline: 216 45% 19%;
  --brand-muted-text: 220 9% 46%;
}

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

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--text));
  background-color: hsl(var(--background));
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.75em;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: hsl(var(--brand-headline));
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.375rem;
}

h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.125rem;
  font-weight: 400;
}

p {
  margin: 0 0 1em;
}

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

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

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

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

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

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

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

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

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

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

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

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: 0;
  overflow: hidden;
}

.card img {
  width: 100%;
  object-fit: cover;
}

.input {
  width: 100%;
  padding: 0.75rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: hsl(var(--text));
  background-color: transparent;
  border: none;
  border-bottom: 1px solid hsl(var(--secondary) / 0.3);
  border-radius: 0;
  outline: none;
  transition: border-color 0.2s ease-in-out;
}

.input:focus {
  border-bottom-color: hsl(var(--accent));
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 400;
  color: hsl(var(--accent));
  background-color: hsl(var(--accent) / 0.1);
  border-radius: 2px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  color: hsl(var(--primary-foreground) / 0.85);
  background-color: transparent;
  transition: background-color 0.3s ease-in-out, color 0.2s ease-in-out;
}

.site-header.scrolled,
.site-header.solid {
  color: hsl(var(--primary-foreground) / 0.8);
  background-color: hsl(var(--brand-header-background));
}

.site-header a {
  color: inherit;
}

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

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

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

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

.site-footer h1,
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer h5,
.site-footer h6 {
  color: hsl(var(--primary-foreground) / 0.9);
}

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

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

.site-footer hr,
.site-footer .divider {
  border: 0;
  border-top: 1px solid hsl(var(--primary-foreground) / 0.15);
}

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