@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

/* GLOBAL VARIABLES */

:root {
  --night: #17142d;
  --slate-blue: #24245f;
  --plum: #292344;
  --cream: #fff9ef;
  --gold: #f5cb79;
  --lavender: #c8b9ed;
  --ink: #29233a;
  --muted: #746d7e;

  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

/* GLOBAL STYLING */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: white;
  padding: .7rem;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
}

/* NAVIGATION OVER THE IMAGE */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;

  display: flex;
  justify-content: flex-end;
  align-items: center;

  height: 100px;
  padding: 0 clamp(1.2rem, 5vw, 5rem);

  background: transparent;
  color: white;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2rem;

  font-size: .88rem;
  font-weight: 600;
}

.primary-nav a {
  color: #fff8e9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .65);
  transition: color .2s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--gold);
}

.nav-contact {
  padding: .65rem 1.2rem;
  border: 1px solid rgba(245, 203, 121, .7);
  border-radius: 99px;

  background: rgba(20, 21, 65, .45);
  backdrop-filter: blur(8px);
}

.menu-toggle {
  display: none;
}

/* GENERAL TYPOGRAPHY */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .68rem;
  font-weight: 700;
  color: #a995d1;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: .5rem 0 1rem;
}

h1 {
  font-size: clamp(3.2rem, 8vw, 6.3rem);
  letter-spacing: -.045em;
}

h1 em {
  color: var(--gold);
  font-weight: 500;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

/* BUTTONS */

.button {
  display: inline-flex;
  gap: 1.2rem;
  align-items: center;

  padding: .9rem 1.35rem;
  border-radius: 99px;

  font-size: .83rem;
  font-weight: 700;

  transition: transform .2s, background .2s;
}

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

.button-gold {
  background: var(--gold);
  color: var(--night);
}

.button-gold:hover {
  background: #ffe1a2;
}

.button-outline {
  border: 1px solid #9a8caf;
  color: var(--ink);
}

.button-outline:hover {
  background: #eee6f8;
}

/* SECTION 1: INTRODUCTION BACKGROUND */

.intro-banner {
  position: relative;

  width: 100%;
  min-height: 700px;
  min-height: max(700px, 85svh);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 15rem 2rem 5rem;

  background-color: var(--slate-blue);
  background-image: url('../assets/images/homepage_herosection7.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  color: white;
  overflow: hidden;
}

/* INTRODUCTION TEXT */

.intro-copy {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 720px;

  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .8);
}

.intro-banner .eyebrow {
  color: var(--gold);
}

.intro-copy h1 {
  margin-bottom: 1.5rem;
}

.intro-copy-text {
  max-width: 570px;
  margin: 0 auto 2rem;

  color: #f0ebfa;
  font-size: 1.04rem;
  line-height: 1.8;
}

/* SECTION 2: EXPLORE THE STUDIO */

.section {
  padding: 6rem clamp(1.2rem, 7vw, 7rem);
}

.worlds {
  position: relative;
  background: var(--cream);
  border-top: 3px solid var(--gold);
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-heading > p:last-child,
.services > p:not(.eyebrow) {
  color: var(--muted);
}

.world-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;

  max-width: 1250px;
  margin: auto;
}

.world-card {
  min-height: 260px;
  padding: 1.5rem;
  border-radius: 16px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  transition: transform .25s, box-shadow .25s;
}

.world-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px #20163818;
}

.books {
  background: #eee6f8;
}

.games {
  background: #e5edf7;
}

.minds-eye {
  background: #e5e3e9;
}

.goods {
  background: #f8e9d5;
}

.services-card {
  background: #e7eee3;
}

.card-symbol {
  font-size: 1.6rem;
  color: #6d568f;
}

.card-kicker {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
  margin-top: 1rem;
}

.world-card h3 {
  font-size: 1.65rem;
  margin: .35rem 0;
}

.world-card p {
  font-size: .87rem;
  color: #6e6876;
  margin: 0 0 1rem;
}

.card-link {
  font-size: .75rem;
  font-weight: 700;
  margin-top: auto;
}

/* SECTION 3: ABOUT THE STUDIO */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 390px;
  background: #f0e9f5;
}

.feature-art {
  position: relative;

  display: grid;
  place-items: center;

  background: radial-gradient(
    circle,
    #b8a5d5,
    #6d5b8c 72%
  );

  color: #fff0c4;
  font-size: 8rem;
  overflow: hidden;
}

.feature-art i {
  position: absolute;
  font-size: 3rem;
  top: 20%;
  right: 25%;
  font-style: normal;
}

.feature-art b {
  position: absolute;
  font-size: 2rem;
  bottom: 20%;
  left: 25%;
}

.feature-copy {
  align-self: center;
  max-width: 570px;
  padding: 4rem clamp(2rem, 7vw, 6rem);
}

.feature-copy p:not(.eyebrow) {
  color: var(--muted);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: .83rem;
  font-weight: 700;
}

/* SECTION 4: CREATIVE SERVICES */

.services {
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.services h2 {
  max-width: 650px;
  margin: 0 auto 1rem;
}

.services > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 auto 1.7rem;
}

/* FOOTER */

.site-footer {
  background: var(--night);
  color: #d8d1e4;

  text-align: center;
  padding: 3rem 1rem 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;

  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.1;
}

.brand small {
  display: block;
  font: 600 .57rem var(--sans);
  letter-spacing: .28em;
  margin-top: .35rem;
  color: var(--gold);
}

.brand-mark {
  color: var(--gold);
  font-size: 1.8rem;
}

.footer-brand {
  justify-content: center;
  color: white;
}

.site-footer p {
  font-family: var(--serif);
  font-style: italic;
  color: #bdb2d1;
}

.site-footer > small {
  font-size: .68rem;
  color: #9186a6;
}

.anchor-target {
  height: 0;
}

/* TABLET */

@media (max-width: 850px) {

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

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

  .feature-art {
    min-height: 260px;
  }

  .feature-copy {
    padding: 3rem 1.5rem;
  }

  .primary-nav {
    gap: 1rem;
  }
}

/* MOBILE */

@media (max-width: 600px) {

  .site-header {
    height: 76px;
    padding: 0 1.2rem;
  }

  .menu-toggle {
    display: block;

    border: 1px solid var(--gold);
    background: rgba(23, 20, 45, .75);
    color: white;

    border-radius: 99px;
    padding: .55rem 1rem;

    font: inherit;
    font-size: .8rem;
    cursor: pointer;
  }

  .primary-nav {
    display: none;

    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;

    background: rgba(23, 20, 45, .97);
    border: 1px solid rgba(245, 203, 121, .35);
    border-radius: 14px;

    padding: 1.5rem;

    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;

    box-shadow: 0 14px 35px rgba(0, 0, 0, .35);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .nav-contact {
    text-align: center;
  }

  .intro-banner {
    min-height: 650px;

    padding: 13rem 1.2rem 4rem;

    background-position: left top;
  }

  .intro-copy h1 {
    font-size: clamp(2.5rem, 9vw, 4rem);
  }

  .intro-copy-text {
    font-size: .95rem;
  }

  .section {
    padding: 4rem 1.2rem;
  }

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

  .world-card {
    min-height: 220px;
  }
}

/* REDUCED MOTION */

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

}