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

:root {
  --radius: 0.5rem;
}

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

html {
  scroll-behavior: smooth;
  font-size: clamp(1rem, 0.5vw + 0.9375rem, 1.0625rem);
  -webkit-font-smoothing: antialiased;
}

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

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

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

a {
  color: hsl(var(--link));
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
}

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

.display {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.10;
  letter-spacing: 0.02em;
  margin: 0;
  color: hsl(var(--foreground));
}

h1 {
  font-size: clamp(2.125rem, 4vw, 3rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.20;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.25;
}

p {
  margin: 0 0 1rem;
  max-width: 70ch;
}

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.5;
  color: hsl(var(--link));
}

.small,
.meta {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.50;
  color: hsl(var(--muted-foreground));
}

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

.section {
  padding-block: 64px;
}

@media (min-width: 1024px) {
  .section {
    padding-block: 96px;
  }
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  border: 1px solid hsl(var(--primary));
  border-radius: 6px;
  background-color: transparent;
  color: hsl(var(--primary));
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

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

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

.btn-primary:hover {
  opacity: 0.90;
  color: hsl(var(--primary-foreground));
}

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

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

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.input {
  width: 100%;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-radius: 4px;
  padding: 6px 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background-color: transparent;
  color: hsl(var(--header-foreground));
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.site-header.scrolled {
  background-color: hsl(var(--header));
  color: hsl(var(--header-foreground));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.site-header a {
  color: hsl(var(--header-foreground));
  transition: color 0.3s ease;
}

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

.site-header .nav-link.active {
  color: hsl(var(--accent));
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.site-header .mobile-panel a {
  color: hsl(var(--header-foreground));
}

.site-footer {
  background-color: hsl(var(--footer));
  color: hsl(var(--footer-foreground));
  padding-block: 64px;
}

@media (min-width: 1024px) {
  .site-footer {
    padding-block: 96px;
  }
}

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

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

.footer-grid {
  display: grid;
  gap: 32px;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* hm-color-system:start — computed from the site's color scheme (every text/surface pair is WCAG AA). Change the color scheme instead of editing these. */
:root {
  --background: 0 0% 100%;
  --foreground: 0 0% 12.2%;
  --text: 0 0% 12.2%;
  --card: 0 0% 96.9%;
  --card-foreground: 0 0% 12.2%;
  --popover: 0 0% 96.9%;
  --popover-foreground: 0 0% 12.2%;
  --primary: 220.9 46.5% 19.8%;
  --primary-foreground: 0 0% 100%;
  --primary-muted: 222 11.1% 82.4%;
  --primary-highlight: 220.9 46.6% 53.7%;
  --secondary: 213.8 6.7% 47.1%;
  --secondary-foreground: 0 0% 0%;
  --muted: 0 0% 94.9%;
  --muted-foreground: 218.6 6.4% 43.1%;
  --accent: 35.2 59.4% 58.4%;
  --accent-foreground: 0 0% 12.2%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 87.8%;
  --input: 0 0% 84.3%;
  --ring: 35.2 59.4% 58.4%;
  --success: 141 78.9% 85.1%;
  --success-foreground: 0 0% 12.2%;
  --warning: 48 96.6% 76.7%;
  --warning-foreground: 0 0% 12.2%;
  --error: 0 96.3% 89.4%;
  --error-foreground: 0 0% 12.2%;
  --header: 220.9 46.5% 19.8%;
  --header-foreground: 0 0% 100%;
  --header-muted: 222 11.1% 82.4%;
  --footer: 220.9 46.5% 19.8%;
  --footer-foreground: 0 0% 100%;
  --footer-muted: 222 11.1% 82.4%;
  --link: 34.8 59.1% 35.5%;
  --headline: 220.9 46.5% 19.8%;
}
/* hm-color-system:end */
