:root {
  --bg: #0b0c0d;
  --bg-soft: #141618;
  --card: #1b1d20;
  --gold: #f2c94c;
  --gold-deep: #d8a928;
  --text: #f5f5f2;
  --muted: #b9bab6;
  --border: #303236;
  --notice: #20231f;
  --warning: #e1a64b;
  --focus: #ffe28a;
  --wide: 1240px;
  --reading: 820px;
  --radius: 18px;
  --shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", "Segoe UI", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.72;
  overflow-wrap: anywhere;
}
body.menu-open { overflow: hidden; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--focus); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}
img { display: block; max-width: 100%; height: auto; }
.skip-link { position: fixed; z-index: 999; left: 16px; top: -100px; padding: 10px 16px; background: var(--gold); color: #111; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: 70px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(11, 12, 13, .88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.site-header__inner, .site-footer__inner, .site-footer__legal, .wide, .hero__inner {
  width: min(calc(100% - 48px), var(--wide));
  margin-inline: auto;
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.wordmark { color: var(--text); font-size: 29px; font-weight: 850; letter-spacing: -.04em; line-height: 1; text-decoration: none; }
.wordmark::after { content: "."; color: var(--gold); }
.site-header .wordmark { display: inline-flex; flex: 0 0 auto; align-items: center; }
.site-header .wordmark::after { content: none; }
.brand-logo { width: auto; height: 34px; }
.site-menu { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-menu a { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 18px; border-radius: 999px; color: var(--text); font-size: 16px; font-weight: 700; text-decoration: none; }
.site-menu a:hover, .site-menu .current-menu-item > a, .site-menu .current_page_item > a { background: var(--card); color: var(--gold); }
.menu-toggle { display: none; min-width: 48px; min-height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--text); }
.menu-toggle__icon { display: grid; gap: 4px; }
.menu-toggle__icon span { display: block; width: 20px; height: 2px; background: currentColor; }
.menu-toggle__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

main { min-height: 55vh; }
.hero { padding: 88px 0 0; text-align: center; }
.hero__copy { max-width: 940px; margin: 0 auto; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin: 0 0 .55em; color: var(--text); font-weight: 800; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 44px); }
h3 { font-size: clamp(24px, 3vw, 31px); }
p, ul, ol, table { margin-top: 0; }
.lede { color: var(--text); font-size: clamp(18px, 2.1vw, 22px); line-height: 1.58; }
.hero__subtitle { max-width: 760px; margin: 20px auto 0; color: var(--muted); }
.hero__media { margin-top: 54px; }
.story-image { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; aspect-ratio: 16 / 9; }
.hero__media .story-image { aspect-ratio: 2 / 1; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--gold); border-radius: 999px; background: var(--gold); color: #17150c; font-size: 16px; font-weight: 800; text-decoration: none; }
.button:hover { background: var(--focus); color: #111; }
.button--outline { background: transparent; color: var(--gold); }
.hero .button { margin-top: 26px; }

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section__inner { width: min(calc(100% - 48px), var(--reading)); margin-inline: auto; }
.section__inner--wide { width: min(calc(100% - 48px), var(--wide)); }
.prose > *:last-child { margin-bottom: 0; }
.prose p { margin-bottom: 1.3em; }
.prose strong { color: var(--text); }
.prose li + li { margin-top: .75em; }
.story-break { width: min(calc(100% - 48px), var(--wide)); margin: 0 auto; }
.category-block + .category-block { margin-top: 54px; padding-top: 54px; border-top: 1px solid var(--border); }
.category-block h3 { color: var(--gold); }
.numbered-guide { counter-reset: guide; padding: 0; list-style: none; }
.numbered-guide li { position: relative; min-height: 64px; padding-left: 78px; }
.numbered-guide li + li { margin-top: 28px; }
.numbered-guide li::before { counter-increment: guide; content: counter(guide); position: absolute; left: 0; top: 0; display: grid; width: 52px; height: 52px; place-items: center; border: 1px solid var(--gold-deep); border-radius: 50%; color: var(--gold); font-weight: 800; }
.notice { margin: 34px 0; padding: 24px; border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--notice); }
.notice--warning { border-left-color: var(--warning); }
.meta-line { color: var(--muted); font-size: 15px; }
.closing { padding: 46px; border: 1px solid var(--border); border-radius: var(--radius); background: linear-gradient(135deg, var(--card), var(--notice)); text-align: center; }

.article-header { padding: 96px 0 54px; }
.article-header__inner { width: min(calc(100% - 48px), var(--reading)); margin-inline: auto; }
.article-header h1 { font-size: clamp(40px, 6vw, 66px); }
.article-toc { margin-top: 34px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.article-toc summary { min-height: 52px; padding: 13px 18px; cursor: pointer; color: var(--gold); font-weight: 800; }
.article-toc ul { display: grid; grid-template-columns: repeat(5, auto); gap: 8px 18px; margin: 0; padding: 0 18px 18px; list-style: none; }
.article-toc a { font-size: 15px; }
.table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; min-width: 780px; border-collapse: collapse; background: var(--card); font-size: 15px; }
th, td { padding: 15px 17px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
th { color: var(--gold); }
tr:last-child td { border-bottom: 0; }

.contact-form { display: grid; gap: 22px; margin-top: 34px; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.field { display: grid; gap: 7px; }
.field label, .field legend { color: var(--text); font-weight: 750; }
.field small { color: var(--muted); font-size: 14px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #4c4f54; border-radius: 9px; background: #101214; color: var(--text); font: inherit; font-size: 16px; }
textarea { min-height: 180px; resize: vertical; }
.checkbox { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checkbox input { width: 20px; min-height: 20px; margin-top: 5px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { padding: 18px 20px; border-radius: 10px; background: var(--notice); border: 1px solid var(--gold-deep); }
.form-status--error { border-color: var(--warning); }

.site-footer { padding: 72px 0 28px; border-top: 1px solid var(--gold-deep); background: #08090a; }
.site-footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; }
.footer-brand p, .footer-contact p, .footer-contact a { color: var(--muted); font-size: 15px; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.footer-nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--text); font-size: 15px; text-decoration: none; }
.site-footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.site-footer__legal p { margin: 5px 0; color: var(--muted); font-size: 13px; }
.not-found { min-height: 55vh; display: grid; place-content: center; text-align: center; }

body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.site-bottom-cta {
  position: fixed;
  z-index: 99990;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
}
.site-bottom-cta__inner {
  display: flex;
  gap: 12px;
  width: min(100%, 560px);
  margin-inline: auto;
  padding: 10px;
  border: 1px solid rgba(242, 201, 76, .32);
  border-radius: 18px;
  background: rgba(11, 12, 13, .94);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, .48);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}
.site-bottom-cta__button {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.site-bottom-cta__login { border: 1px solid #5b5e63; background: #1b1d20; color: var(--text); }
.site-bottom-cta__register { border: 1px solid var(--gold); background: var(--gold); color: #17150c; box-shadow: 0 8px 22px rgba(242, 201, 76, .2); }
.site-bottom-cta__button:hover { transform: translateY(-2px); }
.site-bottom-cta__login:hover { border-color: var(--focus); background: #25282c; color: var(--focus); }
.site-bottom-cta__register:hover { background: var(--focus); color: #111; box-shadow: 0 10px 26px rgba(242, 201, 76, .3); }

@media (max-width: 860px) {
  .brand-logo { height: 31px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-navigation { position: fixed; inset: 60px 0 auto; display: none; padding: 20px 24px 28px; border-bottom: 1px solid var(--border); background: #0b0c0d; }
  .primary-navigation.is-open { display: block; }
  .site-menu { align-items: stretch; flex-direction: column; }
  .site-menu a { width: 100%; min-height: 52px; padding-inline: 12px; }
  .site-header, .site-header__inner { height: 60px; }
  .article-toc ul { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .site-header__inner, .site-footer__inner, .site-footer__legal, .wide, .hero__inner, .section__inner, .section__inner--wide, .story-break, .article-header__inner { width: min(calc(100% - 32px), var(--wide)); }
  .hero { padding-top: 56px; }
  .hero__media { margin-top: 36px; }
  .hero__media .story-image { aspect-ratio: 4 / 5; object-position: center; }
  .story-image { border-radius: 12px; }
  .section { padding: 56px 0; }
  .article-header { padding: 56px 0 24px; }
  .closing { padding: 30px 20px; }
  .contact-form { padding: 20px 16px; }
  .site-footer { padding-top: 56px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 420px) {
  body { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .site-bottom-cta { padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
  .site-bottom-cta__inner { gap: 8px; padding: 8px; border-radius: 14px; }
  .site-bottom-cta__button { min-height: 48px; padding: 10px 12px; font-size: 15px; }
  h1 { font-size: 38px; }
  .article-toc ul, .footer-nav { grid-template-columns: 1fr; }
  .numbered-guide li { padding-left: 62px; }
  .numbered-guide li::before { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
