@font-face {
  font-family: "Moga";
  src: url("/assets/Moga.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --red: #f24b4b;
  --cream: #fee1c0;
  --ink: #2a2746;
  --purple: #443b61;
  --purple-bar: #453b61;
  --blue: #4b9bf2;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "PT Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
}

a:hover {
  text-decoration-thickness: 2px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  position: relative;
  height: 140px;
  background: var(--red);
  overflow: hidden;
  flex-shrink: 0;
}

.header-bar {
  position: absolute;
  left: -10px;
  bottom: -18px;
  width: calc(100% + 20px);
  height: 48px;
  background: var(--purple-bar);
  transform: rotate(0.5deg);
  transform-origin: bottom left;
  z-index: 1;
}

.header-castle {
  position: absolute;
  right: 0;
  top: -8px;
  height: 140px;
  width: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
}

.header-logo {
  position: absolute;
  left: 20px;
  top: 18px;
  height: 72px;
  width: auto;
  z-index: 3;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.eyebrow {
  margin: 0 0 12px;
  font-family: "PT Serif", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--purple);
  opacity: 0.85;
}

.title {
  margin: 0 0 20px;
  font-family: "Moga", "PT Serif", Georgia, serif;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.title .accent {
  color: var(--red);
}

.lead {
  margin: 0 0 32px;
  font-family: "PT Serif", Georgia, serif;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--ink);
}

.lead strong {
  font-weight: 700;
}

.card {
  background: rgba(255, 255, 255, 0.45);
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: 8px 8px 0 var(--ink);
  padding: 28px 28px 24px;
  margin-bottom: 40px;
}

.card h2 {
  margin: 0 0 16px;
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.card ul {
  margin: 0 0 20px;
  padding-left: 1.2em;
  font-size: 1.05rem;
  line-height: 1.55;
}

.card li {
  margin-bottom: 10px;
}

.card li:last-child {
  margin-bottom: 0;
}

.thanks {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(42, 39, 70, 0.2);
  font-family: "PT Serif", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.55;
  font-style: italic;
}

.cta-block {
  text-align: center;
  margin-bottom: 48px;
}

.cta-label {
  margin: 0 0 16px;
  font-family: "PT Serif", Georgia, serif;
  font-weight: 700;
  font-size: 1.15rem;
}

.cta {
  position: relative;
  display: inline-block;
  text-decoration: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.cta-shadow {
  position: absolute;
  inset: 0;
  background: #000;
  border-radius: 18px;
  transform: translate(8px, 8px);
}

.cta-front {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 28px;
  border-radius: 18px;
  background: var(--blue);
  color: var(--cream);
  font-family: "PT Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  transform: translate(0, 0);
  transition: transform 250ms cubic-bezier(0.3, 0.7, 0.4, 1.5);
}

.cta:hover .cta-front {
  transform: translate(-4px, -4px);
}

.cta:active .cta-front {
  transform: translate(4px, 4px);
  transition-duration: 34ms;
}

.cta:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 6px;
  border-radius: 4px;
}

.cta-hint {
  margin: 20px 0 0;
  font-size: 0.95rem;
  color: var(--purple);
}

.footer {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--purple);
}

.footer p {
  margin: 0 0 8px;
}

.footer-meta {
  opacity: 0.75;
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .header {
    height: 160px;
  }

  .header-castle {
    height: 160px;
  }

  .header-logo {
    left: 22px;
    top: 20px;
    height: 80px;
  }

  .header-bar {
    height: 55px;
    bottom: -20px;
  }

  .main {
    padding: 64px 32px 80px;
  }

  .card {
    padding: 32px 36px 28px;
  }

  .cta-front {
    min-height: 66px;
    padding: 14px 40px;
    font-size: 1.15rem;
  }
}
