@font-face {
  font-family: "Geist Mono";
  src: url("./fonts/GeistMono-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --cream: #fcebde;
  --ink: #311d1c;
  --accent: #ea6029;
  --panel: #fcebde;
  --ink-soft: rgba(49, 29, 28, 0.7);
  --ink-line: rgba(49, 29, 28, 0.26);
  --accent-soft: rgba(234, 96, 41, 0.12);
  color-scheme: only light;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--cream);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Geist Mono", "Courier New", Courier, monospace;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  isolation: isolate;
}

body::before,
body::after {
  position: fixed;
  z-index: 0;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(72px);
  content: "";
  pointer-events: none;
}

body::before {
  top: -18%;
  left: -10%;
}

body::after {
  right: -12%;
  bottom: -24%;
  opacity: 0.72;
}

::selection {
  background: var(--accent);
  color: var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

#particles {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 100vh;
  min-height: 100svh;
}

.main-content {
  display: grid;
  place-items: center;
  width: 100%;
  padding: clamp(18px, 4vh, 48px) 12px 20px;
}

.hero {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(28px, 5vw, 54px) clamp(20px, 6vw, 68px) clamp(30px, 5vw, 54px);
  overflow: hidden;
  border: 1px solid var(--ink-line);
  border-radius: 38px;
  background: var(--panel);
  box-shadow:
    10px 12px 0 rgba(49, 29, 28, 0.06),
    0 28px 72px rgba(49, 29, 28, 0.11);
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero::before,
.hero::after {
  position: absolute;
  width: 46px;
  height: 46px;
  content: "";
  pointer-events: none;
}

.hero::before {
  top: 16px;
  left: 16px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  border-top-left-radius: 21px;
}

.hero::after {
  right: 16px;
  bottom: 16px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-bottom-right-radius: 21px;
}

.logo-wrap {
  position: relative;
  width: clamp(220px, 36vw, 360px);
  aspect-ratio: 1;
  margin: 0 auto 20px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.logo-wrap::before {
  position: absolute;
  inset: 9%;
  border: 1px dashed rgba(49, 29, 28, 0.22);
  border-radius: 50%;
  content: "";
}

.logo-mark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  background: url("./logo.webp") center / contain no-repeat;
  filter:
    drop-shadow(0 10px 0 rgba(49, 29, 28, 0.055))
    drop-shadow(0 18px 18px rgba(49, 29, 28, 0.1));
  animation: logo-float 6s ease-in-out infinite;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: 0.055em;
}

.hero-copy p {
  max-width: 590px;
  margin: 12px auto 0;
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 450;
  line-height: 1.58;
  letter-spacing: -0.01em;
}

.actions {
  width: 100%;
  margin-top: clamp(24px, 4vw, 32px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px;
  border-style: solid;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
  -webkit-tap-highlight-color: rgba(234, 96, 41, 0.18);
}

.button__icon {
  flex: 0 0 auto;
  font-size: 1.08em;
  line-height: 1;
  transition: transform 180ms ease;
}

.button--primary {
  width: min(100%, 430px);
  min-height: 60px;
  border-width: 2px;
  border-color: var(--ink);
  border-radius: 17px;
  background: var(--accent);
  box-shadow: 6px 7px 0 var(--ink);
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  font-weight: 700;
}

.actions__secondary {
  display: flex;
  width: min(100%, 540px);
  margin: 20px auto 0;
  gap: 14px;
}

.button--secondary {
  flex: 1 1 0;
  min-width: 0;
  border-width: 1.5px;
  border-color: var(--ink);
  border-radius: 14px;
  background: var(--cream);
  box-shadow: 3px 4px 0 rgba(49, 29, 28, 0.17);
}

.button:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.button--primary:focus-visible {
  outline-color: var(--ink);
}

.button:active {
  transform: translate(2px, 2px);
}

.button--primary:active {
  box-shadow: 2px 3px 0 var(--ink);
}

.button--secondary:active {
  box-shadow: 1px 2px 0 rgba(49, 29, 28, 0.2);
}

.footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 18px max(18px, env(safe-area-inset-bottom));
  color: rgba(49, 29, 28, 0.72);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.015em;
  text-align: center;
}

.footer p {
  margin: 0;
}

.footer__divider {
  color: var(--accent);
  font-weight: 700;
}

.payment-verification {
  position: absolute;
  z-index: 3;
  top: 100%;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
  padding: 10px 16px max(18px, env(safe-area-inset-bottom));
  pointer-events: none;
}

.payment-verification a {
  display: inline-flex;
  max-width: 100%;
  border-radius: 8px;
  pointer-events: auto;
}

.payment-verification a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

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

@media (hover: hover) and (pointer: fine) {
  .button--primary:hover {
    box-shadow: 8px 9px 0 var(--ink);
    transform: translate(-2px, -2px);
  }

  .button--secondary:hover {
    background: var(--accent);
    box-shadow: 5px 6px 0 rgba(49, 29, 28, 0.24);
    transform: translate(-2px, -2px);
  }

  .button:hover .button__icon {
    transform: translate(2px, -2px);
  }
}

@media (max-width: 640px) {
  .hero {
    --corner-inset: 7px;
    --corner-size: 24px;
  }

  .hero::before,
  .hero::after {
    width: var(--corner-size);
    height: var(--corner-size);
  }

  .hero::before {
    top: var(--corner-inset);
    left: var(--corner-inset);
  }

  .hero::after {
    right: var(--corner-inset);
    bottom: var(--corner-inset);
  }
}

@media (max-width: 560px) {
  .main-content {
    padding: 12px 10px 18px;
  }

  .hero {
    padding: 28px 18px 32px;
    border-radius: 28px;
  }

  .logo-wrap {
    width: clamp(210px, 70vw, 270px);
    margin-bottom: 16px;
  }

  .actions__secondary {
    flex-direction: column;
    gap: 11px;
    margin-top: 17px;
  }

  .button--secondary {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-right: 14px;
    padding-left: 14px;
  }

  .logo-wrap {
    width: min(210px, 72vw);
  }

  .button {
    padding-right: 14px;
    padding-left: 14px;
    font-size: 0.88rem;
  }

  .hero-copy p {
    font-size: 0.86rem;
  }

  .footer {
    flex-direction: column;
    gap: 3px;
  }

  .footer__divider {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 561px) {
  .main-content {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .logo-wrap {
    width: clamp(220px, 30vh, 270px);
    margin-bottom: 12px;
  }

  .actions {
    margin-top: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .logo-mark {
    animation: none;
  }

  .button,
  .button__icon,
  .skip-link {
    transition-duration: 0.01ms;
  }
}

@keyframes logo-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}
