:root {
  --color-bg: #ffffff;
  --color-text-active: rgb(34, 34, 34);
  --color-text-inactive: rgb(112, 112, 112);
  --color-divider: rgb(232, 230, 230);
  --font-body: 'Anybody', sans-serif;
  --backdrop-ink: rgba(67, 67, 67, 0.24);
  --depth-a: rgba(191, 144, 0, 0.14);
  --depth-b: rgba(67, 67, 67, 0.1);
  --sheet-line: rgba(67, 67, 67, 0.45);
  --sheet-line-strong: rgba(67, 67, 67, 0.5);
  --sheet-row: rgba(67, 67, 67, 0.35);
  --sheet-fill: rgba(255, 255, 255, 0.72);
}

@font-face {
  font-family: 'Anybody';
  src: url('/fonts/anybody-variable.woff2') format('woff2-variations'),
       url('/fonts/anybody-variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text-active);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

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

.site-header {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 44px 60px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--color-text-inactive);
}

.nav-links a[aria-current="page"] {
  font-weight: 700;
  color: var(--color-text-active);
}

.nav-divider {
  width: 1px;
  height: 1.1rem;
  background: var(--color-divider);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-text-active);
}

.nav-overlay {
  display: none;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}

.logo {
  /* 87vh keeps height (auto, following the logo's ~1.74:1 aspect ratio)
     under ~50% of viewport height, so short viewports (landscape phones)
     don't size the logo taller than the page has room for. Doesn't affect
     normal portrait viewports, where the 700px/90vw caps are smaller anyway. */
  width: min(90vw, 700px, 87vh);
  width: min(90vw, 700px, 87dvh);
  height: auto;
}

.logo-dark {
  display: none;
}

.page-heading {
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

.page-text {
  max-width: 40rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-text-active);
}

.page-text a {
  text-decoration: underline;
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--color-text-inactive);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 768px) {
  .site-header {
    z-index: 20;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    width: min(80vw, 320px);
    margin: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    background: var(--color-bg);
    padding: 5rem 2rem 2rem;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
  }

  .nav-links.is-open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }

  .nav-divider {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 15;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #121212;
    --color-text-active: rgb(245, 245, 245);
    --color-text-inactive: rgb(170, 170, 170);
    --color-divider: rgb(70, 70, 70);
    --backdrop-ink: rgba(242, 240, 234, 0.2);
    --depth-a: rgba(212, 165, 26, 0.18);
    --depth-b: rgba(120, 120, 120, 0.16);
    --sheet-line: rgba(242, 240, 234, 0.4);
    --sheet-line-strong: rgba(242, 240, 234, 0.45);
    --sheet-row: rgba(242, 240, 234, 0.3);
    --sheet-fill: rgba(18, 18, 18, 0.72);
  }

  .nav-overlay {
    background: rgba(0, 0, 0, 0.6);
  }

  .logo-light {
    display: none;
  }

  .logo-dark {
    display: block;
  }
}

.site-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.site-backdrop .gradient-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 22% 28%, var(--depth-a) 0%, transparent 46%),
    radial-gradient(circle at 82% 70%, var(--depth-b) 0%, transparent 50%);
  filter: blur(60px);
}

.backdrop-content {
  position: absolute;
  inset: 0;
}

.site-backdrop ~ .site-footer {
  display: none;
}

/* Viewports too short for the title-block to fit without crowding the
   logo/heading (js/backdrop.js) drop it for this plain copyright line. */
.site-backdrop.no-title-block ~ .site-footer {
  display: block;
  padding: 34px 1.5rem;
}

.sheet-border {
  position: absolute;
  inset: 24px;
  border: 1px solid var(--sheet-line);
}

.sheet-tick {
  position: absolute;
  background: var(--sheet-line);
}

.title-block {
  position: absolute;
  border: 1px solid var(--sheet-line-strong);
  background: var(--sheet-fill);
  color: var(--color-text-active);
  font-family: var(--font-body);
}

.title-block-header {
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.title-block-row {
  border-top: 1px solid var(--sheet-row);
  padding: 7px 12px;
}

.title-block-label {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--color-text-inactive);
}

.title-block-value {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.title-block-grid {
  border-top: 1px solid var(--sheet-row);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.title-block-grid > div {
  padding: 7px 12px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  border-left: 1px solid var(--sheet-row);
}

.title-block-grid > div:first-child {
  border-left: none;
}

.title-block-copyright {
  border-top: 1px solid var(--sheet-row);
  padding: 6px 12px;
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: var(--color-text-inactive);
}

/* js/backdrop.js adds .is-compact below 480px, alongside a narrower width */
.title-block.is-compact .title-block-header {
  padding: 8px 11px;
  font-size: 12.5px;
}

.title-block.is-compact .title-block-row,
.title-block.is-compact .title-block-grid > div {
  padding: 6px 10px;
}

.title-block.is-compact .title-block-value {
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.title-block.is-compact .title-block-grid > div {
  font-size: 9.5px;
  letter-spacing: 0.05em;
}

.title-block.is-compact .title-block-copyright {
  padding: 5px 10px;
  font-size: 8px;
}

