/* ===========================================================================
   Diandra Lasrado — site styles
   Design system + homepage. Fonts are loaded separately from css/fonts.css.
   Palette and type scale come from the approved homepage mockup.
   =========================================================================== */

/* ---- Design tokens (change these to re-theme the whole site) -------------- */
:root {
  --purple-bright: #6827a9;            /* DOMINANT background violet (the plateau) */
  --purple:      #2e0f52;              /* deep purple — dark text on gold + the gradient's dark end */
  --purple-deep: #1c0733;              /* darkest — the mobile nav dropdown panel */
  --gold:        #e9b44c;              /* accent: pill, button, band, links    */
  --gold-hover:  #f0c46e;
  --cream:       #f3eefa;              /* off-white — primary light text       */
  --cream-92:    rgba(243, 238, 250, 0.92);
  --cream-85:    rgba(243, 238, 250, 0.85);
  --cream-60:    rgba(243, 238, 250, 0.60);

  --font-display: 'Archivo', system-ui, sans-serif;      /* headings, logo     */
  --font-body:    'Hanken Grotesk', system-ui, sans-serif;/* body, nav, buttons */
  --font-mono:    'Space Mono', ui-monospace, monospace;  /* mono accent        */

  --page-max: 1200px;                  /* content width cap                    */
  --page-pad: 40px;                    /* left/right gutter on desktop         */
  --radius:   2px;                     /* the design uses crisp, near-square edges */
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  background-color: var(--purple-bright);
  /* Elliptical "pool of light" backdrop (desk-lamp look). A big OVAL of flat
     lighter purple fills the left; its right edge is a curved demarcation that
     bulges to ~82% of the width about two-thirds down, then a ~10%-wide steep
     blend drops into deep purple in the top-right / right "shadow". The ellipse
     centre sits off-screen to the lower-left. Fitted to the approved ColorMap
     with tools/gradient-fit.mjs — edit there and re-fit before changing this. */
  background-image:
    radial-gradient(ellipse 147% 134% at -50% 67%,
      var(--purple-bright) 0%, var(--purple-bright) 86.5%, var(--purple) 93.5%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Keyboard focus visibility across the site */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--purple);
  padding: 10px 16px;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---- Header / navigation -------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 30px var(--page-pad);
  position: relative;
  z-index: 20;
}

.brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cream);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.site-nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  color: var(--cream-85);
  transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--gold); }

/* Hamburger — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---- Hero ----------------------------------------------------------------- */
.hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--page-pad) 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 60px;
}

.hero-text { max-width: 560px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--gold);
  padding: 8px 16px;
  border-radius: var(--radius);
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(52px, 8vw, 82px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 26px 0 30px;
  text-shadow: 0 8px 26px rgba(20, 5, 40, 0.45);
}

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--cream-92);
  max-width: 460px;
  margin: 0 0 40px;
}

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--purple);
  background: var(--gold);
  padding: 16px 34px;
  border-radius: var(--radius);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--gold-hover); transform: translateY(-1px); }

.hero-photo {
  width: 440px;
  max-width: 42vw;
  aspect-ratio: 438 / 548;      /* ratio lives on the frame, not the <img> */
  transform: rotate(3.5deg);
  justify-self: end;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: var(--radius);
  box-shadow: 0 34px 64px -22px rgba(0, 0, 0, 0.6);
}

/* ---- Studio logo band ----------------------------------------------------- */
.logo-band {
  background: var(--gold);
  color: var(--purple);
}
.logo-band-list {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 22px var(--page-pad);
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 40px;
}
.logo-band-list li {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
}
/* diamond separator between studios (not after the last) */
.logo-band-list li:not(:last-child)::after {
  content: "✦";
  margin-left: 40px;
  font-size: 13px;
  color: rgba(46, 15, 82, 0.5);
}

/* ---- Closing / contact ---------------------------------------------------- */
.closing {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 110px var(--page-pad) 90px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 40px;
}
.closing-line {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--cream);
  max-width: 640px;
  margin: 0;
}
.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  white-space: nowrap;
}
.contact-email {
  font-weight: 600;
  font-size: 16px;
  color: var(--gold);
}
.contact-email:hover { color: var(--gold-hover); }
.contact-social {
  font-size: 16px;
  color: var(--cream-85);
}
.contact-social:hover { color: var(--cream); }

/* ---- Footer --------------------------------------------------------------- */
.site-footer {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 20px var(--page-pad) 40px;
}
.site-footer p {
  margin: 0;
  font-size: 13px;
  color: var(--cream-60);
}

/* ===========================================================================
   Responsive — the mockup is desktop-only; below 900px we stack and swap the
   nav for a menu button so nothing overflows.
   =========================================================================== */
@media (max-width: 900px) {
  :root { --page-pad: 24px; }

  /* Phones/tablets: keep the field mostly flat lighter purple, with just a soft
     deep-purple darkening in the top-right corner. The full oval is desktop drama. */
  body {
    background-image:
      radial-gradient(95% 55% at 112% -6%, var(--purple) 0%, rgba(46, 15, 82, 0) 58%);
  }

  .nav-toggle { display: flex; }

  /* Nav collapses into a dropdown panel toggled by the hamburger */
  .site-nav {
    position: absolute;
    top: 100%;
    right: var(--page-pad);
    left: var(--page-pad);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--purple-deep);
    border: 1px solid rgba(243, 238, 250, 0.12);
    border-radius: 6px;
    padding: 10px 6px;
    box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.7);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 4px;
  }
  .site-nav a:hover { background: rgba(243, 238, 250, 0.06); }

  /* Hamburger → X when open */
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Hero stacks: name/bio first, photo below */
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 20px;
    padding-bottom: 64px;
  }
  .hero-photo {
    width: min(360px, 78vw);
    max-width: 78vw;
    transform: rotate(2.5deg);
    justify-self: center;
  }

  .lede { font-size: 18px; }

  /* Studio band stacks vertically */
  .logo-band-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .logo-band-list li:not(:last-child)::after {
    margin-left: 16px;
  }

  /* Closing stacks, contact moves below the line */
  .closing {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 28px;
    padding: 72px var(--page-pad) 64px;
  }
  .contact-links {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .hero-name { font-size: clamp(40px, 13vw, 52px); }
}

/* ===========================================================================
   Interior pages — shared shell for About, Work, Press & Talks, Résumé,
   Contact, and the individual game pages. Same header/footer/palette as home.
   =========================================================================== */
.site-nav a[aria-current="page"] { color: var(--gold); }

.page-hero {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 30px var(--page-pad) 10px;
}
.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 22px;
}
.back-link:hover { color: var(--gold-hover); }

.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 18px;
  text-shadow: 0 8px 26px rgba(20, 5, 40, 0.4);
}
.page-intro {
  font-size: 20px;
  line-height: 1.6;
  color: var(--cream-92);
  max-width: 620px;
  margin: 0;
}

.page-body {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 40px var(--page-pad) 100px;
}
.placeholder-note {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--cream-60);
}

/* Work — game grid */
.game-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.game-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: 22px;
  background: rgba(243, 238, 250, 0.06);
  border: 1px solid rgba(243, 238, 250, 0.12);
  border-radius: 6px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.game-card:hover {
  background: rgba(243, 238, 250, 0.10);
  border-color: var(--gold);
  transform: translateY(-2px);
}
.game-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--cream);
}
.game-card-sub {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-top: 6px;
}

/* Press & Talks — item list */
.stack-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  max-width: 760px;
}
.stack-list li {
  padding: 20px 22px;
  background: rgba(243, 238, 250, 0.06);
  border: 1px solid rgba(243, 238, 250, 0.12);
  border-radius: 6px;
}
.stack-list .item-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--cream);
}
.stack-list .item-note {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--cream-60);
  margin-top: 4px;
}

/* Press & Talks — featured book */
.book-feature {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  max-width: 840px;
  margin: 0 0 64px;
}
.book-cover img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.7);
}
.book-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 10px;
}
.book-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin: 0 0 12px;
}
.book-byline {
  font-size: 16px;
  color: var(--cream-85);
  margin: 0 0 16px;
}
.book-desc {
  font-size: 17px;
  line-height: 1.6;
  color: var(--cream-92);
  max-width: 52ch;
  margin: 0 0 26px;
}
.book-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
  padding: 14px 32px;   /* 2px less than .btn so borders don't change the height */
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--purple);
}
.section-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 18px;
}

@media (max-width: 720px) {
  .book-feature { grid-template-columns: 1fr; gap: 22px; justify-items: start; }
  .book-cover { max-width: 220px; }
}

/* About — photo + text */
.about-body {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.about-photo {
  width: 360px;
  max-width: 100%;
}
.about-photo img {
  width: 100%;
  height: auto;               /* show the full portrait, no crop */
  border-radius: 4px;
  box-shadow: 0 28px 56px -22px rgba(0, 0, 0, 0.6);
}

/* Contact — big links */
.contact-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.contact-body .contact-email {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 4vw, 40px);
  color: var(--gold);
}
.contact-body .contact-email:hover { color: var(--gold-hover); }
.contact-body .contact-social {
  font-size: 18px;
  color: var(--cream-85);
}
.contact-body .contact-social:hover { color: var(--cream); }

@media (max-width: 900px) {
  .about-body { grid-template-columns: 1fr; gap: 28px; }
  .about-photo { width: 320px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
