/* Project Kinfield's website. The palette is the game's own UI kit (CozySkin.Palette); the fonts are the kit's
   Fredoka and Nunito. One file, no inline styles anywhere: the Content-Security-Policy allows styles from here only. */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --space: #0b1420;
  --inset: #101b29;
  --glass-top: #243750;
  --glass-bottom: #182638;
  --glass-high: #2f4764;
  --cream: #eef5ff;
  --body: #d6e2f1;
  --muted: #a9bcd2;
  --accent: #8ed6f8;
  --accent-high: #c6edff;
  --accent-deep: #4aa3dc;
  --ink: #13253a;
  --honey: #ffc46b;
  --honey-high: #ffda96;
  --honey-deep: #ee9a4a;
  --leaf: #9be08a;
  --lilac: #c79bf2;
  --rose: #ff7a8a;
  --radius: 18px;
  --gutter: 16px;
  --max: 1160px;
  --header: 64px;
  --font-display: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--space);
  background-image:
    radial-gradient(1100px 620px at 85% -8%, rgba(74, 163, 220, 0.16), transparent 62%),
    radial-gradient(900px 520px at -12% 38%, rgba(199, 155, 242, 0.09), transparent 62%),
    radial-gradient(800px 600px at 110% 78%, rgba(127, 220, 196, 0.07), transparent 60%);
  color: var(--body);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: hidden;
}

/* A quiet starfield behind everything (the game's sky over the ISV Concordia). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 18px 26px, #eef5ff, transparent 60%),
    radial-gradient(1px 1px at 96px 140px, #c6edff, transparent 60%),
    radial-gradient(1.5px 1.5px at 182px 64px, #eef5ff, transparent 60%),
    radial-gradient(1px 1px at 251px 201px, #8ed6f8, transparent 60%),
    radial-gradient(1px 1px at 311px 37px, #eef5ff, transparent 60%),
    radial-gradient(1.5px 1.5px at 57px 233px, #c79bf2, transparent 60%),
    radial-gradient(1px 1px at 139px 279px, #eef5ff, transparent 60%),
    radial-gradient(1px 1px at 289px 297px, #c6edff, transparent 60%);
  background-size: 340px 320px;
}

img {
  max-width: 100%;
}

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

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  line-height: 1.15;
  margin: 0 0 14px;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.9rem, 1.35rem + 2.1vw, 2.75rem);
}
h3 {
  font-size: 1.3rem;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
strong {
  color: var(--cream);
  font-weight: 800;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--honey);
  color: var(--ink);
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 10px;
}
.skip:focus {
  left: 16px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 20, 32, 0.84);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(47, 71, 100, 0.65);
}
.site-header .bar {
  max-width: var(--max);
  min-height: var(--header);
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand {
  display: block;
  flex: none;
  border-radius: 8px;
}
.brand img {
  display: block;
  height: 42px;
  width: auto;
}
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px 22px;
}
.nav a {
  color: var(--muted);
  font-weight: 800;
  font-size: 0.97rem;
  text-decoration: none;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cream);
}
.nav .btn {
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav .nav-link {
    display: none;
  }
  .brand img {
    height: 36px;
  }
}

/* ---- Buttons --------------------------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.1;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--honey-high), var(--honey));
  border-color: var(--honey-deep);
  box-shadow: 0 8px 22px rgba(238, 154, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary:hover {
  color: var(--ink);
  filter: brightness(1.06);
}
.btn-glass {
  color: var(--cream);
  background: linear-gradient(180deg, rgba(47, 71, 100, 0.92), rgba(24, 38, 56, 0.92));
  border-color: var(--glass-high);
  box-shadow: inset 0 1px 0 rgba(198, 237, 255, 0.16);
}
.btn-glass:hover {
  color: var(--cream);
  border-color: var(--accent-deep);
}
.btn-small {
  min-height: 40px;
  padding: 0 18px;
  font-size: 0.98rem;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Hero ------------------------------------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(88vh, 780px);
}
.hero-art,
.hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-art {
  z-index: -2;
}
.hero-art img {
  object-fit: cover;
  object-position: 30% 45%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 20, 32, 0) 34%, rgba(11, 20, 32, 0.6) 58%, rgba(11, 20, 32, 0.92) 82%),
    linear-gradient(0deg, var(--space) 0%, rgba(11, 20, 32, 0) 26%);
}
.hero-content {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px var(--gutter);
  display: flex;
  justify-content: flex-end;
}
.hero-card {
  max-width: 520px;
  text-align: center;
}
.hero h1 {
  margin: 0 0 6px;
}
.hero h1 img {
  display: block;
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
}
.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.55rem);
  line-height: 1.3;
  color: var(--cream);
  margin: 0 0 12px;
}
.hero-sub {
  color: var(--body);
  margin: 0 auto 22px;
  max-width: 470px;
}
.hero .actions {
  justify-content: center;
}
.facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.facts li {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-high);
  background: rgba(16, 27, 41, 0.72);
  color: var(--accent-high);
  font-weight: 800;
  font-size: 0.88rem;
}

/* Phones: the portrait crop at its own shape (Cinderhug and the player), the title over its faded foot. */
@media (max-width: 760px) {
  .hero {
    display: block;
    min-height: 0;
  }
  .hero-art {
    position: relative;
    inset: auto;
    display: block;
    height: auto;
  }
  .hero-art img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  .hero::after {
    display: none;
  }
  .hero-art::after {
    content: "";
    position: absolute;
    inset: 0 0 -2px;
    background: linear-gradient(0deg, var(--space) 4%, rgba(11, 20, 32, 0.6) 24%, rgba(11, 20, 32, 0) 46%);
  }
  .hero-content {
    position: relative;
    justify-content: center;
    margin-top: -30vw;
    padding-top: 0;
    padding-bottom: 34px;
  }
}

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

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px var(--gutter);
}
.section-tight {
  padding-top: 24px;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.84rem;
  margin: 0 0 10px;
}
.lead {
  font-size: 1.18rem;
  color: var(--cream);
}
.intro {
  max-width: 760px;
}
.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 44px;
  align-items: center;
}
.feature.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.feature.flip .feature-text {
  order: 2;
}
@media (max-width: 880px) {
  .feature,
  .feature.flip {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .feature.flip .feature-text {
    order: 0;
  }
}

.divider {
  max-width: var(--max);
  margin: 0 auto;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--glass-high), transparent);
}

/* Screenshots: each card links to the full-size picture. */
.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.shots .wide {
  grid-column: 1 / -1;
}
.shot {
  margin: 0;
}
.shot a {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--glass-high);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38);
  background: var(--inset);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.shot a:hover img {
  transform: scale(1.025);
}
.shot figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}
@media (max-width: 520px) {
  .shots {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The window look of the game's UI kit. */
.panel {
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  border: 1px solid var(--glass-high);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(198, 237, 255, 0.13), 0 18px 40px rgba(0, 0, 0, 0.32);
  padding: 26px;
}

.chips {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--glass-high);
  background: rgba(16, 27, 41, 0.75);
  color: var(--cream);
  font-weight: 800;
  font-size: 0.9rem;
}

/* ---- A dated event (Steam Next Fest) ----------------------------------------------------------------------- */

.section-callout {
  padding-top: 16px;
  padding-bottom: 0;
}
.callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 36px;
  align-items: center;
  border-color: rgba(255, 196, 107, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 218, 150, 0.18), 0 18px 40px rgba(0, 0, 0, 0.32);
}
.callout .eyebrow {
  color: var(--honey);
}
.callout h2 {
  margin-bottom: 8px;
}
.callout p:last-child {
  margin-bottom: 0;
}
@media (max-width: 760px) {
  .callout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- The Kin --------------------------------------------------------------------------------------------- */

.kin-grid {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.kin-card {
  margin: 0;
  height: 100%;
  padding: 10px 10px 12px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--glass-high);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
  box-shadow: inset 0 1px 0 rgba(198, 237, 255, 0.12);
}
.kin-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 11px;
  background: #e8edf4;
}
.kin-card figcaption {
  margin-top: 8px;
}
.kin-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--cream);
}
.kin-note {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--muted);
}
.kin-card.demon {
  border-color: rgba(255, 122, 138, 0.5);
}
.kin-card.demon .kin-note {
  color: #ffb3bd;
}
@media (max-width: 380px) {
  .kin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Free to play ---------------------------------------------------------------------------------------- */

.fair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 40px;
  align-items: center;
}
.fair h2 {
  margin-bottom: 8px;
}
.fair ul {
  margin: 0;
  padding: 0 0 0 1.2em;
}
.fair li {
  margin: 0 0 8px;
}
.fair li::marker {
  color: var(--leaf);
}
@media (max-width: 760px) {
  .fair {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Numbers --------------------------------------------------------------------------------------------- */

.stats {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
@media (min-width: 900px) {
  .stats.six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.stat {
  padding: 20px 22px;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--accent);
}
.stat span {
  display: block;
  margin-top: 4px;
  color: var(--body);
  font-weight: 800;
  line-height: 1.35;
}

/* ---- The road ahead -------------------------------------------------------------------------------------- */

.timeline {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  max-width: 760px;
}
.timeline li {
  position: relative;
  padding: 0 0 24px 38px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--inset);
  border: 2px solid var(--accent);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 25px;
  bottom: 2px;
  width: 2px;
  background: var(--glass-high);
}
.timeline li:last-child {
  padding-bottom: 0;
}
.timeline li:last-child::after {
  display: none;
}
.timeline li.done::before {
  background: var(--leaf);
  border-color: var(--leaf);
}
.timeline + .note {
  margin: 22px 0 18px;
}
.timeline .when {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--cream);
}

/* ---- How it's made ---------------------------------------------------------------------------------------- */

.page-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px var(--gutter) 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 32px;
  align-items: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.4rem);
}
.page-hero img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 36px;
  }
  .page-hero img {
    max-width: 180px;
    order: -1;
  }
}

.made-by {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  border: 1px solid var(--glass-high);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom));
}
.made-by dt,
.made-by dd {
  margin: 0;
  padding: 16px 20px;
  border-top: 1px solid rgba(47, 71, 100, 0.7);
}
.made-by dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
}
.made-by dt:first-of-type,
.made-by dt:first-of-type + dd {
  border-top: 0;
}
@media (max-width: 640px) {
  .made-by {
    grid-template-columns: minmax(0, 1fr);
  }
  .made-by dd {
    border-top: 0;
    padding-top: 0;
  }
}

.cards {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.cards .panel {
  height: 100%;
  padding: 22px 22px 8px;
}
.cards h3 {
  margin-bottom: 8px;
}
.cards .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.walls .panel {
  border-color: rgba(255, 196, 107, 0.4);
}
.walls h3 {
  color: var(--honey-high);
}

.days {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 0 24px;
  max-width: 860px;
}
.days dt,
.days dd {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(47, 71, 100, 0.7);
}
.days dt {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--accent);
}
@media (max-width: 560px) {
  .days {
    grid-template-columns: minmax(0, 1fr);
  }
  .days dd {
    border-top: 0;
    padding-top: 0;
  }
}

.cta {
  text-align: center;
}
.cta .actions {
  justify-content: center;
}

/* ---- Not found ------------------------------------------------------------------------------------------- */

.lost {
  max-width: 640px;
  margin: 0 auto;
  padding: 96px var(--gutter);
  text-align: center;
}
.lost img {
  width: 200px;
  height: auto;
}
.lost .actions {
  justify-content: center;
}

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

.site-footer {
  margin-top: 32px;
  border-top: 1px solid rgba(47, 71, 100, 0.65);
  background: rgba(11, 20, 32, 0.6);
}
.site-footer .bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px var(--gutter) 46px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer img {
  display: block;
  height: 46px;
  width: auto;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.site-footer a {
  color: var(--body);
  font-weight: 800;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--cream);
  text-decoration: underline;
}
.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
