@import "../assets/fonts/fonts.css";

:root {
  --bg: #070706;
  --bg-raise: #12100e;
  --bone: #f3eee6;
  --bone-dim: #b7b0a4;
  --ember: #d4653a;
  --ember-deep: #8d3d22;
  --line: rgba(243, 238, 230, 0.14);
  --ink: var(--bone);
  --muted: var(--bone-dim);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --text: Outfit, "Segoe UI", sans-serif;
  --pad: clamp(1.1rem, 3vw, 2rem);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 90% 50% at 50% -12%, rgba(212, 101, 58, 0.14), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
}

::selection {
  background: var(--ember);
  color: #1a0c08;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--bone);
  color: #1a0c08;
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus {
  top: 0.6rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem var(--pad);
  background: rgba(7, 7, 6, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  background: #070706;
  border: 1px solid var(--line);
}

.brand-mark img {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem 1.15rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone);
  border: 1px solid var(--line);
  padding: 0.5rem 0.85rem;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--bone);
  border-color: var(--ember);
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(2.2rem, 6vw, 4.5rem) var(--pad) clamp(3rem, 8vw, 5.5rem);
}

.hero h1 {
  margin: 0;
  max-width: min(400px, 100%);
  min-width: 0;
}

.hero h1 img {
  width: 100%;
  display: block;
}

.lede {
  margin: 0.4rem 0 0;
  max-width: 28rem;
  color: var(--bone-dim);
  font-weight: 300;
  font-size: 1.2rem;
}

.rule {
  width: 3.2rem;
  height: 2px;
  margin: 1.5rem auto 0;
  background: var(--ember);
  border: 0;
}

.doors {
  width: min(920px, 100%);
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  text-align: left;
}

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 11.5rem;
  padding: 1.35rem 1.35rem 1.5rem;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.door:hover {
  transform: translateY(-3px);
}

.door-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 0.85;
  letter-spacing: 0.01em;
}

.door-note {
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.door-go {
  position: absolute;
  right: 1.1rem;
  bottom: 0.9rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
}

.door-games {
  background: var(--bg-raise);
  color: var(--bone);
  border: 1px solid var(--line);
}

.door-games:hover {
  border-color: rgba(212, 101, 58, 0.85);
}

.door-kids {
  background: linear-gradient(165deg, #f5fcff 0%, #fff6ea 100%);
  color: #163044;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.door-kids .kicker {
  color: #1a6f8a;
}

.door-kids .door-note {
  color: #3e6278;
}

.kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ember);
}

.band {
  border-top: 1px solid var(--line);
}

.wrap {
  width: min(1080px, calc(100% - (var(--pad) * 2)));
  margin: 0 auto;
}

.workshop,
.contact,
.page-head,
.catalog,
.elsewhere {
  padding: clamp(3rem, 7vw, 5.2rem) 0;
}

.workshop h2,
.page-head h1,
.lost h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6.4rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
}

.workshop .dek {
  max-width: 36rem;
  margin-top: 1.1rem;
}

.columns {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1.6rem 2rem;
  margin-top: 1.8rem;
}

.columns p,
.dek,
.pitch,
.where,
.elsewhere p,
.lost p {
  margin: 0;
  color: var(--muted);
}

.contact .mail {
  display: inline-block;
  margin-top: 0.7rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 2px solid var(--ember);
}

.contact .mail:hover {
  color: var(--ember);
}

.contact p {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  align-items: baseline;
  padding: 1.2rem var(--pad) 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 101, 58, 0.7);
}

.site-footer a:hover {
  color: var(--ember);
}

.site-footer a.legal {
  border-bottom: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.4;
}

.site-footer a.legal:hover {
  opacity: 1;
  color: var(--bone);
}

.page-head .dek {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: 1.15rem;
}

.policy {
  padding-bottom: 4rem;
}

.policy h2 {
  margin: 2rem 0 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  line-height: 1;
}

.policy p,
.policy li {
  max-width: 40rem;
  color: var(--muted);
}

.policy ul {
  margin: 0.4rem 0 0;
  padding-left: 1.1rem;
}

.policy a {
  color: var(--bone);
}

.catalog {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-top: 0;
}

.title-card {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  background: #0c0b0a;
  border: 1px solid var(--line);
}

.title-card figure {
  position: relative;
  margin: 0;
  min-height: 340px;
  background: #061018;
  overflow: hidden;
}

.title-card img.cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.title-copy {
  padding: clamp(1.4rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title-copy h2 {
  margin: 0.45rem 0 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: 0.84;
  letter-spacing: -0.02em;
}

.pitch {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.where {
  margin-top: 0.9rem;
  font-size: 0.95rem;
}

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

.tags li {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-dim);
}

.status {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.elsewhere a {
  color: var(--bone);
}

.lost {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem var(--pad) 5rem;
  width: min(760px, 100%);
}

.lost p {
  margin-top: 1rem;
  max-width: 32rem;
}

.text-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: var(--bone);
  text-decoration: none;
  border-bottom: 1px solid var(--ember);
  width: fit-content;
}

.text-link:hover {
  color: var(--ember);
}

body.page-kids {
  --ink: #163044;
  --muted: #3c6176;
  --line: rgba(22, 48, 68, 0.12);
  color: var(--ink);
  color-scheme: light;
  background:
    radial-gradient(ellipse 80% 42% at 50% -8%, rgba(255, 214, 130, 0.55), transparent 60%),
    linear-gradient(180deg, #d9f1fb 0%, #eef8fc 42%, #f8f3e8 100%);
}

body.page-kids ::selection {
  background: #ffd36a;
  color: #163044;
}

body.page-kids :focus-visible {
  outline-color: #1a6f8a;
}

body.page-kids .nav {
  background: rgba(238, 248, 252, 0.82);
  border-bottom-color: var(--line);
}

body.page-kids .brand-mark {
  display: none;
}

body.page-kids .nav-links a {
  color: #163044;
  border-color: rgba(22, 48, 68, 0.2);
}

body.page-kids .nav-links a:hover,
body.page-kids .nav-links a[aria-current="page"] {
  color: #163044;
  border-color: #1a6f8a;
}

body.page-kids .kicker,
body.page-kids .status {
  color: #1a6f8a;
}

body.page-kids .page-head h1,
body.page-kids .title-copy h2,
body.page-kids .dek,
body.page-kids .pitch,
body.page-kids .where,
body.page-kids .elsewhere p {
  font-family: Nunito, "Segoe UI", sans-serif;
}

body.page-kids .page-head h1 {
  font-size: clamp(3rem, 8vw, 5.1rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

body.page-kids .title-card {
  background: rgba(255, 255, 255, 0.72);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(22, 48, 68, 0.08);
  overflow: hidden;
}

body.page-kids .title-card figure {
  background: #8fd4ef;
  min-height: 320px;
}

body.page-kids .title-copy h2 {
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

body.page-kids .tags li {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  text-transform: none;
  font-family: Nunito, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: #245068;
  padding: 0.32rem 0.7rem;
}

body.page-kids .badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(20, 60, 80, 0.18);
}

body.page-kids .site-footer {
  color: #4d7386;
}

body.page-kids .site-footer a,
body.page-kids .elsewhere a,
body.page-kids .text-link {
  color: #163044;
  border-bottom-color: #e07a4c;
}

body.page-kids .site-footer a.legal {
  color: #4d7386;
  border-bottom: none;
  opacity: 0.55;
}

body.page-kids .site-footer a.legal:hover {
  color: #163044;
  opacity: 1;
}

body.page-kids .site-footer a:hover,
body.page-kids .text-link:hover {
  color: #b64a32;
}

@media (max-width: 800px) {
  .doors,
  .columns,
  .title-card {
    grid-template-columns: 1fr;
  }

  .title-card figure {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .brand-name {
    letter-spacing: 0.08em;
    font-size: 1.15rem;
  }
}

@media (max-width: 520px) {
  .nav {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.45rem;
  }

  .nav-links {
    flex-basis: 100%;
    justify-content: flex-start;
    gap: 0.9rem;
  }

  .contact .mail {
    font-size: 1.7rem;
    overflow-wrap: anywhere;
  }
}

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

  .door {
    transition: none;
  }
}
