/* Dancing Tree Studio: light, warm paper, the logo's colours (brown ink, sage, peach). */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --paper: #fbf6ec;
  --paper-deep: #f3e9d8;
  --card: #fffdf8;
  --ink: #4f362f;
  --ink-soft: #7a6156;
  --brand: #78504a;
  --sage: #7f9a6c;
  --sage-soft: #e6eedd;
  --peach: #e9b493;
  --peach-soft: #f8e6d9;
  --line: #e8dcc8;
  --shadow: 0 1px 2px rgba(79, 54, 47, 0.06), 0 8px 28px rgba(79, 54, 47, 0.08);
  --radius: 18px;
  --wide: 1120px;
  --narrow: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.65 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--brand);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
}

h3 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--brand);
  text-decoration-color: var(--peach);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

.kicker {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

/* ── header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--brand);
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  color: var(--sage);
  margin-top: -2px;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  color: var(--ink-soft);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--brand);
}

/* ── buttons ────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.button.primary {
  background: var(--brand);
  color: #fff8ee;
  box-shadow: 0 4px 14px rgba(120, 80, 74, 0.28);
}

.button.primary:hover {
  background: #66423d;
  color: #fff8ee;
  transform: translateY(-1px);
}

.button.ghost {
  color: var(--brand);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--line);
}

.button.ghost:hover {
  box-shadow: inset 0 0 0 2px var(--peach);
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 4.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  background: radial-gradient(circle, #fff3dc 0%, rgba(255, 243, 220, 0) 65%);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2.5rem;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34em;
}

.hero-tree {
  width: min(440px, 100%);
  margin-inline: auto;
  transform-origin: 50% 92%;
  animation: dance 6s ease-in-out infinite;
}

/* The tree sways from its root, slowly, like the end of the studio intro. */
@keyframes dance {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.2deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tree { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── sections ───────────────────────────────────────────────────────────── */

section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40em;
  margin-bottom: 2.2rem;
}

.section-head p {
  color: var(--ink-soft);
}

.band {
  background: var(--paper-deep);
}

/* ── the catalogue ──────────────────────────────────────────────────────── */

.games {
  display: grid;
  gap: 2rem;
}

.game {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* The game's own colours on its side of the card: its logo over a clip of play. */
.game-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.6rem;
  background: radial-gradient(ellipse at 50% 30%, #2c211c 0%, #120d0c 75%);
}

.game-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.game-logo {
  height: clamp(150px, 16vw, 210px);
  width: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.7));
}

.game-body {
  padding: 2rem 2.2rem 2.2rem;
}

.game-body h3 {
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.tags li {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--sage-soft);
  color: #5c7449;
}

.tags li.status {
  background: var(--peach-soft);
  color: #a3603b;
}

.unique {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.7rem;
}

.unique li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
}

.unique li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 60% 0 60% 0;
  background: var(--sage);
  rotate: -20deg;
}

.unique b {
  color: var(--brand);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.3rem;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.9rem 0.45rem 0.6rem;
  border-radius: 12px;
  border: 1.5px dashed var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.2;
}

.platform svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex: none;
}

.platform b {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  color: var(--ink);
  font-size: 1rem;
}

.more-soon {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.98rem;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}

/* ── about ──────────────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.facts li {
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1rem 1.2rem;
}

.facts b {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: var(--brand);
  font-size: 1.05rem;
}

.facts span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ── the journey page ───────────────────────────────────────────────────── */

.article .lead {
  font-size: 1.22rem;
  color: var(--ink-soft);
}

.article h2 {
  margin-top: 2.6rem;
}

.article p {
  font-size: 1.08rem;
}

figure {
  margin: 2rem 0;
}

figure img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card);
}

figcaption {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.7rem;
  text-align: center;
}

.wide-figure {
  width: min(1000px, 100vw - 2.5rem);
  margin-left: 50%;
  translate: -50% 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.2rem 1rem 3.6rem;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--sage-soft);
  color: #5c7449;
  font: 600 1rem/1.9rem "Fredoka", sans-serif;
  text-align: center;
}

.steps b {
  color: var(--brand);
}

.halvard {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto 1.15fr;
  align-items: center;
  gap: 0.8rem;
  max-width: 820px;
  margin-inline: auto;
}

.halvard img {
  border-radius: 12px;
  background: #0d0b0a;
}

.halvard .arrow {
  font: 600 2rem "Fredoka", sans-serif;
  color: var(--peach);
}

.halvard .pixel {
  image-rendering: pixelated;
  background: radial-gradient(circle at 50% 45%, #3a2c24, #120d0c);
  padding: 0.6rem;
}

.halvard .picked {
  outline: 3px solid var(--sage);
  outline-offset: 3px;
}

.note {
  background: var(--sage-soft);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  font-size: 1rem;
}

.cta-card {
  margin-top: 3rem;
  padding: 2rem;
  text-align: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.cta-card .buttons {
  justify-content: center;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.site-footer .legal {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: #a08d80;
}

/* ── small screens ──────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .hero .wrap,
  .game,
  .about {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .hero-tree {
    width: min(280px, 70%);
    order: -1;
  }

  .game-media {
    padding: 1.2rem;
  }

  .halvard {
    grid-template-columns: repeat(3, 1fr);
  }

  .halvard .arrow {
    display: none;
  }

  .halvard .pixel {
    grid-column: 1 / -1;
    width: min(260px, 70%);
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 17px;
  }

  .site-nav {
    gap: 0.9rem;
  }

  .site-nav a {
    font-size: 0.92rem;
  }

  .brand span {
    display: none;
  }

  .game-body {
    padding: 1.5rem;
  }
}
