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

:root {
  --radius: 0.25rem;
  --transition: 0.2s ease-in-out;
}

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

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

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

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

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

h1 {
  font-size: 2rem;
  line-height: 1.15;
}

h2 {
  font-size: 1.375rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
}

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

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

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

button {
  font-family: inherit;
}

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

@media (min-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }
}

.display {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .display {
    font-size: 4rem;
  }
}

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

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

.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: 1280px) {
  .container {
    max-width: 1200px;
  }
}

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

.section {
  padding: 72px 0;
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

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

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

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

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

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

.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-2px);
}

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

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

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.badge-ghost {
  background-color: transparent;
  color: hsl(var(--link));
  padding: 0;
}

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

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

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

.site-header .is-active {
  color: hsl(var(--header-foreground));
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

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

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

.site-header-transparent .is-active {
  color: hsl(var(--primary-foreground));
}

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

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

.site-header-transparent.scrolled .is-active {
  color: hsl(var(--header-foreground));
}

@media (min-width: 1024px) {
  .site-header {
    height: 72px;
  }
}

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

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

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

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

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

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

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

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

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.2s ease-out, transform 0.2s ease-out;
    transition-delay: calc(var(--index, 0) * 80ms);
  }

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: 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: 0 0% 100%;
  --foreground: 0 0% 9%;
  --text: 0 0% 9%;
  --card: 0 0% 96.9%;
  --card-foreground: 0 0% 9%;
  --popover: 0 0% 96.9%;
  --popover-foreground: 0 0% 9%;
  --primary: 0 73.7% 41.8%;
  --primary-foreground: 0 0% 100%;
  --primary-muted: 0 52.7% 89.2%;
  --primary-highlight: 0 84.9% 79.2%;
  --secondary: 0 62.8% 30.6%;
  --secondary-foreground: 0 0% 100%;
  --muted: 0 0% 94.5%;
  --muted-foreground: 0 0% 42%;
  --accent: 0 0% 9%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 0 0% 100%;
  --border: 0 0% 87.5%;
  --input: 0 0% 83.5%;
  --ring: 0 0% 9%;
  --success: 141 78.9% 85.1%;
  --success-foreground: 0 0% 9%;
  --warning: 48 96.6% 76.7%;
  --warning-foreground: 0 0% 9%;
  --error: 0 96.3% 89.4%;
  --error-foreground: 0 0% 9%;
  --header: 0 0% 9%;
  --header-foreground: 0 0% 100%;
  --header-muted: 0 0% 80%;
  --footer: 0 0% 9%;
  --footer-foreground: 0 0% 100%;
  --footer-muted: 0 0% 80%;
  --link: 0 0% 9%;
  --headline: 0 84.2% 60.2%;
}
/* hm-color-system:end */
