/* Valorwright Games — studio site
   Palette sampled from the studio mark: slate #182727, brass, steel.
   Cinzel and Source Sans 3 are self-hosted (SIL OFL). No third-party requests. */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #182727;
  --bg-deep: #101918;
  --raised: #1e2c2b;
  --ink: #f6f1e7;
  --muted: #d2c8b8;
  --brass: #e4cfa8;
  --brass-deep: #c4a36a;
  --steel: #d7dee3;
  --line: rgba(228, 207, 168, 0.32);
  --serif: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 68rem;
  --lab: #0b1320;
  --lab-ink: #e7f4f8;
  --lab-muted: #c5d5de;
  --cyan: #b6ecf8;
  --amber: #f0c27a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color-scheme: dark;
}

main {
  flex: 1;
}

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

a {
  color: var(--brass);
  text-underline-offset: 0.16em;
}

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

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

::selection {
  background: #b8894f;
  color: #1a1208;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-200%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.45rem 0.75rem;
  z-index: 30;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #182727;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding-block: 0.85rem;
}

.brand {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brass);
  font-size: 0.92rem;
}

.brand:hover {
  color: var(--ink);
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--steel);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}

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

nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--brass);
}

.hero {
  padding: 1.35rem 0 2.75rem;
  text-align: center;
}

.crest {
  display: block;
  width: min(100%, 20rem);
  margin: 0 auto;
}

.hero h1 {
  margin: 0.1rem 0 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.7rem, 7.4vw, 5.05rem);
  letter-spacing: 0.045em;
  line-height: 0.95;
  color: #f3e6cf;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  text-wrap: balance;
}

.hero h1 .legal {
  display: block;
  margin-top: 0.55rem;
  font-size: clamp(0.82rem, 2vw, 1.2rem);
  letter-spacing: 0.34em;
  font-weight: 600;
  color: var(--steel);
  text-shadow: none;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.55rem;
  margin: 1rem 0 0;
  color: var(--steel);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.mark {
  margin: 0.9rem 0 0;
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}

.lede {
  max-width: 36rem;
  margin: 1.6rem auto 0;
  text-align: left;
}

.lede p,
.prose p {
  margin: 0 0 1rem;
}

.lede p:last-child,
.prose p:last-child {
  margin-bottom: 0;
}

.section {
  padding: 2.4rem 0 2.8rem;
}

.band {
  border-top: 1px solid rgba(228, 207, 168, 0.18);
}

.section-title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.3vw, 1.45rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-title::before {
  content: "";
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  margin: 0 auto 0.7rem;
  background: var(--brass);
  transform: rotate(45deg);
}

.game-card a {
  display: grid;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  background: var(--raised);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 244, 220, 0.05), 0 16px 36px rgba(0, 0, 0, 0.22);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.game-card a:hover {
  border-color: var(--brass);
  background: #243433;
  color: inherit;
}

.game-card img {
  width: 6.25rem;
  justify-self: center;
}

.kicker {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

.game-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.card-tag {
  margin: 0.2rem 0 0.55rem;
  color: var(--steel);
  font-weight: 600;
}

.card-copy {
  margin: 0;
  color: var(--muted);
}

.cta {
  display: inline-block;
  margin: 0.85rem 0 0;
  color: var(--brass);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.game-card a:hover .cta {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.contact-band {
  background: #142220;
  border-top: 1px solid rgba(228, 207, 168, 0.18);
}

.contact-inner {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.mail {
  display: inline-block;
  margin-top: 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  letter-spacing: 0.03em;
  font-weight: 700;
  text-decoration: none;
}

.mail:hover {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.where {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
  padding: 1.8rem 0 2.2rem;
  color: var(--muted);
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-family: var(--serif);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  font-size: 0.85rem;
}

.footer-place {
  margin: 0.35rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.2rem;
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
}

.footer-links a {
  color: var(--steel);
  font-weight: 600;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--brass);
}

.copyright {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

.social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.1rem;
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
}

.social a {
  color: var(--steel);
  text-decoration: none;
  font-weight: 600;
}

.social a:hover {
  color: var(--brass);
}

/* DNA Forge — lab canvas inside the studio frame */
body.page-game {
  background: var(--lab);
}

.game-main {
  background: var(--lab);
  color: var(--lab-ink);
}

.game-hero {
  margin: 0;
  background: var(--lab);
}

.game-hero h1 {
  margin: 0;
  line-height: 0;
}

.game-hero img {
  display: block;
  width: min(100%, 68rem);
  margin-inline: auto;
}

.game-wrap {
  padding-bottom: 3rem;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.15rem;
  margin-top: 1.4rem;
}

.app-icon {
  width: 4.75rem;
  height: auto;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid rgba(240, 194, 122, 0.75);
  color: var(--amber);
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-line {
  margin: 0.4rem 0 0;
  color: var(--lab-muted);
}

.pitch {
  margin: 1.6rem 0 1.8rem;
  padding: 0 0 0 0.95rem;
  border-left: 2px solid var(--amber);
  color: #f7fbff;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.45;
  font-weight: 600;
}

.pitch p {
  margin: 0;
}

.game-main .section-title {
  color: var(--lab-ink);
}

.game-main .section-title::before {
  background: var(--cyan);
}

.game-main a {
  color: var(--cyan);
}

.game-main a:hover {
  color: var(--amber);
}

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

.facts {
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.6rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(182, 236, 248, 0.16);
}

.facts dt {
  margin: 0;
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.facts dd {
  margin: 0;
}

.play-soon {
  display: inline-block;
  margin: 1.15rem 0 0;
  padding: 0.65rem 0.85rem;
  border: 1px dashed rgba(197, 213, 222, 0.55);
  color: #c5d5de;
  background: rgba(6, 12, 20, 0.4);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: default;
}

.feature-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 42rem;
}

.feature-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.35rem;
  border-bottom: 1px solid rgba(182, 236, 248, 0.16);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--amber);
  transform: rotate(45deg);
}

.gallery {
  display: grid;
  gap: 1.4rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  display: block;
  width: 100%;
  border: 1px solid rgba(182, 236, 248, 0.22);
}

.gallery figcaption {
  margin-top: 0.45rem;
  color: var(--lab-muted);
  font-size: 0.95rem;
}

.back {
  margin: 2rem 0 0;
}

/* Privacy and 404 */
.page-head {
  padding: 2rem 0 0.5rem;
  text-align: center;
}

.page-title {
  margin: 0.2rem 0 0.55rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-wrap: balance;
}

.effective {
  margin: 0;
  color: var(--brass);
  font-family: var(--serif);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.policy {
  max-width: 40rem;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.policy h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
}

.policy h2::before {
  content: "";
  display: block;
  width: 0.38rem;
  height: 0.38rem;
  margin: 0 0 0.55rem;
  background: var(--brass);
  transform: rotate(45deg);
}

.policy h3 {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}

.policy a {
  font-weight: 600;
}

.not-found {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.not-found .crest {
  width: min(100%, 12rem);
  margin-bottom: 0.5rem;
}

.not-found p {
  max-width: 28rem;
  margin-inline: auto;
  color: var(--muted);
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.3rem;
  margin-top: 1.2rem;
  font-weight: 700;
}

@media (max-width: 36rem) {
  .header-inner {
    justify-content: center;
  }

  nav ul {
    justify-content: center;
  }

  .hero h1 .legal {
    letter-spacing: 0.22em;
  }

  .tagline {
    letter-spacing: 0.08em;
    font-size: 0.72rem;
  }
}

@media (min-width: 48rem) {
  .wrap {
    width: min(100% - 3rem, var(--wrap));
  }

  .hero {
    padding: 2rem 0 3.5rem;
  }

  .crest {
    width: min(100%, 26rem);
  }

  .tagline {
    letter-spacing: 0.2em;
    font-size: 0.92rem;
  }

  .section {
    padding: 3.2rem 0 3.6rem;
  }

  .game-card a {
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
  }

  .game-card img {
    width: 7.5rem;
  }

  .split {
    grid-template-columns: 1.35fr 0.8fr;
    gap: 2.75rem;
    align-items: start;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.5rem;
  }
}

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

  .game-card a {
    transition: none;
  }
}

@media print {
  .skip {
    display: none;
  }

  body,
  .site-header,
  .site-footer,
  .contact-band,
  .game-main,
  .game-card a {
    background: #fff !important;
    color: #1a1a1a !important;
    box-shadow: none !important;
  }

  a,
  .brand,
  .footer-brand,
  .mark,
  .section-title,
  .policy h3,
  .facts dt {
    color: #1a1a1a !important;
  }

  .site-header {
    position: static;
  }
}
