/* ------------------------------------------------------------------ */
/* untitled.movie — Drehbuch- / Schreibmaschinen-Anmutung             */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-bold.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/courier-prime-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Courier Prime";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/courier-prime-bold-italic.woff2") format("woff2");
}

:root {
  --paper: #f4f1ea;
  --page: #fbf9f4;
  --ink: #232323;
  --ink-faint: #6f6c66;
  --rule: #d8d3c8;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* --- Die "Seite" ------------------------------------------------- */

.page {
  max-width: 41rem;
  margin: 3rem auto 5rem;
  padding: 4.5rem 3.5rem 4rem;
  background: var(--page);
  border: 1px solid var(--rule);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07), 0 12px 34px rgba(0, 0, 0, 0.06);
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .page {
    margin: 0;
    padding: 4.5rem 1.4rem 3rem;
    border: none;
    box-shadow: none;
  }
}

/* --- Sprachumschaltung ------------------------------------------- */

.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 10;
  color: var(--ink-faint);
  font-family: "Courier Prime", "Courier New", Courier, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.lang-switch button {
  appearance: none;
  background: none;
  border: none;
  padding: 0.25rem 0.2rem;
  color: var(--ink-faint);
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--ink);
}

.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

/* --- Sichtbarkeit der Sprachfassungen ----------------------------- */

article[data-lang] {
  display: none;
}

body[data-lang="de"] article[data-lang="de"],
body[data-lang="en"] article[data-lang="en"] {
  display: block;
}

/* --- Typografie ---------------------------------------------------- */

.title-page {
  margin-bottom: 4.5rem;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.title-page::after {
  content: "* * *";
  display: block;
  margin-top: 1.6rem;
  color: var(--ink-faint);
  letter-spacing: 0.5em;
  font-size: 0.85rem;
}

h2 {
  margin: 3.2rem 0 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h3 {
  margin: 2.4rem 0 1.2rem;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

p {
  margin: 0 0 1.4rem;
}

/* Filmtitel: unterstrichen statt kursiv — wie mit der Schreibmaschine */
em {
  font-style: normal;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

/* "Hier setzt der Film ein." — wie eine Regieanweisung */
.beat {
  margin: 2.6rem 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* --- Unterschrift --------------------------------------------------- */

.signature {
  margin-top: 4.5rem;
}

.signature p {
  margin: 0;
  text-align: right;
}

/* --- Blinkender Cursor ---------------------------------------------- */

.cursor {
  display: inline-block;
  margin-left: 0.1em;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
