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

:root {
  color-scheme: dark;
  --paper: #020304;
  --ink: #f2f0ea;
  --soft: #b7b4aa;
  --muted: #77756e;
  --quiet: #272a2b;
  --rule: #1a1d1e;
  --accent: #95b7bd;
  --font-sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, "Times New Roman", Times, serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
  overflow-x: hidden;
}

body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.site-shell {
  position: relative;
  width: min(100%, 1440px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 34px 40px 42px;
  overflow: visible;
}

.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1;
}

.home-link,
.site-nav a {
  text-decoration: none;
}

.home-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1;
}

.brand-mark {
  position: relative;
  top: -1.5px;
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.home-link span {
  display: block;
  transform: translateY(-0.5px);
}

.site-nav {
  display: flex;
  gap: 10px;
  color: var(--soft);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgba(242, 240, 234, 0.13);
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.78rem;
  line-height: 1;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(149, 183, 189, 0.5);
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 108px);
  display: flex;
  align-items: flex-end;
  flex: 1;
  padding: 38px 0 26px;
  overflow: visible;
}

.compiled-field {
  position: absolute;
  inset: 38px -40px 116px;
  z-index: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.compiled-field canvas {
  width: min(92vw, 1180px);
  height: min(68vh, 700px);
  max-width: 100%;
  opacity: 1;
}

.hero-statement {
  position: relative;
  z-index: 2;
  display: block;
  width: min(430px, 100%);
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--ink);
  font-size: clamp(1.32rem, 1.82vw, 1.64rem);
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: 0;
}

.hero-statement p {
  max-width: 430px;
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.22vw, 1.1rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: 0;
}

.blog-page {
  min-height: 100svh;
  padding: 36px 48px;
  background: var(--paper);
}

.blog-page .site-nav {
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .site-shell {
    padding: 28px 28px 68px;
  }

  .compiled-field {
    inset: 58px -28px 164px;
    align-items: center;
  }

  .compiled-field canvas {
    width: min(112vw, 940px);
    height: min(60vh, 620px);
  }

  .hero {
    min-height: calc(100svh - 128px);
    padding-bottom: 20px;
  }

  .hero-statement {
    width: min(430px, 100%);
  }
}

@media (max-width: 640px) {
  .site-shell,
  .blog-page {
    padding: 24px 20px 34px;
  }

  .masthead {
    gap: 20px;
    font-size: 0.78rem;
  }

  .site-nav {
    gap: 18px;
  }

  .compiled-field {
    inset: 44px -120px 208px;
  }

  .compiled-field canvas {
    width: 720px;
    height: 560px;
    opacity: 0.95;
  }

  .hero {
    min-height: calc(100svh - 90px);
    padding-bottom: 52px;
  }
}
