:root {
  color-scheme: dark;
  --bg: #04090f;
  --bg-soft: #07111a;
  --surface: #09131d;
  --surface-2: #0d1824;
  --surface-3: #121f2c;
  --border: #243342;
  --border-strong: #344a5e;
  --text: #f5f7fb;
  --text-soft: #c4cbd5;
  --muted: #8d98a7;
  --accent: #5570ff;
  --accent-2: #9a32ff;
  --accent-3: #1fb7ff;
  --danger: #ef3d47;
  --success: #20bd73;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
  --radius: 8px;
  --radius-lg: 12px;
  --container: 1280px;
  --transition: 180ms ease;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #edf2f8;
  --bg-soft: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #e9eef5;
  --border: #d4dce6;
  --border-strong: #b8c4d1;
  --text: #111827;
  --text-soft: #374151;
  --muted: #667085;
  --shadow: 0 18px 50px rgba(28, 39, 55, .1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 17% 16%, rgba(49, 94, 177, .12), transparent 27rem),
    radial-gradient(circle at 82% 44%, rgba(115, 38, 190, .08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-is-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #6f85ff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(85, 112, 255, .55);
  outline-offset: 3px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: var(--surface);
  color: var(--text);
}

.site-container {
  width: min(calc(100% - 36px), var(--container));
  margin-inline: auto;
}

.om-icon {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
}

.site-main {
  min-height: 55vh;
}

/* Header */
.site-header {
  position: relative;
  z-index: 20;
}

.topbar {
  border-bottom: 1px solid rgba(104, 124, 149, .17);
  background: rgba(2, 6, 11, .74);
  backdrop-filter: blur(16px);
}

:root[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, .8);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  gap: 24px;
}

.top-menu ul,
.platform-navigation ul,
.footer-column ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.top-menu ul {
  display: flex;
  align-items: center;
  gap: 38px;
}

.top-menu a {
  position: relative;
  display: block;
  padding: 13px 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 650;
}

.top-menu a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-2);
  content: "";
  opacity: 0;
  transform: scaleX(.4);
  transition: var(--transition);
}

.top-menu a:hover::after,
.top-menu .current-menu-item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.top-actions,
.account-link {
  display: flex;
  align-items: center;
}

.top-actions {
  gap: 8px;
  font-size: 13px;
}

.account-link {
  gap: 7px;
  font-weight: 650;
}

.account-divider {
  color: var(--muted);
}

.icon-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
}

.theme-toggle {
  width: 36px;
  height: 36px;
  margin-right: 10px;
  border-radius: 50%;
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.theme-icon-sun,
:root[data-theme="light"] .theme-icon-moon {
  display: none;
}

:root[data-theme="light"] .theme-icon-sun {
  display: inline-flex;
}

.header-main {
  display: grid;
  grid-template-columns: 290px minmax(280px, 630px) 1fr;
  align-items: center;
  min-height: 128px;
  gap: 36px;
}

.site-branding {
  min-width: 0;
}

.custom-logo-link,
.brand-fallback {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-width: 260px;
  max-height: 82px;
}

.brand-fallback {
  gap: 12px;
  color: var(--text);
}

.brand-fallback:hover {
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: #6b85ff;
  filter: drop-shadow(0 0 14px rgba(85, 112, 255, .35));
}

.brand-mark .om-icon {
  width: 64px;
  height: 64px;
  stroke-width: 1.55;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  max-width: 180px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: .5px;
}

.brand-copy strong span {
  color: #b8c3e9;
}

.brand-copy small {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 11px;
  letter-spacing: .3px;
}

.search-form {
  position: relative;
  display: flex;
}

.search-field {
  width: 100%;
  height: 55px;
  padding: 0 68px 0 25px;
  border: 1px solid transparent;
  border-radius: 999px;
  outline: none;
  background: #f7f7f8;
  color: #1c2430;
  box-shadow: var(--shadow);
  transition: border var(--transition), box-shadow var(--transition);
}

.search-field:focus {
  border-color: #7889ff;
  box-shadow: 0 0 0 4px rgba(85, 112, 255, .16), var(--shadow);
}

.search-submit {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6827e7);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(75, 75, 255, .35);
}

.menu-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.menu-close-icon,
.menu-toggle[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close-icon {
  display: inline-flex;
}

.header-ad-wrap {
  margin-bottom: 10px;
}

.header-ad-wrap .widget {
  margin: 0;
}

.header-ad-wrap .widget-title {
  display: none;
}

.ad-placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background:
    linear-gradient(105deg, transparent 45%, rgba(39, 41, 143, .38) 65%, rgba(106, 31, 175, .34)),
    radial-gradient(circle at 30% 100%, rgba(53, 94, 218, .23), transparent 40%),
    #070c15;
  color: #fff;
}

.ad-placeholder::after {
  position: absolute;
  top: -90px;
  right: 10%;
  width: 330px;
  height: 230px;
  border: 1px solid rgba(104, 131, 255, .25);
  transform: rotate(-12deg);
  content: "";
  box-shadow: 0 0 70px rgba(72, 49, 255, .22);
}

.ad-placeholder strong {
  z-index: 1;
  font-size: 18px;
}

.ad-placeholder span {
  z-index: 1;
  color: #d1d7e3;
  font-size: 12px;
}

.navigation-shell {
  position: relative;
}

.platform-navigation {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  scrollbar-width: thin;
}

.platform-navigation ul {
  display: flex;
  min-width: max-content;
}

.platform-navigation li {
  position: relative;
  flex: 1;
}

.platform-navigation a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 24px;
  gap: 9px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.platform-navigation a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  content: "";
  opacity: 0;
}

.platform-navigation a:hover,
.platform-navigation .current-menu-item > a {
  background: rgba(86, 112, 255, .07);
  color: #8aa0ff;
}

.platform-navigation a:hover::after,
.platform-navigation .current-menu-item > a::after,
.platform-navigation li:first-child a::after {
  opacity: 1;
}

.platform-navigation .om-icon {
  width: 22px;
  height: 22px;
}

/* Shared components */
.section-title {
  position: relative;
  margin: 0 0 14px;
  padding-left: 16px;
  color: var(--text);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.2px;
  text-transform: uppercase;
}

.section-title::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent-2), #ed36d7);
  box-shadow: 0 0 12px rgba(154, 50, 255, .45);
  content: "";
}

.home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(0, .98fr) minmax(270px, .86fr);
  align-items: start;
  gap: 20px;
  padding-top: 25px;
}

.home-column,
.home-sidebar {
  min-width: 0;
}

.column-panel,
.sidebar-panel,
.all-posts-section,
.footer-panel,
.single-article,
.comments-area,
.widget,
.archive-shell,
.page-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, .018), transparent 30%), var(--surface);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .1);
}

.column-panel {
  padding: 10px;
}

.featured-card {
  position: relative;
  min-height: 338px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-3);
}

.popular-column .featured-card {
  min-height: 288px;
}

.featured-image,
.featured-image img,
.featured-image .image-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.featured-image img {
  object-fit: cover;
  transition: transform .45s ease;
}

.featured-card:hover .featured-image img {
  transform: scale(1.035);
}

.image-placeholder {
  display: grid;
  place-items: center;
  min-height: 120px;
  background:
    linear-gradient(135deg, rgba(69, 97, 222, .36), rgba(104, 26, 151, .3)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 14px),
    var(--surface-3);
  color: rgba(255, 255, 255, .42);
}

.image-placeholder .om-icon {
  width: 64px;
  height: 64px;
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 7, 12, .02) 28%, rgba(2, 7, 12, .9) 83%, #02070c 100%);
  pointer-events: none;
}

.featured-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 18px;
}

.featured-content h3 {
  margin: 10px 0 6px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.25;
}

.featured-content h3 a:hover {
  color: #fff;
}

.featured-content p {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #d4d8df;
  font-size: 13px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 3px 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, #4a61e8, #6f31d3);
  color: #fff !important;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .15px;
  line-height: 1;
  text-transform: uppercase;
}

.special-badge {
  background: linear-gradient(135deg, #f13e46, #b81f29);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.featured-content .post-meta {
  color: #b9c0cb;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.post-meta .om-icon {
  width: 13px;
  height: 13px;
}

.stacked-list {
  padding: 2px 5px;
}

.list-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}

.list-card-image,
.rank-image {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-3);
  aspect-ratio: 1.62;
}

.list-card-image img,
.list-card-image .image-placeholder,
.rank-image img,
.rank-image .image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.list-card-image .om-icon,
.rank-image .om-icon {
  width: 30px;
  height: 30px;
}

.list-card h3,
.ranked-posts h3 {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.panel-link,
.compact-link,
.load-more-button,
.button-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: #6f85ff;
  font-weight: 750;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.panel-link:hover,
.compact-link:hover,
.button-link:hover {
  border-color: var(--accent);
  background: rgba(85, 112, 255, .1);
  color: #8da0ff;
  transform: translateY(-1px);
}

.panel-link .om-icon,
.compact-link .om-icon {
  margin-left: 7px;
}

.ranked-posts {
  padding: 0 5px;
  margin: 3px 0 0;
  list-style: none;
}

.ranked-posts li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 118px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 83px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.rank-number,
.trending-list > li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 28px;
  border-radius: 4px;
  background: linear-gradient(135deg, #557bff, #5153e4);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  box-shadow: 0 5px 15px rgba(77, 88, 235, .25);
}

.home-sidebar {
  display: grid;
  gap: 12px;
}

.sidebar-panel {
  padding: 16px;
}

.social-list {
  display: grid;
  gap: 8px;
}

.social-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto 16px;
  align-items: center;
  min-height: 57px;
  padding: 8px 10px;
  gap: 10px;
  border: 1px solid rgba(113, 130, 151, .11);
  border-radius: 7px;
  background: var(--surface-2);
}

.social-row:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateX(2px);
}

.social-row.is-disabled {
  cursor: default;
  opacity: .72;
}

.social-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: #272d3a;
  color: #fff;
}

.social-youtube .social-icon { background: #e62f34; }
.social-x .social-icon { background: #070707; border: 1px solid #3d4450; }
.social-instagram .social-icon { background: linear-gradient(135deg, #6558e8, #d63786, #ffbe4a); }
.social-discord .social-icon { background: #5865f2; }
.social-row strong { font-size: 13px; }
.social-row small { color: var(--text-soft); font-size: 10px; }
.social-row > .om-icon { width: 14px; color: var(--muted); }

.trending-list {
  padding: 0;
  margin: 0 0 14px;
  list-style: none;
}

.trending-list li {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: center;
  min-height: 43px;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 720;
}

.trending-list > li > span {
  width: 23px;
  height: 26px;
}

.compact-link {
  min-height: 40px;
  color: var(--text-soft);
  font-size: 12px;
}

.system-cta {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  min-height: 170px;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #484cbb;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 85% 60%, rgba(44, 94, 255, .4), transparent 28%),
    linear-gradient(135deg, #111b3d, #100527 72%);
  color: #fff;
}

.system-cta::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(104, 62, 255, .13));
  content: "";
  pointer-events: none;
}

.system-cta > * {
  position: relative;
  z-index: 1;
}

.system-cta h2 {
  max-width: 190px;
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.05;
}

.system-cta p {
  margin: 0 0 12px;
  color: #cfd5e5;
  font-size: 11px;
  line-height: 1.55;
}

.system-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 5px;
  background: linear-gradient(135deg, #8643e8, #5145f0);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 7px 20px rgba(79, 52, 240, .32);
}

.system-visual {
  display: grid;
  place-items: center;
  color: #7294ff;
  filter: drop-shadow(0 0 19px rgba(77, 102, 255, .6));
}

.system-visual .om-icon {
  width: 82px;
  height: 82px;
  stroke-width: 1.1;
}

/* Post grid */
.all-posts-section {
  margin-top: 16px;
  margin-bottom: 18px;
  padding: 14px 16px 16px;
}

.all-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 12px;
}

.all-posts-header .section-title {
  flex: 0 0 auto;
  margin: 0;
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs a {
  flex: 0 0 auto;
  padding: 8px 15px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.category-tabs a:hover,
.category-tabs .is-active {
  background: linear-gradient(135deg, #4e85f5, #6677f2);
  color: #fff;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

.post-card {
  min-width: 0;
  padding-right: 9px;
  border-right: 1px solid var(--border);
}

.post-card:nth-child(5n) {
  padding-right: 0;
  border-right: 0;
}

.post-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface-3);
  aspect-ratio: 16 / 9;
}

.post-card-image > img,
.post-card-image > .image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transition: transform .35s ease;
}

.post-card:hover .post-card-image > img {
  transform: scale(1.045);
}

.post-card-badge {
  position: absolute;
  bottom: 7px;
  left: 7px;
}

.post-card-content {
  padding: 10px 7px 13px;
}

.post-card h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.load-more-wrap {
  display: grid;
  justify-items: center;
  margin-top: 10px;
}

.load-more-button {
  min-width: 220px;
  min-height: 38px;
  padding: 0 22px;
  border-color: var(--border-strong);
  color: var(--text);
  cursor: pointer;
}

.load-more-button:hover {
  border-color: var(--accent);
  background: rgba(85, 112, 255, .11);
}

.load-more-button:disabled {
  cursor: wait;
  opacity: .65;
}

.load-more-button span + span {
  margin-left: 7px;
}

.load-more-status {
  min-height: 20px;
  margin: 5px 0 0;
  color: #ff7780;
  font-size: 12px;
}

.empty-state {
  display: grid;
  justify-items: center;
  padding: 50px 22px;
  text-align: center;
}

.empty-state > span {
  color: var(--accent);
}

.empty-state > span .om-icon {
  width: 58px;
  height: 58px;
}

.empty-state h3 {
  margin: 12px 0 3px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--muted);
}

.button-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
}

/* Archives */
.archive-shell,
.page-shell {
  margin-top: 25px;
  margin-bottom: 30px;
  padding: clamp(18px, 3vw, 36px);
}

.archive-header {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.archive-header h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.15;
}

.eyebrow {
  margin: 0 0 7px;
  color: #7e91ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.archive-description {
  max-width: 720px;
  color: var(--muted);
}

.archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.archive-grid .post-card:nth-child(5n) {
  padding-right: 9px;
  border-right: 1px solid var(--border);
}

.archive-grid .post-card:nth-child(4n) {
  padding-right: 0;
  border-right: 0;
}

.pagination ul {
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 30px 0 0;
  gap: 7px;
  list-style: none;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface-2);
}

.pagination .current {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Article */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 22px;
  margin-top: 25px;
  margin-bottom: 30px;
}

.single-article {
  overflow: hidden;
}

.article-header,
.entry-content,
.article-footer {
  padding-inline: clamp(20px, 5vw, 58px);
}

.article-header {
  padding-top: clamp(25px, 5vw, 55px);
  padding-bottom: 24px;
}

.article-header h1 {
  max-width: 920px;
  margin: 13px 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -1.2px;
}

.article-lead {
  max-width: 780px;
  margin: 0 0 22px;
  color: var(--text-soft);
  font-size: 18px;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 11px;
}

.article-byline img {
  border: 2px solid var(--border-strong);
  border-radius: 50%;
}

.article-byline > span {
  display: grid;
  gap: 2px;
}

.article-byline strong {
  font-size: 13px;
}

.article-hero {
  margin: 0;
  background: var(--surface-3);
}

.article-hero img {
  width: 100%;
  max-height: 650px;
  object-fit: cover;
}

.entry-content {
  padding-top: 30px;
  padding-bottom: 38px;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.85;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 1.65em;
  color: var(--text);
  line-height: 1.25;
}

.entry-content a {
  color: #7f93ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--accent);
  border-radius: 0 7px 7px 0;
  background: var(--surface-2);
  color: var(--text);
}

.entry-content pre,
.entry-content table {
  max-width: 100%;
  overflow-x: auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  padding: 11px;
  border: 1px solid var(--border);
  text-align: left;
}

.article-footer {
  padding-bottom: 30px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.tag-list a {
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 12px;
}

.post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.post-navigation > div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.post-navigation > div:last-child {
  text-align: right;
}

.post-navigation span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.post-navigation a {
  font-weight: 750;
}

.article-sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.article-sidebar .widget {
  padding: 17px;
}

.compact-cta {
  grid-template-columns: 1fr;
}

.comments-area {
  padding: clamp(20px, 4vw, 38px);
}

.comments-title,
.comment-reply-title {
  margin-top: 0;
}

.comment-list {
  padding: 0;
  list-style: none;
}

.comment-list .children {
  padding-left: 35px;
  list-style: none;
}

.comment-body {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  font-size: 12px;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author img {
  border-radius: 50%;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
}

.comment-form input[type="submit"] {
  padding: 11px 17px;
  border: 0;
  border-radius: 5px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.page-shell {
  max-width: 1050px;
}

.page-shell .single-article {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Footer */
.site-footer {
  margin-top: 16px;
  padding-bottom: 18px;
}

.footer-panel {
  overflow: hidden;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr .95fr .95fr .95fr 1.28fr;
  gap: 0;
  padding: 25px 24px 22px;
}

.footer-grid > * {
  min-width: 0;
  padding: 0 25px;
  border-right: 1px solid var(--border);
}

.footer-grid > :first-child {
  padding-left: 0;
}

.footer-grid > :last-child {
  padding-right: 0;
  border-right: 0;
}

.footer-brand .brand-mark {
  width: 43px;
  height: 43px;
}

.footer-brand .brand-mark .om-icon {
  width: 42px;
  height: 42px;
}

.footer-brand .brand-copy strong {
  font-size: 19px;
}

.footer-brand .brand-copy small {
  display: none;
}

.footer-brand p,
.footer-about p {
  color: var(--text-soft);
  font-size: 12px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 5px;
  background: var(--surface-3);
}

.footer-column h2,
.footer-about h2 {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
}

.footer-column li {
  margin: 7px 0;
}

.footer-column a {
  color: var(--text-soft);
  font-size: 12px;
}

.footer-column .om-icon {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7187ff;
  font-size: 12px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 10px 24px;
  gap: 25px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  gap: 29px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: var(--transition);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* 404 */
.error-page {
  display: grid;
  justify-items: center;
  max-width: 760px;
  padding: 80px 20px;
  text-align: center;
}

.error-code {
  color: transparent;
  font-size: clamp(90px, 22vw, 190px);
  font-weight: 950;
  line-height: .9;
  -webkit-text-stroke: 2px var(--accent);
  filter: drop-shadow(0 0 20px rgba(85, 112, 255, .35));
}

.error-page h1 {
  margin-bottom: 7px;
}

.error-page p {
  max-width: 570px;
  margin-top: 0;
  color: var(--muted);
}

.error-page .search-form {
  width: min(100%, 560px);
  margin: 18px 0;
}

/* WordPress content */
.alignwide { margin-right: -4vw; margin-left: -4vw; max-width: calc(100% + 8vw); }
.alignfull { width: calc(100% + 10vw); max-width: none; margin-right: -5vw; margin-left: -5vw; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { color: var(--muted); font-size: 12px; }
.sticky { position: relative; }
.bypostauthor { position: relative; }

@media (max-width: 1180px) {
  .header-main { grid-template-columns: 260px minmax(280px, 1fr); }
  .home-layout { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .home-sidebar { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-panel, .trending-panel, .system-cta { min-height: 100%; }
  .post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .post-card:nth-child(5n) { padding-right: 9px; border-right: 1px solid var(--border); }
  .post-card:nth-child(4n) { padding-right: 0; border-right: 0; }
  .footer-grid { grid-template-columns: 1.25fr repeat(3, 1fr); }
  .footer-about { grid-column: 1 / -1; margin-top: 22px; padding: 20px 0 0; border-top: 1px solid var(--border); border-right: 0; }
}

@media (max-width: 860px) {
  .site-container { width: min(calc(100% - 24px), var(--container)); }
  .topbar-inner { justify-content: flex-end; }
  .top-menu { display: none; }
  .header-main { grid-template-columns: minmax(0, 1fr) auto; min-height: 96px; gap: 14px; }
  .header-search { grid-column: 1 / -1; padding-bottom: 15px; }
  .menu-toggle { display: inline-grid; }
  .brand-mark { width: 50px; height: 50px; }
  .brand-mark .om-icon { width: 50px; height: 50px; }
  .brand-copy strong { font-size: 21px; }
  .navigation-shell { width: 100%; }
  .platform-navigation { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; width: min(86vw, 360px); padding: 85px 18px 24px; border: 0; border-radius: 0; box-shadow: -20px 0 60px rgba(0,0,0,.4); transform: translateX(105%); transition: transform 220ms ease; }
  .platform-navigation.is-open { transform: none; }
  .platform-navigation ul { display: grid; min-width: 0; }
  .platform-navigation a { justify-content: flex-start; min-height: 52px; border-bottom: 1px solid var(--border); }
  .menu-toggle[aria-expanded="true"] { position: fixed; top: 22px; right: 22px; z-index: 100; }
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-cta { grid-column: 1 / -1; }
  .post-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-card:nth-child(n) { padding-right: 9px; border-right: 1px solid var(--border); }
  .post-card:nth-child(2n) { padding-right: 0; border-right: 0; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); row-gap: 25px; }
  .footer-grid > * { border-right: 0; }
  .footer-brand, .footer-column { padding: 0 18px; }
  .footer-grid > :nth-child(odd):not(.footer-about) { border-right: 1px solid var(--border); }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .footer-bottom nav { flex-wrap: wrap; gap: 12px 22px; }
}

@media (max-width: 580px) {
  body { font-size: 14px; }
  .top-actions { width: 100%; justify-content: flex-end; }
  .theme-toggle { margin-right: auto; }
  .header-main { min-height: 84px; }
  .brand-copy strong { max-width: 140px; font-size: 17px; }
  .brand-copy small { font-size: 9px; }
  .brand-mark, .brand-mark .om-icon { width: 42px; height: 42px; }
  .search-field { height: 49px; padding-left: 18px; }
  .search-submit { width: 39px; height: 39px; }
  .ad-placeholder { min-height: 82px; }
  .ad-placeholder strong { font-size: 15px; }
  .home-layout { padding-top: 19px; }
  .featured-card { min-height: 310px; }
  .popular-column .featured-card { min-height: 275px; }
  .list-card { grid-template-columns: 105px minmax(0, 1fr); }
  .ranked-posts li { grid-template-columns: 23px 92px minmax(0, 1fr); }
  .ranked-posts .post-meta span:not(:first-child) { display: none; }
  .home-sidebar { grid-template-columns: 1fr; }
  .system-cta { grid-column: auto; }
  .all-posts-header { align-items: flex-start; flex-direction: column; }
  .category-tabs { width: 100%; }
  .post-grid, .archive-grid { grid-template-columns: 1fr; }
  .post-card:nth-child(n) { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .post-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); gap: 10px; padding-bottom: 13px; }
  .post-card-content { padding: 0; }
  .post-card h3 { min-height: 0; }
  .post-card .post-meta { gap: 5px; }
  .post-card .post-meta span:nth-child(2) { display: none; }
  .archive-shell, .page-shell { padding: 16px; }
  .article-header h1 { letter-spacing: -.6px; }
  .article-byline .post-meta span:nth-child(3) { display: none; }
  .entry-content { font-size: 16px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation > div:last-child { text-align: left; }
  .article-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :nth-child(n) { padding: 0; border-right: 0 !important; }
  .footer-grid > * + * { padding-top: 18px; border-top: 1px solid var(--border); }
  .footer-about { grid-column: auto; margin-top: 0; }
  .footer-bottom { padding: 16px; }
}

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