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

:root {
  --radius: 0.25rem;
  --transition-fast: 0.2s ease-in-out;
  --transition-medium: 0.3s ease-out;
  --transition-slow: 0.6s ease-out;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --container-max: 80rem;
  --header-height: 4.5rem;
  --header-height-mobile: 4rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.875rem, 1vw + 0.5rem, 1rem);
  line-height: 1.7;
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
}

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

img {
  border-radius: 0;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
}

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

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

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

p {
  max-width: 70ch;
}

.display {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

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

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

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

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

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

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

@media (min-width: 1600px) {
  .container {
    max-width: var(--container-max);
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  animation: kenburns 12s ease-in-out infinite alternate;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsl(var(--primary) / 0.85) 0%, hsl(var(--primary) / 0.4) 40%, transparent 70%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 8rem 0 4rem;
}

.hero__title {
  max-width: 16ch;
}

.hero__lead {
  color: hsl(var(--primary-muted));
  max-width: 50ch;
  margin-top: 1rem;
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.section {
  padding: 6rem 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));
}

.section--tight {
  padding: 1.5rem 0;
}

@media (max-width: 767px) {
  .section {
    padding: 4rem 0;
  }
}

.caption-block {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 56px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px hsl(var(--background)), 0 0 0 4px hsl(var(--ring));
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(0.96);
}

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

.btn-secondary:hover,
.btn-secondary:focus-visible {
  filter: brightness(1.08);
}

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

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background-color: hsl(var(--primary));
  border-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(--foreground) / 0.08);
  border-radius: 0.5rem;
  padding: 2rem;
  transition: box-shadow var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-card);
}

.card :where(h1, h2, h3, h4, h5, h6) {
  color: inherit;
}

.input {
  width: 100%;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--foreground) / 0.12);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

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

.input:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 2px hsl(var(--ring));
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  color: hsl(var(--link));
}

.badge--pill {
  background-color: hsl(var(--muted));
  color: hsl(var(--card-foreground));
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

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

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  color: hsl(var(--primary-foreground));
}

.site-header.scrolled,
.site-header--overlay.scrolled {
  background-color: hsl(var(--header));
  color: hsl(var(--header-foreground));
  box-shadow: var(--shadow-card);
}

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

.site-header__brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: inherit;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: inherit;
}

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

.site-header__link.is-active {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.site-header__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: hsl(var(--header));
  color: hsl(var(--header-foreground));
  padding: 1.25rem;
}

.site-header__panel.is-open {
  display: block;
}

@media (max-width: 767px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  .site-header__nav {
    display: none;
  }
}

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

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}

.footer-legal {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--footer-muted) / 0.2);
  font-size: 0.8125rem;
  color: hsl(var(--footer-muted));
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

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

.text-inherit {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::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: 45 28.6% 97.3%;
  --foreground: 0 0% 11%;
  --text: 0 0% 11%;
  --card: 45 13.3% 94.1%;
  --card-foreground: 0 0% 11%;
  --popover: 45 13.3% 94.1%;
  --popover-foreground: 0 0% 11%;
  --primary: 238.5 43.5% 18%;
  --primary-foreground: 45 28.6% 97.3%;
  --primary-muted: 250 5.8% 79.6%;
  --primary-highlight: 154.5 42.7% 33.5%;
  --secondary: 214.2 51.2% 49%;
  --secondary-foreground: 0 33.3% 99.4%;
  --muted: 45 10% 92.2%;
  --muted-foreground: 75 6% 39.2%;
  --accent: 32.6 29.1% 69%;
  --accent-foreground: 0 0% 11%;
  --destructive: 0 72.2% 50.6%;
  --destructive-foreground: 0 0% 100%;
  --border: 45 5.3% 85.1%;
  --input: 40 3.2% 81.8%;
  --ring: 32.6 29.1% 69%;
  --success: 141 78.9% 85.1%;
  --success-foreground: 0 0% 11%;
  --warning: 48 96.6% 76.7%;
  --warning-foreground: 0 0% 11%;
  --error: 0 96.3% 89.4%;
  --error-foreground: 0 0% 11%;
  --header: 235.5 43.5% 18%;
  --header-foreground: 45 28.6% 97.3%;
  --header-muted: 240 4.9% 79.8%;
  --footer: 214.6 39.4% 12.9%;
  --footer-foreground: 45 28.6% 97.3%;
  --footer-muted: 200 2.8% 78.6%;
  --link: 32.6 29.5% 37.8%;
  --headline: 154.5 42.6% 18.4%;
}
/* hm-color-system:end */
