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

:root {
  --radius: 0.25rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  font-weight: 400;
  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 150ms ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: hsl(var(--foreground));
}

h1 {
  font-size: clamp(2rem, 4vw + 0.5rem, 2.5rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.375rem, 2vw + 0.5rem, 1.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.25rem);
  font-weight: 500;
  line-height: 1.4;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

h5 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

h6 {
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

p {
  margin: 0 0 1em;
  max-width: 65ch;
}

.display {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  font-weight: 600;
  line-height: 1.1;
}

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

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

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

.section {
  padding-block: 4.5rem;
}

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

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

@media (min-width: 1024px) {
  .grid-12 {
    gap: 1.5rem;
  }
}

.feature-grid {
  display: grid;
  gap: 1.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  min-height: 44px;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

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

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

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

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

.btn-full {
  width: 100%;
}

@media (min-width: 768px) {
  .btn-full-mobile {
    width: auto;
  }
}

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border-radius: 8px;
  padding: 24px;
  border: 1px solid hsl(var(--border) / 0.08);
  transition: border-color 150ms ease;
}

.card:hover {
  border-color: hsl(var(--border) / 0.16);
}

.input {
  width: 100%;
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  border: none;
  border-bottom: 1px solid hsl(var(--muted-foreground));
  border-radius: 0;
  outline: none;
  min-height: 44px;
  transition: border-color 150ms ease;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: hsl(var(--link));
  background-color: transparent;
  border-radius: 4px;
  transition: background-color 150ms ease, color 150ms ease;
}

.badge.is-active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  background-color: hsl(var(--header));
  color: hsl(var(--header-foreground));
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.site-header.scrolled {
  border-bottom-color: hsl(var(--border));
}

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

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

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

.mobile-panel a:hover,
.mobile-panel a.is-active {
  color: hsl(var(--primary));
}

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

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

  .footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

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

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

.footer-legal {
  color: hsl(var(--footer-muted));
  font-size: 0.75rem;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  padding-bottom: 6rem;
  color: hsl(var(--primary-foreground));
}

.hero__content h1,
.hero__content p {
  color: hsl(var(--primary-foreground));
}

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

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

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

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.reveal[data-delay='1'] {
  transition-delay: 60ms;
}

.reveal[data-delay='2'] {
  transition-delay: 120ms;
}

.reveal[data-delay='3'] {
  transition-delay: 180ms;
}

.reveal[data-delay='4'] {
  transition-delay: 240ms;
}

.reveal[data-delay='5'] {
  transition-delay: 300ms;
}

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

  .reveal,
  .hero__bg {
    opacity: 1;
    transform: none;
  }
}

.tap-target {
  min-height: 44px;
  min-width: 44px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.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: 40 37.5% 96.9%;
  --foreground: 207 19.6% 20%;
  --text: 207 19.6% 20%;
  --card: 0 0% 100%;
  --card-foreground: 207 19.6% 20%;
  --popover: 0 0% 100%;
  --popover-foreground: 207 19.6% 20%;
  --primary: 206.8 35.9% 40.4%;
  --primary-foreground: 40 37.5% 96.9%;
  --primary-muted: 200 13.6% 91.4%;
  --primary-highlight: 285.4 40.6% 80.2%;
  --secondary: 210.6 39.5% 23.3%;
  --secondary-foreground: 40 37.5% 96.9%;
  --muted: 0 0% 100%;
  --muted-foreground: 207.3 10.4% 41.6%;
  --accent: 132 17.2% 88.6%;
  --accent-foreground: 207 19.6% 20%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 0 0% 100%;
  --border: 60 4.2% 86.1%;
  --input: 90 2.3% 83.1%;
  --ring: 132 17.2% 88.6%;
  --success: 141 78.9% 85.1%;
  --success-foreground: 207 19.6% 20%;
  --warning: 48 96.6% 76.7%;
  --warning-foreground: 207 19.6% 20%;
  --error: 0 96.3% 89.4%;
  --error-foreground: 207 19.6% 20%;
  --header: 40 37.5% 96.9%;
  --header-foreground: 207 19.6% 20%;
  --header-muted: 205.7 7.4% 36.9%;
  --footer: 210.6 39.5% 23.3%;
  --footer-foreground: 40 37.5% 96.9%;
  --footer-muted: 210 6.1% 80.8%;
  --link: 206.8 35.9% 40.4%;
  --headline: 285.9 40.2% 50.2%;
}
/* hm-color-system:end */
