@font-face {
  font-family: 'Mona Sans Display Condensed';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/mona-sans-display-condensed-black.otf') format('opentype');
}

@font-face {
  font-family: 'Cutive Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cutive-mono-regular.ttf') format('truetype');
}

:root {
  color-scheme: light;
  --ink: #171412;
  --ink-strong: rgba(23, 20, 18, 0.86);
  --ink-muted: rgba(23, 20, 18, 0.72);
  --ink-soft: rgba(23, 20, 18, 0.46);
  --ink-line: rgba(23, 20, 18, 0.2);
  --paper: #f4eddf;
  --paper-deep: #f3e2cc;
  --bone: #fffcf6;
  --ember: #eb3b00;
  --ember-dark: #9e321e;
  --mint: #b8e0d2;
  --mint-text: #0f766e;
  --blue: #4d8fd7;
  --blue-text: #2455a4;
  --yellow: #ffd166;
  --yellow-text: #7a4a08;
  --rose-text: #b91c1c;
  --shadow: rgba(23, 20, 18, 0.14);
  --radius: 8px;
  --max: 1160px;
  --nav-height: 76px;
  --font-display: 'Mona Sans Display Condensed', Impact, 'Arial Black', sans-serif;
  --font-body: 'Cutive Mono', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 20, 18, 0.035) 1px, transparent 1px) 0 0 / 100% 29px,
    radial-gradient(circle at 18% 8%, rgba(184, 224, 210, 0.52), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 209, 102, 0.38), transparent 25rem),
    linear-gradient(135deg, var(--paper), var(--paper-deep));
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: '';
  opacity: 0.42;
  background-image:
    radial-gradient(rgba(23, 20, 18, 0.16) 1px, transparent 1px),
    radial-gradient(rgba(235, 59, 0, 0.14) 1px, transparent 1px);
  background-position: 0 0, 7px 9px;
  background-size: 21px 23px, 31px 37px;
  mix-blend-mode: multiply;
}

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

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

button,
input {
  font: inherit;
  letter-spacing: 0;
}

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-height);
  padding: 12px 20px;
  color: var(--ink);
  background: rgba(244, 237, 223, 0.82);
  border-bottom: 1px dashed var(--ink-line);
  backdrop-filter: blur(18px);
}

.site-nav--solid,
.site-nav.is-open {
  background: rgba(255, 252, 246, 0.96);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.9;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-link img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-link span {
  max-width: 12ch;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-strong);
}

.site-menu a {
  transition: color 160ms ease;
}

.site-menu a:hover {
  color: var(--ember);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  color: var(--bone);
  text-align: center;
  background: linear-gradient(180deg, #ff4c0d, var(--ember));
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-cta {
  min-height: 40px;
  padding: 9px 14px;
}

.button:hover,
.nav-cta:hover {
  color: var(--bone);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.button--secondary {
  color: var(--ink);
  background: var(--bone);
}

.button--secondary:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--bone);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 92svh;
  padding: calc(var(--nav-height) + 54px) 20px 56px;
  overflow: hidden;
  border-bottom: 2px solid var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('img/hero.jpg');
  background-repeat: no-repeat;
  background-position: 66% center;
  background-size: cover;
  transform: scale(1.02);
  animation: hero-drift 14s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 237, 223, 0.98) 0%, rgba(244, 237, 223, 0.92) 33%, rgba(244, 237, 223, 0.22) 69%, rgba(244, 237, 223, 0.02) 100%),
    linear-gradient(180deg, rgba(23, 20, 18, 0.04), rgba(23, 20, 18, 0.16));
}

.hero__content {
  width: min(100%, var(--max));
  margin: 0 auto;
  animation: hero-copy-in 720ms ease-out both;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--ember-dark);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 8ch;
  font-size: 76px;
  line-height: 0.82;
}

.hero__line {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero__copy {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--ink-strong);
  font-size: 18px;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.strip {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 20px;
  color: var(--bone);
  text-align: center;
  background: var(--ink);
}

.strip p {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 0.95;
  text-transform: uppercase;
}

.section {
  padding: 88px 20px;
}

.section--split,
.section--graveyard,
.section--privacy {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 52px;
  align-items: start;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.section__intro h2,
.graveyard-copy h2,
.privacy-copy h2,
.cta-copy h2,
.stamp-wall h2,
.page-hero h1 {
  font-size: 54px;
  line-height: 0.9;
}

.section__intro p:not(.eyebrow),
.graveyard-copy p:not(.eyebrow),
.privacy-copy p:not(.eyebrow),
.cta-copy p:not(.eyebrow),
.page-hero p {
  color: var(--ink-muted);
  font-size: 17px;
  line-height: 1.62;
}

.receipt-steps {
  display: grid;
  gap: 16px;
}

.receipt-steps article,
.graveyard-list article,
.download-grid article,
.support-grid article {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent calc(100% - 10px), rgba(23, 20, 18, 0.05) calc(100% - 10px)),
    var(--bone);
  box-shadow: 0 16px 34px var(--shadow);
}

.receipt-steps article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.receipt-steps span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--ember);
  border: 2px solid var(--ember);
  border-radius: var(--radius);
}

.receipt-steps h3,
.graveyard-list h3,
.download-grid h2,
.support-grid h2 {
  font-size: 26px;
  line-height: 0.9;
}

.receipt-steps p,
.graveyard-list p,
.download-grid p,
.support-grid p {
  margin: 8px 0 0;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.45;
}

.section--band {
  max-width: none;
  padding: 88px 20px;
  background:
    radial-gradient(circle at 12% 22%, rgba(77, 143, 215, 0.22), transparent 22rem),
    linear-gradient(180deg, var(--bone), var(--paper));
  border-top: 1px dashed var(--ink-line);
  border-bottom: 1px dashed var(--ink-line);
}

.stamp-wall {
  width: min(100%, var(--max));
  margin: 0 auto;
}

.stamp-wall h2 {
  max-width: 820px;
}

.stamp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.stamp-row span {
  display: inline-flex;
  align-items: center;
  min-height: 76px;
  padding: 12px 18px 8px;
  color: var(--ember);
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 0.84;
  text-transform: uppercase;
  border: 4px solid var(--ember);
  border-radius: var(--radius);
  transform: rotate(-2deg);
  background: rgba(255, 252, 246, 0.52);
  box-shadow: 0 2px 0 rgba(158, 50, 30, 0.22) inset;
}

.stamp-row span:nth-child(2) {
  color: var(--blue-text);
  border-color: var(--blue);
  transform: rotate(1deg);
}

.stamp-row span:nth-child(3) {
  color: var(--mint-text);
  border-color: var(--mint-text);
  transform: rotate(-1deg);
}

.section--graveyard {
  align-items: center;
}

.graveyard-list {
  display: grid;
  gap: 14px;
}

.graveyard-list article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 96px;
  padding: 14px;
}

.graveyard-list img {
  width: 54px;
  height: 49px;
  object-fit: contain;
}

.graveyard-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 16ch;
  padding: 7px 8px;
  color: var(--blue-text);
  font-size: 12px;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  background: #ddebff;
  border: 1px solid rgba(36, 85, 164, 0.18);
  border-radius: 6px;
}

.graveyard-list article:nth-child(2) span {
  color: var(--yellow-text);
  background: #f6e5b8;
}

.graveyard-list article:nth-child(3) span {
  color: #5d3ea8;
  background: #e4d8ff;
}

.section--privacy {
  align-items: center;
  padding-top: 44px;
}

.privacy-mark {
  display: grid;
  place-items: center;
  min-height: 360px;
  background:
    linear-gradient(135deg, rgba(184, 224, 210, 0.72), rgba(255, 209, 102, 0.5)),
    var(--bone);
  border: 2px dashed var(--ink-line);
  border-radius: var(--radius);
}

.privacy-mark img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(8px 12px 0 rgba(23, 20, 18, 0.12));
  animation: logo-bob 3.8s ease-in-out infinite;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--ember-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.section--cta {
  display: grid;
  place-items: center;
  min-height: 440px;
  text-align: center;
  background: var(--ink);
}

.cta-copy {
  width: min(100%, 720px);
}

.section--cta .eyebrow {
  color: var(--yellow);
}

.section--cta h2,
.section--cta p {
  color: var(--bone);
}

.section--cta p {
  margin-left: auto;
  margin-right: auto;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 34px 20px 40px;
  color: var(--ink-muted);
  background: var(--paper-deep);
  border-top: 1px dashed var(--ink-line);
}

.site-footer > div,
.site-footer nav {
  width: min(100%, var(--max));
}

.site-footer > div {
  max-width: 540px;
}

.brand-link--footer {
  color: var(--ink);
  font-size: 24px;
}

.site-footer p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  max-width: 420px;
}

.site-footer a:hover {
  color: var(--ember);
}

.simple-page {
  padding-top: var(--nav-height);
}

.page-shell,
.legal-shell {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: 62px 20px 90px;
}

.legal-shell {
  width: min(100%, 900px);
}

.page-hero {
  padding: 38px 0 42px;
}

.page-hero h1 {
  max-width: 860px;
}

.page-hero p {
  max-width: 720px;
}

.page-hero .button {
  margin-top: 16px;
}

.download-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download-grid article,
.support-grid article {
  padding: 24px;
}

.download-grid span {
  display: inline-flex;
  margin-top: 18px;
  padding: 7px 8px;
  color: var(--ember-dark);
  text-transform: uppercase;
  border: 2px solid var(--ember);
  border-radius: 6px;
}

.legal-content {
  padding: 30px;
  background: var(--bone);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px var(--shadow);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 30px;
  line-height: 0.95;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin: 12px 0 0;
  color: var(--ink-strong);
  font-size: 15px;
  line-height: 1.68;
}

.legal-content a {
  color: var(--ember-dark);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.02) translateX(0);
  }
  to {
    transform: scale(1.045) translateX(-1.2%);
  }
}

@keyframes logo-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@media (max-width: 920px) {
  .site-menu {
    position: absolute;
    top: 100%;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    background: var(--bone);
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    box-shadow: 6px 6px 0 var(--ink);
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-menu a {
    padding: 12px;
  }

  .nav-cta {
    margin-top: 6px;
  }

  .nav-toggle {
    display: block;
  }

  .section--split,
  .section--graveyard,
  .section--privacy {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --nav-height: 70px;
  }

  .site-nav {
    padding: 10px 14px;
  }

  .brand-link {
    font-size: 22px;
  }

  .brand-link img {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 92svh;
    padding: calc(var(--nav-height) + 26px) 16px 42px;
    align-items: end;
  }

  .hero__media {
    background-position: center top;
    background-size: auto 56%;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(244, 237, 223, 0.15) 0%, rgba(244, 237, 223, 0.84) 42%, rgba(244, 237, 223, 0.99) 64%, rgba(244, 237, 223, 1) 100%);
  }

  h1 {
    font-size: 50px;
  }

  .hero__line {
    font-size: 28px;
  }

  .hero__copy {
    font-size: 15px;
    line-height: 1.48;
  }

  .strip p {
    font-size: 23px;
  }

  .section {
    padding: 64px 16px;
  }

  .section__intro h2,
  .graveyard-copy h2,
  .privacy-copy h2,
  .cta-copy h2,
  .stamp-wall h2,
  .page-hero h1 {
    font-size: 42px;
  }

  .receipt-steps article {
    grid-template-columns: 1fr;
  }

  .stamp-row span {
    min-height: 62px;
    font-size: 34px;
  }

  .graveyard-list article {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .graveyard-list img {
    width: 46px;
    height: 42px;
  }

  .graveyard-list span {
    grid-column: 2;
    justify-self: start;
  }

  .privacy-mark {
    min-height: 250px;
  }

  .privacy-mark img {
    width: 138px;
    height: 138px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .legal-content {
    padding: 22px;
  }
}

@media (max-width: 430px) {
  .brand-link span {
    max-width: 9ch;
  }

  h1 {
    font-size: 44px;
  }

  .hero__line {
    font-size: 24px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
