:root {
  --paper: #f6efe2;
  --ink: #17372a;
  --gold: #b77c2f;
  --gold-soft: rgba(183, 124, 47, 0.2);
  --focus: rgba(183, 124, 47, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.language-panel {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(183, 124, 47, 0.28);
  border-radius: 8px;
  background: rgba(246, 239, 226, 0.96);
  box-shadow: 0 8px 30px rgba(38, 27, 12, 0.12);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.language-panel:focus-within {
  transform: translateY(0);
}

.language-panel a {
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--ink);
  font: 600 13px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

.language-panel a[aria-current="page"] {
  background: var(--gold-soft);
  color: #70440f;
}

.page-frame {
  width: 100%;
  min-height: 100svh;
  overflow-x: auto;
  overflow-y: auto;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 250, 238, 0.72), rgba(246, 239, 226, 0) 34rem),
    var(--paper);
}

.artboard {
  position: relative;
  width: min(100vw, 1672px);
  min-width: 1100px;
  margin: 0 auto;
  line-height: 0;
}

.artboard img {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  border-radius: 7px;
  color: transparent;
  line-height: 1;
  text-decoration: none;
}

.hotspot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  background: var(--focus);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.redirect-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.redirect-card {
  max-width: 520px;
}

.redirect-card h1 {
  margin: 0 0 10px;
  font-size: clamp(38px, 8vw, 76px);
  font-weight: 400;
  line-height: 0.95;
}

.redirect-card p {
  margin: 0 0 22px;
  font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.redirect-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.redirect-links a {
  display: inline-flex;
  min-width: 126px;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid rgba(183, 124, 47, 0.48);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 252, 244, 0.74);
  font: 700 14px/1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
}

@media (max-width: 900px) {
  .artboard {
    width: 980px;
    min-width: 980px;
  }
}
