/* Meownlight website. One night-sky look, shared by the home page and the legal pages.
   Layout: a centred column that widens for the home page's screenshot strip. */
:root {
  --sky: #1E1B4B;
  --sky-deep: #15123A;
  --panel: #2A2660;
  --panel-hi: #3A3488;
  --gold: #FFC857;
  --gold-deep: #D99A2B;
  --cream: #FFF6E5;
  --lilac: #B8B3E6;
  --ink: #2B2540;
  --display: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--sky-deep); }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream);
  background: radial-gradient(120% 60% at 50% 0%, #2E2870 0%, var(--sky) 45%, var(--sky-deep) 100%) no-repeat;
  min-height: 100vh;
}
::selection { background: var(--gold); color: var(--ink); }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #FFE7A8; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 720px; }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.bar nav { display: flex; gap: 18px; font-size: 15px; }
.bar nav a { color: var(--lilac); text-decoration: none; }
.bar nav a:hover { color: var(--cream); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-block: 40px 56px; }
.hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(48px, 8vw, 84px); line-height: 1; margin: 0; letter-spacing: -0.01em; }
.hero .tag { font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3.4vw, 34px); color: var(--gold); margin: 10px 0 0; line-height: 1.15; text-wrap: balance; }
.hero p.lede { color: var(--lilac); font-size: 19px; max-width: 32em; margin: 20px 0 0; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 22px; border-radius: 18px; background: var(--panel); color: var(--cream); text-decoration: none; border: 2px solid var(--panel-hi); }
.store small { display: block; font-size: 12px; color: var(--lilac); line-height: 1.1; }
.store strong { display: block; font-family: var(--display); font-weight: 600; font-size: 18px; line-height: 1.2; }
.store svg { flex: none; }
.soon { font-size: 14px; color: var(--lilac); margin-top: 12px; }
.hero-art { position: relative; justify-self: center; width: min(360px, 100%); }
.hero-art .shot { border-radius: 34px; border: 6px solid #2A1F33; box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 0 3px var(--panel-hi); }
.hero-art .sticker { position: absolute; width: 34%; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }

/* Sections */
section { padding-block: 40px; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.1; margin: 0 0 12px; text-wrap: balance; }
h2 span { color: var(--gold); }
.lead { color: var(--lilac); max-width: 36em; margin: 0 0 28px; }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how div { background: var(--panel); border-radius: 22px; padding: 22px; }
.how h3 { font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 6px; }
.how p { margin: 0; color: var(--lilac); font-size: 16px; }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shots img { border-radius: 22px; box-shadow: 0 14px 34px rgba(0,0,0,.4); }

.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cats img { width: 84px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }

/* Legal pages */
.doc { padding-block: 24px 64px; }
.doc h1 { font-family: var(--display); font-weight: 700; font-size: clamp(36px, 6vw, 52px); line-height: 1.05; margin: 8px 0 6px; }
.doc .updated { color: var(--lilac); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 26px; margin: 36px 0 8px; }
.doc p, .doc li { color: #E9E5F7; max-width: 65ch; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .box { background: var(--panel); border-radius: 18px; padding: 16px 20px; margin: 20px 0; }

/* Footer */
footer { border-top: 1px solid rgba(184,179,230,.18); margin-top: 24px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 26px 40px; font-size: 15px; color: var(--lilac); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--lilac); }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block: 16px 32px; }
  .hero-art { width: min(300px, 80%); }
  .how { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .shots img { border-radius: 14px; }
  .bar nav { gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-art .sticker { animation: bob 3.6s ease-in-out infinite; }
  .hero-art .sticker.two { animation-delay: -1.8s; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}
