:root {
  --bg-main: #0a0a0a;
  --bg-sub: #121212;
  --bg-panel: #1a1a1a;
  --text-main: #f5f5f5;
  --text-muted: #888888;
  --accent: #ffd700;
  --accent-dark: #ccaa00;
  --border-light: rgba(255, 255, 255, 0.1);
  --border-dark: rgba(255, 215, 0, 0.2);
  --font-sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-sys);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; background-color: var(--bg-panel); }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
::selection { background-color: var(--accent); color: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--accent); color: #000; padding: 8px 16px; z-index: 1000; transition: top 0.2s; }
.skip-link:focus { top: 0; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; border-bottom: 1px solid var(--border-light); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; }
.section__title { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; position: relative; }
.section__title::after { content: ''; position: absolute; left: 0; bottom: -8px; width: 40px; height: 3px; background: var(--accent); }
.section__dek { color: var(--text-muted); font-size: 15px; max-width: 400px; text-align: right; }
.kicker { display: inline-block; color: var(--accent); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px; }
.kicker::before { content: '■'; font-size: 10px; margin-right: 6px; vertical-align: middle; }

.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 30px; padding: 12px 24px; font-weight: 600; font-size: 15px; transition: all 0.2s; cursor: pointer; border: none; }
.btn--solid { background: var(--accent); color: #000; }
.btn--solid:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn--outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #000; }
.btn--small { padding: 8px 16px; font-size: 13px; }
.btn--block { width: 100%; }
.text-link { display: inline-flex; align-items: center; color: var(--accent); font-weight: 600; font-size: 15px; margin-top: 16px; }
.text-link::after { content: '→'; margin-left: 8px; transition: transform 0.2s; }
.text-link:hover::after { transform: translateX(4px); }

/* Header */
.site-header { position: fixed; top: 0; left: 0; width: 100%; background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-light); z-index: 100; }
.site-header__bar { display: flex; justify-content: space-between; align-items: center; height: 64px; padding: 0 24px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { height: 32px; width: auto; border-radius: 6px; }
.brand__text strong { font-size: 18px; display: block; line-height: 1.2; }
.brand__text small { color: var(--accent); font-size: 11px; letter-spacing: 1px; display: block; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text-muted); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--accent); }
.header__actions { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text-main); transition: 0.2s; }
.nav-toggle:hover span { background: var(--accent); }

/* Ticker */
.ticker { background: var(--bg-sub); border-bottom: 1px solid var(--border-light); padding: 10px 0; margin-top: 64px; overflow: hidden; }
.ticker__inner { display: flex; align-items: center; gap: 16px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.ticker__label { background: var(--accent); color: #000; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 4px; white-space: nowrap; }
.ticker__viewport { flex: 1; overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-block; animation: ticker 20s linear infinite; }
.ticker__track span { color: var(--text-muted); font-size: 14px; margin-right: 24px; }
.ticker__track span::after { content: '•'; color: var(--accent); margin-left: 24px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* Frontpage (Hero) */
.frontpage { padding: 60px 0; }
.masthead { text-align: center; margin-bottom: 60px; }
.masthead__meta { display: flex; justify-content: center; gap: 16px; color: var(--text-muted); font-size: 13px; margin-bottom: 20px; }
.masthead__meta span::before { content: '■'; color: var(--accent); font-size: 8px; margin-right: 8px; vertical-align: middle; }
.masthead__title { font-size: 56px; font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin-bottom: 16px; }
.masthead__slogan { color: var(--accent); font-size: 20px; font-weight: 600; margin-bottom: 32px; display: block; }
.masthead__foot { display: flex; justify-content: center; align-items: center; gap: 40px; max-width: 800px; margin: 0 auto; }
.masthead__desc { color: var(--text-muted); text-align: left; font-size: 15px; }
.masthead__issue { text-align: center; border-left: 1px solid var(--border-light); padding-left: 40px; }
.masthead__issue-num { color: var(--accent); font-size: 40px; font-weight: 900; line-height: 1; }
.masthead__issue-label { color: var(--text-muted); font-size: 13px; margin-top: 8px; display: block; }

.frontpage__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.cover-frame { aspect-ratio: 3/4; border-radius: 12px; overflow: hidden; border: 1px solid var(--border-light); position: relative; background: var(--bg-panel); }
.cover-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.cover-frame:hover img { transform: scale(1.05); }
.stamp { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #000; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 4px; }
.lead__caption { margin-top: 16px; }
.lead__caption h2 { font-size: 24px; margin-bottom: 8px; }
.lead__caption p { color: var(--text-muted); font-size: 14px; }

.dispatch { display: flex; flex-direction: column; justify-content: center; }
.dispatch__lead { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.dispatch p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.dispatch__actions { display: flex; gap: 12px; margin-bottom: 24px; }
.dispatch__note { font-size: 13px; color: var(--text-muted); border-left: 2px solid var(--accent); padding-left: 12px; }

.side-covers { display: flex; flex-direction: column; gap: 24px; }
.side-card { display: flex; gap: 16px; align-items: center; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.side-card:last-child { border-bottom: none; padding-bottom: 0; }
.side-card__img { width: 80px; height: 106px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--bg-panel); }
.side-card__img img { width: 100%; height: 100%; object-fit: cover; }
.side-card__info { flex: 1; }
.side-card__title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.side-card__tag { font-size: 12px; color: var(--accent); }
.side-link { font-size: 13px; color: var(--accent); margin-top: 8px; display: inline-block; }

/* Cover Story */
.cover-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.cover-story__figure { position: relative; }
.cover-story__figure figcaption { margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.cover-story__figure figcaption::before { content: '—'; color: var(--accent); margin-right: 8px; }
.cover-story__text h2 { font-size: 36px; margin-bottom: 20px; }
.cover-story__text p { color: var(--text-muted); font-size: 16px; margin-bottom: 20px; }
.pullquote { font-size: 20px; font-style: italic; color: var(--text-main); border-left: 4px solid var(--accent); padding-left: 20px; margin: 32px 0; }

/* Lineup */
.lineup__grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.lineup__lead .cover-frame { margin-bottom: 20px; }
.lineup__lead-body h3 { font-size: 24px; margin-bottom: 12px; }
.lineup__lead-body p { color: var(--text-muted); font-size: 15px; margin-bottom: 16px; }
.lineup__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--accent); color: #000; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.lineup__list { list-style: none; }
.lineup__item { display: flex; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border-light); transition: background 0.2s; }
.lineup__item:hover { background: var(--bg-sub); }
.lineup__rank { font-size: 32px; font-weight: 900; color: var(--accent); width: 40px; text-align: center; font-style: italic; }
.lineup__thumb { width: 60px; height: 80px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.lineup__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lineup__text { flex: 1; }
.lineup__text h3 { font-size: 18px; margin-bottom: 4px; }
.lineup__text p { font-size: 13px; color: var(--text-muted); }
.lineup__item .tag { margin-left: auto; }
.section__cta { margin-top: 40px; text-align: center; }

/* Genres */
.genre-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.genre-card { background: var(--bg-sub); border: 1px solid var(--border-light); border-radius: 12px; padding: 24px; transition: all 0.3s; }
.genre-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.genre-card .cover-frame { margin-bottom: 16px; aspect-ratio: 4/3; }
.genre-card h3 { font-size: 20px; margin-bottom: 8px; }
.genre-card p { color: var(--text-muted); font-size: 14px; }
.genre-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; justify-content: center; }
.genre-chips span { border: 1px solid var(--border-dark); color: var(--accent); padding: 6px 16px; border-radius: 20px; font-size: 14px; cursor: pointer; transition: all 0.2s; }
.genre-chips span:hover { background: var(--accent); color: #000; border-color: var(--accent); }

/* Standards */
.standards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.standard { border-top: 2px solid var(--accent); padding-top: 24px; }
.standard__num { font-size: 48px; font-weight: 900; color: var(--accent); line-height: 1; margin-bottom: 16px; font-family: serif; }
.standard h3 { font-size: 22px; margin-bottom: 12px; }
.standard p { color: var(--text-muted); font-size: 15px; }

/* Lab */
.lab__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: stretch; }
.lab__panel { background: var(--bg-sub); border: 1px solid var(--border-light); border-radius: 12px; padding: 32px; }
.lab__label { display: inline-block; background: var(--accent); color: #000; font-size: 12px; font-weight: 800; padding: 4px 8px; border-radius: 4px; margin-bottom: 16px; }
.lab__line { font-size: 18px; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.lab__panel p { color: var(--text-muted); font-size: 15px; }
.lab__panel--after { border-color: var(--accent-dark); background: rgba(255, 215, 0, 0.05); }
.lab__switch { display: flex; align-items: center; justify-content: center; font-size: 32px; color: var(--accent); }
.lab__note { text-align: center; margin-top: 32px; font-size: 14px; color: var(--text-muted); border-left: 2px solid var(--accent); padding-left: 12px; display: inline-block; }

/* Editor */
.editor { border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); background: var(--bg-sub); }
.editor__inner { max-width: 800px; margin: 0 auto; }
.editor__quote { font-size: 24px; font-weight: 700; font-style: italic; border-left: 6px solid var(--accent); padding-left: 24px; margin-bottom: 24px; line-height: 1.4; }
.editor__by { text-align: right; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.editor__body { color: var(--text-muted); font-size: 16px; line-height: 1.8; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; }
.faq__intro h2 { font-size: 32px; margin-bottom: 16px; }
.faq__intro p { color: var(--text-muted); font-size: 15px; }
.faq__list details { background: var(--bg-sub); border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 16px; overflow: hidden; }
.faq__list details:hover { border-color: var(--accent-dark); }
.faq__list summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; color: var(--accent); font-size: 20px; font-weight: 400; transition: transform 0.2s; }
.faq__list details[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq__answer { padding: 0 20px 20px; color: var(--text-muted); font-size: 15px; border-top: 1px solid var(--border-light); padding-top: 16px; margin-top: -1px; }

/* Download */
.download { background: var(--bg-panel); border: 1px solid var(--border-dark); border-radius: 16px; padding: 60px; margin: 60px 0; box-shadow: 0 0 40px rgba(255, 215, 0, 0.05); }
.download__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.download__copy h2 { font-size: 36px; margin-bottom: 16px; }
.download__copy p { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }
.download__ticket { display: inline-block; background: var(--accent); color: #000; font-size: 13px; font-weight: 800; padding: 6px 12px; border-radius: 4px; border: 2px dashed #000; }
.download__actions { display: flex; flex-direction: column; gap: 16px; }
.dl-btn { display: flex; flex-direction: column; align-items: flex-start; background: var(--bg-main); border: 1px solid var(--border-light); border-radius: 12px; padding: 20px; transition: all 0.2s; }
.dl-btn:hover { border-color: var(--accent); }
.dl-btn strong { font-size: 18px; color: var(--text-main); margin-bottom: 4px; transition: color 0.2s; }
.dl-btn span { font-size: 13px; color: var(--text-muted); }
.dl-btn:hover strong { color: var(--accent); }
.download__meta { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 32px; }

/* Footer */
.site-footer { background: var(--bg-sub); border-top: 1px solid var(--border-light); padding: 60px 0 24px; }
.footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__col h3 { color: var(--accent); font-size: 15px; margin-bottom: 16px; }
.footer__col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-light); padding-top: 24px; font-size: 13px; color: var(--text-muted); }

/* Floating */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(10, 10, 10, 0.9); backdrop-filter: blur(10px); border-top: 1px solid var(--border-light); padding: 12px 24px; gap: 12px; z-index: 90; }
.mobile-cta .btn { flex: 1; }
.to-top { position: fixed; bottom: 24px; right: 24px; width: 48px; height: 48px; background: var(--bg-main); border: 1px solid var(--accent); color: var(--accent); display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 80; }
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--accent); color: #000; }

/* Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); display: flex; align-items: center; justify-content: center; z-index: 200; opacity: 0; visibility: hidden; transition: all 0.3s; }
.modal.show { opacity: 1; visibility: visible; }
.modal__panel { background: var(--bg-sub); border: 1px solid var(--border-light); border-radius: 16px; padding: 32px; width: 100%; max-width: 400px; position: relative; }
.modal__close { position: absolute; top: 16px; right: 16px; background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal__close:hover { color: var(--accent); }
.modal h3 { font-size: 20px; margin-bottom: 16px; }
.modal__url { background: var(--bg-main); border: 1px solid var(--border-light); border-left: 3px solid var(--accent); padding: 12px; font-family: monospace; font-size: 14px; color: var(--text-main); margin-bottom: 24px; word-break: break-all; }
.modal__actions { display: flex; gap: 12px; }

/* Drawer */
.drawer { position: fixed; top: 0; right: -100%; width: 100%; max-width: 320px; height: 100%; background: var(--bg-sub); z-index: 150; transition: right 0.3s; padding: 24px; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.drawer.open { right: 0; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.drawer__close { background: none; border: none; color: var(--text-main); font-size: 24px; cursor: pointer; }
.drawer__close:hover { color: var(--accent); }
.drawer__nav { flex: 1; }
.drawer__nav a { display: flex; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border-light); color: var(--text-main); }
.drawer__nav a:hover { color: var(--accent); background: rgba(255, 215, 0, 0.05); }
.drawer__nav small { color: var(--accent); }
.drawer__foot { margin-top: 24px; }
.drawer__foot p { color: var(--text-muted); font-size: 13px; margin-top: 16px; text-align: center; }
.bg-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); z-index: 140; opacity: 0; visibility: hidden; transition: all 0.3s; }
.bg-overlay.show { opacity: 1; visibility: visible; }

@media (max-width: 1024px) {
  .frontpage__grid { grid-template-columns: 1fr 1fr; }
  .side-covers { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .genre-grid { grid-template-columns: 1fr 1fr; }
  .standards__grid { grid-template-columns: 1fr; }
  .standard { border-top: none; border-left: 2px solid var(--accent); padding-left: 24px; padding-top: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav, .header__actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .frontpage__grid, .cover-story, .lineup__grid, .faq__grid, .download__grid { grid-template-columns: 1fr; }
  .side-covers { grid-template-columns: 1fr; }
  .masthead__foot { flex-direction: column; gap: 24px; }
  .masthead__issue { border-left: none; border-top: 1px solid var(--border-light); padding-left: 0; padding-top: 24px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 60px; }
  .to-top { bottom: 80px; }
  .footer__top { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .download { padding: 32px 24px; }
  .lab__grid { grid-template-columns: 1fr; }
  .lab__switch { transform: rotate(90deg); padding: 16px 0; }
}

@media (max-width: 640px) {
  .masthead__title { font-size: 36px; }
  .masthead__slogan { font-size: 16px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section__dek { text-align: left; }
  .genre-grid { grid-template-columns: 1fr; }
  .lineup__item { gap: 12px; }
  .lineup__thumb { display: none; }
  .lineup__rank { font-size: 24px; width: 30px; }
  .lineup__item .tag { display: none; }
  .btn { width: 100%; }
  .dispatch__actions { flex-direction: column; }
  .modal__panel { border-radius: 0; height: 100%; max-width: 100%; display: flex; flex-direction: column; justify-content: center; }
}