:root {
  --layout-width: 1400px;
  --color-primary: #4747ff;
  --color-accent: #7f7eff;
  --color-paper: #f3efe0;
  --color-paper-soft: rgba(243, 239, 224, 0.72);
  --color-ink: #0d0106;
  --color-line: rgba(13, 1, 6, 0.1);
  --shadow-soft: 0 24px 64px rgba(71, 71, 255, 0.16);
  --font-display: "Futura PT Bold", Futura, "Trebuchet MS", Arial, sans-serif;
  --font-heading: "Futura PT Medium", Futura, "Trebuchet MS", Arial, sans-serif;
  --font-body: "Futura PT Book", Futura, "Trebuchet MS", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-body);
  background: var(--color-paper);
}

body.menu-open {
  overflow: hidden;
}

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

.media-reveal {
  opacity: 0.18;
  filter: blur(20px) saturate(0.82) contrast(1.04);
  image-rendering: pixelated;
  transition:
    opacity 520ms ease,
    filter 900ms ease;
}

.media-reveal.is-loaded {
  opacity: 1;
  filter: blur(0) saturate(1) contrast(1);
  image-rendering: auto;
}

.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 620ms ease,
    transform 620ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trigger-guard {
  position: relative;
  border-radius: 4px;
}

.trigger-guard.has-trigger-preview .media-reveal,
.trigger-guard.has-trigger-preview .media-reveal.is-loaded {
  opacity: 0;
  transition:
    opacity 280ms ease,
    filter 900ms ease;
}

.trigger-guard.is-trigger-open .media-reveal.is-loaded {
  opacity: 1;
}

.trigger-guard__pixel {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  pointer-events: none;
  opacity: 1;
  transition:
    opacity 240ms ease,
    visibility 0s linear 240ms;
}

.trigger-guard.is-trigger-revealed .trigger-guard__pixel {
  opacity: 0;
  visibility: hidden;
}

.trigger-guard__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 1.2rem;
  border: 0;
  border-radius: 4px;
  background:
    linear-gradient(180deg, rgba(13, 1, 6, 0.08) 0%, rgba(13, 1, 6, 0.68) 100%);
  color: var(--color-paper);
  text-align: center;
  transition:
    opacity 180ms ease,
    visibility 0s linear 220ms;
}

.trigger-guard__overlay:hover,
.trigger-guard__overlay:focus-visible {
  outline: none;
}

.trigger-guard__eyebrow {
  display: block;
  font-family: "Futura PT Book", Sans-serif;
  font-size: 12px;
  line-height: 14px;
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.78;
}

.trigger-guard__copy {
  display: block;
  max-width: 34ch;
  font-family: "Futura PT Book", Sans-serif;
  font-size: 12px;
  line-height: 14px;
  color: #fff;
}

.trigger-guard__action {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  padding: 0.38rem 0.72rem;
  border: 1px solid #fff;
  border-radius: 999px;
  background: rgba(243, 239, 224, 0.08);
  font-family: var(--font-heading);
  font-size: 12px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.trigger-guard__action:hover,
.trigger-guard__action:focus-visible {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.trigger-guard.is-trigger-open .trigger-guard__overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .media-reveal,
  .reveal-up {
    opacity: 1;
    filter: none;
    transform: none;
    image-rendering: auto;
    transition: none;
  }

  .trigger-guard__overlay {
    transition: none;
  }

  .trigger-guard__pixel {
    transition: none;
  }
}

a {
  color: inherit;
}

.site-main a {
  text-decoration: underline;
}

.site-main a:hover {
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.site-footer {
  background: var(--color-paper);
}

.layout {
  width: min(calc(100% - 2rem), var(--layout-width));
  margin: 0 auto;
}

@media (max-width: 767px) {
  .layout {
    width: min(calc(100% - 1.25rem), var(--layout-width));
  }
}
