/* Sweet Planet Games — shared styles
   Palette: bright purple. Fonts: Sansita (headings), Nunito Sans (body). */

:root {
  --lightest: #FBF8FF;
  --light: #EADFFF;
  --bright: #7A2CF5;
  --bright-hover: #6620D6;
  --dark: #3D1D80;
  --darkest: #1B1030;

  --radius: 28px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --max: 1160px;

  --font-head: "Sansita", Georgia, serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--lightest);
  color: var(--darkest);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--bright); text-underline-offset: 3px; }
a:hover { color: var(--bright-hover); }

:focus-visible {
  outline: 3px solid var(--bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--darkest);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: 999px;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: #fff; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--darkest);
}
h1 { font-size: clamp(2.6rem, 7.5vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }

p { margin: 0 0 1.2rem; }

.wrap { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--lightest) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--dark) 12%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .9rem;
}
.logo {
  white-space: nowrap;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--darkest);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.logo:hover { color: var(--bright); }
.logo-dot {
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--bright);
  position: relative;
  flex: none;
}
.logo-dot::after {
  content: "";
  position: absolute;
  inset: 45% -35% auto -35%;
  height: 2px;
  background: var(--darkest);
  transform: rotate(-22deg);
  border-radius: 2px;
}
.nav { display: flex; align-items: center; gap: .4rem; }
.nav a {
  color: var(--darkest);
  text-decoration: none;
  font-weight: 700;
  padding: .5rem .9rem;
  border-radius: 999px;
}
.nav a:hover { background: var(--light); color: var(--darkest); }
.nav a[aria-current="page"] { background: var(--light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .95rem;
  background: var(--bright);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 1rem 2.1rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { background: var(--bright-hover); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-ghost {
  background: transparent;
  color: var(--darkest);
  box-shadow: inset 0 0 0 2px var(--darkest);
}
.btn-ghost:hover { background: var(--darkest); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--light);
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 2rem;
  min-height: min(78vh, 720px);
  padding-block: clamp(3rem, 8vw, 6rem);
}
.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--lightest);
  padding: .4rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--bright);
}
.hero .lede {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* decorative planet (pure CSS, no images) */
.planet-stage {
  position: relative;
  aspect-ratio: 1;
  width: min(100%, 440px);
  justify-self: center;
}
.planet {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: var(--bright);
  box-shadow: inset -26px -22px 0 0 var(--dark);
}
.planet::before, .planet::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--light);
  opacity: .9;
}
.planet::before { width: 22%; height: 22%; left: 20%; top: 18%; }
.planet::after { width: 12%; height: 12%; left: 52%; top: 52%; }
.ring {
  position: absolute;
  inset: 34% -2%;
  border: 14px solid var(--darkest);
  border-radius: 50%;
  transform: rotate(-18deg);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}
.dot {
  position: absolute;
  border-radius: 50%;
  background: var(--darkest);
}
.dot.d1 { width: 5%; height: 5%; left: 6%; top: 16%; background: var(--bright); }
.dot.d2 { width: 3.5%; height: 3.5%; right: 10%; top: 10%; }
.dot.d3 { width: 7%; height: 7%; right: 4%; bottom: 14%; background: var(--dark); }
.dot.d4 { width: 4%; height: 4%; left: 14%; bottom: 8%; }

@media (prefers-reduced-motion: no-preference) {
  .planet-stage { animation: bob 7s ease-in-out infinite; }
  .dot.d1 { animation: bob 5s ease-in-out infinite reverse; }
  .dot.d3 { animation: bob 6s ease-in-out infinite; }
  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }
}

/* ---------- Three words band ---------- */
.band {
  background: var(--darkest);
  color: var(--lightest);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}
.band .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem 2rem;
}
.band p {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.band p:nth-child(2) { color: var(--light); }
.band p:nth-child(3) { color: #B98CFF; }

/* ---------- Contact ---------- */
.contact { padding-block: clamp(3.5rem, 9vw, 7rem); }
.contact .wrap {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact-copy .email {
  display: inline-block;
  margin-top: .4rem;
  font-weight: 800;
  font-size: 1.1rem;
}
.form-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
label { display: block; font-weight: 800; margin-bottom: .35rem; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  font: inherit;
  color: var(--darkest);
  background: var(--lightest);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: .85rem 1rem;
}
input:hover, textarea:hover { border-color: color-mix(in srgb, var(--bright) 40%, transparent); }
input:focus, textarea:focus { outline: none; border-color: var(--bright); }
textarea { min-height: 9rem; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }
.form-note { font-size: .9rem; margin: 1rem 0 0; color: var(--dark); }
.status { margin: 1rem 0 0; font-weight: 800; min-height: 1.5em; }
.status.ok { color: var(--dark); }
.status.err { color: #B0123A; }

/* ---------- About page ---------- */
.page-hero { background: var(--light); }
.page-hero .wrap { padding-block: clamp(3.5rem, 9vw, 7rem); }
.page-hero .lede { font-size: clamp(1.15rem, 2.2vw, 1.4rem); max-width: 36rem; margin-bottom: 2rem; }
.soon {
  padding-block: clamp(3rem, 8vw, 5rem);
}
.soon .card {
  background: var(--darkest);
  color: var(--lightest);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 5vw, 3.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.soon .card h2 { color: var(--lightest); margin: 0; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.soon .card .btn { background: var(--lightest); color: var(--darkest); }
.soon .card .btn:hover { background: var(--light); color: var(--darkest); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--lightest);
  border-top: 1px solid color-mix(in srgb, var(--dark) 15%, transparent);
  padding-block: 2rem;
  font-size: .95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem 2rem;
}
.site-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .hero .wrap { min-height: 0; }
  .planet-stage { width: min(78%, 320px); order: -1; }
  .band .wrap { flex-direction: column; }
}
@media (max-width: 480px) {
  .logo { font-size: 1.15rem; white-space: nowrap; gap: .45rem; }
  .logo-dot { width: 1.05rem; height: 1.05rem; }
  .nav { gap: .1rem; }
  .nav a:first-child { display: none; } /* logo already links home */
  .nav a { padding: .45rem .65rem; }
  .btn { width: 100%; text-align: center; }
  .hero-actions { flex-direction: column; }
}
