:root {
  color-scheme: light dark;
  --bg: #f4f8fa;
  --surface: #e6f2f6;
  --text: #102a37;
  --muted: #526b76;
  --line: #b8d0da;
  --accent: #075bc4;
  --accent-hover: #03499f;
  --button-text: #f7fbff;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.03em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 24px;
  white-space: nowrap;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--text);
}

.hero {
  min-height: min(760px, calc(100dvh - 72px));
  padding-block: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: clamp(48px, 7vw, 100px);
}

.hero-copy {
  max-width: 520px;
}

.kicker {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 740;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3.3rem, 6.4vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  white-space: nowrap;
}

.lede {
  margin: 28px 0 32px;
  max-width: 39ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.24rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--button-text);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: var(--accent-hover);
}

.button:active {
  transform: translateY(1px);
}

.hero-visual,
.article-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-visual {
  aspect-ratio: 4 / 5;
}

.hero-visual img,
.article-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-visual img {
  object-position: 62% center;
}

.notes {
  padding-block: 104px;
  border-top: 1px solid var(--line);
}

.notes h2 {
  margin: 0 0 44px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.note-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.note-grid article {
  min-height: 190px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
}

.note-grid h3 {
  margin: 0 0 44px;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.note-grid p,
.prose p,
.not-found > p:not(.kicker) {
  color: var(--muted);
  line-height: 1.7;
}

.note-grid p {
  max-width: 34ch;
  margin: 0;
}

.article-shell {
  min-height: calc(100dvh - 168px);
  padding-block: 88px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: start;
  gap: clamp(56px, 9vw, 132px);
}

.article-shell.single-column {
  display: block;
}

.prose {
  max-width: 660px;
}

.prose h1,
.not-found h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}

.prose p:not(.kicker) {
  max-width: 58ch;
  font-size: 1.06rem;
}

.article-visual {
  aspect-ratio: 4 / 5;
}

.article-visual img {
  object-position: 65% center;
}

.not-found {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-block: 64px;
}

.not-found > p:not(.kicker) {
  max-width: 42ch;
  margin: 28px 0 32px;
  font-size: 1.1rem;
}

footer {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07161e;
    --surface: #102934;
    --text: #e8f5f8;
    --muted: #a3bbc4;
    --line: #294650;
    --accent: #68adff;
    --accent-hover: #8fc2ff;
    --button-text: #06131a;
  }
}

@media (max-width: 767px) {
  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .site-header {
    min-height: 64px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 0.82rem;
  }

  .hero,
  .article-shell {
    min-height: auto;
    padding-block: 48px 72px;
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1,
  .prose h1,
  .not-found h1 {
    font-size: clamp(2.9rem, 15vw, 4.6rem);
  }

  .hero-visual,
  .article-visual {
    aspect-ratio: 4 / 3;
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .notes {
    padding-block: 72px;
  }

  footer {
    min-height: 112px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
