/* ==========================================================================
   gotoplays.com — layered-depth register
   White base · charcoal #1F1F2B · electric indigo #4F3FF0
   ========================================================================== */

:root {
  --paper: #FFFFFF;
  --paper-tint: #F7F7FB;
  --ink: #1F1F2B;
  --ink-soft: #55556A;
  --ink-faint: #8A8A9E;
  --indigo: #4F3FF0;
  --indigo-soft: #EFEDFE;
  --indigo-line: #D8D3FB;
  --rule: #E8E8F0;

  --lift-1: 0 2px 6px rgba(31, 31, 43, .05), 0 12px 28px -14px rgba(31, 31, 43, .22);
  --lift-2: 0 3px 10px rgba(31, 31, 43, .06), 0 22px 46px -20px rgba(31, 31, 43, .30);
  --lift-3: 0 4px 14px rgba(31, 31, 43, .07), 0 34px 64px -26px rgba(31, 31, 43, .34);

  --shell: 1180px;
  --gutter: 28px;
}

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

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

body {
  margin: 0;
  background: var(--paper-tint);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.shell--narrow { max-width: 780px; }

/* ---------- header ---------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(31, 31, 43, .04), 0 10px 30px -18px rgba(31, 31, 43, .30);
}

.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 30px; height: 30px; flex: 0 0 auto; }
.brand__name em { font-style: normal; color: var(--indigo); }

.nav { display: flex; align-items: center; gap: 34px; }

.nav a {
  position: relative;
  color: var(--ink);
  font-size: .975rem;
  font-weight: 600;
  letter-spacing: -0.012em;
  padding-bottom: 4px;
}
.nav a:hover { text-decoration: none; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s ease;
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--indigo); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle, .nav-toggle-label { display: none; }

/* ---------- hero ------------------------------------------------------ */

.hero { padding: 84px 0 64px; }

.hero__eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.45rem, 5.4vw, 4rem);
  max-width: 17ch;
  margin-bottom: 22px;
}
.hero h1 em { font-style: normal; color: var(--indigo); }

.hero__lede {
  max-width: 58ch;
  font-size: 1.14rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- hero media ------------------------------------------------ */

.plate { margin: 54px 0 0; }

.hero-media {
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--lift-3);
  background: var(--paper);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- static tilts --------------------------------------------- */

.tilt-hero { transform: perspective(1600px) rotate(-2.4deg) rotateY(1.6deg); }
.tilt-a    { transform: perspective(1500px) rotate(-1.9deg) rotateY(1.4deg); }
.tilt-b    { transform: perspective(1500px) rotate(1.6deg) rotateY(-1.3deg); }
.tilt-c    { transform: perspective(1500px) rotate(-1.2deg) rotateY(1deg); }
.tilt-d    { transform: perspective(1500px) rotate(2.1deg) rotateY(-1.5deg); }

/* ---------- section scaffolding -------------------------------------- */

.band { padding: 74px 0; }
.band--tint { background: transparent; }

.section-head { margin-bottom: 46px; max-width: 62ch; }
.section-head__kicker {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); margin: 0; }

/* ---------- category cards (home) ------------------------------------ */

.deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 46px;
  padding: 10px 6px 26px;
}

.card {
  position: relative;
  display: block;
  background: var(--paper);
  border-radius: 20px;
  padding: 34px 34px 30px;
  color: var(--ink);
  box-shadow: var(--lift-2);
  border: 1px solid rgba(31, 31, 43, .045);
}
.card:hover { text-decoration: none; }

.card__count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 16px;
}
.card__count::before {
  content: "";
  width: 20px; height: 2px;
  background: var(--indigo);
  border-radius: 2px;
}

.card h3 { font-size: 1.55rem; margin-bottom: 12px; }
.card p { color: var(--ink-soft); font-size: 1rem; margin-bottom: 20px; }

.card__go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 700;
  color: var(--indigo);
}
.card__go svg { width: 16px; height: 16px; }

/* ---------- closing statement ---------------------------------------- */

.closing {
  padding: 30px 0 92px;
  background: transparent;
}
.closing .shell { position: relative; }
.closing__inner::before {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: var(--indigo);
  margin-bottom: 30px;
}
.closing__inner {
  max-width: 62ch;
}
.closing p {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.closing p em { font-style: normal; color: var(--indigo); }
.closing__sub {
  margin-top: 22px;
  font-size: 1.02rem !important;
  font-weight: 400 !important;
  line-height: 1.68 !important;
  color: var(--ink-soft) !important;
  letter-spacing: normal !important;
}

/* ---------- category page -------------------------------------------- */

.page-head {
  padding: 72px 0 8px;
}
.page-head__crumb {
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.page-head__crumb a { color: var(--ink-faint); }
.page-head__crumb a:hover { color: var(--indigo); }
.page-head h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.3rem);
  margin-bottom: 16px;
}
.page-head__desc {
  max-width: 62ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 0;
}
.page-head__meta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--indigo);
}
.page-head__meta::before {
  content: "";
  width: 24px; height: 2px;
  background: var(--indigo);
  border-radius: 2px;
}

.entries {
  display: flex;
  flex-direction: column;
  gap: 46px;
  padding: 52px 6px 80px;
}

.entry {
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid rgba(31, 31, 43, .045);
  box-shadow: var(--lift-2);
  padding: 38px 40px 34px;
}

.entry__index {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.entry h2 {
  font-size: clamp(1.5rem, 2.9vw, 1.95rem);
  margin-bottom: 6px;
}

.entry__place {
  font-size: .97rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 20px;
}

.entry__body { color: var(--ink-soft); max-width: 72ch; }
.entry__body p { margin-bottom: 1em; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.tag {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--indigo-line);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--indigo);
  background: var(--paper);
}

/* ---------- long-form (about / contact / legal) ---------------------- */

.longform {
  padding: 16px 0 84px;
}
.longform__sheet {
  background: var(--paper);
  border-radius: 20px;
  border: 1px solid rgba(31, 31, 43, .045);
  box-shadow: var(--lift-1);
  padding: 46px 52px 44px;
}
.longform h2 {
  font-size: 1.38rem;
  margin: 38px 0 14px;
}
.longform h2:first-child { margin-top: 0; }
.longform p, .longform li { color: var(--ink-soft); }
.longform ul { margin: 0 0 1.1em; padding-left: 20px; }
.longform li { margin-bottom: .5em; }
.longform__updated {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: .87rem;
  color: var(--ink-faint);
}

/* ---------- footer ---------------------------------------------------- */

.site-foot {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 62px 0 34px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p {
  max-width: 40ch;
  font-size: .95rem;
  color: var(--ink-soft);
  margin: 0;
}

.foot-col h4 {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { color: var(--ink); font-size: .95rem; font-weight: 500; }
.foot-col a:hover { color: var(--indigo); text-decoration: none; }

.foot-base {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  font-size: .87rem;
  color: var(--ink-faint);
}
.foot-base p { margin: 0; }

/* ---------- responsive ------------------------------------------------ */

@media (max-width: 900px) {
  .deck { grid-template-columns: 1fr; gap: 34px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .longform__sheet { padding: 34px 28px 32px; }
  .entry { padding: 30px 26px 28px; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; }

  body { font-size: 16px; }

  .nav-toggle-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    margin: -8px -8px -8px 0;
    border-radius: 10px;
    cursor: pointer;
    color: var(--ink);
  }
  .nav-toggle-label svg { width: 24px; height: 24px; }

  .site-head__inner { flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }

  .nav {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rule);
  }
  .nav a { width: 100%; padding: 11px 0; }
  .nav a::after { bottom: 6px; }
  .nav-toggle:checked ~ .nav { display: flex; }

  .hero { padding: 52px 0 40px; }
  .band { padding: 52px 0; }
  .closing { padding: 54px 0 58px; }
  .page-head { padding: 46px 0 4px; }
  .entries { gap: 32px; padding: 36px 0 56px; }
  .deck { padding: 6px 0 18px; }
  .plate { margin-top: 36px; }

  /* gentler tilt on small screens so nothing crowds the gutter */
  .tilt-hero { transform: perspective(1200px) rotate(-1.4deg); }
  .tilt-a { transform: perspective(1200px) rotate(-1.1deg); }
  .tilt-b { transform: perspective(1200px) rotate(.9deg); }
  .tilt-c { transform: perspective(1200px) rotate(-.8deg); }
  .tilt-d { transform: perspective(1200px) rotate(1.2deg); }
}

@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-media { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav a::after { transition: none; }
}

@media print {
  .site-head, .site-foot { box-shadow: none; }
  [class*="tilt-"] { transform: none !important; }
}
