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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.has-dialog {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.page-progress {
  position: fixed;
  z-index: 500;
  top: 0;
  left: 0;
  width: var(--page-progress, 0%);
  height: 3px;
  background: var(--red);
}

.site-nav {
  position: fixed;
  z-index: 300;
  top: 18px;
  left: 50%;
  display: grid;
  width: min(920px, calc(100vw - 40px));
  min-height: 54px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(20, 21, 19, 0.72);
  color: white;
  backdrop-filter: blur(18px) saturate(120%);
  transform: translateX(-50%);
  transition:
    background 240ms ease,
    border-color 240ms ease;
}

.site-nav.is-light {
  border-color: rgba(20, 21, 19, 0.18);
  background: rgba(243, 239, 229, 0.85);
  color: var(--ink);
}

.nav-name {
  justify-self: start;
  font-family: var(--serif);
  font-weight: 900;
}

.site-nav nav {
  display: flex;
  gap: 24px;
}

.site-nav nav a,
.nav-cta {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.site-nav nav a {
  color: currentColor;
  opacity: 0.65;
  transition: opacity 180ms ease;
}

.site-nav nav a:hover {
  opacity: 1;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.nav-cta i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #79b88b;
}

.section-index {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.section-index span {
  color: var(--red);
}

.section-index p {
  margin: 0;
}

.section-index.light {
  color: rgba(255, 255, 255, 0.46);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-light {
  background: var(--cream);
  color: var(--ink);
}

.text-link {
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  color: white;
  font-size: 11px;
}

.dark-link {
  border-color: rgba(20, 21, 19, 0.4);
  color: var(--ink);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.link-row a {
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
  font-size: 10px;
  opacity: 0.72;
  transition: opacity 180ms ease;
}

.link-row a:hover {
  opacity: 1;
}

.dark-section {
  background: var(--ink);
  color: var(--cream);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px max(32px, calc((100vw - 1440px) / 2));
  background: var(--ink);
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}
