/* Fonts */

@font-face {
  font-family: "Lausanne";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("/fonts/TWKLausanne-200.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrainsMono";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-Light.woff2") format("woff2");
}

/* Variables */

:root {
  --color-sand-light: #FBF9F2;
  --color-bone: #F7F4F0;
  --color-coral: #FAB99D;
  --color-white-100: #FFFFFF;
  --color-black-100: #171311;
  --color-black-70: #5D5A59;
  --color-black-10: #EFECEA;

  --fill-base: var(--color-white-100);
  --stroke-extra-soft: var(--color-black-10);
  --typo-primary: var(--color-black-100);
  --typo-secondary: var(--color-black-70);
}

/* Reset */

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

html,
body {
  width: 100%;
  height: 100%;
  font-family: "Lausanne", system-ui, -apple-system, sans-serif;
  font-weight: 200;
  font-size: 16px;
  line-height: 1.5;
  color: var(--typo-primary);
  background-color: var(--fill-base);
}

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

/* Page wrapper */

.page-wrapper {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 32px;
  background: linear-gradient(135deg,
      var(--color-sand-light) 0%,
      var(--color-bone) 42%,
      var(--color-coral) 100%);
}

/* Grain overlay */

.grain-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.20;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22256%22%20height%3D%22256%22%3E%3Cfilter%20id%3D%22n%22%20x%3D%22-20%25%22%20y%3D%22-20%25%22%20width%3D%22140%25%22%20height%3D%22140%25%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.82%22%20numOctaves%3D%224%22%20stitchTiles%3D%22stitch%22%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20filter%3D%22url(%23n)%22%2F%3E%3C%2Fsvg%3E");
  background-size: 256px 256px;
}

/* Card */

.card {
  position: relative;
  z-index: 10;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border-radius: 12px;
  border: 1px solid var(--stroke-extra-soft);
  background-color: var(--fill-base);
  padding: 40px;
}

/* Grid pattern */

.grid-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 12px;
  opacity: 0.80;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--color-coral) 14%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--color-coral) 14%, transparent) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, black 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, black 18%, transparent 78%);
}

/* Content */

.content-area {
  position: relative;
  z-index: 10;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.content-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Mascot */

.mascot-image {
  width: 112px;
  height: auto;
}

/* Text */

.text-block {
  max-width: 512px;
  text-align: center;
}

.text-block h1 {
  font-size: 30px;
  line-height: 36px;
  font-weight: 200;
  color: var(--typo-primary);
}

.text-block p {
  margin-top: 12px;
  font-weight: 200;
  color: var(--typo-secondary);
}

/* Responsive */

@media (max-width: 480px) {
  .page-wrapper {
    padding: 16px;
  }

  .card {
    padding: 24px;
  }

  .text-block h1 {
    font-size: 24px;
    line-height: 32px;
  }
}