/* One reading scale across pages. This file is deliberately loaded last. */
:root {
  --type-body: 16px;
  --type-secondary: 15px;
  --type-ui: 14px;
  --type-caption: 13px;
  --type-label: 12px;
  --muted: #b9aec7;
  --faint: #a193b2;
}
body { font-size: var(--type-body); }

/* Continuous reading text: a consistent size and comfortable line spacing. */
.hero-description,
.section-heading > p,
.world-card p,
.mechanic-copy > p,
.race-description,
.brew-heading p,
.brewguild-banner p,
.offer-copy p,
.beta-banner p,
.faq-section > div > p,
.faq-item p,
.community-section > p,
.application-card > p,
.donate-details p,
.prose p,
.info-page > p,
.announcement p,
.page-intro > p {
  font-size: var(--type-body);
  line-height: 1.85;
}
.mechanic-copy > p.lead,
.offer-copy p.offer-lead,
.beta-lead { font-size: 18px; line-height: 1.75; }
.race-traits p,
.beta-details,
.beta-expect p,
.review-alternative { font-size: var(--type-secondary); line-height: 1.8; }
.race-traits h4,
.beta-facts strong,
.beta-expect strong,
.brew-card-title,
.facts-ribbon span { font-size: var(--type-body); line-height: 1.55; }

/* Navigation, buttons, tabs and form labels use a single UI scale. */
.navigation a,
.header .navigation a,
.header .button,
.button,
.button.compact,
.button.secondary,
.hero-buttons .button,
.offer-actions .button,
.beta-banner-actions .button,
.brewguild-banner .button,
.text-link,
.mechanic-copy .text-link,
.race-detail .text-link,
.mechanic-tab,
.race-tab,
.contact-choices label,
.field label,
.contact-method legend,
.social-link,
.community-links .social-link,
.inline-links,
.beta-socials,
.faq-item summary,
.review-label { font-size: var(--type-ui); }
.navigation { gap: clamp(16px,1.5vw,25px); }
.header { gap: 20px; }
.header-actions .button { padding-inline: 17px; gap: 14px; }
.mechanic-tabs { grid-template-columns: repeat(5,minmax(0,1fr)); }
.mechanic-tab { gap: 9px; padding-inline: 12px; }
.mechanic-tab > span { display: none; }
.race-tabs { grid-template-columns: repeat(6,minmax(0,1fr)); }
.race-tab { min-width: 0; padding-inline: 9px; gap: 10px; }

/* Metadata stays readable, including on phone screens. */
.eyebrow,
.eyebrow.plain,
.mechanic-copy .eyebrow,
.offer-copy .eyebrow,
.community-section .eyebrow,
.brewguild-banner .eyebrow,
.live-badge,
.hero .live-badge,
.tags span,
.pill,
.world-card .tags span,
.world-card-top .pill,
.mechanic-copy .tags span,
.race-role,
.race-role > span:first-child,
.trait-number,
.scene-kicker,
.hero-note,
.brew-card-title small,
.zoom-label,
.form-heading,
.form-step,
.field label > span,
.contact-method legend > span,
.field small,
.field .field-error,
.form-privacy p,
.application-text,
.footer-bottom,
.footer-bottom nav,
.footer-bottom .text-button,
.minecraft-note,
.footer-top > p,
.socials .social-link,
.hero-bottom,
.hero-bottom > span,
.hero-bottom a,
.hero-emblem > span {
  font-size: var(--type-label);
  line-height: 1.65;
}
.facts-ribbon small,
.section-footnote,
.art-caption > span,
.art-caption small,
.scene-controls,
.beta-facts small,
.beta-banner-actions > span,
.offer-price > span,
.offer-copy p.offer-small,
.community-section > p,
.form-bottom-note,
.toast {
  font-size: var(--type-caption) !important;
  line-height: 1.8;
}
.form-bottom-note { margin-top: 17px !important; }
.form-privacy p, .field small, .form-bottom-note { color: #ac9abc !important; }
.field input, .field select, .field textarea { font-size: var(--type-body); }
.field input::placeholder, .field textarea::placeholder { font-size: var(--type-ui); }
.facts-ribbon > div { min-width: 0; }
.facts-ribbon small { padding-right: 12px; }
.race-traits li { padding-block: 17px; gap: 13px; }
.mechanic-copy { padding: 42px; }
.mechanic-copy .tags { margin-top: 24px; }
.race-detail { padding: 36px; }
.race-role { flex-wrap: wrap; gap: 12px; }
.race-detail h3 { font-size: clamp(30px,2.5vw,38px); }
.hero-bottom > span { font-size: 10px; letter-spacing: .12em; }
.hero-emblem > span { font-size: 10px; letter-spacing: .18em; }

/* Full environmental illustrations replace the schematic voxel drawings. */
.mechanic-panel { min-height: 560px; }
.mechanic-art { align-self: stretch; min-height: 560px; border-left: 1px solid var(--line); }
.mechanic-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.mechanic-image-shade { position: absolute; inset: 0; background: linear-gradient(90deg,#14101d60,transparent 30%),linear-gradient(0deg,#0d0918f2,transparent 52%); }
.mechanic-art.city .mechanic-image { object-position: 58% center; }
.mechanic-art.cooking .mechanic-image { object-position: 30% center; }
.mechanic-art.brewery .mechanic-image { object-position: 76% center; }
.art-caption { z-index: 1; left: 24px; right: 24px; bottom: 25px; }
.art-caption > span { color: #e0d2ed; }
.art-caption small { color: #b5a4c6; }

/* Different settings for every race; color treatment no longer substitutes for scenery. */
.race-landscape {
  background-image: linear-gradient(0deg,#17121f 0%,#120e1a20 55%,#120e1a55),var(--race-background);
  background-position: center,center;
  background-size: cover,cover;
  opacity: .9;
}
.race-scene[data-race] .race-landscape { filter: none; }
.race-scene[data-race=humans] .race-landscape { background-position: center,57% center; }
.race-scene[data-race=elves] .race-landscape { background-position: center,82% center; }
.race-scene[data-race=orcs] .race-landscape { background-position: center,70% center; }
.race-scene[data-race=alfeyes] .race-landscape { background-position: center,48% center; }
.scene-kicker { max-width: calc(100% - 50px); color: #e0d1ee; text-shadow: 0 2px 8px #000; }
.scene-controls { color: #ddcde9; text-shadow: 0 2px 8px #000; }

@media (max-width: 1180px) {
  .header .navigation { gap: 15px; }
  .header .navigation a, .header .button { font-size: 13px; }
  .header .brand > span { font-size: 17px; }
  .race-tab { flex-direction: column; font-size: 13px; padding-block: 12px; gap: 8px; }
  .mechanic-copy, .race-detail { padding: 30px; }
  .mechanic-tab { padding-inline: 8px; font-size: 13px; gap: 7px; }
  .mechanic-copy h3 { font-size: 32px; }
  .footer-top .socials { gap: 23px; }
  .footer-bottom { flex-wrap: wrap; }
}
@media (max-width: 960px) {
  .header .navigation { gap: 13px; }
  .header .navigation a { font-size: 12px; }
  .mechanic-panel { grid-template-columns: 1.1fr 1fr; }
  .mechanic-copy { padding: 30px 25px; }
  .mechanic-copy > p.lead { font-size: 17px; }
  .mechanic-tab { font-size: 12px; }
  .facts-ribbon { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
  .facts-ribbon > div:nth-child(2) { border-right: 0; }
  .race-panel { grid-template-columns: 1fr 1.1fr; }
  .beta-page { grid-template-columns: minmax(0,1fr); max-width: 680px; }
  .application-card { margin-top: 0; }
}
@media (max-width: 720px) {
  .header .navigation a { font-size: 15px; }
  .header-actions > .button { font-size: 12px; padding: 10px 12px; gap: 9px; }
  .header .brand > span { font-size: 17px; }
  .hero { height: auto; min-height: 825px; }
  .hero-content { min-height: 825px; padding-bottom: 220px; }
  .hero-buttons .button { font-size: 13px; gap: 13px; padding: 14px 17px; }
  .hero-note { flex-direction: column; gap: 8px; }
  .hero-bottom a { font-size: 12px; }
  .hero-bottom > span { font-size: 9px; }
  .hero-emblem { bottom: 65px; }
  .mechanic-tabs { display: flex; gap: 8px; }
  .mechanic-tab { flex-shrink: 0; padding: 15px 10px; font-size: 14px; }
  .mechanic-panel, .race-panel { grid-template-columns: minmax(0,1fr); }
  .mechanic-copy, .race-detail { padding: 28px 25px; }
  .mechanic-copy > p.lead { font-size: 18px; }
  .mechanic-art { min-height: 340px; max-height: 400px; border-left: 0; }
  .mechanic-image { object-position: center; }
  .race-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .race-tab { font-size: 13px; padding: 12px 5px; min-height: 80px; }
  .race-scene { min-height: 430px; }
  .race-role, .race-role > span:first-child { font-size: 12px; }
  .race-subtitle { font-size: 16px; }
  .brew-heading p { max-width: calc(100% - 105px); }
  .brew-heading { min-height: 280px; }
  .brewguild-banner > div:nth-child(2) { min-width: 0; }
  .brewguild-banner .eyebrow { font-size: 11px; }
  .brewguild-banner .button { font-size: 14px; }
  .brew-gallery { grid-template-columns: minmax(0,1fr); }
  .brew-preview:last-child { display: block; grid-column: auto; }
  .brew-preview .brew-image-wrap, .brew-preview:last-child .brew-image-wrap { height: 220px; }
  .brew-card-title, .brew-preview:last-child .brew-card-title { flex-direction: row; font-size: 16px; align-items: center; gap: 12px; padding: 19px; }
  .community-links { flex-wrap: wrap; }
  .community-links .social-link { font-size: 14px; flex: 1; min-width: 138px; padding: 13px 15px; }
  .community-links .social-link:last-child { flex: 0 1 100%; }
  .beta-socials { gap: 20px; }
  .footer-top .socials { flex-wrap: wrap; }
  .footer-bottom nav { flex-wrap: wrap; font-size: 12px; }
  .footer-bottom .text-button { font-size: 12px; }
  .minecraft-note { font-size: 12px; }
  .mobile-cta > span { font-size: 12px; }
  .mobile-cta small { font-size: 11px; }
  .mobile-cta .button { font-size: 12px; padding: 11px 13px; }
  .offer-copy p.offer-small { max-width: 100%; }
  .offer-actions .text-link { font-size: 14px; }
  .form-heading { letter-spacing: .05em; }
  .field label, .contact-method legend { flex-wrap: wrap; gap: 4px 10px; }
  .contact-choices label { font-size: 14px; }
  .form-privacy p { font-size: 13px; }
  .field input::placeholder, .field textarea::placeholder { font-size: 14px; }
}
@media (max-width: 480px) {
  .header .brand > span { font-size: 15px; }
  .header-actions > .button { font-size: 12px; padding-inline: 10px; }
  .header { gap: 10px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .hero-buttons .button { min-width: 225px; font-size: 14px; }
  .hero { min-height: 900px; }
  .hero-content { min-height: 900px; }
  .hero-emblem { opacity: .8; right: -8px; }
  .world-card { min-height: 420px; }
  .world-card .tags span { font-size: 12px; }
  .mechanic-copy, .race-detail { padding: 27px 23px; }
  .race-tab { font-size: 12px; }
  .scene-controls { font-size: 12px !important; }
  .brew-heading { min-height: 310px; }
  .brew-heading p { max-width: calc(100% - 85px); }
  .brew-mascot { width: 95px; }
  .offer-copy { padding: 30px 24px; }
  .offer-copy p.offer-lead { font-size: 18px; }
  .gift-scene { opacity: .22; top: 200px; }
  .beta-banner-actions .button { font-size: 14px; }
  .application-card h2 { font-size: 27px; }
  .mobile-cta small { font-size: 10px; }
  .mobile-cta .button { font-size: 12px; padding-inline: 11px; }
}

/* Keep feet on the platform even when readable text makes the panel taller. */
.race-fallback { align-items: flex-end; padding-bottom: 100px; }
@media (max-width: 720px) { .race-scene { min-height: 480px; } }

@media (max-width: 960px) {
  .race-panel { grid-template-columns: minmax(0,1fr); }
  .race-scene { min-height: 500px; }
  .race-detail { border-left: 0; border-top: 1px solid var(--line); }
}
