/* Lamp Garden, website styles.
   The page sits in Sam's world: the day sky's seven bands by light, the
   night sky's by dark (lib/game/world_palette.dart), with the garden's
   ground at the foot of the page. The bands are hard steps, not a smooth
   fade, the way the app draws them.

   No word sits on the bare sky. Every block of text rides on a panel in
   the app's own dark teal (lib/theme/app_theme.dart), so its ink clears
   4.5:1 over the lightest band. There is no script, and nothing moves. */

@font-face {
  font-family: "Outfit";
  src: url("fonts/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Day sky, dayPalette.sky, from the top down. */
  --sky-1: #8e86c9;
  --sky-2: #9a91cf;
  --sky-3: #a89dd4;
  --sky-4: #b8aad9;
  --sky-5: #c9b8db;
  --sky-6: #d9c3d9;
  --sky-7: #e7cdd3;
  --ground-top: #a3d6c3;
  --ground: #6fae9f;
  --ground-ink: #0d1b1b;
  --ground-link: #0d1b1b;

  /* The panel is AppTheme.bgDark over the sky. Over the lightest band it
     reads about #2c3435: textPrimary on it is 12:1, textSecondary 8:1. */
  --panel: rgba(13, 27, 27, 0.86);
  --panel-edge: rgba(245, 249, 249, 0.14);
  --card: rgba(127, 207, 207, 0.1);
  --card-edge: rgba(127, 207, 207, 0.3);
  --ink: #f5f9f9; /* AppTheme.textPrimary */
  --ink-soft: #b8d4d4; /* AppTheme.textSecondary */
  --accent: #7fcfcf; /* AppTheme.primaryAccent */
  --lamp: #f2d68b; /* the lamp flower's light */
  --shadow: 0 10px 30px rgba(13, 27, 27, 0.25);
  --radius: 16px;
  --page: 64rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Night sky, nightPalette.sky. */
    --sky-1: #15152a;
    --sky-2: #17172d;
    --sky-3: #1a1a2e;
    --sky-4: #18203a;
    --sky-5: #16213e;
    --sky-6: #18264a;
    --sky-7: #1b2b52;
    --ground-top: #1f3f73;
    --ground: #123059;
    --ground-ink: #f5f9f9;
    --ground-link: #f5f9f9;

    --panel: rgba(26, 47, 47, 0.72); /* AppTheme.surfaceDark */
    --panel-edge: rgba(245, 249, 249, 0.1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--sky-1);
  background-image: linear-gradient(
    to bottom,
    var(--sky-1) 0 14.3%,
    var(--sky-2) 14.3% 28.6%,
    var(--sky-3) 28.6% 42.9%,
    var(--sky-4) 42.9% 57.1%,
    var(--sky-5) 57.1% 71.4%,
    var(--sky-6) 71.4% 85.7%,
    var(--sky-7) 85.7% 100%
  );
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
}

.pixel {
  image-rendering: pixelated;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

h1,
h2,
h3 {
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2rem, 6vw, 2.75rem);
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
  max-width: 62ch;
}

.container {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 0.5rem 1rem;
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  z-index: 10;
}

.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo,
.site-nav {
  display: flex;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.logo {
  gap: 0.6rem;
  padding: 0.35rem 1rem 0.35rem 0.4rem;
  color: var(--ink);
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.logo img {
  border-radius: 50%;
  image-rendering: pixelated;
}

.site-nav {
  gap: 0.25rem;
  padding: 0.25rem;
}

.site-nav a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

/* A small phone: the four links still fit on one line. */
@media (max-width: 400px) {
  .site-nav {
    gap: 0;
  }

  .site-nav a {
    padding: 0.35rem 0.55rem;
    font-size: 0.9rem;
  }
}

.site-nav a:hover {
  background: rgba(127, 207, 207, 0.16);
}

/* Panels */

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.25rem, 4vw, 2.25rem);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section {
  padding: 0.75rem 0;
}

.lead {
  color: var(--ink-soft);
}

.lead strong,
.panel strong {
  color: var(--ink);
}

/* Hero */

.hero {
  padding: 1.5rem 0 0.75rem;
}

.hero .panel {
  display: grid;
  gap: 1.5rem;
}

.tagline {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: clamp(1.2rem, 3.5vw, 1.5rem);
  color: var(--lamp);
  margin-bottom: 0.5rem;
}

.hero-note {
  color: var(--ink-soft);
}

.hero-art {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.hero-art img {
  width: 100%;
  image-rendering: pixelated;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stores li {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  background: var(--card);
  line-height: 1.3;
}

.store-name {
  font-weight: 600;
}

.store-state {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Cards */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-edge);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.card h3 {
  margin-bottom: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
}

.steps {
  padding-left: 1.4rem;
}

.steps li,
.plain-list li {
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
}

.steps li::marker {
  color: var(--lamp);
  font-weight: 600;
}

.plain-list {
  padding-left: 1.2rem;
}

/* The shared blocks platform writes: paragraphs and lists only. */

[data-dreangine] {
  color: var(--ink-soft);
}

[data-dreangine] ul {
  padding-left: 1.2rem;
}

[data-dreangine] li {
  margin-bottom: 0.35rem;
}

/* Text pages: the privacy policy, questions and help, 404 */

.text-page {
  padding: 1rem 0 1.5rem;
}

.text-page .panel {
  max-width: 48rem;
}

.text-page h2 {
  margin-top: 1.75rem;
}

.text-page h3 {
  margin-top: 1.25rem;
}

.text-page p,
.text-page li {
  color: var(--ink-soft);
}

.updated {
  font-size: 0.95rem;
}

/* Footer: the garden's ground */

.site-footer {
  margin-top: 1.5rem;
  background: var(--ground);
  border-top: 8px solid var(--ground-top);
  color: var(--ground-ink);
  padding: 1.25rem 0 1.5rem;
  font-size: 0.95rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.site-footer a {
  color: var(--ground-link);
}

.site-footer p {
  margin: 0;
}
