/* brambledash.com: the homepage, privacy and support pages. The game itself lives on game.brambledash.com. */

:root {
  --sky: #7ec8f2;
  --sky-deep: #4aa3d9;
  --hill: #9ad7a0;
  --hill-near: #7cc47f;
  --leaf: #4c9a4a;
  --earth: #8a5a3c;
  --ink: #1d2b3a;
  --ink-soft: #4a5a6a;
  --paper: #fffdf7;
  --fox: #f2994a;
  --fox-deep: #d9772a;
  --berry: #6b2d5c;
  --card: #ffffff;
  --radius: 18px;
  font: 500 17px/1.55 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 10px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

.wrap {
  width: min(1120px, 100% - 40px);
  margin-inline: auto;
}

/* --- Header ------------------------------------------------------------------ */

.top {
  position: relative;
  z-index: 2;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 18px;
}

.wordmark {
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark span {
  color: var(--berry);
}

.top nav {
  display: flex;
  gap: 20px;
  font-weight: 700;
}

.top nav a {
  color: var(--ink);
  text-decoration: none;
}

.top nav a:hover {
  text-decoration: underline;
}

/* --- Hero: the game's own sky and hills ---------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 45% at 12% 100%, var(--hill-near) 98%, transparent 100%),
    radial-gradient(ellipse 55% 40% at 88% 100%, var(--hill-near) 98%, transparent 100%),
    radial-gradient(ellipse 70% 50% at 50% 104%, var(--hill) 98%, transparent 100%),
    linear-gradient(var(--sky) 0%, #a9dbf6 100%);
  padding-bottom: 72px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 28px;
  background: linear-gradient(var(--leaf) 0 9px, var(--earth) 9px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 48px;
  padding-block: 32px 40px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  margin-bottom: 12px;
}

.hero .tagline {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  margin: 0 0 12px;
}

.hero .blurb {
  color: var(--ink);
  opacity: 0.85;
  margin: 0 0 28px;
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.button.play {
  background: var(--fox);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--fox-deep);
}

.button.play:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 var(--fox-deep);
}

.button.play:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--fox-deep);
}

/* Store badges: the stores' own artwork, at the sizes their guidelines give. */
.store {
  display: inline-flex;
  align-items: center;
  height: 52px;
  text-decoration: none;
}

.store img {
  height: 52px;
  width: auto;
  display: block;
}

/* Until the badge artwork is added, a plain link. */
.store .fallback {
  display: none;
  align-items: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.store.no-badge .fallback {
  display: inline-flex;
}

.soon {
  font-weight: 700;
  color: var(--ink);
  opacity: 0.8;
  margin: 14px 0 0;
}

.shot {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 6px solid var(--ink);
  box-shadow: 0 24px 50px -18px rgba(29, 43, 58, 0.55);
  background: var(--sky);
  aspect-ratio: 2 / 1;
  transform: rotate(1deg);
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Sections ------------------------------------------------------------------- */

section {
  padding-block: 72px;
}

.section-title {
  text-align: center;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: 0 1px 0 rgba(29, 43, 58, 0.06), 0 10px 30px -20px rgba(29, 43, 58, 0.4);
  border-top: 6px solid var(--accent, var(--fox));
}

.feature h3 {
  font-size: 22px;
  font-weight: 800;
}

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

.steps {
  background: #f1f7ec;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step-list li {
  counter-increment: step;
  text-align: center;
  padding: 0 8px;
}

.step-list li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  font-weight: 900;
  font-size: 22px;
}

.step-list strong {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
}

.step-list span {
  color: var(--ink-soft);
}

.closing {
  text-align: center;
}

.closing .actions {
  justify-content: center;
}

/* --- Text pages (privacy, support) ---------------------------------------------- */

.page {
  padding-block: 40px 80px;
}

.page .wrap {
  max-width: 760px;
}

.page h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 900;
}

.page h2 {
  font-size: 24px;
  font-weight: 800;
  margin-top: 40px;
}

.page h3 {
  font-size: 19px;
  font-weight: 800;
  margin-top: 26px;
  margin-bottom: 6px;
}

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

.page .updated {
  font-weight: 700;
  color: var(--ink);
  opacity: 0.7;
}

.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 16px;
}

.page th,
.page td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid #e6e1d6;
}

.page th {
  color: var(--ink);
}

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

kbd {
  font: 700 14px/1 system-ui, sans-serif;
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d8d2c6;
  box-shadow: 0 2px 0 #d8d2c6;
  color: var(--ink);
}

/* --- Footer --------------------------------------------------------------------- */

footer {
  background: var(--ink);
  color: #c9d3dd;
  padding-block: 32px;
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

footer a {
  color: #fff;
}

/* --- Small screens -------------------------------------------------------------- */

@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero .blurb {
    margin-inline: auto;
  }

  .actions {
    justify-content: center;
  }

  .features,
  .step-list {
    grid-template-columns: 1fr;
  }

  .shot {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
