:root {
  --bg: #F8FAF8;
  --bg-hero-top: #E6EFE9;
  --surface: #EDF2EE;
  --ink: #14241E;
  --ink-muted: #4A5C54;
  --accent: #1F5A42;
  --accent-hover: #174532;
  --border: #D5E0D8;
  --on-dark: #F4F7F5;
  --on-dark-muted: #C2D1C8;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Strict 3-size body scale below the hero */
  --text-heading: clamp(1.625rem, 2.5vw, 2.125rem);
  --text-body: 1.0625rem;
  --text-sm: 0.9375rem;

  --container-max: 1120px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background-color: transparent;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.site-header.is-scrolled {
  background-color: rgba(248, 250, 248, 0.94);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
}

/* Hero bleeding to y = 0 */
.hero {
  padding-top: clamp(6.75rem, 11vw, 8.75rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  background: linear-gradient(180deg, var(--bg-hero-top) 0%, var(--bg) 68%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-copy h1 {
  margin: 0;
  max-width: 15ch;
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 6.4vw, 5.5rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-subtitle {
  margin: 1.5rem 0 0;
  max-width: 46ch;
  font-size: var(--text-body);
  color: var(--ink-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background-color: var(--accent);
  color: var(--on-dark);
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.hero-stage {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.hero-frame {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--surface);
  aspect-ratio: 16 / 9;
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Welcome editorial section */
.welcome-section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  border-top: 1px solid var(--border);
  background-color: var(--bg);
}

.welcome-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.welcome-note h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.welcome-note p {
  margin: 1.25rem 0 0;
  max-width: 58ch;
  font-size: var(--text-body);
  color: var(--ink-muted);
}

.welcome-list {
  display: flex;
  flex-direction: column;
}

.list-item {
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
}

.list-item:first-child {
  padding-top: 0.25rem;
  border-top: none;
}

.list-item h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
}

.list-item p {
  margin: 0.45rem 0 0;
  max-width: 52ch;
  font-size: var(--text-body);
  color: var(--ink-muted);
}

/* Footer */
.site-footer {
  background-color: var(--ink);
  color: var(--on-dark);
  padding-block: 3rem;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-wordmark {
  display: block;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.footer-brand p,
.footer-meta {
  margin: 0.4rem 0 0;
  font-size: var(--text-sm);
  color: var(--on-dark-muted);
}

.footer-meta {
  margin: 0;
}

@media (max-width: 780px) {
  .container {
    width: min(100% - 2rem, var(--container-max));
  }

  .header-inner {
    height: 4rem;
  }

  .site-nav {
    gap: 1.25rem;
  }

  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-frame {
    border-radius: 12px;
  }
}

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

  .site-header,
  .site-nav a,
  .btn-primary {
    transition: none;
  }

  .btn-primary:hover,
  .btn-primary:focus-visible {
    transform: none;
  }
}
