/*
  Bubble Sway - official site
  Plain CSS, no build step, no external requests. Every colour, font and shape here is
  self-contained so the site renders identically offline and on a cold cache.
*/

:root {
  /* Ocean, shallow to deep. The page runs from surface light down to depth. */
  --surface: #e8fbff;
  --shallow: #bff0f7;
  --lagoon: #4fc3d9;
  --sea: #1b7f9e;
  --deep: #0b3f56;
  --abyss: #072b3c;

  /* Coral, used sparingly - the accent the game is named for. */
  --coral: #ff6f61;
  --coral-dark: #b8392e;

  --ink: #06232f;
  --ink-soft: #2c5768;
  --paper: #ffffff;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(7, 43, 60, 0.18);

  /* A system stack: no font is ever fetched. */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);

  /* The water. A fixed gradient so scrolling feels like descending. */
  background-image:
    radial-gradient(1200px 600px at 15% -10%, rgba(255, 255, 255, 0.9), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--shallow) 38%, var(--lagoon) 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Skip link: visible the moment it is focused, invisible otherwise. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}
.skip:focus { left: 0; }

.wrap {
  width: min(100% - 2.5rem, 46rem);
  margin-inline: auto;
}

/* ---------------------------------------------------------------- header */

.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.icon {
  width: 128px;
  height: 128px;
  border-radius: 28px;           /* a hint of the platform mask, not a claim to be one */
  box-shadow: var(--shadow);
  display: block;
  margin: 0 auto 1.4rem;
}

h1 {
  font-size: clamp(2.1rem, 7vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.6rem;
  letter-spacing: -0.02em;
  color: var(--deep);
}

.tagline {
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  color: var(--ink-soft);
  margin: 0 auto;
  max-width: 32rem;
}

/* ---------------------------------------------------------------- buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 2rem;
}

.button {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  background: var(--paper);
  color: var(--sea);
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.button--primary {
  background: var(--sea);
  color: var(--paper);
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 3px; }

/* ---------------------------------------------------------------- content */

main { padding-bottom: 3rem; }

.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 5vw, 2.4rem);
  margin-bottom: 1.5rem;
}

.card h2 {
  font-size: 1.3rem;
  color: var(--deep);
  margin: 0 0 0.6rem;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--sea);
  margin: 1.6rem 0 0.4rem;
}

.card h3:first-of-type { margin-top: 0.4rem; }

.card p, .card li { color: var(--ink); }

.card ul { padding-left: 1.2rem; }

.card li { margin-bottom: 0.4rem; }

.page-title {
  text-align: center;
  padding: 2.6rem 0 1.6rem;
}

.page-title h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }

.meta {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0;
}

a { color: var(--sea); }
a:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 2px; }

/* A question and its answer, for the support FAQ. */
.faq dt {
  font-weight: 600;
  color: var(--deep);
  margin-top: 1.4rem;
}

.faq dd {
  margin: 0.35rem 0 0;
  color: var(--ink);
}

.faq dd ul { margin: 0.4rem 0 0; }

/*
  The unfilled support address. Loud on purpose: this must never reach production
  looking like ordinary text, and there is no script here to catch it for us.
*/
.placeholder {
  display: inline-block;
  background: #fff3c4;
  color: #6b4b00;
  border: 2px dashed #b8860b;
  border-radius: 8px;
  padding: 0.1rem 0.45rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  font-weight: 600;
  word-break: break-all;
}

.note {
  background: #fff8e1;
  border-left: 4px solid #b8860b;
  border-radius: 0 10px 10px 0;
  padding: 0.9rem 1.1rem;
  margin: 1.2rem 0 0;
  font-size: 0.95rem;
  color: #5b4300;
}

/* ---------------------------------------------------------------- footer */

footer {
  background: var(--abyss);
  color: var(--shallow);
  padding: 2.2rem 0;
  text-align: center;
  font-size: 0.95rem;
}

footer a { color: var(--paper); }

footer nav {
  margin-top: 0.7rem;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- motion */

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
}

/* ---------------------------------------------------------------- desktop */

@media (min-width: 48rem) {
  body { font-size: 18px; }
  .hero { padding: 5rem 0 3rem; }
  .icon { width: 160px; height: 160px; border-radius: 36px; }
}
