/* ==========================================================================
   Afiato Blog — main stylesheet
   ========================================================================== */

:root {
	--afi-purple: #7b4cf6;
	--afi-purple-600: #6a3be8;
	--afi-purple-050: #f4f0ff;
	--afi-pink: #ff1f8e;
	--afi-grad: linear-gradient(135deg, #ff1f8e 0%, #c227cf 48%, #7b4cf6 100%);
	--afi-ink: #1d1c22;
	--afi-text: #3a3943;
	--afi-muted: #75747f;
	--afi-line: #ebe9f1;
	--afi-bg: #ffffff;
	--afi-footer: #25272b;
	--afi-footer-field: #2d2f34;
	--afi-footer-text: #b3b5bb;
	--afi-badge: #ef4e4e;
	--afi-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--afi-brand-font: "Quicksand", "Montserrat", system-ui, sans-serif;
	--afi-container: 1240px;
	--afi-gutter: clamp(16px, 3vw, 32px);
	--afi-topbar-h: 64px;
	--afi-r-lg: 18px;
	--afi-r-md: 12px;
	--afi-r-sm: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; font-family: var(--afi-font); font-size: 16px; line-height: 1.6; color: var(--afi-text); background: var(--afi-bg); -webkit-font-smoothing: antialiased; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--afi-purple); text-decoration: none; }
a:hover { color: var(--afi-purple-600); }
h1, h2, h3, h4, h5, h6 { color: var(--afi-ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--afi-purple); outline-offset: 3px; border-radius: 4px; }
.topbar :focus-visible, .site-footer :focus-visible { outline-color: #fff; }

.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; word-wrap: normal !important; }
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; margin: 0; z-index: 1000; top: 8px; left: 8px; padding: 12px 18px; background: #fff; color: var(--afi-ink); font-weight: 700; border-radius: var(--afi-r-sm); }

.container { width: 100%; max-width: var(--afi-container); margin-inline: auto; padding-inline: var(--afi-gutter); }
.container--narrow { max-width: 860px; }
.icon { display: inline-flex; width: 1em; height: 1em; }
.icon svg { width: 100%; height: 100%; }

/* ==========================================================================
   Header (matches afiato.com)
   ========================================================================== */
.site-header { position: relative; z-index: 50; }
.topbar { background: var(--afi-purple); color: #fff; }
.topbar__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--afi-gutter); height: var(--afi-topbar-h); display: flex; align-items: stretch; gap: 8px; }

.brand { display: flex; align-items: center; margin-right: clamp(16px, 3vw, 44px); flex-shrink: 0; }
.wordmark { font-family: var(--afi-brand-font); font-weight: 600; font-size: 44px; letter-spacing: -1.5px; line-height: 1; color: #fff; padding-bottom: 4px; }
.wordmark:hover { color: #fff; }
.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 44px; width: auto; }

.primary-nav { display: flex; align-items: stretch; min-width: 0; }
.primary-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.primary-menu li { display: flex; }
.primary-menu a { display: flex; align-items: center; padding: 6px 15px 0; color: #fff; font-size: 15px; font-weight: 400; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; transition: background-color .15s; }
.primary-menu a:hover { background: rgba(255,255,255,.12); color: #fff; }
.primary-menu .is-active > a,
.primary-menu .active-tab > a { background: #fff; color: var(--afi-purple); font-weight: 700; padding-inline: 18px; }

.header-tools { margin-left: auto; display: flex; align-items: center; gap: 14px; padding-left: 16px; }
.header-search { position: relative; display: flex; align-items: center; width: clamp(200px, 18vw, 300px); height: 40px; background: #f1f1f4; border-radius: 999px; }
.header-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 8px 0 22px; font: 400 15px var(--afi-font); color: var(--afi-ink); border-radius: 999px; }
.header-search input::placeholder { color: #9b9aa6; }
.header-search input:focus { outline: none; }
.header-search:focus-within { box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.header-search button { border: 0; background: none; color: var(--afi-purple); width: 44px; height: 100%; display: grid; place-items: center; font-size: 22px; padding: 0; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; color: #fff; padding: 0; border-radius: 50%; }
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.cart-link .icon { font-size: 30px; }
.account-link .icon { font-size: 28px; }
.cart-count { position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--afi-badge); color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center; }
.nav-toggle, .search-toggle { display: none; font-size: 24px; }
.nav-toggle .when-open { display: none; }
.nav-toggle[aria-expanded="true"] .when-open { display: inline-flex; }
.nav-toggle[aria-expanded="true"] .when-closed { display: none; }

.subnav { background: #fff; border-bottom: 1px solid var(--afi-line); }
.subnav__inner { max-width: 1440px; margin: 0 auto; padding: 0 var(--afi-gutter); overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav-menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(14px, 2.2vw, 36px); min-width: max-content; }
.subnav-menu a { display: block; padding: 13px 0 12px; color: #222; font-size: 14px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav-menu a:hover, .subnav-menu .current-menu-item a { color: var(--afi-purple); border-bottom-color: var(--afi-purple); }

.mobile-nav { background: #fff; border-bottom: 1px solid var(--afi-line); padding: 8px var(--afi-gutter) 20px; max-height: calc(100vh - var(--afi-topbar-h)); overflow-y: auto; }
.mobile-menu { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.mobile-menu a { display: block; padding: 11px 0; color: var(--afi-ink); font-size: 14px; font-weight: 600; text-transform: uppercase; border-bottom: 1px solid var(--afi-line); }
.mobile-menu--primary { margin-bottom: 14px; }
.mobile-menu--primary a { color: var(--afi-purple); font-weight: 700; }

@media (max-width: 1280px) {
	.primary-menu a { padding-inline: 10px; font-size: 13.5px; letter-spacing: .3px; }
	.primary-menu .is-active > a { padding-inline: 12px; }
	.wordmark { font-size: 38px; }
}
@media (max-width: 1080px) {
	.primary-nav { display: none; }
	.nav-toggle { display: inline-grid; margin-left: -8px; }
	.subnav-menu { justify-content: flex-start; }
}
@media (max-width: 720px) {
	:root { --afi-topbar-h: 58px; }
	.header-tools { gap: 4px; padding-left: 4px; }
	.search-toggle { display: inline-grid; }
	.header-search { display: none; position: absolute; left: var(--afi-gutter); right: var(--afi-gutter); top: calc(var(--afi-topbar-h) + 8px); width: auto; height: 46px; box-shadow: 0 12px 30px rgba(40,20,90,.18); background: #fff; z-index: 60; }
	.header-search.is-open { display: flex; }
	.wordmark { font-size: 34px; }
	.cart-link .icon { font-size: 26px; }
	.account-link .icon { font-size: 24px; }
	.subnav-menu a { font-size: 12.5px; padding: 11px 0 10px; }
}
@media (min-width: 1081px) { .mobile-nav { display: none !important; } }

/* ==========================================================================
   Shared components
   ========================================================================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; font-size: 14px; font-weight: 700; letter-spacing: .2px; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--afi-purple); color: #fff; }
.btn--primary:hover { background: var(--afi-purple-600); color: #fff; }
.btn--light { background: #fff; color: var(--afi-purple); }
.btn--light:hover { background: var(--afi-purple-050); color: var(--afi-purple-600); }
.btn--outline { border-color: var(--afi-purple); color: var(--afi-purple); background: transparent; }
.btn--outline:hover { background: var(--afi-purple); color: #fff; }

.text-link { white-space: nowrap; flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--afi-purple); border-bottom: 2px solid currentColor; padding-bottom: 1px; }

.chip { display: inline-block; font-size: 12px; font-weight: 700; color: var(--afi-purple); margin-bottom: 8px; }
.chip:hover { color: var(--afi-pink); }
.chip--solid { background: var(--afi-purple-050); padding: 6px 14px; border-radius: 999px; margin: 0 6px 8px 0; }
.chip--solid:hover { background: var(--afi-purple); color: #fff; }

.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--afi-muted); }
.meta-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .5; }
.meta__author { font-weight: 600; color: var(--afi-text); }

.thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--afi-grad); color: rgba(255,255,255,.9); font-family: var(--afi-brand-font); font-weight: 700; font-size: clamp(28px, 5vw, 64px); text-transform: lowercase; }

.section { padding-block: clamp(40px, 6vw, 72px); }
.section--tint { background: #faf8ff; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.4px; margin: 0; }

.grid { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } .card__media { aspect-ratio: 4 / 3; } }

.card { display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 4 / 5; border-radius: var(--afi-r-md); overflow: hidden; background: var(--afi-purple-050); margin-bottom: 14px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.card__title a { color: var(--afi-ink); }
.card__title a:hover { color: var(--afi-purple); }
.card__excerpt { font-size: 14px; color: var(--afi-muted); margin-bottom: 10px; }

.row-card { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--afi-line); }
.row-card:last-child { border-bottom: 0; margin-bottom: 0; }
.row-card__media { display: block; aspect-ratio: 4 / 3; border-radius: var(--afi-r-md); overflow: hidden; background: var(--afi-purple-050); }
.row-card__media img { width: 100%; height: 100%; object-fit: cover; }
.row-card__body { align-self: center; }
.row-card__title { font-size: clamp(19px, 1.8vw, 23px); font-weight: 800; letter-spacing: -.2px; line-height: 1.25; margin-bottom: 10px; }
.row-card__title a { color: var(--afi-ink); }
.row-card__title a:hover { color: var(--afi-purple); }
.row-card__excerpt { font-size: 15px; color: var(--afi-muted); margin-bottom: 12px; }
@media (max-width: 640px) { .row-card { grid-template-columns: 1fr; gap: 14px; } }

.empty-state { padding: 36px 28px; border: 1.5px dashed #d8d2ee; border-radius: var(--afi-r-md); text-align: center; color: var(--afi-muted); background: #fff; }
.empty-state p { margin: 0; }

/* Layout with sidebar */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 4vw, 56px); align-items: start; }
.layout__side { position: sticky; top: 24px; }
@media (max-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr); } .layout__side { position: static; } }

/* Core widgets placed in the extra widget area */
.widget .wp-block-search__inside-wrapper { border: 1px solid var(--afi-line); border-radius: 999px; overflow: hidden; }
.widget .wp-block-search__input { border: 0; padding: 10px 16px; font: 15px var(--afi-font); }
.widget .wp-block-search__button { border: 0; margin: 0; background: var(--afi-purple); color: #fff; padding: 0 18px; font-weight: 700; }
.widget .wp-block-heading, .widget h2 { font-size: 16px; font-weight: 800; }
.widget li { margin-bottom: 6px; font-size: 14.5px; }

/* Pagination */
.pagination { margin-top: 40px; }
.pagination .nav-links, .pagination { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--afi-line); color: var(--afi-ink); font-weight: 600; font-size: 14px; }
.page-numbers .icon { font-size: 18px; }
a.page-numbers:hover { border-color: var(--afi-purple); color: var(--afi-purple); }
.page-numbers.current { background: var(--afi-purple); border-color: var(--afi-purple); color: #fff; }
.page-numbers.dots { border: 0; }

/* ==========================================================================
   Home hero — "Fashion is Art"
   ========================================================================== */
.hero { padding-top: clamp(20px, 3vw, 36px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; --hero-delay: 6000ms; }
.hero__stage { position: relative; min-height: clamp(420px, 44vw, 600px); border-radius: var(--afi-r-lg); overflow: hidden; background: var(--afi-grad); isolation: isolate; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s linear .7s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; z-index: 1; }
.hero-slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active .hero-slide__img { transform: scale(1); }
.hero-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(25,8,50,0) 30%, rgba(25,8,50,.55) 62%, rgba(25,8,50,.88) 100%); }
.hero-slide--noimg::before { background: radial-gradient(120% 80% at 90% 0%, rgba(255,255,255,.18), transparent 60%); }
.hero-slide__body { position: relative; z-index: 2; padding: clamp(24px, 4vw, 48px); padding-bottom: clamp(72px, 7vw, 88px); max-width: 760px; color: #fff; }
.hero-slide__cat { display: inline-block; font-family: var(--afi-brand-font); font-weight: 700; font-size: 18px; color: #fff; margin-bottom: 14px; padding: 4px 16px 6px; border-radius: 999px; background: var(--afi-grad); }
.hero-slide__cat:hover { color: #fff; }
.hero-slide__title { font-size: clamp(28px, 4vw, 52px); font-weight: 800; letter-spacing: -1px; line-height: 1.08; margin-bottom: 14px; color: #fff; }
.hero-slide__title a { color: #fff; }
.hero-slide__excerpt { font-size: clamp(15px, 1.3vw, 17px); color: rgba(255,255,255,.86); max-width: 58ch; margin-bottom: 22px; }
.hero-slide__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-slide__meta .meta, .hero-slide__meta { color: rgba(255,255,255,.8); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }

.hero__controls { position: absolute; z-index: 3; right: clamp(16px, 3vw, 32px); bottom: clamp(18px, 2.5vw, 28px); display: flex; align-items: center; gap: 10px; color: #fff; }
.hero__arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; font-size: 20px; backdrop-filter: blur(4px); }
.hero__arrow:hover { background: #fff; color: var(--afi-purple); }
.hero__count { font-size: 13px; font-weight: 600; min-width: 44px; text-align: center; font-variant-numeric: tabular-nums; }

.hero__rail { display: flex; flex-direction: column; border: 1px solid var(--afi-line); border-radius: var(--afi-r-lg); padding: 22px 18px 12px; background: #fff; }
.hero__rail-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 6px 14px; border-bottom: 1px solid var(--afi-line); margin-bottom: 6px; }
.hero__rail-title { font-family: var(--afi-brand-font); font-size: 26px; font-weight: 700; letter-spacing: -.5px; margin: 0; background: var(--afi-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; flex: 1; }
.rail-item { position: relative; border-radius: var(--afi-r-md); }
.rail-item a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 8px; color: var(--afi-ink); border-radius: var(--afi-r-md); }
.rail-item a:hover { background: #faf8ff; color: var(--afi-ink); }
.rail-item.is-active a { background: var(--afi-purple-050); }
.rail-item__thumb { display: block; width: 76px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--afi-purple-050); }
.rail-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.rail-item__thumb .thumb-placeholder { font-size: 26px; }
.rail-item__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rail-item__title { font-size: 14.5px; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rail-item time { font-size: 12px; color: var(--afi-muted); }
.rail-item.is-active .rail-item__title { color: var(--afi-purple); }
.rail-item__progress { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 2px; border-radius: 2px; overflow: hidden; pointer-events: none; }
.rail-item__progress::after { content: ""; position: absolute; inset: 0; background: var(--afi-grad); transform: scaleX(0); transform-origin: left; }
.rail-item.is-active.is-timing .rail-item__progress::after { animation: afiRail var(--hero-delay) linear forwards; }
.hero__grid.is-paused .rail-item__progress::after { animation-play-state: paused; }
@keyframes afiRail { to { transform: scaleX(1); } }

.hero-empty { border-radius: var(--afi-r-lg); background: var(--afi-grad); color: #fff; padding: clamp(48px, 8vw, 110px) clamp(24px, 6vw, 80px); }
.hero-empty h1 { font-family: var(--afi-brand-font); color: #fff; font-size: clamp(44px, 8vw, 96px); letter-spacing: -2px; line-height: 1; margin-bottom: 18px; }
.hero-empty p { max-width: 52ch; font-size: 17px; color: rgba(255,255,255,.9); margin-bottom: 26px; }

@media (max-width: 1024px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr); }
	.rail-list { flex-direction: row; overflow-x: auto; gap: 8px; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 6px; }
	.rail-item { flex: 0 0 min(280px, 78%); scroll-snap-align: start; }
}
@media (max-width: 600px) {
	.hero__stage { min-height: 480px; border-radius: var(--afi-r-md); }
	.hero__rail { padding: 16px 10px 8px; }
	.hero-slide__excerpt { display: none; }
}

/* Tabs */
.tabs__list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 28px; scrollbar-width: none; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab { flex-shrink: 0; border: 1px solid var(--afi-line); background: #fff; color: var(--afi-ink); padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: background-color .15s, color .15s, border-color .15s; }
.tabs__tab:hover { border-color: var(--afi-purple); color: var(--afi-purple); }
.tabs__tab[aria-selected="true"] { background: var(--afi-purple); border-color: var(--afi-purple); color: #fff; }
.tabs__more { margin: 32px 0 0; text-align: center; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.widget { border: 1px solid var(--afi-line); border-radius: var(--afi-r-lg); padding: 22px; margin-bottom: 24px; background: #fff; }
.widget-title { font-size: 16px; font-weight: 800; margin: 0 0 16px; padding-left: 12px; border-left: 3px solid var(--afi-purple); line-height: 1.1; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.cat-list li + li { border-top: 1px solid var(--afi-line); }
.cat-list a { display: flex; align-items: center; justify-content: space-between; padding: 11px 2px; color: var(--afi-ink); font-size: 14.5px; font-weight: 600; }
.cat-list a:hover, .cat-list .is-current a { color: var(--afi-purple); }
.cat-list__count { min-width: 30px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--afi-purple-050); color: var(--afi-purple); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cat-list .is-current .cat-list__count { background: var(--afi-purple); color: #fff; }
.mini-list li + li { margin-top: 14px; }
.mini-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--afi-ink); }
.mini-list a:hover .mini-list__title { color: var(--afi-purple); }
.mini-list__thumb { width: 64px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--afi-purple-050); display: block; }
.mini-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-list__thumb .thumb-placeholder { font-size: 22px; }
.mini-list__text { display: flex; flex-direction: column; gap: 2px; }
.mini-list__title { font-size: 14px; font-weight: 700; line-height: 1.3; }
.mini-list time { font-size: 12px; color: var(--afi-muted); }
.promo { background: var(--afi-grad); border: 0; color: #fff; position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; border: 22px solid rgba(255,255,255,.18); border-left-color: transparent; transform: rotate(-30deg); }
.promo__title { font-family: var(--afi-brand-font); color: #fff; font-size: 26px; margin-bottom: 8px; }
.promo p { color: rgba(255,255,255,.9); font-size: 14.5px; position: relative; z-index: 1; }
.promo .btn { position: relative; z-index: 1; }

.search-form { display: flex; align-items: center; height: 46px; border: 1px solid var(--afi-line); border-radius: 999px; background: #f7f6fa; }
.search-form:focus-within { border-color: var(--afi-purple); background: #fff; }
.search-field { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding: 0 6px 0 18px; font: 400 15px var(--afi-font); color: var(--afi-ink); }
.search-field:focus { outline: none; }
.search-submit { width: 46px; height: 100%; border: 0; background: none; color: var(--afi-purple); display: grid; place-items: center; font-size: 20px; }

/* ==========================================================================
   Page banner (archives, search, pages)
   ========================================================================== */
.page-banner { background: #faf8ff; border-bottom: 1px solid var(--afi-line); padding: clamp(28px, 4vw, 48px) 0; }
.page-banner__title { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; margin: 6px 0 8px; }
.page-banner__desc { color: var(--afi-muted); max-width: 64ch; }
.page-banner__desc p:last-child { margin: 0; }
.page-banner__search { max-width: 460px; margin-top: 18px; }

.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--afi-muted); }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #c9c6d6; }
.breadcrumbs a { color: var(--afi-muted); }
.breadcrumbs a:hover { color: var(--afi-purple); }

/* ==========================================================================
   Single post
   ========================================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 100%; background: var(--afi-grad); transform: scaleX(0); transform-origin: left; }

.post-header { padding: clamp(28px, 4vw, 52px) 0 clamp(20px, 3vw, 32px); text-align: center; }
.post-header .breadcrumbs ol { justify-content: center; margin-bottom: 20px; }
.post-header__cats { margin-bottom: 8px; }
.post-title { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.08; margin-bottom: 16px; }
.post-dek { font-size: clamp(16px, 1.6vw, 19px); color: var(--afi-muted); max-width: 62ch; margin: 0 auto 22px; }
.post-byline { display: inline-flex; align-items: center; gap: 12px; text-align: left; }
.post-byline__avatar { border-radius: 50%; }
.post-byline__name { font-weight: 700; color: var(--afi-ink); font-size: 14.5px; }

.post-cover { margin: 0 auto clamp(32px, 4vw, 48px); }
.post-cover img { width: 100%; max-height: 720px; object-fit: cover; border-radius: var(--afi-r-lg); }
.post-cover figcaption { font-size: 13px; color: var(--afi-muted); margin-top: 10px; text-align: center; }

.layout--single { padding-bottom: clamp(40px, 6vw, 72px); }

.entry-content { font-size: 17.5px; line-height: 1.8; color: var(--afi-text); max-width: 72ch; }
.entry-content > * { margin-block: 0 1.3em; }
.entry-content h2 { font-size: 28px; font-weight: 800; letter-spacing: -.4px; margin-top: 1.8em; }
.entry-content h3 { font-size: 22px; margin-top: 1.6em; }
.entry-content h4 { font-size: 18px; margin-top: 1.4em; }
.entry-content a { color: var(--afi-purple); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.entry-content img, .entry-content .wp-block-image img { border-radius: var(--afi-r-md); }
.entry-content figcaption, .wp-caption-text { font-size: 13px; color: var(--afi-muted); text-align: center; margin-top: 8px; }
.entry-content blockquote, .entry-content .wp-block-quote { margin-inline: 0; padding: 6px 0 6px 24px; border-left: 4px solid; border-image: var(--afi-grad) 1; font-size: 21px; font-weight: 600; line-height: 1.5; color: var(--afi-ink); }
.entry-content blockquote cite { display: block; font-size: 14px; font-weight: 500; color: var(--afi-muted); font-style: normal; margin-top: 8px; }
.entry-content .wp-block-pullquote { border-top: 3px solid var(--afi-purple); border-bottom: 3px solid var(--afi-purple); padding: 28px 0; text-align: center; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--afi-purple); }
.entry-content hr { border: 0; height: 1px; background: var(--afi-line); margin: 2.4em 0; }
.entry-content pre { background: #f7f6fa; padding: 18px; border-radius: var(--afi-r-sm); overflow-x: auto; font-size: 14px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.entry-content th, .entry-content td { border-bottom: 1px solid var(--afi-line); padding: 10px; text-align: left; }
.entry-content .alignwide { max-width: none; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; text-align: center; }
.wp-caption { max-width: 100%; }
.sticky, .bypostauthor, .gallery-caption { outline: 0; }
.page-links { font-weight: 600; margin-top: 2em; }

.post-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 0; margin-top: 12px; border-top: 1px solid var(--afi-line); border-bottom: 1px solid var(--afi-line); }
.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a { display: inline-block; padding: 6px 14px; border-radius: 999px; background: #f4f3f8; color: var(--afi-text); font-size: 13px; font-weight: 600; }
.tag-list a:hover { background: var(--afi-purple-050); color: var(--afi-purple); }
.share { display: flex; align-items: center; gap: 8px; }
.share__label { font-size: 13px; font-weight: 700; color: var(--afi-ink); margin-right: 4px; }
.share__btn { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--afi-line); background: #fff; color: var(--afi-ink); display: grid; place-items: center; font-size: 16px; padding: 0; }
.share__btn:hover { background: var(--afi-purple); border-color: var(--afi-purple); color: #fff; }
.share__copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--afi-ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.share__copied:not(:empty) { opacity: 1; }

.author-box { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; padding: 24px; margin-top: 32px; border-radius: var(--afi-r-lg); background: #faf8ff; }
.author-box img { border-radius: 50%; }
.author-box__name { font-size: 18px; margin-bottom: 6px; }
.author-box p { font-size: 15px; color: var(--afi-muted); margin-bottom: 10px; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav__item { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--afi-line); border-radius: var(--afi-r-md); color: var(--afi-ink); }
.post-nav__item:hover { border-color: var(--afi-purple); color: var(--afi-ink); }
.post-nav__item--next { grid-column: 2; text-align: right; }
.post-nav__label { font-size: 12.5px; font-weight: 600; color: var(--afi-purple); }
.post-nav__title { font-weight: 700; line-height: 1.35; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__item--next { grid-column: auto; } }

/* Comments */
.comments { margin-top: 48px; }
.comments__title, .comment-reply-title { font-size: 22px; font-weight: 800; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: clamp(16px, 4vw, 48px); }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--afi-line); font-size: 15px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--afi-ink); }
.comment-author img { border-radius: 50%; }
.comment-author .says { display: none; }
.comment-metadata { font-size: 12.5px; margin: 4px 0 8px 54px; }
.comment-metadata a { color: var(--afi-muted); }
.comment-content { margin-left: 54px; }
.reply { margin-left: 54px; font-size: 13px; font-weight: 700; }
.comment-respond { margin-top: 32px; }
.comment-form label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--afi-ink); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; border: 1px solid var(--afi-line); border-radius: var(--afi-r-sm); padding: 12px 14px; font: 15px var(--afi-font); background: #fff; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--afi-purple); outline: none; box-shadow: 0 0 0 3px rgba(123,76,246,.15); }
.comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.form-submit .btn { border: 0; }

/* 404 */
.not-found { text-align: center; padding-block: clamp(56px, 10vw, 120px); }
.not-found__code { font-family: var(--afi-brand-font); font-weight: 700; font-size: clamp(96px, 18vw, 180px); line-height: 1; margin: 0 0 8px; background: var(--afi-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found__title { font-size: clamp(24px, 3vw, 34px); }
.not-found .search-form { max-width: 440px; margin: 24px auto; }

/* ==========================================================================
   Footer (matches afiato.com)
   ========================================================================== */
.site-footer { background: var(--afi-footer); color: var(--afi-footer-text); margin-top: 0; }
.footer__inner { max-width: 1160px; margin: 0 auto; padding: 56px var(--afi-gutter) 0; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 44px; }
.footer__title { color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .2px; margin: 0 0 18px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 4px; }
.footer-menu a { color: var(--afi-footer-text); font-size: 13.5px; line-height: 1.8; }
.footer-menu a:hover { color: #fff; }
.footer__text { font-size: 13.5px; line-height: 1.8; margin-bottom: 16px; max-width: 340px; }
.newsletter-form { max-width: 360px; }
.newsletter-form input[type="email"] { width: 100%; height: 48px; border: 0; border-radius: 4px; background: var(--afi-footer-field); color: #fff; padding: 0 24px; font: 400 13.5px var(--afi-font); margin-bottom: 16px; }
.newsletter-form input[type="email"]::placeholder { color: #8e9096; }
.newsletter-form input[type="email"]:focus { outline: none; box-shadow: 0 0 0 2px var(--afi-purple); }
.btn-subscribe { height: 44px; padding: 0 26px; border: 0; border-radius: 4px; background: #8a4cf7; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.btn-subscribe:hover { background: var(--afi-purple-600); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-notice { margin: 14px 0 0; padding: 10px 14px; border-radius: 4px; font-size: 13px; }
.nl-notice--success { background: rgba(46, 204, 113, .14); color: #8be3b1; }
.nl-notice--info { background: rgba(123, 76, 246, .2); color: #cdbcff; }
.nl-notice--error { background: rgba(239, 78, 78, .16); color: #ffb0b0; }

.app-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.app-badge { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px 0 10px; background: #000; border: 1px solid #8a8a8a; border-radius: 7px; color: #fff; box-shadow: 0 0 10px rgba(255,255,255,.12); }
.app-badge:hover { color: #fff; border-color: #fff; }
.app-badge .icon { font-size: 26px; }
.app-badge .icon--google-play { font-size: 24px; }
.app-badge span { display: flex; flex-direction: column; font-size: 19px; font-weight: 500; line-height: 1; letter-spacing: -.3px; font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
.app-badge small { font-size: 9.5px; font-weight: 500; letter-spacing: .2px; margin-bottom: 2px; }

.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 10px 18px; border-top: 1px solid #393b40; }
.payments { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 18px; }
.payments svg { height: 32px; width: auto; }
.copyright { margin: 0; font-size: 12.5px; color: #8e9096; }

.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 40px; height: 40px; display: grid; place-items: center; background: #4b4d52; color: #fff; font-size: 18px; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility 0s linear .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s; }
.back-to-top:hover { background: var(--afi-purple); color: #fff; }

@media (max-width: 860px) {
	.footer__cols { grid-template-columns: 1fr; gap: 32px; }
	.footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Print
   ========================================================================== */
@media print {
	.site-header, .site-footer, .sidebar, .share, .post-nav, .comments, .back-to-top, .read-progress, .related { display: none !important; }
	.layout { display: block; }
}
