:root {
  --text: #000;
  --bg: #fff;
  --veil: rgba(255, 255, 255, 0.45);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --text: #fff;
  --bg: #000;
  --veil: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--text);
  background: var(--bg);
  text-align: center;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Background: the main site, heavily blurred */
.bgframe {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: blur(16px);
  transform: scale(1.08);
  pointer-events: none;
  user-select: none;
}
.veil {
  position: fixed;
  inset: 0;
  background: var(--veil);
  pointer-events: none;
}

/* Text sheet */
.sheet {
  position: fixed;
  top: 56px;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(780px, calc(100% - 24px));
  overflow-y: auto;
  background: var(--bg);
  padding: 32px clamp(18px, 4vw, 56px) 48px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

.sheet .brand {
  display: block;
  text-transform: lowercase;
  font-size: 14px;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

h1 {
  font-weight: 300;
  font-size: clamp(25px, 3.5vw, 41px);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
h2 {
  font-weight: 400;
  font-size: 15px;
  text-transform: lowercase;
  letter-spacing: 0.1em;
  margin: 32px 0 8px;
}
p + p { margin-top: 0.8em; }
a { color: var(--text); }

/* Show only the active language */
body[data-lang="de"] :is(.hu, .en),
body[data-lang="hu"] :is(.de, .en),
body[data-lang="en"] :is(.de, .hu) { display: none; }

/* Placeholders to fill in */
.ph { background: rgba(255, 200, 0, 0.35); padding: 0 3px; }

/* Language switch: top right, active language bold */
.langswitch {
  position: fixed;
  top: 14px;
  right: clamp(12px, 2.5vw, 32px);
  display: flex;
  gap: 12px;
  font-size: 14px;
  letter-spacing: 0.1em;
  z-index: 10;
}
.langswitch button {
  all: unset;
  cursor: pointer;
  font-weight: 300;
  text-transform: lowercase;
  color: var(--text);
}
.langswitch button[aria-pressed="true"] { font-weight: 700; }
.langswitch button:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Close button: red dot in the top right corner of the sheet */
.close {
  position: fixed;
  top: 70px;
  right: calc(50vw - min(390px, 50vw - 12px) + 14px);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ff5f57;
  border: 1px solid rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(70, 0, 0, 0.85);
  text-decoration: none;
  z-index: 10;
}
.close svg { width: 8px; height: 8px; display: block; opacity: 0; transition: opacity .15s; }
.close:hover svg, .close:focus-visible svg { opacity: 1; }
.close:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
/* No hover on touch screens: always show the cross */
@media (hover: none) { .close svg { opacity: 1; } }

@media (max-width: 640px) {
  .sheet { top: 48px; bottom: 12px; }
  .close { top: 62px; }
}
