/* Zoe Studios site, round 2: what the studio's pages add to site.css (loaded after it).
   No new tokens: every colour, font and radius comes from site.css's :root. */

/* ---------- Hero: the owl-knight on the navy ---------- */
.studio-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle 340px at var(--glow-x, 50%) var(--glow-y, 190px), rgb(35 202 192 / 0.16), rgb(35 202 192 / 0) 100%),
    var(--navy);
  color: var(--white);
  padding-block: 40px 64px;
}
.studio-hero .hero-board {
  width: 512px;
  height: 512px;
  background-size: 128px 128px;          /* 8 by 8 over 512 px */
  left: 50%;
  top: 190px;
  transform: translate(-50%, -50%);
}
.studio-hero-grid { position: relative; display: grid; gap: 28px; align-items: center; text-align: center; }
.studio-hero-logo { width: min(170px, 46vw); margin: 0 auto; }
.studio-headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.9rem, 1.4rem + 4.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.studio-headline .accent { color: var(--teal); display: block; }
.studio-hero .lead { max-width: 34ch; margin: 0 auto 28px; color: var(--white); }
.studio-hero .btn-row { justify-content: center; }

@media (min-width: 768px) {
  .studio-hero { padding-block: 56px 88px; --glow-y: 230px; }
  .studio-hero .hero-board { top: 230px; }
  .studio-hero-logo { width: 220px; }
}
@media (min-width: 1024px) {
  .studio-hero { padding-block: 88px 104px; --glow-x: 74%; --glow-y: 50%; }
  .studio-hero .hero-board { left: 74%; top: 50%; width: 640px; height: 640px; background-size: 160px 160px; }
  .studio-hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; text-align: left; }
  .studio-hero-logo { order: 2; width: 270px; }
  .studio-hero-copy { order: 1; }
  .studio-hero .lead { margin-left: 0; }
  .studio-hero .btn-row { justify-content: flex-start; }
}
@media (min-width: 1280px) {
  .studio-hero-logo { width: 300px; }
}

/* ---------- Games ---------- */
.games-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 28px;
}
.all-games {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--blue-ink);
}
.all-games .arrow { width: 16px; height: 16px; }
.games { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.game-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.game-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.game-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 22px 24px 24px; }
.game-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1.12; color: var(--navy); }
.game-body p { margin: 0; color: var(--muted); }
.game-actions { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }

/* Chess Life: the globe on the Chess Life blue */
.art-chesslife {
  background:
    radial-gradient(circle at 50% 50%, rgb(46 138 242 / 0.95), rgb(46 138 242 / 0) 62%),
    linear-gradient(180deg, #1a6ade, var(--blue) 60%, #1a64d4);
}
.art-chesslife picture { width: 62%; max-width: 250px; }

/* Chess Rush: its app icon's art with its logo */
.art-chessrush { background: #3a2412; }
.art-chessrush .art-bg { position: absolute; inset: 0; }
.art-chessrush .art-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.art-chessrush::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(20 10 2 / 0.05) 30%, rgb(20 10 2 / 0.55) 100%);
}
.art-chessrush .art-logo { position: relative; z-index: 1; width: 64%; max-width: 280px; align-self: end; margin-bottom: 6%; filter: drop-shadow(0 6px 14px rgb(0 0 0 / 0.35)); }

/* Solve It if you can: Crossmath: no art in the workspace, a typographic panel */
.art-solveit {
  background-color: var(--gold);
  background-image:
    linear-gradient(rgb(2 24 73 / 0.08) 2px, transparent 2px),
    linear-gradient(90deg, rgb(2 24 73 / 0.08) 2px, transparent 2px);
  background-size: 40px 40px;
  background-position: center;
  color: var(--navy);
  align-content: center;
  gap: 4px;
  text-align: center;
}
.solve-1 { font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.4vw, 3.4rem); line-height: 1; }
.solve-2 { font-weight: 700; font-size: 1.125rem; }
.solve-3 {
  justify-self: center;
  margin-top: 6px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .game-card { display: grid; grid-template-columns: 300px 1fr; }
  .game-art { aspect-ratio: auto; min-height: 230px; }
}
@media (min-width: 1024px) {
  .games { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- About ---------- */
.about-section { background: var(--white); }
.about-grid { display: grid; gap: 24px; align-items: center; }
.about-mark { width: 84px; }
.about-copy .h2 { margin-bottom: 14px; }
.about-text { max-width: 60ch; font-size: 1.125rem; line-height: 1.7; margin: 0; }
.motto { font-style: normal; font-weight: 700; color: var(--blue-ink); }
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 170px minmax(0, 1fr); gap: 48px; }
  .about-mark { width: 170px; }
  .about-text { font-size: 1.25rem; }
}
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; }
  .about-mark { width: 200px; justify-self: center; }
  .about-text { font-size: 1.375rem; }
}

/* ---------- Contact (dark band) ---------- */
.contact-band { padding-block: 64px 64px; }
@media (min-width: 1024px) { .contact-band { padding-block: 88px 88px; } }
.site-footer { border-top: 1px solid rgb(255 255 255 / 0.1); }
.contact-band .board-motif { right: -80px; top: -80px; }
.contact-band .h2 { position: relative; margin-bottom: 24px; }
.contact-list { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 1100px) { .contact-list { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.contact-tile {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 22px 22px 18px;
  border-radius: var(--radius);
  background: var(--navy-2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.contact-icon { width: 28px; height: 28px; color: var(--teal); margin-bottom: 8px; }
@media (max-width: 1099px) {
  .contact-tile { grid-template-columns: 28px 1fr; column-gap: 16px; align-items: center; padding: 16px 20px; }
  .contact-icon { grid-row: span 2; margin-bottom: 0; }
  .contact-tile .place-value { grid-row: span 2; }
}
.contact-label { font-size: 0.9375rem; color: var(--muted-on-navy); }
.contact-value {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--white);
  overflow-wrap: break-word;
  user-select: all;
}
a.contact-value { text-decoration-color: var(--teal); }
a.contact-value:hover { color: var(--teal); }
.place-value { user-select: text; }
/* after the base rules, so it wins */
@media (max-width: 419px) {
  .contact-tile { column-gap: 12px; padding: 14px 16px; }
  .contact-value { font-size: 1.0625rem; }
}

/* ---------- Footer: two addresses under the studio line ---------- */
.footer-studio .footer-mail { display: flex; width: max-content; max-width: 100%; }
.footer-links a[aria-current="page"] { color: var(--teal); }
/* On narrow phones the two link columns stack, so no link wraps onto two cramped lines. */
@media (max-width: 479px) { .footer-cols { grid-template-columns: 1fr; } }

/* ---------- The legal documents ---------- */
.legal-doc { max-width: var(--measure); }
.legal-doc h2 {
  font-size: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  letter-spacing: 0.01em;
  margin: 44px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--cream-2);
}
.legal-doc h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  margin: 28px 0 10px;
  color: var(--blue-ink);
}
.legal-doc .doc-name { margin: 0 0 10px; font-size: 1.0625rem; letter-spacing: 0.04em; }
.legal-doc .effective {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
}
.legal-doc ul { margin: 0 0 1em; padding-left: 1.3em; }
.legal-doc ul ul { margin: 0.5em 0 0; }
.legal-doc li { margin-bottom: 0.55em; padding-left: 0.2em; }
.legal-doc li::marker { color: var(--blue-ink); }
.legal-doc a { overflow-wrap: anywhere; }
.legal-doc .support-line { margin-top: 32px; }

/* The table of contents: open and sticky beside the text on wide screens, a closed list on phones */
.legal-toc { padding: 0; }
.legal-toc > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 16px 8px 20px;
  cursor: pointer;
  border-radius: var(--radius);
}
.legal-toc > summary::-webkit-details-marker { display: none; }
.legal-toc > summary h2 { margin: 0; }
.legal-toc[open] .chev { transform: rotate(180deg); background: var(--teal); }
.legal-toc[open] .chev::before { border-color: var(--navy); }
.legal-toc nav { padding: 0 16px 14px 20px; }
.legal-toc a { font-size: 0.8125rem; letter-spacing: 0.02em; min-height: 40px; }
.legal-toc li:not(:last-child) a { border-bottom: 1px solid var(--cream-2); }
.legal-toc a::before { width: 24px; height: 24px; font-size: 0.75rem; }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: 280px minmax(0, 1fr); }
  .legal-toc nav { max-height: calc(100vh - var(--header-h) - 130px); overflow-y: auto; }
  .legal-toc > summary { cursor: default; }
  .legal-toc > summary .chev { display: none; }
}

/* 404 */
.not-found .nf-owl { width: 150px; margin: 0 auto 24px; }
