/* TopHat Interactive – built around the logo: the hat's cream on night navy, with the violet sparkle as the one motif.
   Type: Gabarito (heavy, soft geometric, after the TopHat wordmark) and Rethink Sans for reading. */
:root {
  --navy: #130345;      /* the logo's ground */
  --deep: #0b0127;      /* footer */
  --dusk: #22105c;      /* raised surfaces and rules */
  --dusk-2: #33207a;
  --cream: #fdf2df;     /* the hat */
  --violet: #c078fd;    /* the sparkle */
  --lavender: #b8acd9;  /* secondary text on navy */
  --ink-soft: #4b3f78;  /* secondary text on cream */
  --display: "Gabarito", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Rethink Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--navy); color: var(--cream); font: 400 18px/1.6 var(--text); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; line-height: 1.05; }
.wrap { width: min(var(--wrap), 100%); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--cream); color: var(--navy); }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

/* ── Buttons: chunky and rounded, like the hat ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 14px; border: 2px solid transparent;
  font: 700 17px/1 var(--display); text-decoration: none; transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; }
.btn.small { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 15px; }
.btn.solid { background: var(--cream); color: var(--navy); }
.btn.solid:hover { background: #fff; transform: translateY(-1px); }
.btn.ghost { border-color: var(--dusk-2); color: var(--cream); }
.btn.ghost:hover { border-color: var(--violet); }

/* ── Top bar ── */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 28px; padding: 14px 32px;
  background: rgba(19, 3, 69, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(51, 32, 122, 0.6); }
.top-mark { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; font: 800 18px/1 var(--display); }
.top-mark img { width: 34px; }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 8px 12px; border-radius: 10px; color: var(--lavender); text-decoration: none; font: 600 16px/1 var(--display); }
.top-nav a:hover { color: var(--cream); background: var(--dusk); }

/* ── Hero: the logo, under a few stars ── */
.hero { position: relative; overflow: hidden; padding: 128px 32px 120px; text-align: center; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.spark { position: absolute; fill: var(--violet); }
.s1 { width: 26px; height: 26px; left: 12%; top: 22%; }
.s2 { width: 14px; height: 14px; left: 22%; top: 70%; fill: var(--cream); opacity: 0.7; }
.s3 { width: 18px; height: 18px; right: 15%; top: 16%; fill: var(--cream); opacity: 0.8; }
.s4 { width: 32px; height: 32px; right: 10%; top: 62%; }
.s5 { width: 10px; height: 10px; left: 48%; top: 9%; fill: var(--cream); opacity: 0.6; }
.hero h1 { display: flex; justify-content: center; }
.lockup { width: min(760px, 92%); }
.hero-line { max-width: 22em; margin: 34px auto 36px; font: 600 clamp(22px, 2.6vw, 30px)/1.3 var(--display); color: var(--lavender); }
/* The one moment: the lockup settles in and the stars twinkle once */
@media (prefers-reduced-motion: no-preference) {
  .lockup { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .spark { animation: twinkle 1.1s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .s1 { animation-delay: 0.35s; } .s2 { animation-delay: 0.55s; } .s3 { animation-delay: 0.45s; } .s4 { animation-delay: 0.65s; } .s5 { animation-delay: 0.75s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes twinkle { from { opacity: 0; transform: scale(0) rotate(-45deg); } }

/* ── Bands ── */
.band { padding: 96px 0; }
.band h2 { font-size: clamp(34px, 4.4vw, 52px); }
.lead { font: 600 clamp(21px, 2.1vw, 25px)/1.4 var(--display); }

/* Studio */
.studio { border-top: 1px solid var(--dusk); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.studio h2 { margin-bottom: 22px; font-size: clamp(42px, 5.6vw, 68px); }
.studio .lead { margin-bottom: 18px; max-width: 18em; }
.studio-intro > p:not(.lead) { color: var(--lavender); max-width: 32em; }
.studio-intro { position: sticky; top: 110px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 34px; }
.principles li { position: relative; padding-left: 46px; }
.principles .mark { position: absolute; left: 0; top: 2px; width: 26px; height: 26px; fill: var(--violet); }
.principles h3 { font-size: 26px; margin-bottom: 6px; }
.principles p { color: var(--lavender); max-width: 30em; }

/* People: the credits, as the studio's roster */
.people { background: var(--dusk); }
.people-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-bottom: 44px; }
.people-head p { color: var(--lavender); max-width: 30em; }
.roles { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.roles > div { padding: 18px 0 20px; border-top: 1px solid var(--dusk-2); }
.roles dt { font: 700 15px/1.3 var(--display); color: var(--violet); }
.roles dd { margin: 6px 0 0; font-size: 17px; line-height: 1.55; }
.roles .core dd { font: 800 26px/1.2 var(--display); }

/* Games: one entry per game */
.games h2 { margin-bottom: 34px; }
.title { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.title-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 60% 60%; border-radius: 26px; }
.title-copy h3 img { width: min(300px, 85%); }
.title-copy h3 span { display: block; margin: 8px 0 18px; font-size: 21px; font-weight: 700; color: var(--violet); letter-spacing: 0; }
.title-copy > p { color: var(--lavender); max-width: 30em; }
.title-copy .status { margin: 14px 0 26px; color: var(--cream); font-weight: 500; }
.next { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--dusk-2); color: var(--lavender); }
.next .mark { flex: none; width: 20px; height: 20px; fill: var(--violet); }

/* News */
.news h2 { margin-bottom: 30px; }
.posts { list-style: none; margin: 0; padding: 0; }
.posts li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--dusk-2); }
.posts li:last-child { border-bottom: 1px solid var(--dusk-2); }
.posts time { font: 600 16px/1.6 var(--display); color: var(--lavender); }
.posts h3 { font-size: 28px; margin-bottom: 8px; }
.posts p { color: var(--lavender); max-width: 40em; }

/* Contact: the one cream panel, the colour of the hat */
.contact { padding-top: 24px; }
.card-cream { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; padding: 56px; border-radius: 32px; background: var(--cream); color: var(--navy); }
.cc-head h2 { margin-bottom: 16px; }
.cc-head p { color: var(--ink-soft); max-width: 24em; }
.ways { margin: 0; display: grid; gap: 22px; align-content: start; }
.ways dt { font: 700 15px/1.3 var(--display); color: #6a2ccc; }
.ways dd { margin: 4px 0 0; font-size: 19px; }
.ways a { font-weight: 600; text-decoration: none; border-bottom: 2px solid rgba(106, 44, 204, 0.35); }
.ways a:hover { border-color: #6a2ccc; }
.card-cream :focus-visible { outline-color: #6a2ccc; }

/* Footer */
.foot { margin-top: 96px; padding: 30px 0 40px; background: var(--deep); color: var(--lavender); font-size: 15px; }
.foot-row { display: flex; align-items: center; gap: 16px; }
.foot-row img { width: 30px; }
.foot-row p { margin-right: auto; }
.foot-row a { color: var(--lavender); }
.foot-row a:hover { color: var(--cream); }

/* ── Smaller screens ── */
@media (max-width: 900px) {
  .studio-grid, .card-cream, .title, .people-head { grid-template-columns: 1fr; gap: 32px; }
  .studio-intro { position: static; }
  .roles { grid-template-columns: 1fr 1fr; }
  .card-cream { padding: 36px 28px; }
  .posts li { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .top { gap: 12px; padding: 12px 20px; }
  .top-nav { display: none; }
  .top-mark span { font-size: 16px; }
  .hero { padding: 88px 20px 84px; }
  .band { padding: 72px 0; }
  .contact { padding-top: 8px; }
  .roles { grid-template-columns: 1fr; }
  .people-head { margin-bottom: 28px; }
  .s1 { left: 8%; top: 8%; } .s3 { top: 9%; } .s4 { display: none; }
  .foot-row { flex-wrap: wrap; }
}
