:root {
  --ivory:#f5eedd;
  --paper:#faf6ec;
  --purple:#35206b;
  --purple-dark:#241345;
  --ink:#171519;
  --muted:#68616d;
  --line:rgba(53,32,107,.2);
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:30px;
}

body {
  margin:0;
  background:var(--ivory);
  color:var(--ink);
  font-family:"Avenir Next","Nunito Sans",Avenir,system-ui,sans-serif;
  -webkit-font-smoothing:antialiased;
}

a {
  color:inherit;
  text-decoration:none;
}

button,a {
  -webkit-tap-highlight-color:transparent;
}

a:focus-visible {
  outline:3px solid currentColor;
  outline-offset:6px;
}

::selection {
  background:#d8c7fa;
  color:var(--purple-dark);
}

.wrap {
  width:min(1280px,calc(100% - 112px));
  margin-inline:auto;
}

.site-header {
  color:var(--purple);
  background:var(--ivory);
}

.nav {
  min-height:100px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.wordmark {
  display:block;
  width:150px;
  height:auto;
  filter:brightness(0);
  margin:-12px 0;
}

.nav-links {
  display:flex;
  gap:36px;
  align-items:center;
  font-size:15px;
  font-weight:600;
}

.nav-links a {
  position:relative;
  padding-block:12px;
}

.nav-links a:hover {
  text-decoration:underline;
  text-underline-offset:7px;
}

.nav-links .nav-contact::after {
  content:"";
  position:absolute;
  right:0;
  bottom:5px;
  left:0;
  height:1px;
  background:currentColor;
}

.skip-link {
  position:absolute;
  left:20px;
  top:-100px;
  z-index:20;
  padding:12px 20px;
  background:var(--ivory);
  color:var(--purple);
}

.skip-link:focus {
  top:12px;
}

.hero {
  color:var(--ivory);
  background:radial-gradient(ellipse at 70% 15%,#45297f 0,transparent 65%),var(--purple);
  padding:40px 0 50px;
}

.hero-topline {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
  letter-spacing:.035em;
}

.hero-topline p {
  margin:0;
}

.hero-stage {
  display:grid;
  grid-template-columns:1.15fr 1fr;
  gap:64px;
  align-items:center;
  padding:42px 0 12px;
}

.hero h1 {
  font-size:clamp(44px,5.6vw,80px);
  font-weight:500;
  line-height:1.04;
  letter-spacing:-.055em;
  margin:0 0 30px;
}

.hero-intro {
  max-width:420px;
}

.hero-intro p {
  font-size:17px;
  line-height:1.7;
  margin:0 0 26px;
  color:#e0d6ef;
}

.hero-game {
  margin:0;
  display:grid;
  justify-items:center;
  gap:24px;
}

.hero-game>a {
  display:block;
  width:min(270px,100%);
  border-radius:24px;
}

.hero-game img {
  display:block;
  width:100%;
  height:auto;
  border:6px solid #21182c;
  border-radius:24px;
  box-shadow:0 24px 48px #180d393d;
}

.hero-game figcaption {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size:14px;
}

.hero-game figcaption span:last-child {
  font-size:12px;
  color:#d6cadf;
}

.text-link {
  display:inline-flex;
  gap:28px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid currentColor;
  font-size:15px;
  font-weight:600;
}

.text-link span {
  transition:transform .2s;
}

.text-link:hover span {
  transform:translate(3px,-3px);
}

.section-label {
  font-size:14px;
  letter-spacing:.04em;
  margin:0;
  color:var(--purple);
  font-weight:600;
}

.games-section {
  padding:92px 0 96px;
}

.section-top {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:center;
  margin-bottom:36px;
}

.section-top .index {
  font-size:14px;
  color:var(--muted);
}

.game-feature {
  display:grid;
  grid-template-columns:1.05fr 1fr;
  align-items:center;
  gap:clamp(40px,7vw,100px);
}

.game-visual {
  position:relative;
  min-height:540px;
  background:#e7d9bd;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  overflow:hidden;
  border-radius:3px;
}

.game-visual img {
  width:35%;
  height:auto;
  display:block;
  border:7px solid #2d2924;
  border-radius:23px;
  box-shadow:0 16px 25px #35251326;
}

.game-visual img:first-child {
  transform:translateY(30px) rotate(-7deg);
}

.game-visual img:last-child {
  transform:translateY(-24px) rotate(7deg);
}

.game-copy .availability {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--muted);
  font-size:14px;
}

.availability::before {
  content:"";
  width:6px;
  height:6px;
  background:#397353;
  border-radius:50%;
}

.game-copy h2 {
  font-size:clamp(42px,5vw,70px);
  font-weight:500;
  line-height:1.04;
  letter-spacing:-.055em;
  margin:26px 0;
}

.game-copy>p {
  font-size:17px;
  line-height:1.75;
  color:var(--muted);
  max-width:440px;
}

.game-links {
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  align-items:center;
  margin-top:32px;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  background:var(--purple);
  color:var(--ivory);
  padding:17px 24px;
  border:1px solid var(--purple);
  border-radius:9px;
  font-size:15px;
  font-weight:600;
  transition:background .2s,transform .2s;
}

.button:hover {
  background:var(--purple-dark);
  transform:translateY(-2px);
}

.studio-section {
  padding:82px 0 94px;
  border-top:1px solid var(--line);
}

.studio-intro {
  display:grid;
  grid-template-columns:1fr 2fr;
  gap:60px;
  margin-bottom:64px;
}

.studio-intro h2 {
  font-size:clamp(34px,4.5vw,60px);
  font-weight:500;
  line-height:1.14;
  letter-spacing:-.045em;
  max-width:830px;
  margin:0;
}

.principles {
  margin-left:calc((100% - 60px)/3 + 60px);
}

.principle {
  display:grid;
  grid-template-columns:38px 1fr 1.25fr;
  gap:24px;
  border-top:1px solid var(--line);
  padding:26px 0;
}

.principle .number {
  color:var(--muted);
  font-size:13px;
  padding-top:4px;
}

.principle h3 {
  font-size:19px;
  font-weight:600;
  margin:0;
  letter-spacing:-.025em;
}

.principle p {
  margin:0;
  line-height:1.65;
  font-size:16px;
  color:var(--muted);
}

.site-footer {
  background:var(--purple-dark);
  color:var(--ivory);
  padding:58px 0 26px;
}

.footer-top {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:40px;
  margin-bottom:60px;
}

.footer-logo {
  width:210px;
  height:auto;
  display:block;
  margin-top:-17px;
}

.footer-top p {
  font-size:24px;
  font-weight:500;
  letter-spacing:-.025em;
  margin:0 0 12px;
}

.footer-bottom {
  padding-top:24px;
  border-top:1px solid #f5eedd33;
  display:flex;
  justify-content:space-between;
  gap:24px;
  font-size:13px;
  color:#d6cadf;
}

.footer-links {
  display:flex;
  gap:24px;
  flex-wrap:wrap;
}

.footer-links a:hover {
  text-decoration:underline;
  text-underline-offset:4px;
}

/* Studio information pages share the identity while keeping the original content. */
.document-page .nav {
  border-bottom:1px solid var(--line);
}

.document-page .container {
  width:min(800px,calc(100% - 112px));
  margin:0 auto;
  padding:70px 0 90px;
  line-height:1.8;
}

.document-page h1 {
  color:var(--purple);
  font-size:clamp(38px,5vw,62px);
  font-weight:500;
  line-height:1.1;
  letter-spacing:-.045em;
  margin:0 0 26px;
}

.document-page h2 {
  font-size:25px;
  line-height:1.3;
  letter-spacing:-.025em;
  font-weight:600;
  margin:42px 0 16px;
}

.document-page h3 {
  font-size:19px;
  font-weight:600;
  margin-top:28px;
}

.document-page p,.document-page li {
  font-size:16px;
}

.document-page .container a {
  color:var(--purple);
  text-decoration:underline;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}

.document-page ul {
  padding-left:22px;
}

.document-page li {
  padding-left:5px;
  margin:6px 0;
}

.document-page .highlight {
  border-left:3px solid var(--purple);
  padding:4px 0 4px 26px;
  margin:26px 0;
}

.document-page .container>p:first-of-type {
  color:var(--muted);
  font-size:14px;
}

.document-page .container footer {
  margin-top:60px;
  padding-top:22px;
  border-top:1px solid var(--line);
  font-size:14px;
  color:var(--muted);
}

@media(max-width:900px) {
  .wrap {
    width:calc(100% - 56px);
  }
  .nav {
    min-height:84px;
  }
  .hero {
    padding-top:30px;
  }
  .hero-stage {
    gap:32px;
  }
  .game-feature {
    gap:36px;
  }
  .game-visual {
    min-height:440px;
    gap:16px;
  }
  .game-visual img {
    width:38%;
    border-width:5px;
    border-radius:18px;
  }
  .studio-intro {
    grid-template-columns:1fr;
    gap:28px;
    margin-bottom:42px;
  }
  .principles {
    margin-left:0;
  }
  .document-page .container {
    width:calc(100% - 72px);
  }
}

@media(max-width:600px) {
  .wrap {
    width:calc(100% - 40px);
  }
  .nav {
    min-height:78px;
    gap:14px;
  }
  .wordmark {
    width:96px;
  }
  .nav-links {
    gap:14px;
    font-size:14px;
  }
  .hero {
    padding:24px 0 34px;
  }
  .hero-topline {
    font-size:12px;
  }
  .hero-stage {
    grid-template-columns:1fr;
    gap:36px;
    padding-top:40px;
  }
  .hero h1 {
    font-size:clamp(39px,8.8vw,52px);
    margin-bottom:22px;
  }
  .hero-game>a {
    width:230px;
  }
  .hero-intro {
    margin-left:0;
    max-width:100%;
  }
  .hero-intro p {
    font-size:16px;
    margin-bottom:15px;
  }
  .games-section {
    padding:54px 0 60px;
  }
  .section-top {
    margin-bottom:25px;
  }
  .game-feature {
    grid-template-columns:1fr;
    gap:34px;
  }
  .game-visual {
    min-height:410px;
  }
  .game-visual img {
    max-width:158px;
  }
  .game-copy h2 {
    font-size:48px;
    margin:20px 0;
  }
  .game-copy>p {
    font-size:16px;
  }
  .game-links {
    gap:20px;
  }
  .studio-section {
    padding:48px 0 56px;
  }
  .studio-intro h2 {
    font-size:36px;
  }
  .principle {
    grid-template-columns:26px 1fr;
    gap:9px 16px;
    padding:24px 0;
  }
  .principle p {
    grid-column:2;
  }
  .site-footer {
    padding-top:42px;
  }
  .footer-top {
    flex-direction:column;
    gap:26px;
    margin-bottom:38px;
  }
  .footer-logo {
    width:170px;
  }
  .footer-bottom {
    flex-direction:column;
    gap:20px;
    font-size:13px;
  }
  .footer-links {
    gap:20px;
  }
  .document-page .container {
    width:calc(100% - 40px);
    padding:44px 0 60px;
  }
  .document-page h1 {
    font-size:42px;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
  }
}

