*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: hidden; }

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font-mono);
}

/* ===== header (mirrors apps/main) ===== */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  height: 62px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
}
.pt-brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.pt-brand .pt-logo-icon { filter: drop-shadow(0 0 4px var(--accent)); }
.pt-logo-icon rect { fill: var(--accent); }
.pt-brand span { font-weight: 700; font-size: 20px; letter-spacing: .08em; color: var(--text); }
.pk-title { font-size: 14px; letter-spacing: .1em; color: var(--muted); margin-left: auto; }

.lang-btn {
  margin-left: 18px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--section-border);
  cursor: pointer;
}
.lang-btn:hover { color: var(--accent); border-color: var(--accent); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#app { max-width: 760px; margin: 0 auto; padding: 40px 20px 72px; }

.pk-view { margin-bottom: 44px; }
.pk-label { font-size: 13px; letter-spacing: .22em; color: var(--accent); margin-bottom: 18px; }

/* ===== page heading ===== */

.page-heading {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 64px);
  font-weight: 700;
  line-height: .95;
  letter-spacing: -.01em;
  color: var(--heading);
}
.page-heading span:last-child { color: var(--accent); }

.lede {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ===== prose ===== */

.prose { max-width: 64ch; }
.prose p { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: var(--text); }

.inline-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-glow);
}
.inline-link:hover { border-bottom-color: var(--accent); }

/* ===== note list ===== */

.note-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--section-border); }
.note-list li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--section-border);
}
.note-list__key {
  flex: 0 0 110px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.note-list__val { font-size: 14px; color: var(--muted); }

@media (max-width: 480px) {
  header { padding: 12px 18px; height: auto; }
  .pk-title { display: none; }
  #app { padding: 24px 16px 56px; }
  .note-list li { flex-direction: column; gap: 4px; }
}
