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

:root {
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --radius-lg: 0.875rem;
  --radius-pill: 999px;
  --shadow-card: 0 2px 12px hsl(var(--primary) / 0.08);
  --shadow-card-hover: 0 8px 24px hsl(var(--primary) / 0.12);
  --shadow-fab: 0 4px 14px hsl(var(--primary) / 0.18);
  --transition: 300ms ease-in-out;
  --container-max: 1160px;
  --section-py: 80px;
  --section-py-mobile: 48px;
}

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

html {
  font-size: clamp(0.875rem, calc(1vw + 0.5rem), 1rem);
  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', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  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%;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: hsl(var(--foreground));
}

.font-accent {
  font-family: 'Caveat', cursive;
  font-weight: 500;
  line-height: 1.25;
}

.display {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.25rem);
  line-height: 1.15;
}

h1,
.h1 {
  font-size: clamp(1.875rem, 4vw, 2.25rem);
  line-height: 1.2;
}

h2,
.h2 {
  font-size: clamp(1.25rem, 3vw, 1.375rem);
  line-height: 1.25;
}

h3,
.h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

p,
.p {
  font-size: 1rem;
  line-height: 1.7;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--link));
}

.container {
  width: 100%;
  max-width: var(--container-max);
  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: var(--section-py-mobile);
}

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

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

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

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

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

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

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

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

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

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

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

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--primary) / 0.12);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: hsl(var(--muted));
  color: hsl(var(--link));
  border-radius: var(--radius-pill);
  padding: 0.375rem 0.875rem;
}

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

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

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

.site-header .nav-link.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.site-header.scrolled {
  background-color: hsl(var(--header));
  color: hsl(var(--header-foreground));
  box-shadow: 0 2px 12px hsl(var(--primary) / 0.12);
}

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

.site-footer {
  background-color: hsl(var(--footer));
  color: hsl(var(--footer-foreground));
  padding-block: var(--section-py-mobile);
}

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

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

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

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

.blob {
  border-radius: 40% 60% 55% 45% / 60% 40% 45% 55%;
}

.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: auto;
}

.fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  box-shadow: var(--shadow-fab);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsl(var(--primary) / 0.22);
}

.scrim {
  position: relative;
}

.scrim::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: hsl(var(--header) / 0.65);
  z-index: 1;
}

.scrim > * {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: hsl(var(--header-foreground));
}

.hero .hero-subtitle {
  color: hsl(var(--header-muted));
}

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

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease-in-out, transform 500ms ease-in-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.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: 66 100% 98%;
  --foreground: 180 31.8% 17.3%;
  --text: 180 31.8% 17.3%;
  --card: 72 41.7% 95.3%;
  --card-foreground: 180 31.8% 17.3%;
  --popover: 72 41.7% 95.3%;
  --popover-foreground: 180 31.8% 17.3%;
  --primary: 200.4 98% 39.4%;
  --primary-foreground: 180 33.3% 5.3%;
  --primary-muted: 198.9 76% 4.9%;
  --primary-highlight: 0 0% 100%;
  --secondary: 142.1 70.6% 45.3%;
  --secondary-foreground: 180 31.8% 17.3%;
  --muted: 73.3 27.3% 93.5%;
  --muted-foreground: 180 8.4% 39.8%;
  --accent: 47.9 95.8% 53.1%;
  --accent-foreground: 180 31.8% 17.3%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 0 0% 100%;
  --border: 90 12.5% 87.5%;
  --input: 100 11.4% 84.5%;
  --ring: 47.9 95.8% 53.1%;
  --success: 141 78.9% 85.1%;
  --success-foreground: 180 31.8% 17.3%;
  --warning: 48 96.6% 76.7%;
  --warning-foreground: 180 31.8% 17.3%;
  --error: 0 96.3% 89.4%;
  --error-foreground: 180 31.8% 17.3%;
  --header: 201.3 96.3% 32.2%;
  --header-foreground: 66 100% 98%;
  --header-muted: 191.4 33.3% 87.6%;
  --footer: 201.3 96.3% 32.2%;
  --footer-foreground: 66 100% 98%;
  --footer-muted: 191.4 33.3% 87.6%;
  --link: 48.2 95.5% 26.1%;
  --headline: 0 0% 53.7%;
}
/* hm-color-system:end */
