/* Cindercrest Studios — shared stylesheet */

:root {
  --plum-900: #140a13;
  --plum-800: #1a0e18;
  --plum-700: #241220;
  --plum-600: #31192b;
  --cream: #fdf3ec;
  --cream-dim: #d9c6bf;
  --cream-faint: #ab9691;
  --magenta: #e8317a;
  --orange: #ff7a2f;
  --amber: #ffc043;
  --ember: linear-gradient(100deg, #e8317a 0%, #ff7a2f 55%, #ffc043 100%);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shell: 1140px;
  --font-head: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--plum-800);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange); }

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

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: #2a1200;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip:focus { left: 0; color: #2a1200; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid rgba(253, 243, 236, 0.1);
  background: var(--plum-900);
  position: relative;
  z-index: 5;
}

.site-header .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--cream);
  text-decoration: none;
  flex: 0 0 auto;
}

.wordmark svg { height: 30px; width: auto; display: block; }
.wordmark:hover { color: var(--amber); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--cream-dim);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.site-nav a:hover { color: var(--cream); background: rgba(253, 243, 236, 0.07); }

.site-nav a[aria-current="page"] {
  color: #2a0d14;
  background: var(--amber);
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header .shell { flex-direction: column; align-items: flex-start; }
  .site-nav, .site-nav ul { width: 100%; }
  .site-nav a { padding: 8px 12px; font-size: 0.9rem; }
}

/* ---------- sections ---------- */

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--plum-700); }
.section--deep { background: var(--plum-900); }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 14px;
}

.lede { font-size: 1.15rem; color: var(--cream-dim); max-width: 62ch; }

.gradient-text {
  background: var(--ember);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.divider { height: 6px; border: 0; margin: 0; background: var(--ember); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 30px;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--ember);
  color: #2a0d14;
  box-shadow: 0 12px 34px -14px rgba(232, 49, 122, 0.9);
}

.btn--primary:hover { color: #2a0d14; filter: brightness(1.08); }

.btn--ghost { border-color: rgba(253, 243, 236, 0.32); color: var(--cream); }
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); background: rgba(255, 192, 67, 0.08); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--plum-800);
  padding: 96px 0 88px;
  text-align: center;
}

.hero__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__art svg { width: 100%; height: 100%; display: block; }
.hero .shell { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 18px; }

.hero__sub {
  font-size: 1.2rem;
  color: var(--cream-dim);
  max-width: 60ch;
  margin: 0 auto 32px;
}

.hero .btn-row { justify-content: center; }

.hero__tag {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(255, 192, 67, 0.42);
  background: rgba(20, 10, 19, 0.78);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.spark { animation: drift 9s ease-in-out infinite alternate; }
.spark--b { animation-duration: 12s; animation-delay: -3s; }
.spark--c { animation-duration: 15s; animation-delay: -6s; }

@keyframes drift {
  from { transform: translateY(6px); opacity: 0.45; }
  to { transform: translateY(-14px); opacity: 1; }
}

/* ---------- page head ---------- */

.pagehead {
  background: var(--plum-900);
  padding: 66px 0 58px;
  border-bottom: 1px solid rgba(253, 243, 236, 0.09);
}

.pagehead h1 { margin-bottom: 14px; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--plum-600);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--cream-dim); font-size: 0.98rem; }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card__icon svg { width: 24px; height: 24px; display: block; }

.feature-card {
  background: var(--plum-600);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card__art { height: 180px; background: var(--plum-900); position: relative; }
.feature-card__art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-card__body { padding: 30px 30px 34px; }
.feature-card__body p { color: var(--cream-dim); }

/* ---------- news ---------- */

.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }

.news-list li {
  background: var(--plum-600);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}

.news-date {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.news-list h3 { font-size: 1.15rem; margin: 0; }
.news-list a { color: var(--cream); text-decoration: none; }
.news-list a:hover { color: var(--amber); text-decoration: underline; }

/* ---------- games ---------- */

.game {
  background: var(--plum-700);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 46px;
}

.game:last-child { margin-bottom: 0; }
.game__banner { height: 200px; background: var(--plum-900); position: relative; }
.game__banner svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.game__body { padding: 34px; }

.game__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 20px;
  padding: 0;
}

.game__meta li {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  background: rgba(253, 243, 236, 0.08);
  color: var(--cream-dim);
  border-radius: 999px;
  padding: 5px 14px;
}

.specs { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 28px; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 300px; }

caption {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  padding-bottom: 10px;
}

th, td {
  text-align: left;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid rgba(253, 243, 236, 0.11);
  vertical-align: top;
}

tbody th { color: var(--cream); font-weight: 600; white-space: nowrap; font-family: var(--font-head); font-size: 0.9rem; }
td { color: var(--cream-dim); }

/* ---------- team ---------- */

.team-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.person {
  background: var(--plum-600);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-radius: var(--radius);
  padding: 24px;
}

.person__avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--ember);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: #2a0d14;
  margin-bottom: 14px;
}

.person h3 { font-size: 1.12rem; margin-bottom: 2px; }

.person .role {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--amber);
  margin: 0 0 10px;
}

.person p { font-size: 0.94rem; color: var(--cream-dim); }

.factlist { margin: 0; display: grid; gap: 0 24px; grid-template-columns: max-content 1fr; }

.factlist dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-faint);
  padding: 9px 0;
  border-bottom: 1px solid rgba(253, 243, 236, 0.09);
}

.factlist dd {
  margin: 0;
  padding: 9px 0;
  color: var(--cream);
  border-bottom: 1px solid rgba(253, 243, 236, 0.09);
}

@media (max-width: 560px) {
  .factlist { grid-template-columns: 1fr; }
  .factlist dt { border-bottom: 0; padding-bottom: 0; }
}

/* ---------- careers ---------- */

.role-card {
  background: var(--plum-600);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 26px;
}

.role-card:last-child { margin-bottom: 0; }
.role-card h3 { margin-bottom: 4px; }

.role-loc {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--amber);
  margin: 0 0 18px;
}

.role-card h4 { margin: 22px 0 8px; color: var(--cream); }
.role-card ul { margin: 0; padding-left: 22px; color: var(--cream-dim); }
.role-card li { margin-bottom: 7px; }

.apply {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(253, 243, 236, 0.12);
  font-size: 0.95rem;
  color: var(--cream-dim);
}

/* ---------- press ---------- */

.kit {
  background: var(--plum-600);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-radius: var(--radius-lg);
  padding: 34px;
}

.kit__mark {
  background: var(--plum-900);
  border-radius: var(--radius);
  padding: 28px 26px;
  color: var(--cream);
  margin-bottom: 22px;
}

.kit__mark svg { height: 38px; width: auto; max-width: 100%; display: block; }

.swatches { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 0; padding: 0; }
.swatch { width: 130px; }

.swatch .chip {
  display: block;
  height: 62px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(253, 243, 236, 0.16);
  margin-bottom: 8px;
}

.swatch b { display: block; font-family: var(--font-head); font-size: 0.9rem; }
.swatch code { font-size: 0.82rem; color: var(--cream-faint); }

.chip--magenta { background: #e8317a; }
.chip--orange { background: #ff7a2f; }
.chip--amber { background: #ffc043; }
.chip--plum { background: #1a0e18; }
.chip--cream { background: #fdf3ec; }

.release {
  background: var(--plum-700);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 26px;
  scroll-margin-top: 28px;
}

.release:last-child { margin-bottom: 0; }

.release time {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}

.release h3 { margin-bottom: 16px; }
.release p { color: var(--cream-dim); }

.release .ends {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(253, 243, 236, 0.12);
  font-size: 0.9rem;
  color: var(--cream-faint);
}

.release .ends strong { color: var(--cream-dim); }

/* ---------- prose ---------- */

.prose { max-width: 72ch; }
.prose h2 { margin-top: 44px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--cream-dim); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.contact-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.contact-card {
  background: var(--plum-600);
  border: 1px solid rgba(253, 243, 236, 0.09);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p { color: var(--cream-dim); font-size: 0.95rem; }
.contact-card address { font-style: normal; color: var(--cream-dim); font-size: 0.95rem; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--plum-900);
  border-top: 1px solid rgba(253, 243, 236, 0.1);
  padding: 40px 0 46px;
  font-size: 0.92rem;
  color: var(--cream-faint);
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
}

.site-footer strong {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--cream);
  font-size: 1rem;
}

.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.site-footer a { color: var(--cream-dim); }
.site-footer a:hover { color: var(--amber); }

.ac-badge { font-size: 0.82rem; color: var(--cream-faint); }
.ac-badge a { color: var(--cream-faint); text-decoration: underline; text-underline-offset: 3px; }
.ac-badge a:hover { color: var(--cream-dim); }
