:root {
  --bg: #fff7dc;
  --surface: #fffaf0;
  --surface-2: #fff2bf;
  --ink: #202020;
  --ink-soft: #525252;
  --accent: #ffca45;
  --accent-2: #ffeb9e;
  --line: #1f1f1f;
  --shadow: 6px 6px 0 #1f1f1f;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  background: linear-gradient(to bottom, #fffaf0, #fff2cf 55%, #ffe8a0);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-underline-offset: 0.15em; }
a:hover { opacity: 0.88; }
img { max-width: 100%; display: block; }
.mascot { image-rendering: pixelated; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 20;
  background: var(--line);
  color: #fff;
  padding: 0.65rem 0.9rem;
}
.skip-link:focus { left: 0.5rem; }
.site-shell {
  width: min(calc(100% - 1.5rem), var(--max));
  margin: 0 auto;
  padding: 1rem 0 2rem;
}
.site-header, .site-footer, .pixel-box {
  border: 4px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.site-header {
  background: linear-gradient(180deg, var(--accent), #ffdb70);
  padding: 0.7rem 1rem;
  margin-bottom: 1rem;
}
.site-nav {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  font-weight: 800;
}
.brand-icon {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  border: 3px solid var(--line);
  background: #fff;
}
.brand-copy { display: grid; }
.brand-copy strong { font-size: 1.15rem; }
.brand-copy small { color: var(--ink-soft); }
.nav-toggle {
  justify-self: end;
  border: 3px solid var(--line);
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.nav-menu {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border: 3px solid transparent;
  font-weight: 700;
}
.nav-menu a[aria-current="page"],
.nav-menu a:hover,
.language-list a[aria-current="true"] {
  border-color: var(--line);
  background: #fff;
}
.content-shell {
  display: grid;
  gap: 1rem;
}
.pixel-box { padding: 1rem; }
.language-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1rem;
  align-items: center;
  background: linear-gradient(180deg, #fffaf0, #fff2cf);
}
.language-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.language-list-rich a {
  min-width: 132px;
  display: grid;
  gap: 0.2rem;
}
.language-name { font-weight: 800; }
.language-list a {
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  padding: 0.42rem 0.7rem;
  border: 3px solid var(--line);
  background: #fff;
}
.language-list a small {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 600;
}
.lang-meta {
  margin-bottom: 0;
  color: var(--ink-soft);
}
.tiny-label {
  display: inline-block;
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-grid,
.page-banner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}
.hero-copy,
.page-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}
.hero-copy h1,
.page-copy h1,
.error-copy h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
}
.hero-lead,
.policy-lead {
  font-size: 1.04rem;
  color: var(--ink-soft);
  margin: 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}
.pixel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 3px solid var(--line);
  background: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--line);
}
.pixel-button.primary { background: var(--accent); }
.hero-art,
.mascot-panel,
.redirect-box,
.error-box,
.error-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffe078, #ffd45c 45%, #ffc63f 100%);
  overflow: hidden;
}
.hero-art,
.mascot-panel {
  min-height: 300px;
}
.hero-mascot.large { width: min(100%, 320px); }
.page-mascot { width: min(100%, 260px); }
.section-headline,
.section-title-row,
.quick-link-box,
.contact-box,
.section-headline-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.quick-link-box,
.contact-box,
.section-headline-inline { flex-wrap: wrap; }
.section-headline h2,
.section-title-row h2,
.feature-lines h3,
.plain-lines h3,
.contact-box h2,
.data-box h2,
.quick-link-box h2 { margin: 0; }
.feature-box { background: linear-gradient(180deg, #fffdf7, #fff7dd); }
.feature-lines,
.plain-lines,
.stack-list {
  margin: 1rem 0 0;
  padding: 0;
}
.feature-lines { list-style: none; display: grid; gap: 0; }
.feature-lines li,
.plain-lines li,
.line-item,
.contact-item {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-top: 3px dashed rgba(31,31,31,.35);
}
.feature-lines li:first-child,
.plain-lines li:first-child,
.line-item:first-child,
.contact-item:first-child { border-top: 0; padding-top: 0; }
.feature-lines li:last-child,
.plain-lines li:last-child,
.line-item:last-child,
.contact-item:last-child { padding-bottom: 0; }
.feature-lines li {
  grid-template-columns: 72px 1fr;
  align-items: start;
}
.feature-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 3px solid var(--line);
  background: var(--accent-2);
  font-weight: 900;
}
.dynamic-status {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border: 3px dashed rgba(31,31,31,.4);
  background: rgba(255,255,255,.65);
}
.line-item h3,
.line-item p,
.plain-lines p,
.contact-item p,
.policy-updated { margin: 0; }
.line-item h3 a,
.plain-lines h3 a,
.contact-link { font-weight: 900; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.55rem;
  margin: 0.35rem 0 0;
  padding: 0;
}
.meta-row li,
.tiny-meta,
.policy-updated { font-size: 0.94rem; color: var(--ink-soft); }
.site-footer {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(180deg, #fff6d5, #ffe69e);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.footer-brand img {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
}
.site-footer p { margin: 0.25rem 0; }
.redirect-page { padding-top: 1.5rem; }
.redirect-box,
.error-box {
  min-height: 420px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
}
.redirect-mascot,
.error-mascot { width: min(100%, 300px); }
.error-body {
  min-height: 100vh;
  display: grid;
  align-items: center;
}
.error-copy { align-self: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid #ff6b00;
  outline-offset: 2px;
}
@media (max-width: 920px) {
  .language-bar,
  .hero-grid,
  .page-banner,
  .redirect-box,
  .error-box {
    grid-template-columns: 1fr;
  }
  .hero-copy,
  .page-copy,
  .hero-art,
  .mascot-panel,
  .redirect-box,
  .error-box {
    min-height: auto;
  }
  .hero-art,
  .mascot-panel { padding-top: 1rem; }
}
@media (max-width: 720px) {
  .site-shell { width: min(calc(100% - 1rem), var(--max)); }
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav-menu[data-open] { display: flex; }
  .nav-menu a { border: 3px solid var(--line); background: rgba(255,255,255,.7); }
  .feature-lines li { grid-template-columns: 1fr; }
  .feature-index { width: 72px; }
  .language-list-rich a { min-width: 100%; }
}
@media (min-width: 721px) {
  .nav-toggle { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
