/* =========================================================
   FULGENS GAME STUDIO — HOMEPAGE
   Current consolidated stylesheet
   ========================================================= */

/* ---------- Fonts ---------- */

@font-face {
  font-family: "Bodoni XT";
  src: url("assets/fonts/BodoniXT.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokens ---------- */

:root {
  --fgs-cream: #f6f1e7;
  --fgs-paper: #fffdf8;
  --fgs-charcoal: #1c1b1a;
  --fgs-rust: #b74425;
  --fgs-rust-dark: #8f321c;
  --fgs-gold: #b98637;
  --fgs-muted: #6d675f;
  --fgs-border: #d8cbb7;
  --fgs-soft-gray: #eae4d9;

  --uh-pink: #d2387b;
  --uh-teal: #279d9a;
  --uh-purple: #6758a6;
  --uh-soft-pink: #faeff4;

  --container: 1200px;
  --section-pad: clamp(4.5rem, 7vw, 7.5rem);

  --font-display: "Bodoni XT", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- Reset / base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fgs-cream);
  color: var(--fgs-charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3.65rem, 5vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 0.96;
}

h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.045em;
}

.page-wrapper {
  width: 100%;
  overflow: clip;
}

.container {
  width: min(calc(100% - 64px), var(--container));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--fgs-rust);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--fgs-rust);
  color: #fff;
}

.button-primary:hover {
  background: var(--fgs-rust-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--fgs-rust);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: relative;
  z-index: 50;
  min-height: 78px;
  border-bottom: 1px solid var(--fgs-border);
  background: var(--fgs-cream);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 285px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.main-nav a {
  color: var(--fgs-charcoal);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--fgs-rust);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  background: var(--fgs-cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  min-height: 650px;
  align-items: center;
  gap: 2rem;
}

.hero-copy {
  position: relative;
  z-index: 5;
  max-width: 650px;
}

.hero-heading {
  max-width: none;
}

.hero-line {
  display: block;
  white-space: nowrap;
}

.hero-line-dark {
  color: var(--fgs-charcoal);
}

.hero-line-rust {
  color: var(--fgs-rust);
}

.hero-lede {
  max-width: 520px;
  margin-bottom: 2rem;
  color: var(--fgs-muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.hero-art {
  position: relative;
  min-height: 570px;
}

.hero-solace {
  position: absolute;
  right: 2%;
  bottom: 0;
  z-index: 3;
  width: min(475px, 90%);
  max-height: 585px;
  object-fit: contain;
  object-position: center bottom;
}

/* Temporary art slot used elsewhere on the page */

.art-placeholder {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(28, 27, 26, 0.28);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.42),
      rgba(255, 255, 255, 0.08)
    ),
    repeating-linear-gradient(
      45deg,
      rgba(183, 68, 37, 0.06),
      rgba(183, 68, 37, 0.06) 10px,
      transparent 10px,
      transparent 20px
    );
  color: var(--fgs-muted);
  text-align: center;
}

.art-placeholder > div {
  max-width: 280px;
  padding: 1.25rem;
}

.art-placeholder strong,
.art-placeholder span,
.art-placeholder code {
  display: block;
}

.art-placeholder strong {
  margin-bottom: 0.35rem;
  color: var(--fgs-charcoal);
  letter-spacing: 0.05em;
}

.art-placeholder span {
  margin-bottom: 0.5rem;
  font-size: 0.82rem;
}

.art-placeholder code {
  font-size: 0.75rem;
}

.sparkle {
  position: absolute;
  z-index: 4;
  color: var(--fgs-gold);
  font-size: 1.1rem;
}

.sparkle-a {
  top: 17%;
  left: 8%;
}

.sparkle-b {
  top: 31%;
  right: 7%;
  font-size: 1.6rem;
}

.sparkle-c {
  bottom: 22%;
  left: 2%;
  font-size: 0.85rem;
}

.sparkle-d {
  top: 8%;
  right: 30%;
  font-size: 0.8rem;
}

/* =========================================================
   STATEMENT STRIP
   ========================================================= */

.statement-strip {
  background: var(--fgs-charcoal);
  color: var(--fgs-gold);
}

.statement-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.statement-inner p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-align: center;
}

/* =========================================================
   FEATURED GAME — UNICORN HUNTERS
   ========================================================= */

.featured-game {
  padding-block: var(--section-pad);
  background: var(--uh-soft-pink);
}

.featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

/* Card fan */

.card-stack {
  position: relative;
  min-height: 450px;
}

.game-card {
  position: absolute;
  bottom: 20px;
  width: 235px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 30px rgba(57, 37, 44, 0.14);
  transform-origin: center bottom;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.card-one {
  left: 1%;
  transform: rotate(-7deg);
}

.card-two {
  left: 28%;
  bottom: 30px;
  z-index: 2;
  transform: rotate(1deg);
}

.card-three {
  left: 55%;
  bottom: 45px;
  z-index: 1;
  transform: rotate(7deg);
}

.card-stack:hover .card-one {
  transform: translateX(-10px) rotate(-9deg);
  box-shadow: 0 22px 36px rgba(57, 37, 44, 0.18);
}

.card-stack:hover .card-two {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 24px 40px rgba(57, 37, 44, 0.18);
}

.card-stack:hover .card-three {
  transform: translateX(10px) rotate(9deg);
  box-shadow: 0 22px 36px rgba(57, 37, 44, 0.18);
}

/* Game copy */

.featured-copy {
  max-width: 570px;
}

.featured-copy .eyebrow {
  margin-bottom: 1rem;
  color: var(--fgs-rust);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.uh-feature-logo {
  display: block;
  width: min(460px, 100%);
  height: auto;
  margin: 0 0 1.5rem;
}

.game-tagline {
  max-width: 560px;
  margin-bottom: 1.5rem;
  color: var(--fgs-charcoal);
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 500;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.featured-description {
  max-width: 540px;
  margin-bottom: 1.8rem;
  color: var(--fgs-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.feature-tags span {
  padding: 0.38rem 0.7rem;
  border: 1px solid rgba(103, 88, 166, 0.25);
  border-radius: 999px;
  color: var(--uh-purple);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* =========================================================
   PHILOSOPHY
   ========================================================= */

.philosophy {
  padding-block: var(--section-pad);
  background: var(--fgs-paper);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.philosophy-intro h2 {
  font-size: clamp(2.5rem, 3.8vw, 3.35rem);
}

.philosophy-item {
  padding-top: 0.5rem;
}

.philosophy-item p {
  margin-bottom: 0;
  color: var(--fgs-muted);
}

.philosophy-icon {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 1rem;
  object-fit: contain;
}

/* =========================================================
   STUDIO
   ========================================================= */

.studio-section {
  padding-block: var(--section-pad);
  background: var(--fgs-cream);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.studio-image {
  display: block;
  width: 100%;
  min-height: 430px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(28, 27, 26, 0.14);
}

.studio-copy {
  max-width: 530px;
}

.studio-copy p:not(.eyebrow) {
  color: var(--fgs-muted);
  font-size: 1.05rem;
}

/* =========================================================
   JOURNAL
   ========================================================= */

.journal-section {
  padding-block: var(--section-pad);
  background: var(--fgs-paper);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.section-heading-row h2 {
  margin-bottom: 0;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.journal-card {
  min-width: 0;
}

.journal-image {
  aspect-ratio: 4 / 3;
  margin-bottom: 1.25rem;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.placeholder-a {
  background: linear-gradient(145deg, #9d4b34, #d39168);
}

.placeholder-b {
  background: linear-gradient(145deg, #615549, #a98961);
}

.placeholder-c {
  background: linear-gradient(145deg, #5d5365, #9a769a);
}

.journal-category {
  margin-bottom: 0.55rem;
  color: var(--fgs-rust);
  font-size: 0.71rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.journal-card h3 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.16;
}

.journal-card > p:not(.journal-category) {
  color: var(--fgs-muted);
}

/* =========================================================
   NEWSLETTER
   ========================================================= */

.newsletter {
  padding-block: 2.5rem;
  background: var(--fgs-rust);
  color: #fff;
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}

.newsletter h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.newsletter p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.newsletter-form {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.newsletter-form input {
  width: min(330px, 38vw);
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 2px 0 0 2px;
  background: var(--fgs-paper);
  color: var(--fgs-charcoal);
  font: inherit;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--fgs-charcoal);
  box-shadow: inset 0 0 0 1px var(--fgs-charcoal);
}

.newsletter-button {
  border-radius: 0 2px 2px 0;
  background: var(--fgs-charcoal);
  color: #fff;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 4.5rem 0 2rem;
  background: var(--fgs-charcoal);
  color: var(--fgs-cream);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-logo {
  color: var(--fgs-gold);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.footer-sub {
  margin-top: -0.15rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
}

.footer-brand p {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-body);
  font-style: normal;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-column h3 {
  margin-bottom: 0.5rem;
  color: var(--fgs-gold);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-column a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.77rem;
}

.footer-bottom p {
  margin-bottom: 0;
}

.footer-monogram {
  width: 105px;
  height: auto;
  object-fit: contain;
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

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

/* =========================================================
   RESPONSIVE — TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1000px) {
  .container {
    width: min(calc(100% - 48px), var(--container));
  }

  .brand-logo {
    width: 235px;
    max-height: 56px;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 590px;
  }

  .hero-art {
    min-height: 500px;
  }

  .hero-solace {
    right: 0;
    width: min(450px, 96%);
    max-height: 520px;
  }

  .featured-grid,
  .studio-grid {
    grid-template-columns: 1fr;
  }

  .featured-copy,
  .studio-copy {
    max-width: 700px;
  }

  .card-stack {
    max-width: 700px;
    min-height: 440px;
  }

  .philosophy-grid {
    grid-template-columns: 1fr 1fr;
  }

  .philosophy-intro {
    grid-column: 1 / -1;
    max-width: 650px;
  }

  .journal-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .journal-card:last-child {
    display: none;
  }

  .newsletter-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .newsletter-form {
    width: 100%;
  }

  .newsletter-form input {
    width: 100%;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE LANDSCAPE / SMALL TABLET
   ========================================================= */

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .brand-logo {
    width: 220px;
    max-height: 54px;
  }

  .site-header {
    min-height: auto;
  }

  .header-inner {
    min-height: 76px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 0.8rem;
    padding-block: 0.8rem;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
  }

  .main-nav a {
    font-size: 0.68rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-heading {
    font-size: clamp(3rem, 10vw, 4rem);
  }

  .hero-art {
    min-height: 470px;
  }

  .hero-solace {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(430px, 88%);
    max-height: 455px;
  }

  .statement-inner {
    min-height: 96px;
    gap: 0.8rem;
  }

  .statement-inner p {
    font-size: 0.78rem;
  }

  .card-stack {
    min-height: 390px;
  }

  .game-card {
    width: 195px;
  }

  .card-one {
    left: 3%;
  }

  .card-two {
    left: 26%;
  }

  .card-three {
    left: 49%;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
  }

  .journal-grid {
    grid-template-columns: 1fr;
  }

  .journal-card:last-child {
    display: block;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.75rem;
  }

  .newsletter-form input,
  .newsletter-button {
    width: 100%;
    border-radius: 2px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   RESPONSIVE — PHONE
   ========================================================= */

@media (max-width: 500px) {
  .uh-feature-logo {
    width: min(360px, 100%);
  }


  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .brand-logo {
    width: 190px;
    max-height: 48px;
  }

  .hero-heading {
    font-size: clamp(2.8rem, 13vw, 3.6rem);
  }

  .hero-art {
    min-height: 390px;
  }

  .hero-solace {
    width: min(360px, 92%);
    max-height: 375px;
  }

  .sparkle-b,
  .sparkle-d {
    display: none;
  }

  .statement-inner span {
    display: none;
  }

  .card-stack {
    min-height: 320px;
  }

  .game-card {
    width: 155px;
  }

  .card-one {
    left: 0;
  }

  .card-two {
    left: 25%;
  }

  .card-three {
    left: 50%;
  }

  .featured-copy h2 {
    font-size: clamp(2.75rem, 14vw, 3.6rem);
  }

  .game-tagline {
    font-size: 1.15rem;
  }

  .feature-tags {
    gap: 0.45rem;
  }

  .philosophy-icon {
    width: 50px;
    height: 50px;
  }

  .desktop-only {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-monogram {
    width: 82px;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
