:root {
    --af-bg: #f6f7fb;
    --af-surface: #ffffff;
    --af-ink: #17192b;
    --af-muted: #64687a;
    --af-line: #e5e7ef;
    --af-navy: #11162a;
    --af-navy-soft: #1a2140;
    --af-coral: #ff4d6d;
    --af-coral-dark: #dc2f51;
    --af-violet: #7c3aed;
    --af-cyan: #22d3ee;
    --af-radius-sm: 10px;
    --af-radius: 18px;
    --af-radius-lg: 28px;
    --af-shadow: 0 16px 48px rgba(20, 23, 46, 0.09);
    --af-container: 1200px;
    --af-article: 820px;
    --af-transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--af-bg);
    color: var(--af-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.nav-open {
    overflow: hidden;
}

img,
svg,
video {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

a {
    color: var(--af-violet);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--af-coral-dark);
}

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

button,
input[type="submit"] {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--af-cyan);
    outline-offset: 3px;
}

::selection {
    background: var(--af-coral);
    color: #fff;
}

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

.container--article {
    max-width: var(--af-article);
}

.container--feature {
    max-width: 1120px;
}

.site-shell {
    min-height: 100vh;
    overflow: clip;
}

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

.section-space {
    padding-block: clamp(48px, 7vw, 88px);
}

.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 {
    z-index: 100000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    clip: auto;
    padding: 10px 16px;
    border-radius: 8px;
    background: #fff;
    color: var(--af-ink);
    font-weight: 800;
}

.skip-link {
    position: fixed !important;
}

.site-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    background: var(--af-surface);
    box-shadow: 0 6px 24px rgba(19, 22, 42, 0.06);
}

.admin-bar .site-header {
    top: 32px;
}

.utility-bar {
    background: var(--af-navy);
    color: #cfd4e9;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.utility-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
}

.utility-bar p {
    margin: 0;
}

.main-header {
    background: #fff;
}

.main-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 28px;
}

.brand,
.brand__link {
    display: inline-flex;
    align-items: center;
}

.brand {
    flex: 0 0 auto;
}

.brand__link {
    color: var(--af-ink);
    gap: 9px;
    text-decoration: none;
}

.brand__link:hover {
    color: var(--af-ink);
}

.brand__mark {
    width: 48px;
    height: 48px;
}

.brand__word {
    font-size: clamp(23px, 2.4vw, 30px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.055em;
}

.brand__word span {
    color: var(--af-coral);
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.search-form {
    display: flex;
    align-items: stretch;
    width: min(310px, 30vw);
    min-width: 230px;
    border: 1px solid var(--af-line);
    border-radius: 999px;
    background: var(--af-bg);
    transition: border-color var(--af-transition), box-shadow var(--af-transition);
}

.search-form:focus-within {
    border-color: var(--af-violet);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.search-form label {
    flex: 1;
    min-width: 0;
}

.search-field {
    width: 100%;
    height: 44px;
    border: 0;
    outline: 0;
    padding: 0 6px 0 17px;
    background: transparent;
    color: var(--af-ink);
    font-size: 14px;
}

.search-field::placeholder {
    color: #85899a;
}

.search-submit {
    display: grid;
    width: 44px;
    border: 0;
    border-radius: 50%;
    place-items: center;
    background: transparent;
    color: var(--af-ink);
}

.search-submit:hover {
    color: var(--af-coral);
}

.primary-nav {
    border-top: 1px solid #f0f1f5;
    border-bottom: 1px solid var(--af-line);
    background: #fff;
}

.primary-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 49px;
    gap: 24px;
}

.menu,
.footer-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav .menu {
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 38px);
}

.primary-nav .menu-item {
    position: relative;
}

.primary-nav .menu-item > a {
    display: flex;
    align-items: center;
    min-height: 48px;
    color: var(--af-ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav .menu-item > a:hover {
    color: var(--af-coral-dark);
}

.primary-nav .current-menu-item > a::after,
.primary-nav .current-menu-ancestor > a::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--af-coral);
    content: "";
}

.primary-nav .sub-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: -18px;
    display: none;
    min-width: 210px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--af-line);
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: var(--af-shadow);
    list-style: none;
}

.primary-nav .sub-menu a {
    min-height: 40px;
    padding-inline: 10px;
    border-radius: 8px;
}

.primary-nav .menu-item:hover > .sub-menu,
.primary-nav .menu-item:focus-within > .sub-menu {
    display: block;
}

.nav-latest {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    color: var(--af-muted);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-latest > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--af-coral);
    box-shadow: 0 0 0 5px rgba(255, 77, 109, 0.13);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 9px;
    border: 0;
    padding: 9px 0 9px 12px;
    background: transparent;
    font-size: 13px;
    font-weight: 800;
}

.nav-toggle__icon {
    display: grid;
    width: 26px;
    gap: 5px;
}

.nav-toggle__icon i {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--af-transition), opacity var(--af-transition);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__icon i:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.install-app[hidden] {
    display: none !important;
}

.install-app {
    border: 0;
    font-weight: 850;
}

.install-app--utility {
    padding: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
}

.install-app--header {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--af-violet);
    color: #fff;
    font-size: 22px;
}

.home-intro {
    position: relative;
    overflow: hidden;
    background: var(--af-navy);
    color: #fff;
}

.home-intro::before,
.home-intro::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    filter: blur(1px);
    pointer-events: none;
}

.home-intro::before {
    top: -180px;
    right: 4%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.32), transparent 68%);
}

.home-intro::after {
    bottom: -240px;
    left: -110px;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.21), transparent 68%);
}

.home-intro__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 238px;
    gap: 40px;
    padding-block: 45px;
}

.home-intro h1,
.archive-hero h1 {
    max-width: 780px;
    margin: 7px 0 12px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.home-intro__inner > div:first-child > p:last-child {
    max-width: 700px;
    margin: 0;
    color: #c8cde1;
    font-size: clamp(16px, 2vw, 20px);
}

.home-intro__badge {
    display: grid;
    width: 108px;
    height: 108px;
    flex: 0 0 108px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    place-content: center;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 28px rgba(34, 211, 238, 0.07);
    text-align: center;
    transform: rotate(5deg);
}

.home-intro__badge span,
.home-intro__badge strong {
    display: block;
    line-height: 0.95;
}

.home-intro__badge span {
    color: var(--af-cyan);
    font-size: 18px;
    letter-spacing: 0.12em;
}

.home-intro__badge strong {
    font-size: 34px;
}

.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--af-coral-dark);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.section-kicker > span {
    width: 26px;
    height: 3px;
    border-radius: 99px;
    background: currentColor;
}

.home-intro .section-kicker,
.section-heading--light .section-kicker,
.install-banner .section-kicker,
.archive-hero .section-kicker {
    color: var(--af-cyan);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 24px;
}

.section-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.section-heading--light h2 {
    color: #fff;
}

.section-link {
    flex: 0 0 auto;
    color: var(--af-violet);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.section-link:hover {
    color: var(--af-coral-dark);
}

.hero-news {
    padding-block: 54px 64px;
    background: var(--af-navy);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(310px, 0.88fr);
    gap: 24px;
}

.lead-story {
    min-width: 0;
    margin: 0;
}

.lead-story__media {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--af-radius-lg);
    background: var(--af-navy-soft);
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}

.lead-story__media::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.lead-story__image,
.lead-story .post-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 510px;
    object-fit: cover;
    transition: transform 500ms ease;
}

.lead-story__media:hover .lead-story__image {
    transform: scale(1.025);
}

.lead-story__shade {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 11, 24, 0.02) 30%, rgba(8, 11, 24, 0.92) 100%);
}

.lead-story__content {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    padding: clamp(24px, 5vw, 48px);
}

.lead-story__content .eyebrow {
    margin-bottom: 13px;
}

.lead-story__title {
    display: block;
    max-width: 780px;
    font-size: clamp(28px, 4vw, 50px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.lead-story__meta {
    display: block;
    margin-top: 15px;
    color: #d3d7e6;
    font-size: 13px;
    font-weight: 700;
}

.hero-list {
    display: grid;
    align-content: stretch;
    gap: 12px;
}

.post-card {
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    background: var(--af-surface);
    transition: transform var(--af-transition), box-shadow var(--af-transition), border-color var(--af-transition);
}

.post-card:hover {
    border-color: #d9d9e8;
    box-shadow: var(--af-shadow);
    transform: translateY(-3px);
}

.post-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e9e9f2;
}

.post-card__image,
.post-card__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}

.post-card:hover .post-card__image {
    transform: scale(1.035);
}

.post-card__placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--af-coral), var(--af-violet));
    color: rgba(255, 255, 255, 0.8);
    font-size: 32px;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.post-card__body {
    padding: 19px 20px 22px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
    color: var(--af-muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.055em;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    padding: 5px 10px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--af-violet);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.cat-anime .eyebrow {
    background: rgba(255, 77, 109, 0.11);
    color: var(--af-coral-dark);
}

.cat-manga .eyebrow {
    background: rgba(124, 58, 237, 0.1);
    color: var(--af-violet);
}

.cat-cinema .eyebrow {
    background: rgba(8, 145, 178, 0.11);
    color: #087e98;
}

.cat-games .eyebrow {
    background: rgba(5, 150, 105, 0.1);
    color: #087a59;
}

.post-card__title {
    margin: 0;
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

.post-card__title a {
    color: var(--af-ink);
    text-decoration: none;
}

.post-card__title a:hover {
    color: var(--af-coral-dark);
}

.post-card__excerpt {
    margin-top: 10px;
    color: var(--af-muted);
    font-size: 14px;
    line-height: 1.55;
}

.post-card__excerpt p {
    margin: 0;
}

.post-card--compact {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    border-color: rgba(255, 255, 255, 0.09);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
}

.post-card--compact:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: none;
    transform: translateX(3px);
}

.post-card--compact .post-card__media {
    height: 100%;
    min-height: 112px;
    aspect-ratio: auto;
}

.post-card--compact .post-card__body {
    align-self: center;
    padding: 14px 15px;
}

.post-card--compact .post-card__meta {
    margin-bottom: 7px;
    color: #aab0c8;
    font-size: 9px;
}

.post-card--compact .eyebrow {
    padding: 4px 7px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.post-card--compact .post-card__title {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.22;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.post-card--compact .post-card__title a {
    color: #fff;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

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

.posts-grid--four .post-card__title {
    font-size: 19px;
}

.posts-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.latest-news {
    background: var(--af-bg);
}

.spotlight {
    border-top: 1px solid var(--af-line);
    background: #fff;
}

.category-hub {
    background: var(--af-navy);
    color: #fff;
}

.category-hub .section-heading h2 {
    color: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-tile {
    display: flex;
    align-items: center;
    min-height: 112px;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--af-radius);
    padding: 20px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    text-decoration: none;
    transition: background var(--af-transition), transform var(--af-transition), border-color var(--af-transition);
}

.category-tile:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-3px);
}

.category-tile__icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 14px;
    place-items: center;
    background: var(--af-coral);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.category-tile--manga .category-tile__icon {
    background: var(--af-violet);
}

.category-tile--cinema .category-tile__icon {
    background: #0891b2;
}

.category-tile--games .category-tile__icon {
    background: #059669;
}

.category-tile strong,
.category-tile small {
    display: block;
}

.category-tile strong {
    font-size: 18px;
}

.category-tile small {
    color: #aeb5cd;
    font-size: 12px;
}

.category-tile__arrow {
    margin-left: auto;
    font-size: 22px;
}

.install-banner {
    background: var(--af-bg);
}

.install-banner__inner {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    overflow: hidden;
    gap: 24px;
    border-radius: var(--af-radius-lg);
    padding: clamp(28px, 5vw, 48px);
    background: linear-gradient(115deg, var(--af-navy), #22285b);
    color: #fff;
    box-shadow: var(--af-shadow);
}

.install-banner__inner::after {
    position: absolute;
    top: -130px;
    right: -80px;
    width: 320px;
    height: 320px;
    border: 50px solid rgba(124, 58, 237, 0.24);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.install-banner__mark,
.install-banner__inner > div,
.install-banner .button {
    position: relative;
    z-index: 1;
}

.install-banner__mark {
    display: grid;
    width: 104px;
    height: 104px;
    border-radius: 24px;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
}

.install-banner__mark img {
    width: 86px;
}

.install-banner h2 {
    margin: 5px 0 3px;
    font-size: clamp(26px, 3.5vw, 39px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.install-banner p:not(.section-kicker):not(.install-help) {
    margin: 0;
    color: #c7cce0;
}

.install-help {
    position: relative;
    z-index: 1;
    display: none;
    grid-column: 2 / -1;
    margin: -12px 0 0;
    color: #c7cce0;
    font-size: 13px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: max-content;
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: var(--af-violet);
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: background var(--af-transition), transform var(--af-transition);
}

.button:hover {
    background: var(--af-coral-dark);
    color: #fff;
    transform: translateY(-2px);
}

.button--light {
    background: #fff;
    color: var(--af-navy);
}

.button--light:hover {
    background: var(--af-cyan);
    color: var(--af-navy);
}

.archive-hero {
    padding-block: clamp(46px, 7vw, 84px);
    background: linear-gradient(125deg, var(--af-navy), #202653);
    color: #fff;
}

.archive-hero h1 {
    margin-bottom: 0;
}

.archive-description {
    max-width: 720px;
    margin-top: 15px;
    color: #cbd0e2;
    font-size: 18px;
}

.archive-description p {
    margin: 0;
}

.archive-search {
    width: min(100%, 480px);
    margin-top: 25px;
}

.archive-search .search-form {
    width: 100%;
    background: #fff;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--af-muted);
    font-size: 12px;
    font-weight: 700;
}

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

.breadcrumbs a:hover {
    color: var(--af-coral-dark);
}

.breadcrumbs--light {
    color: #aeb5cc;
}

.navigation.pagination {
    margin-top: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers {
    display: grid;
    min-width: 42px;
    height: 42px;
    border: 1px solid var(--af-line);
    border-radius: 10px;
    padding-inline: 11px;
    place-items: center;
    background: #fff;
    color: var(--af-ink);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
    border-color: var(--af-violet);
    background: var(--af-violet);
    color: #fff;
}

.page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.single-article {
    background: #fff;
}

.article-header {
    padding-block: clamp(42px, 7vw, 76px) clamp(32px, 5vw, 56px);
    background: linear-gradient(180deg, #fff, #fafaff);
}

.article-header .eyebrow {
    margin-bottom: 16px;
}

.article-header h1,
.page-header h1 {
    margin: 0;
    font-size: clamp(36px, 5.7vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.057em;
}

.article-deck {
    margin: 20px 0 0;
    color: var(--af-muted);
    font-size: clamp(18px, 2.2vw, 23px);
    line-height: 1.5;
}

.article-byline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--af-line);
}

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

.article-author__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.article-author small,
.article-author a {
    display: block;
    line-height: 1.25;
}

.article-author small {
    color: var(--af-muted);
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.article-author a {
    color: var(--af-ink);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--af-muted);
    font-size: 13px;
    font-weight: 650;
}

.article-feature {
    overflow: hidden;
    margin: 0;
    border-radius: var(--af-radius-lg);
    background: #e9e9f2;
    box-shadow: var(--af-shadow);
}

.article-feature__image {
    width: 100%;
    max-height: 680px;
    object-fit: cover;
}

.article-feature figcaption {
    padding: 10px 16px;
    background: #fff;
    color: var(--af-muted);
    font-size: 12px;
}

.article-layout {
    display: grid;
    grid-template-columns: 70px minmax(0, var(--af-article));
    justify-content: center;
    gap: 34px;
    padding-block: clamp(42px, 7vw, 78px);
}

.share-rail {
    position: sticky;
    top: 190px;
    display: flex;
    align-items: center;
    align-self: start;
    flex-direction: column;
    gap: 9px;
}

.share-rail > span {
    margin-bottom: 3px;
    color: var(--af-muted);
    font-size: 9px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.share-rail a,
.share-rail button {
    display: grid;
    width: 42px;
    height: 42px;
    border: 1px solid var(--af-line);
    border-radius: 50%;
    place-items: center;
    background: #fff;
    color: var(--af-ink);
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.share-rail a:hover,
.share-rail button:hover {
    border-color: var(--af-violet);
    background: var(--af-violet);
    color: #fff;
}

.article-content {
    min-width: 0;
    color: #292c3d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 2vw, 20px);
    line-height: 1.82;
}

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

.article-content > :last-child {
    margin-bottom: 0;
}

.article-content p,
.article-content ul,
.article-content ol,
.article-content blockquote,
.article-content figure,
.article-content pre,
.article-content table,
.article-content .wp-block-embed {
    margin-top: 0;
    margin-bottom: 1.55em;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--af-ink);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    line-height: 1.18;
    letter-spacing: -0.035em;
    scroll-margin-top: 180px;
}

.article-content h2 {
    margin: 1.65em 0 0.6em;
    font-size: clamp(28px, 4vw, 39px);
}

.article-content h3 {
    margin: 1.5em 0 0.55em;
    font-size: clamp(23px, 3vw, 30px);
}

.article-content a {
    color: #6431ce;
    font-weight: 650;
}

.article-content a:hover {
    color: var(--af-coral-dark);
}

.article-content ul,
.article-content ol {
    padding-left: 1.35em;
}

.article-content li + li {
    margin-top: 0.45em;
}

.article-content blockquote {
    margin-inline: 0;
    border-left: 5px solid var(--af-coral);
    border-radius: 0 var(--af-radius) var(--af-radius) 0;
    padding: 22px 26px;
    background: #fff4f6;
    color: #3e2730;
    font-size: 1.08em;
    font-style: italic;
}

.article-content blockquote p:last-child {
    margin-bottom: 0;
}

.article-content img {
    border-radius: var(--af-radius);
}

.article-content figcaption {
    margin-top: 8px;
    color: var(--af-muted);
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.article-content iframe,
.article-content video,
.article-content object,
.article-content embed {
    display: block;
    width: 100% !important;
    max-width: none !important;
    min-height: min(56.25vw, 461px);
    border: 0;
    border-radius: var(--af-radius);
    aspect-ratio: 16 / 9;
}

.article-content .wp-block-embed__wrapper {
    position: relative;
    width: 100%;
}

.article-content .wp-block-embed.is-type-video,
.article-content .wp-block-video {
    width: 100%;
}

.article-content pre {
    max-width: 100%;
    overflow-x: auto;
    border-radius: var(--af-radius);
    padding: 20px;
    background: var(--af-navy);
    color: #eef0fb;
    font-size: 14px;
}

.article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 15px;
}

.article-content th,
.article-content td {
    border: 1px solid var(--af-line);
    padding: 10px 12px;
    text-align: left;
}

.article-content th {
    background: var(--af-bg);
}

.article-content .alignwide {
    width: min(100vw - 40px, 1080px);
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-content .alignfull {
    width: 100vw;
    max-width: none;
    margin-left: 50%;
    transform: translateX(-50%);
}

.article-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 46px;
    border-top: 1px solid var(--af-line);
    padding-top: 24px;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
}

.article-tags a {
    border-radius: 999px;
    padding: 6px 11px;
    background: var(--af-bg);
    color: var(--af-muted);
    text-decoration: none;
}

.post-navigation-wrap {
    padding-bottom: clamp(48px, 7vw, 80px);
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 16px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    min-width: 0;
}

.post-navigation .nav-next {
    text-align: right;
}

.post-navigation a {
    display: block;
    height: 100%;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    padding: 18px 20px;
    color: var(--af-ink);
    text-decoration: none;
}

.post-navigation a:hover {
    border-color: var(--af-violet);
}

.post-navigation span,
.post-navigation strong {
    display: block;
}

.post-navigation span {
    margin-bottom: 5px;
    color: var(--af-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.post-navigation strong {
    font-size: 14px;
    line-height: 1.35;
}

.related-posts {
    border-top: 1px solid var(--af-line);
    background: var(--af-bg);
}

.page-article {
    background: #fff;
}

.page-header {
    margin-bottom: 30px;
}

.page-feature {
    overflow: hidden;
    margin-bottom: 35px;
    border-radius: var(--af-radius-lg);
}

.empty-state {
    display: flex;
    align-items: center;
    max-width: 700px;
    margin-inline: auto;
    flex-direction: column;
    padding: clamp(42px, 8vw, 90px) 24px;
    text-align: center;
}

.empty-state__mark {
    display: grid;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    place-items: center;
    background: linear-gradient(135deg, var(--af-coral), var(--af-violet));
    color: #fff;
    font-size: 36px;
    font-weight: 900;
}

.empty-state__code {
    color: #e0e1eb;
    font-size: clamp(80px, 18vw, 180px);
    font-weight: 950;
    line-height: 0.85;
    letter-spacing: -0.08em;
}

.empty-state h1 {
    margin: 24px 0 10px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

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

.empty-state .search-form {
    width: min(100%, 420px);
    margin-bottom: 18px;
}

.comments-wrap {
    padding-block: 60px;
}

.comments-area {
    border-top: 1px solid var(--af-line);
    padding-top: 38px;
}

.comments-area h2,
.comment-reply-title {
    margin: 0 0 24px;
    font-size: 28px;
    letter-spacing: -0.03em;
}

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

.comment-list .children {
    list-style: none;
}

.comment-body {
    margin-bottom: 18px;
    border: 1px solid var(--af-line);
    border-radius: var(--af-radius);
    padding: 20px;
    background: #fff;
}

.comment-author img {
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    vertical-align: middle;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 800;
}

.comment-form input:not([type="checkbox"]):not([type="submit"]),
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--af-line);
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.comment-form .submit {
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding-inline: 22px;
    background: var(--af-violet);
    color: #fff;
    font-weight: 850;
}

.site-footer {
    background: #0c1020;
    color: #aeb4ca;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(2, minmax(160px, 0.7fr));
    gap: clamp(35px, 8vw, 100px);
    padding-block: 64px 54px;
}

.brand--footer .brand__link,
.brand--footer .brand__link:hover {
    color: #fff;
}

.footer-brand > p {
    max-width: 470px;
    margin: 18px 0 22px;
}

.install-app--footer {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.footer-column h2 {
    margin: 4px 0 16px;
    color: #fff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-menu li + li {
    margin-top: 9px;
}

.footer-menu a,
.footer-column .menu a {
    color: #aeb4ca;
    text-decoration: none;
}

.footer-menu a:hover,
.footer-column .menu a:hover {
    color: var(--af-cyan);
}

.footer-column .menu {
    display: block;
}

.footer-column .menu li + li {
    margin-top: 9px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.install-toast {
    position: fixed;
    z-index: 2000;
    right: 20px;
    bottom: 20px;
    max-width: min(380px, calc(100% - 40px));
    border-radius: 12px;
    padding: 13px 17px;
    background: var(--af-navy);
    color: #fff;
    box-shadow: var(--af-shadow);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 1050px) {
    .hero-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
    }

    .post-card--compact {
        grid-template-columns: 118px minmax(0, 1fr);
    }

    .posts-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 860px) {
    .admin-bar .site-header {
        top: 46px;
    }

    .utility-bar {
        display: none;
    }

    .main-header__inner {
        min-height: 70px;
    }

    .brand__mark {
        width: 42px;
        height: 42px;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .header-tools {
        display: none;
    }

    .primary-nav {
        position: fixed;
        z-index: 999;
        top: 70px;
        right: 0;
        bottom: 0;
        left: 0;
        display: none;
        overflow-y: auto;
        border-top: 1px solid var(--af-line);
        background: #fff;
    }

    .admin-bar .primary-nav {
        top: 116px;
    }

    body.nav-open .primary-nav {
        display: block;
    }

    .primary-nav__inner {
        display: block;
        padding-block: 18px 28px;
    }

    .primary-nav .menu {
        display: block;
    }

    .primary-nav .menu-item > a {
        min-height: 54px;
        border-bottom: 1px solid var(--af-line);
        font-size: 17px;
    }

    .primary-nav .current-menu-item > a::after,
    .primary-nav .current-menu-ancestor > a::after {
        top: 15px;
        right: auto;
        bottom: 15px;
        left: -12px;
        width: 3px;
        height: auto;
    }

    .primary-nav .sub-menu {
        position: static;
        display: block;
        border: 0;
        padding: 0 0 0 16px;
        box-shadow: none;
    }

    .primary-nav .sub-menu a {
        font-size: 14px;
    }

    .nav-latest {
        margin-top: 22px;
    }

    .home-intro__inner {
        min-height: 210px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .lead-story__image,
    .lead-story .post-card__placeholder {
        min-height: 480px;
    }

    .hero-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-card--compact {
        display: block;
    }

    .post-card--compact .post-card__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

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

    .install-banner__inner {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .install-banner .button {
        grid-column: 2;
    }

    .install-help {
        grid-column: 2;
    }
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (max-width: 680px) {
    .container {
        width: min(calc(100% - 28px), var(--af-container));
    }

    .section-space {
        padding-block: 48px;
    }

    .brand__word {
        font-size: 24px;
    }

    .brand__mark {
        width: 39px;
        height: 39px;
    }

    .nav-toggle__label {
        display: none;
    }

    .home-intro__inner {
        display: block;
        min-height: 0;
        padding-block: 38px 42px;
    }

    .home-intro__badge {
        display: none;
    }

    .home-intro h1,
    .archive-hero h1 {
        font-size: clamp(34px, 11vw, 49px);
    }

    .hero-news {
        padding-block: 42px 48px;
    }

    .lead-story__image,
    .lead-story .post-card__placeholder {
        min-height: 420px;
    }

    .lead-story__content {
        padding: 24px;
    }

    .lead-story__title {
        font-size: clamp(27px, 8vw, 39px);
    }

    .hero-list,
    .posts-grid,
    .posts-grid--four,
    .posts-grid--three,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .post-card--compact {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
    }

    .post-card--compact .post-card__media {
        height: 100%;
        aspect-ratio: auto;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        margin-bottom: 22px;
        gap: 10px;
    }

    .category-tile {
        min-height: 94px;
    }

    .install-banner__inner {
        display: block;
        text-align: center;
    }

    .install-banner__mark {
        margin: 0 auto 20px;
    }

    .install-banner .section-kicker {
        justify-content: center;
    }

    .install-banner .button {
        width: 100%;
        margin-top: 22px;
    }

    .install-help {
        margin-top: 14px;
    }

    .article-header h1,
    .page-header h1 {
        font-size: clamp(35px, 11vw, 50px);
    }

    .article-byline {
        align-items: start;
        flex-direction: column;
    }

    .article-feature {
        border-radius: 14px;
    }

    .article-layout {
        display: block;
    }

    .share-rail {
        position: static;
        flex-direction: row;
        margin-bottom: 28px;
        padding-bottom: 20px;
        border-bottom: 1px solid var(--af-line);
    }

    .share-rail > span {
        margin: 0 5px 0 0;
        writing-mode: initial;
        transform: none;
    }

    .article-content iframe,
    .article-content video,
    .article-content object,
    .article-content embed {
        min-height: auto;
    }

    .article-content .alignwide {
        width: calc(100vw - 28px);
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }

    .post-navigation .nav-next {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: start;
        flex-direction: column;
        justify-content: center;
        padding-block: 18px;
        gap: 7px;
    }
}

@media (max-width: 420px) {
    .post-card--compact {
        grid-template-columns: 102px minmax(0, 1fr);
    }

    .post-card--compact .post-card__body {
        padding: 11px;
    }

    .post-card--compact .post-card__meta time {
        display: none;
    }

    .post-card--compact .post-card__title {
        font-size: 14px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .site-header,
    .site-footer,
    .share-rail,
    .related-posts,
    .post-navigation-wrap,
    .comments-wrap {
        display: none !important;
    }

    body,
    .single-article {
        background: #fff;
    }

    .article-layout {
        display: block;
        padding: 0;
    }
}
