:root {
  --page-bg-top: #243428;
  --page-bg-mid: #18241c;
  --page-bg-bot: #121a14;
  --page-gold: #e0c15c;
  --page-gold-2: #f3e6b0;
  --page-gold-line: rgba(224, 193, 92, 0.42);
  --page-text: #e8eee6;
  --page-muted: #b7c2b4;
  --page-ink: #14160e;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
}

body.page-doc {
  position: relative;
  color: var(--page-text);
  font: 16px/1.55 "Manrope", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: text;
  -webkit-user-select: text;
  padding:
    calc(16px + env(safe-area-inset-top))
    16px
    calc(36px + env(safe-area-inset-bottom));
  background:
    radial-gradient(920px 520px at 50% -12%, rgba(110, 148, 88, 0.38), transparent 58%),
    radial-gradient(640px 380px at 90% 18%, rgba(196, 176, 110, 0.1), transparent 52%),
    linear-gradient(180deg, var(--page-bg-top) 0%, var(--page-bg-mid) 46%, var(--page-bg-bot) 100%);
}

body.page-doc::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/></filter><rect width='80' height='80' filter='url(%23n)'/></svg>");
}

.page {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
}

.page h1,
.page h2 {
  font-family: Unbounded, Manrope, sans-serif;
  letter-spacing: 0.04em;
  color: var(--page-gold);
  font-weight: 800;
}

.page h1 {
  font-size: 28px;
  line-height: 1.15;
  margin: 8px 0 14px;
  color: var(--page-gold-2);
}

.page h2 {
  font-size: 18px;
  line-height: 1.25;
  margin: 0 0 10px;
}

.page p,
.page li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--page-text);
}

.page p { margin: 0 0 10px; }
.page p:last-child,
.page ul:last-child { margin-bottom: 0; }
.page ul { padding-left: 1.15em; margin: 0 0 10px; }
.page li { margin: 6px 0; }

.page .plaque {
  display: inline-block;
  margin: 0 0 6px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid var(--page-gold-line);
  background: rgba(22, 34, 26, 0.55);
  color: var(--page-gold-2);
  font-family: Unbounded, Manrope, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-card {
  margin: 0 0 14px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  border: 1px solid var(--page-gold-line);
  background:
    linear-gradient(180deg, rgba(40, 58, 44, 0.78) 0%, rgba(18, 28, 22, 0.7) 100%);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(243, 230, 176, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page .hint,
.page .kicker {
  color: var(--page-muted);
  margin: 0 0 12px;
}

.page .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--page-gold);
  margin: 0 0 6px;
}

.page .lbl {
  margin: 10px 0 6px;
  color: var(--page-gold-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page .notice {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--page-gold-line);
  background: rgba(58, 83, 64, 0.32);
  color: var(--page-gold-2);
  font-size: 13px;
  line-height: 1.4;
}

.page .page-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  margin: 0 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(224, 193, 92, 0.5);
  background: linear-gradient(180deg, rgba(47, 70, 54, 0.88), rgba(26, 40, 30, 0.88));
  color: var(--page-gold-2);
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(243, 230, 176, 0.18);
}

.page .page-back:active {
  transform: translateY(1px);
}
