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

:root {
  --radius: 0.125rem;
  --gutter: 2rem;
  --container-max: 75rem;
  --section-padding-y: 7rem;
  --section-padding-y-mobile: 4rem;
  --transition-fast: 0.2s ease-in-out;
  --transition-base: 0.3s ease-out;
}

* {
  box-sizing: border-box;
}

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

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

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

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

figure {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display {
  margin: 0 0 0.5em;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.02em;
}

.display {
  font-size: clamp(2.5rem, calc(6vw + 0.5rem), 4rem);
  font-weight: 400;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, calc(5vw + 0.5rem), 3rem);
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.625rem, calc(3vw + 0.5rem), 2.25rem);
  font-weight: 500;
  line-height: 1.25;
}

h3 {
  font-size: clamp(1.25rem, calc(1.5vw + 0.75rem), 1.5rem);
  font-weight: 500;
  line-height: 1.3;
}

h4 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
}

h5 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
}

h6 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
  max-width: 40rem;
}

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

a:hover {
  color: hsl(var(--link));
  text-decoration: underline;
}

.small,
.meta {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
}

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

.badge {
  padding: 0.25rem 0.5rem;
  border: 1px solid hsl(var(--link) / 0.25);
  border-radius: var(--radius);
}

.caption {
  max-width: 37.5rem;
  margin-inline: auto;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
}

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

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

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

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

.section {
  padding-block: var(--section-padding-y-mobile);
}

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

.grid {
  display: grid;
  gap: var(--gutter);
}

.grid-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  color: hsl(var(--header-foreground));
  transition: background var(--transition-base), color var(--transition-base);
}

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

.site-header a {
  color: inherit;
}

.site-header a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.site-footer {
  background: hsl(var(--footer));
  color: hsl(var(--footer-foreground));
  padding-block: 4rem 2rem;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  opacity: 0.8;
  text-decoration: none;
}

.footer-legal {
  color: hsl(var(--footer-muted));
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

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

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

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

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

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

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

.btn:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--primary) / 0.08);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 12px 40px hsl(var(--primary) / 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px hsl(var(--primary) / 0.08);
}

.input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--primary) / 0.12);
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* 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: 36.9 41.9% 93.9%;
  --foreground: 210 10.3% 22.7%;
  --text: 210 10.3% 22.7%;
  --card: 45 40% 98%;
  --card-foreground: 210 10.3% 22.7%;
  --popover: 45 40% 98%;
  --popover-foreground: 210 10.3% 22.7%;
  --primary: 214.5 50.5% 18.2%;
  --primary-foreground: 36.9 41.9% 93.9%;
  --primary-muted: 0 0% 77.3%;
  --primary-highlight: 181.1 41.7% 75.1%;
  --secondary: 28.1 14.8% 57.6%;
  --secondary-foreground: 213.3 9.9% 17.8%;
  --muted: 38.2 20.8% 89.6%;
  --muted-foreground: 180 0.5% 39.8%;
  --accent: 181.1 41.7% 75.1%;
  --accent-foreground: 210 10.3% 22.7%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 0 0% 100%;
  --border: 36 12.2% 83.9%;
  --input: 37.5 8.3% 81.2%;
  --ring: 181.1 41.7% 75.1%;
  --success: 141 78.9% 85.1%;
  --success-foreground: 210 10.3% 22.7%;
  --warning: 48 96.6% 76.7%;
  --warning-foreground: 210 10.3% 22.7%;
  --error: 0 96.3% 89.4%;
  --error-foreground: 210 10.3% 22.7%;
  --header: 214.5 50.5% 18.2%;
  --header-foreground: 36.9 41.9% 93.9%;
  --header-muted: 0 0% 77.3%;
  --footer: 214.5 50.5% 18.2%;
  --footer-foreground: 36.9 41.9% 93.9%;
  --footer-muted: 0 0% 77.3%;
  --link: 181.8 42.1% 31.2%;
  --headline: 181.4 42% 39.2%;
}
/* hm-color-system:end */
