@font-face {
  font-family: 'Lilita One';
  src: url('/fonts/LilitaOne-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/Fredoka-500.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/Fredoka-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg-top: #fffbf3;
  --bg-mid: #fdf6e9;
  --bg-btm: #f3e2c3;
  --ink: #24120a;
  --muted: #5b3722;
  --accent: #ad2415;
  --btn-bg: #24120a;
  --btn-hover: #3b1e11;
  --btn-text: #fffaf2;
  --line: rgba(91, 55, 34, 0.16);
}

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

html {
  scrollbar-color: #cfb490 transparent;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body {
  min-height: 100vh;
  font-family: 'Fredoka', system-ui, -apple-system, sans-serif;
  background: radial-gradient(1100px 640px at 50% 0%, var(--bg-top) 0%, var(--bg-mid) 54%, var(--bg-btm) 100%);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1060px;
  margin: 0 auto;
  padding: 56px 24px 44px;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(36, 18, 10, 0.18);
  margin-bottom: 20px;
  display: block;
}

h1 {
  font-family: 'Lilita One', sans-serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 4.8vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 14px;
}

.tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--muted);
  max-width: 36ch;
  margin-bottom: 24px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 14px;
  background: var(--btn-bg);
  color: var(--btn-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 12px 24px rgba(36, 18, 10, 0.2);
  transition: background-color 0.2s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.store-btn:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
}

.store-btn:active {
  transform: translateY(0);
}

.meta {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-stage {
  width: 100%;
}

.hero-art {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(36, 18, 10, 0.16);
}

.gallery-wrap {
  margin-top: 52px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(36, 18, 10, 0.13);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery img:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(36, 18, 10, 0.18);
}

.footer {
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 820px) {
  .page {
    padding: 36px 20px 36px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gallery-wrap {
    margin-top: 36px;
  }

  .gallery {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 58%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
    scrollbar-width: thin;
  }

  .gallery img {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-btn,
  .gallery img {
    transition: none;
  }
}
