@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Marcellus&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --void: #0B0F1A;
  --carbon: #1A1D24;
  --steel: #6E7480;
  --platinum: #D8DCE3;
  --silver: #F4F6FA;
  --aurum: #C9A24B;
  --flux: #2EAE9B;
  --flux-bright: #9BFFE9;
  --flux-deep: #062B27;
  --cream: #F4F1EA;
  --wotd-ink: #0E1B1F;
  --wotd-indigo: #1A3036;
  --wotd-copper: #B87333;
  --wotd-champagne: #F0E6D1;
  --wotd-sandstone: #D2B48C;
  --wotd-mint: #86C8BC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
a { text-underline-offset: .24em; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--flux-bright); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .75rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.studio-page {
  background: var(--void);
  color: var(--platinum);
  font-family: "Space Grotesk", system-ui, sans-serif;
}
.studio-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 12%, rgba(46, 174, 155, .13), transparent 32rem),
    linear-gradient(180deg, #101621 0%, var(--void) 42%, #05080F 100%);
}
.studio-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.studio-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid rgba(216, 220, 227, .12); background: rgba(11, 15, 26, .9); backdrop-filter: blur(16px); }
.studio-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.studio-lockup { display: inline-flex; align-items: center; gap: .75rem; color: var(--silver); text-decoration: none; font-size: 1.28rem; font-weight: 700; letter-spacing: -.045em; }
.studio-lockup img { width: 42px; height: 42px; border-radius: 9px; }
.studio-lockup .flux-word { color: var(--aurum); }
.studio-nav-links { display: flex; align-items: center; gap: .3rem; }
.studio-nav-links a { padding: .6rem .8rem; color: rgba(216, 220, 227, .72); font-size: .92rem; text-decoration: none; }
.studio-nav-links a:hover { color: var(--flux-bright); }
.studio-hero { min-height: min(780px, calc(100vh - 76px)); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 8vw, 8rem); padding: clamp(5rem, 10vw, 9rem) 0; }
.studio-kicker { margin: 0 0 1rem; color: var(--flux-bright); font: 500 .72rem/1.4 "JetBrains Mono", monospace; letter-spacing: .18em; text-transform: uppercase; }
.studio-hero h1 { max-width: 10ch; margin: 0; color: var(--silver); font-size: clamp(3.8rem, 8vw, 7.5rem); line-height: .9; letter-spacing: -.07em; }
.studio-hero h1 span { display: block; color: var(--aurum); }
.studio-lede { max-width: 37rem; margin: 2rem 0 0; color: rgba(216, 220, 227, .72); font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.65; }
.studio-actions, .game-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.studio-button, .game-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .8rem 1.2rem; border: 1px solid rgba(216, 220, 227, .24); border-radius: 4px; color: var(--platinum); font-weight: 600; text-decoration: none; }
.studio-button.primary { border-color: var(--flux); background: var(--flux); color: var(--void); }
.studio-button:hover { border-color: var(--flux-bright); color: var(--flux-bright); }
.studio-button.primary:hover { background: var(--flux-bright); color: var(--void); }
.studio-brand-visual { position: relative; justify-self: end; width: min(100%, 520px); }
.studio-brand-visual img { width: 100%; border: 1px solid rgba(216, 220, 227, .12); border-radius: 12px; box-shadow: 0 34px 90px rgba(0, 0, 0, .42); }
.studio-brand-visual::after { content: "SOULFLUX / EST. 2026"; position: absolute; right: 1.2rem; bottom: 1rem; color: rgba(216, 220, 227, .58); font: 500 .62rem/1 "JetBrains Mono", monospace; letter-spacing: .15em; }
.studio-section { padding: clamp(5rem, 9vw, 8rem) 0; border-top: 1px solid rgba(216, 220, 227, .12); }
.studio-section-head { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 3rem; align-items: end; margin-bottom: 3rem; }
.studio-section h2 { margin: 0; color: var(--silver); font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1; letter-spacing: -.045em; }
.studio-section-head p { max-width: 40rem; margin: 0; color: rgba(216, 220, 227, .64); line-height: 1.7; }
.game-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 410px; overflow: hidden; border: 1px solid rgba(216, 220, 227, .15); background: linear-gradient(145deg, #13252A, #0E1B1F); }
.game-card-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(2rem, 6vw, 5rem); }
.game-card-label { color: var(--wotd-copper); font: 400 .72rem/1.4 Marcellus, Georgia, serif; letter-spacing: .2em; text-transform: uppercase; }
.mini-wordmark { margin: 1.2rem 0 1.4rem; color: var(--wotd-champagne); font: 400 clamp(2.6rem, 5vw, 5.3rem)/.9 Marcellus, Georgia, serif; }
.mini-wordmark span { display: block; }
.mini-wordmark small { display: block; margin: .55rem 0; padding-left: .45em; color: var(--wotd-copper); font-size: .27em; letter-spacing: .45em; }
.game-card-copy > p { max-width: 35rem; color: var(--wotd-sandstone); font-family: Georgia, serif; line-height: 1.7; }
.game-card-art { position: relative; min-height: 360px; background: radial-gradient(circle at 50% 40%, rgba(184, 115, 51, .23), transparent 18rem), linear-gradient(180deg, #0E1B1F, #24424B); }
.game-card-art::before, .game-card-art::after { content: ""; position: absolute; inset: 15%; border: 1px solid rgba(210, 180, 140, .16); transform: rotate(45deg); }
.game-card-art::after { inset: 28%; border-color: rgba(184, 115, 51, .32); }
.game-card-quote { position: absolute; z-index: 2; right: 10%; bottom: 12%; max-width: 18rem; margin: 0; color: var(--wotd-champagne); font: 400 clamp(1.35rem, 3vw, 2.1rem)/1.35 Marcellus, Georgia, serif; }
.studio-about { max-width: 52rem; }
.studio-about p { color: rgba(216, 220, 227, .7); font-size: 1.1rem; line-height: 1.8; }
.studio-footer { border-top: 1px solid rgba(216, 220, 227, .12); }
.studio-footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; color: rgba(216, 220, 227, .58); font: 400 .72rem/1.4 "JetBrains Mono", monospace; letter-spacing: .08em; }
.studio-footer a { color: rgba(216, 220, 227, .72); }

.wotd-page { background: var(--wotd-ink); color: var(--wotd-champagne); font-family: Georgia, serif; line-height: 1.65; }
.wotd-page::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--wotd-ink) 0%, var(--wotd-indigo) 62%, #24424B 100%); }
.wotd-shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.wotd-header { border-bottom: 1px solid rgba(210, 180, 140, .2); background: rgba(14, 27, 31, .92); }
.wotd-nav { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wotd-home { color: var(--wotd-sandstone); font-size: .9rem; text-decoration: none; }
.wotd-home:hover { color: var(--wotd-champagne); }
.wotd-nav-links { display: flex; gap: 1.3rem; }
.wotd-nav-links a { color: var(--wotd-sandstone); font-family: Marcellus, Georgia, serif; text-decoration: none; }
.wotd-nav-links a:hover { color: var(--wotd-champagne); }
.wotd-hero { min-height: 720px; display: grid; place-items: center; padding: clamp(5rem, 12vw, 9rem) 0; text-align: center; }
.wotd-wordmark { line-height: 1.02; }
.wotd-wordmark .major { color: var(--wotd-champagne); font: 400 clamp(4rem, 11vw, 8.5rem)/.86 Marcellus, Georgia, serif; letter-spacing: .035em; }
.wotd-wordmark .minor { margin: 1rem 0; padding-left: .55em; color: var(--wotd-copper); font: 400 clamp(1rem, 2.5vw, 1.65rem)/1 Marcellus, Georgia, serif; letter-spacing: .55em; }
.wotd-hero h1 { max-width: 24em; margin: 3rem auto 1rem; color: var(--wotd-champagne); font: 400 clamp(1.4rem, 3vw, 2rem)/1.35 Marcellus, Georgia, serif; }
.wotd-subhead { max-width: 44rem; margin: 0 auto; color: var(--wotd-sandstone); font-size: clamp(1rem, 2vw, 1.15rem); }
.game-actions { justify-content: center; }
.game-button { border-color: rgba(210, 180, 140, .35); color: var(--wotd-champagne); font-family: Marcellus, Georgia, serif; font-weight: 400; }
.game-button.primary { border-color: var(--wotd-copper); background: var(--wotd-copper); color: var(--wotd-ink); }
.game-button:hover { border-color: var(--wotd-copper); }
.game-button.primary:hover { background: #CF8A45; }
.wotd-section { padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid rgba(210, 180, 140, .2); }
.wotd-section h2 { margin: 0 0 2.5rem; color: var(--wotd-champagne); font: 400 clamp(2.2rem, 5vw, 4.3rem)/1.05 Marcellus, Georgia, serif; }
.wotd-pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.wotd-pillars article { padding: 2rem; border: 1px solid rgba(210, 180, 140, .22); background: rgba(26, 48, 54, .5); }
.wotd-pillars article + article { border-left: 0; }
.wotd-pillars span { color: var(--wotd-copper); font: 400 .78rem/1 Marcellus, Georgia, serif; letter-spacing: .15em; }
.wotd-pillars h3 { margin: 1.4rem 0 .8rem; color: var(--wotd-champagne); font: 400 1.65rem/1.2 Marcellus, Georgia, serif; }
.wotd-pillars p { margin: 0; color: var(--wotd-sandstone); }
.wotd-closing { max-width: 48rem; }
.wotd-closing p { color: var(--wotd-sandstone); font-size: 1.1rem; }
.wotd-footer { border-top: 1px solid rgba(210, 180, 140, .2); color: var(--wotd-sandstone); }
.wotd-footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.wotd-footer a { color: var(--wotd-mint); }

.credits-main { padding: 4rem 0 7rem; }
.credits-main h1, .credits-main h2 { font-family: Marcellus, Georgia, serif; font-weight: 400; }
.credits-main h1 { margin: 0 0 .5rem; font-size: clamp(2.5rem, 6vw, 4.5rem); }
.credits-main h2 { margin: 3.2rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(210, 180, 140, .25); color: var(--wotd-copper); font-size: 1.45rem; }
.credits-main p { margin: .7rem 0; }
.credits-main .muted { color: var(--wotd-sandstone); }
.credits-main a { color: var(--wotd-mint); }
.credits-main table { width: 100%; margin: 1rem 0; border-collapse: collapse; }
.credits-main th, .credits-main td { padding: .65rem .75rem; border-bottom: 1px solid rgba(210, 180, 140, .16); text-align: left; vertical-align: top; }
.credits-main th { color: var(--wotd-copper); font-family: Marcellus, Georgia, serif; font-weight: 400; }
.credits-main li { margin-bottom: .55rem; }

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--void); color: var(--platinum); font-family: "Space Grotesk", system-ui, sans-serif; text-align: center; }
.error-page h1 { margin: 0; font-size: clamp(4rem, 12vw, 9rem); }
.error-page p { color: rgba(216, 220, 227, .66); }
.error-page a { color: var(--flux-bright); }

@media (max-width: 820px) {
  .studio-hero, .game-card, .studio-section-head { grid-template-columns: 1fr; }
  .studio-hero { min-height: auto; }
  .studio-brand-visual { justify-self: start; width: min(100%, 460px); }
  .wotd-pillars { grid-template-columns: 1fr; }
  .wotd-pillars article + article { border-left: 1px solid rgba(210, 180, 140, .22); border-top: 0; }
}
@media (max-width: 620px) {
  .studio-shell, .wotd-shell { width: min(100% - 28px, 1180px); }
  .studio-nav, .wotd-nav { align-items: flex-start; flex-direction: column; padding: 1rem 0; gap: .8rem; }
  .studio-nav-links, .wotd-nav-links { width: 100%; overflow-x: auto; }
  .studio-hero h1 { font-size: clamp(3.2rem, 18vw, 5.3rem); }
  .studio-footer-inner, .wotd-footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 1.5rem 0; }
  .credits-main { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
