/* --- Tokens ------------------------------------------------------------ */
:root {
  --stock:     #F4EFE4;
  --ink:       #1A1612;
  --ink-soft:  #3D362E;
  --ink-muted: #6B6259;
  --rule:      #2A2620;
  --link:      #7A2E2A;
}

/* --- Reset & base ------------------------------------------------------ */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--stock);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  font-feature-settings: "liga" 1, "kern" 1, "onum" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 0.5px solid currentColor;
}
a:hover { opacity: 0.75; }

/* --- Language switcher: mirrors the print 'PL / EN' corner mark -------- */
.lang-switch {
  position: fixed;
  top: 22px;
  right: 28px;
  display: flex;
  gap: 2px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  z-index: 10;
}
.lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 6px 8px;
  border-bottom: 0.5px solid transparent;
}
.lang-switch button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* --- Wordmark ---------------------------------------------------------- */
.wordmark {
  font-size: clamp(40px, 8vw, 68px);
  letter-spacing: 0.105em;
  font-weight: 400;
  line-height: 0.98;
  padding-left: 0.105em;
  margin: 0;
}
.wordmark > span { display: block; }
.wordmark > span + span { margin-top: 6px; }

/* --- Rules (decorative double rule) ------------------------------------ */
.rules {
  margin: clamp(28px, 5vh, 40px) auto;
  width: 100%;
  max-width: 460px;
}
.rules > div { background: var(--rule); }
.rules > div:nth-child(1) { height: 1.4px; }
.rules > div:nth-child(2) { height: 0.5px; margin-top: 4px; }

/* --- Type scale -------------------------------------------------------- */
/* Body tier: 17–19px serif body copy. */
.body-line {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.6;
  color: var(--ink-soft);
  margin: clamp(28px, 4vh, 36px) auto clamp(20px, 3vh, 28px);
  max-width: 520px;
}

/* --- Back button (dark CTA) -------------------------------------------- */
.back {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stock);
  background: var(--ink);
  padding: 14px 28px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease;
}
.back:hover {
  background: var(--link);
  opacity: 1;
}

/* --- Footer ------------------------------------------------------------ */
footer {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  padding: 28px 16px 44px;
}

/* --- Language visibility ----------------------------------------------- */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"],
html[lang="pl"] [data-lang="pl"] { display: revert; }

/* --- Small screens ----------------------------------------------------- */
@media (max-width: 480px) {
  .lang-switch { top: 12px; right: 14px; }
}

/* --- Reduced motion ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
