/* Shared reading typography. Pixel lettering is reserved for artwork accents. */
:root {
  --reading-font: Atkinson, system-ui, sans-serif;
  --type-copy: 1.125rem;
  --type-control: 1rem;
  --type-label: .875rem;
  --type-heading: clamp(2.25rem, 3.8vw, 3.25rem);
  --type-title: clamp(2rem, 3.1vw, 2.625rem);
}

body {
  font-family: var(--reading-font);
  font-size: var(--type-copy);
  line-height: 1.65;
}

h1, h2, h3,
.studio-manifesto > p,
.word-title,
.bot-message {
  font-family: var(--reading-font);
  letter-spacing: -.015em;
}

h1, h2 { font-weight: 800; }
h3 { font-weight: 750; }

.hero h1 {
  font-size: clamp(3rem, 6.3vw, 5.5rem);
  line-height: 1.09;
  letter-spacing: -.02em;
  white-space: normal;
}

.hero-copy > p {
  font-size: clamp(1.125rem, 1.55vw, 1.3125rem);
  line-height: 1.65;
  color: #d0d8d1;
}

.section-intro h2 { font-size: var(--type-heading); line-height: 1.15; }
.studio-story h2 { font-size: clamp(2rem, 3vw, 2.625rem); line-height: 1.2; }
.contact-heading h2 { font-size: var(--type-heading); line-height: 1.16; }
.game-feature h3, .card-title-row h3{
  font-size: var(--type-title);
  line-height: 1.18;
}

.game-hook{
  font-size: clamp(1.5rem, 2vw, 1.75rem);
  line-height: 1.3;
  letter-spacing: -.01em;
}

.feature-copy > p:not(.game-hook):not(.price-note),
.game-card-copy > p:not(.price-note),
.section-intro > div > p,
.studio-story p,
.contact-details > p:not(.copy-status) {
  font-size: var(--type-copy);
  line-height: 1.65;
}

.studio-story p { max-width: 52ch; }
.studio-manifesto > p {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
  font-weight: 750;
  line-height: 1.18;
}
.studio-manifesto > p > span { color: #9db2a7; }

.word-title {
  font-size: clamp(1.75rem, 2.6vw, 2.125rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: normal;
  hyphens: none;
}
.word-definition { font-size: 1.0625rem; line-height: 1.55; }
.word-prompt, .word-card[aria-expanded=true] .word-prompt,
.word-type, .word-play-label, .next-word { font-size: var(--type-label); line-height: 1.5; }
.bot-message { font-size: 1.125rem; font-weight: 600; line-height: 1.5; letter-spacing: 0; }

.main-nav a, .mobile-nav a { font-weight: 500; }
.main-nav a { font-size: var(--type-control); }
.button, .hero-actions .button, .game-actions .button { font-size: var(--type-control); }
.text-link, .hero .text-link, .game-actions .text-link { font-size: var(--type-control); }
.filters button { font-size: .9375rem; font-weight: 500; }
.sound-toggle, .studio-switch > button,
.hero-gamelets, .game-genre, .price-note,
.catalogue-note, .scroll-cue, .copy-status,
.contact-links .text-link, .footer-top .back-top,
.help-links, .footer-bottom { font-size: var(--type-label); line-height: 1.55; }
.copy-status { font-size: var(--type-label) !important; }
.brand-sub { font-size: .75rem; letter-spacing: .18em; }

.document-page h1 { font-size: clamp(2.375rem, 4vw, 3.5rem); line-height: 1.15; }
.document-page h2 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); line-height: 1.3; }
.document-page .prose { max-width: 65ch; }

/* The art room uses the same readable hierarchy as the studio. */
.topbar .brand { font-family: var(--reading-font); font-size: 1.375rem; font-weight: 750; letter-spacing: -.015em; }
.topbar .brand span { font-size: .9375rem; font-weight: 400; letter-spacing: 0; }
.back { font-size: .9375rem; }
.intro h1 { font-size: clamp(2.375rem, 4.4vw, 3.75rem); line-height: 1.15; }
.eyebrow { font-size: .8125rem; letter-spacing: .1em; }
.lede { font-size: var(--type-copy); line-height: 1.65; }
.segmented button, .view-controls { font-size: .9375rem; }
.caption, .caption p, summary span,
.layer-toolbar p, .layer-toolbar button,
.layer-list label, .download-links span,
.process-note { font-size: var(--type-label); line-height: 1.6; }
.layer-list label { padding-block: 7px; }
.downloads h2 { font-size: clamp(1.75rem, 2.6vw, 2.125rem); line-height: 1.2; }
.downloads p, .download-links a { font-size: 1.0625rem; line-height: 1.6; }
body > footer:not(.site-footer) { font-size: var(--type-label); }

@media (max-width: 900px) {
  .main-nav { gap: 16px; }
  .section-intro { gap: 28px; }
  .studio-layout, .contact-section { gap: 38px; }
  .word-play { padding-inline: 22px; }
}

@media (max-width: 700px) {
  .hero h1 { font-size: clamp(2.75rem, calc(.85rem + 10vw), 3.5rem); }
  .hero-actions { gap: 8px 20px; flex-wrap: wrap; }
  .hero-actions .button { padding: 14px 16px; }
  .hero-actions .text-link { font-size: .9375rem; }
  .hero-gamelets { gap: 14px; }
  .hero, .hero-inner { min-height: 960px; }
  .hero-art { top: 390px; bottom: 62px; }
  .hero-inner { padding-bottom: 100px; }
  .studio-switch { bottom: 28px; }
  .studio-switch > button { font-size: var(--type-label); padding: 11px 13px; }
  .scroll-cue { bottom: 30px; }
  .scroll-cue { font-size: .875rem; }
  .section-intro h2 { font-size: 2.5rem; }
  .studio-story h2, .contact-heading h2 { font-size: 2.25rem; }
  .studio-manifesto > p { font-size: clamp(2.25rem, 9.8vw, 3.125rem); }
  .card-title-row h3, .game-feature h3{ font-size: 2.25rem; }
  .game-card-copy > p:not(.price-note) { min-height: 0; }
  .word-title { font-size: 1.875rem; }
  .word-play { padding-inline: 24px; }
  .contact-links { gap: 12px 20px; }
  .footer-bottom { align-items: flex-start; }
}

@media (max-width: 640px) {
  .topbar .brand { font-size: 1.1875rem; }
  .topbar .brand span { font-size: .875rem; }
  .back { font-size: .875rem; max-width: 95px; }
  .intro h1 { font-size: clamp(2.125rem, 8.2vw, 2.75rem); }
  .lede { font-size: 1.0625rem; }
  .view-controls { gap: 8px; }
  .segmented button { padding: 10px 9px; }
  .caption, .caption p { font-size: .875rem; }
  .download-links a { font-size: 1rem; }
  .download-links span { font-size: .875rem; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 2.75rem; }
  .hero-actions { gap: 8px 16px; }
  .hero-actions .button { padding-inline: 12px; }
  .hero-copy > p { font-size: 1.0625rem; }
  .hero, .hero-inner { min-height: 980px; }
  .hero-art { top: 430px; }
  .studio-switch { bottom: 64px; right: 0; }
  .scroll-cue { bottom: 20px; }
  .section-intro h2 { font-size: 2.25rem; }
  .card-title-row h3, .game-feature h3{ font-size: 2rem; }
  .contact-heading h2, .studio-story h2 { font-size: 2.125rem; }
  .word-title { font-size: 1.6875rem; }
  .filters button { font-size: .875rem; }
}

/* Studio lockup (The Dud). One vector everywhere; the link around it carries the name. */
.brand-lockup { display:block; width:auto; height:60px; max-width:none; }
.site-footer .brand-lockup { height:52px; }
.atelier-brand .brand-lockup { height:60px; }
@media(max-width:700px) { .brand-lockup,.atelier-brand .brand-lockup { height:50px; } }
@media(max-width:340px) { .brand-lockup,.atelier-brand .brand-lockup { height:44px; } }

/* Header sound control: the only sound switch outside the artwork. */
.sound-toggle { color:#d7d9df; border-radius:4px; }
.sound-toggle[aria-pressed=true] { color:#f4f0e6; border-color:#4a5563; }
.sound-toggle:hover,.sound-toggle[aria-pressed=true]:hover { color:#ff5a1f; border-color:#ff5a1f; }
.sound-toggle[aria-pressed=true] .sound-cross,.sound-toggle[aria-pressed=false] .sound-waves { display:none; }
.sound-toggle[aria-pressed=false] svg { opacity:1; }
@media(max-width:700px) { .sound-toggle { margin-left:auto; min-width:44px; justify-content:center; padding:10px; } }
