/* wenpkr.com — shared layout & WinPKR brand accents */
:root {
  --bg: #0c1118;
  --surface: #141c28;
  --border: #243044;
  --text: #e8eef5;
  --muted: #9aacbd;
  --accent: #22c55e;
  --accent-dim: #16a34a;
  --gold: #eab308;
  --link: #38bdf8;
  --max: 46rem;
  --nav-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #7dd3fc;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #052e16;
  font-weight: 700;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 17, 24, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav-h);
}

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.logo span {
  color: var(--accent);
}

.logo-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-with-icon img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.logo-text span {
  color: var(--accent);
}

.hero-figure {
  margin: 0 0 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: center;
  max-width: 16rem;
}

.hero-figure img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-figure figcaption {
  margin: 0.75rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}

.hero-with-media {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.5rem 2rem;
}

.hero-with-media .hero-copy {
  flex: 1;
  min-width: min(100%, 18rem);
}

.hero-with-media .hero-figure {
  margin-bottom: 0;
}

.content-figure {
  margin: 1.75rem 0;
  max-width: var(--max);
}

.content-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
}

.content-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.nav-main a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #052e16 !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none !important;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(34, 197, 94, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.45);
  color: #052e16 !important;
}

.btn-download:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.btn-download--block {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
}

.download-strip {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  text-align: center;
}

.download-strip p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

main {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  padding: 2rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero .lead {
  margin: 0;
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 40rem;
}

article.prose {
  max-width: var(--max);
}

article.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.45rem;
  line-height: 1.25;
  color: var(--text);
}

article.prose h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: #cbd5e1;
}

article.prose p {
  margin: 0 0 1rem;
  color: #c5d0dc;
}

article.prose ul,
article.prose ol {
  margin: 0 0 1rem 1.25rem;
  color: #c5d0dc;
}

article.prose li {
  margin-bottom: 0.35rem;
}

.toc {
  max-width: var(--max);
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.toc h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.toc a {
  font-weight: 500;
}

.related {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.related h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.related a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.related a:hover {
  border-color: var(--accent);
}

.site-footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-main {
    justify-content: center;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}
