/* The landing page. The colours are the app's own (client/scripts/ui/ui.gd). No fonts or
   scripts are fetched from anywhere else: a visit tells no third party anything. */
:root {
  color-scheme: dark;
  --night: #0b0d1a;
  --surface: #171c33;
  --raised: #222a4a;
  --outline: #38426b;
  --text: #e8ecf8;
  --muted: #9aa3c0;
  --gold: #ffe2a8;
  --sky: #9fc4ff;
  --violet: #b3a6ee;
  --warn: #f2b8a0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 50% -80px, rgba(96, 110, 210, 0.28), transparent 70%),
    radial-gradient(900px 600px at 50% 320px, rgba(255, 226, 168, 0.07), transparent 70%),
    var(--night);
  background-repeat: no-repeat;
  font: 17px/1.6 "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); }
h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.top {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  max-width: 1080px; margin: 0 auto; padding: 18px 24px;
}

.button {
  display: inline-block; padding: 14px 26px; border-radius: 14px;
  border: 1px solid var(--outline); background: var(--raised); color: var(--text);
  text-decoration: none; font-weight: 600; text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
button.button { font: inherit; font-weight: 600; cursor: pointer; }
.button:hover { background: #2a3359; }
.button:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.button.small { padding: 9px 16px; font-size: 15px; border-radius: 11px; }
.button.primary {
  background: linear-gradient(180deg, #ffeec9, var(--gold)); border-color: #f0cc85; color: #1a1d33;
  box-shadow: 0 8px 30px rgba(255, 226, 168, 0.18);
}
.button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(255, 226, 168, 0.3); }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.hero { text-align: center; padding: 28px 0 64px; }
.hero h1 { font-size: clamp(17px, 2.7vw, 26px); max-width: 24em; margin: 0 auto 14px; }
.lead { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 34em; margin: 0 auto 30px; }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.live { color: var(--gold); margin: 0 0 26px; }
.closed {
  max-width: 34em; margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--warn); color: var(--warn); background: rgba(242, 184, 160, 0.07);
}

/* The name, as the app shows it: "Reiki", the flower, "Nexus". The two words share the
   space either side equally, so the flower is in the middle of the page. */
.mark {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: clamp(12px, 2.4vw, 26px); margin: 26px 0 34px;
  font-size: clamp(32px, 7.4vw, 68px); font-weight: 600; line-height: 1; letter-spacing: -0.01em;
}
.mark .word:first-child { text-align: right; }
.mark .word:last-child { text-align: left; }
.flower { position: relative; display: block; width: clamp(96px, 21vw, 180px); aspect-ratio: 1; }
.flower img { position: relative; display: block; width: 100%; height: 100%; animation: breathe 7s ease-in-out infinite; }
.flower .halo {
  position: absolute; inset: -30%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 168, 0.22), rgba(159, 196, 255, 0.10) 45%, transparent 68%);
  animation: glow 7s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes glow { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }

.stores { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 0; margin: 10px 0 12px; }
.store {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 210px; padding: 11px 18px;
  border: 1px dashed var(--outline); border-radius: 14px; color: var(--muted); text-align: left;
}
.store strong { color: var(--text); font-weight: 600; }
.store em { font-style: normal; font-size: 14px; }

.band { padding: 56px 0; border-top: 1px solid rgba(56, 66, 107, 0.55); }
.band h2 { font-size: clamp(24px, 3.4vw, 32px); text-align: center; margin-bottom: 28px; }
.band.narrow { max-width: 40em; margin: 0 auto; text-align: center; }
.band.narrow p { color: var(--muted); }
.band.narrow .actions { margin-top: 26px; }

/* Who makes it: the studio's own mark, which is the link to the studio. */
.band.maker { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 28px 0; }
.band.maker h2 { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.band.maker a { display: block; border-radius: 8px; transition: transform 0.15s ease; }
.band.maker a:hover { transform: translateY(-1px); }
.band.maker a:focus-visible { outline: 2px solid var(--sky); outline-offset: 4px; }
.band.maker img { display: block; border-radius: 8px; }

/* "About Reiki": a small panel over the page, like the one in the app. */
dialog {
  width: min(30em, calc(100vw - 40px)); padding: 24px; border-radius: 18px;
  border: 1px solid var(--outline); background: var(--surface); color: var(--text); text-align: center;
  max-height: calc(100vh - 40px);
}
/* The words scroll when the window is too short for them, so Close is always in reach. */
dialog[open] { display: flex; flex-direction: column; }
dialog .words { overflow-y: auto; min-height: 0; margin-bottom: 8px; }
dialog .words:focus-visible { outline: none; }
dialog::backdrop { background: rgba(5, 6, 15, 0.72); }
dialog h2 { font-size: 24px; margin-bottom: 14px; }
dialog p { color: var(--muted); text-align: left; }
dialog .button { width: 100%; margin-top: 6px; }

.cards { display: grid; gap: 16px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: 24px; }
.card.plain { background: transparent; }
.card h3 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin: 0; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.sky { background: var(--sky); box-shadow: 0 0 14px rgba(159, 196, 255, 0.7); }
.dot.gold { background: var(--gold); box-shadow: 0 0 14px rgba(255, 226, 168, 0.7); }
.dot.violet { background: var(--violet); box-shadow: 0 0 14px rgba(179, 166, 238, 0.7); }

footer { max-width: 1080px; margin: 0 auto; padding: 36px 24px 48px; border-top: 1px solid rgba(56, 66, 107, 0.55); text-align: center; font-size: 15px; }
footer p { margin: 0 0 6px; }

@media (max-width: 820px) {
  .cards.three, .cards.two { grid-template-columns: 1fr; }
  .hero { padding-bottom: 44px; }
  .band { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .flower img, .flower .halo { animation: none; }
  html { scroll-behavior: auto; }
}
