/* The CUE — website styles. Brand: docs/brand.md (orange → pink → violet, night, white type). */
:root {
  --orange: #FF8A3D;
  --pink: #FF3D7F;
  --violet: #5B4BFF;
  --night: #100C20;
  --gradient: linear-gradient(135deg, var(--orange), var(--pink) 55%, var(--violet));
  --bg: #FFFFFF;
  --text: #15121F;
  --muted: #5C5868;
  --card: rgba(255, 255, 255, 0.72);
  --line: rgba(21, 18, 31, 0.08);
  --radius: 22px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100C20;
    --text: #F4F2FA;
    --muted: #B3AEC4;
    --card: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Soft colour fields, like the app's onboarding */
body::before {
  content: "";
  position: fixed; inset: -20vmax;
  z-index: -1;
  background:
    radial-gradient(40vmax 40vmax at 15% 10%, rgba(255, 138, 61, .35), transparent 60%),
    radial-gradient(35vmax 35vmax at 90% 35%, rgba(255, 61, 127, .28), transparent 60%),
    radial-gradient(45vmax 45vmax at 30% 95%, rgba(91, 75, 255, .30), transparent 60%);
  filter: blur(20px);
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.wrap { width: min(1080px, 100% - 32px); margin: 0 auto; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 34px; height: 34px; }
.wordmark { font-weight: 900; letter-spacing: .14em; font-size: 17px; font-stretch: expanded; }
.nav { display: flex; gap: 18px; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; opacity: .8; }
.nav a:hover { opacity: 1; }

/* Hero */
.hero { text-align: center; padding: 64px 0 48px; }
.hero .mark { width: 120px; height: 120px; margin: 0 auto 18px; }
.hero h1 { margin: 0; font-size: clamp(44px, 9vw, 84px); font-weight: 900; letter-spacing: .1em; font-stretch: expanded; line-height: 1; }
.hero .lead { font-size: clamp(20px, 3.2vw, 28px); font-weight: 700; margin: 22px 0 10px; }
.hero .sub { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 18px; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 24px rgba(255, 61, 127, .35); }
.btn-secondary { background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; box-shadow: none; }
.btn:focus-visible, a:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 24px 0 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 40px; height: 40px; border-radius: 12px; background: var(--gradient); display: grid; place-items: center; color: #fff; font-size: 20px; }

/* Content pages */
.page { padding: 32px 0 64px; max-width: 720px; }
.page h1 { font-size: clamp(32px, 6vw, 46px); line-height: 1.1; margin: 8px 0 18px; }
.page h2 { font-size: 22px; margin: 34px 0 8px; }
.page p, .page li { color: var(--muted); font-size: 17px; }
.page strong { color: var(--text); }
details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; padding: 14px 0; font-size: 17px; }
details p { margin: 0 0 16px; }

/* Shared list page */
.list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 24px 0 8px; }
.list-head h1 { margin: 6px 0 0; font-size: clamp(30px, 6vw, 48px); line-height: 1.1; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.meta { color: var(--muted); margin: 6px 0 0; }
.posters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 18px; padding: 24px 0 48px; list-style: none; margin: 0; }
.poster img, .poster .ph { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; background: var(--line); }
.poster .ph { display: grid; place-items: center; padding: 10px; text-align: center; color: var(--muted); font-weight: 700; font-size: 14px; }
.poster span { display: block; margin-top: 8px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.poster small { color: var(--muted); font-size: 13px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .links { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; font-weight: 600; }
footer a { text-decoration: none; }

@media (max-width: 520px) {
  .nav { gap: 12px; font-size: 14px; }
  .hero { padding-top: 40px; }
  .posters { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform .15s ease, box-shadow .15s ease; }
  .btn-primary:hover { transform: translateY(-1px); }
}
