@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("fonts/fira-sans-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --page: #f6f8fb;
  --surface: rgb(246 248 251 / 82%);
  --ink: #17212b;
  --ink-soft: #526273;
  --line: #d8e0e9;
  --panel-start: #182735;
  --panel-end: #0e1318;
  --panel-ink: #edf4fb;
  --panel-soft: #bac9d8;
  --content-width: 70rem;
  --page-pad: clamp(1.5rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1318;
    --surface: rgb(14 19 24 / 82%);
    --ink: #edf4fb;
    --ink-soft: #bac9d8;
    --line: #293847;
    --panel-start: #1a2a39;
    --panel-end: #111b24;
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  min-width: 20rem;
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Fira Sans", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

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

a:hover {
  text-decoration-thickness: 0.12em;
}

:focus-visible {
  outline: 2px solid #5a83ac;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 30;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding-right: var(--page-pad);
  padding-left: var(--page-pad);
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.site-header__bar {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-about {
  margin-left: 2rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-status,
.hero__kicker {
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header__bar > .site-status {
  margin-left: auto;
}

.hero,
.section {
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}

.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__kicker {
  margin: 0 0 0.75rem;
}

.hero-title,
.page-title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-wrap: balance;
}

.page-title {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
}

.lead {
  max-width: 36rem;
  margin: 1.5rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  font-weight: 300;
}

.hero-moments {
  position: relative;
  display: grid;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, var(--panel-start), var(--panel-end));
  box-shadow: 0 1.5rem 3rem rgb(5 11 17 / 14%);
}

.hero-moments canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-moments__line {
  z-index: 1;
  align-self: center;
  max-width: 18ch;
  margin: 0;
  padding: 2rem;
  color: var(--panel-ink);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.hero-moments__line.is-hidden {
  opacity: 0;
  transform: translateY(0.5rem);
}

.prose {
  max-width: 42rem;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
}

.prose h2 {
  margin: 2.75rem 0 0.75rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.prose > :last-child {
  margin-bottom: 0;
}

.creed {
  border-top: 1px solid rgb(255 255 255 / 10%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
  background: var(--panel-end);
  color: var(--panel-soft);
}

.creed a {
  color: var(--panel-ink);
}

.creed__quote {
  max-width: none;
  margin: 0;
}

.creed blockquote,
.creed p {
  margin: 0;
}

.creed__verse {
  color: var(--panel-ink);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  font-weight: 300;
  line-height: 1.5;
}

.creed__line {
  display: block;
  padding-left: 1.4em;
  text-indent: -1.4em;
}

.creed__turn {
  margin-top: 1.5rem !important;
  color: var(--panel-ink);
  font-size: clamp(1.25rem, 1.1rem + 0.55vw, 1.6rem);
  font-weight: 400;
}

.creed__card {
  margin-top: 2rem !important;
  padding-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: var(--panel-ink);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
}

.creed figcaption {
  margin-top: 1.5rem;
  color: var(--panel-soft);
  font-size: 0.875rem;
}

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

@media (min-width: 48rem) {
  .hero__grid {
    grid-template-columns: 1fr minmax(19rem, 0.8fr);
  }

  .hero-moments {
    min-height: 23rem;
  }
}

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