/* Pages that replace WordPress: author pages, menu pages and footer pages. Style 1, "Midnight". Used by cosmos/static/uitemplates/site-*.php and the *redemption.php templates for author, category and page. */
:root {
  --page: #f4f2f7; --card: #fff; --ink: #1d1927; --muted: #5f586c; --line: #e3dfea; --soft: #efecf4;
  --accent: #c9124f; --pink: #ff4f8e; --violet: #b03cff; --dark: #14101c; --darker: #0f0b16;
  --display: "Big Shoulders Display", Impact, sans-serif; --body: "Mulish", system-ui, sans-serif; --brand: "Sora", var(--body);
  --round: 14px; --img-round: 10px; --wrap: 1290px; --gutter: 24px;
  --shadow: 0 1px 2px rgba(29, 25, 39, .04), 0 12px 32px -18px rgba(29, 25, 39, .22);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.aSr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aSkip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 8px; font-weight: 800; }
.aSkip:focus { top: 12px; }
.aWrap { width: min(calc(100% - 2 * var(--gutter)), var(--wrap)); margin-inline: auto; }

/* Header */
.aHeader { position: sticky; top: 0; z-index: 50; background: rgba(20, 16, 28, .96); border-bottom: 1px solid rgba(255, 255, 255, .06); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.aHeaderIn { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.aHome { flex: none; color: #fff; text-decoration: none; }
.aLogo { display: inline-flex; align-items: center; gap: .3em; color: inherit; font: 800 28px/1 var(--brand); letter-spacing: -.03em; white-space: nowrap; }
.aLogo svg { width: 1em; height: 1em; flex: none; }
.aNav { flex: 1; min-width: 0; }
.aNav > ul { display: flex; align-items: center; gap: 2px; padding: 0; list-style: none; }
.aNav li { position: relative; }
.aNav > ul > li { display: flex; align-items: center; }
.aNav > ul > li > a { padding: 10px 10px; border-radius: 8px; color: #fff; font: 800 14px/1 var(--body); letter-spacing: .06em; text-decoration: none; text-transform: uppercase; transition: color .15s, background .15s; }
.aNav > ul > li > a:hover, .aNav > ul > li:focus-within > a { color: #ff8db4; }
.aSubBtn { display: grid; place-items: center; width: 20px; height: 28px; margin-left: -8px; padding: 0; background: none; border: 0; color: #a79fb6; cursor: pointer; }
.aSubBtn svg { width: 14px; height: 14px; transition: transform .2s; }
.aSub { position: absolute; left: 0; top: calc(100% + 8px); min-width: 220px; padding: 8px; list-style: none; background: #1c1626; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.aSub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.aHas:hover > .aSub, .aHas:focus-within > .aSub, .aHas.open > .aSub { opacity: 1; visibility: visible; transform: none; }
.aHas:hover > .aSubBtn svg, .aHas.open > .aSubBtn svg { transform: rotate(180deg); }
.aSub a { display: block; padding: 9px 12px; border-radius: 8px; color: #e9e4f2; font: 700 14px/1.3 var(--body); text-decoration: none; }
.aSub a:hover { background: rgba(255, 79, 142, .14); color: #fff; }
.aHeaderSocial, .aNavSocial, .aFootSocial, .aFollowLinks { display: flex; gap: 8px; }
.aHeaderSocial a, .aNavSocial a, .aFootSocial a, .aFollowLinks a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; color: #fff; transition: background .15s, border-color .15s, transform .15s; }
.aHeaderSocial a:hover, .aNavSocial a:hover, .aFootSocial a:hover, .aFollowLinks a:hover { background: var(--pink); border-color: var(--pink); transform: translateY(-2px); }
.aHeaderSocial svg, .aNavSocial svg, .aFootSocial svg, .aFollowLinks svg { width: 17px; height: 17px; }
.aNavSocial { display: none; }
.aMenuBtn { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; padding: 0 11px; background: none; border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; cursor: pointer; }
.aMenuBtn span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.aMenuBtn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.aMenuBtn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.aMenuBtn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Profile band */
.aMain { padding: 28px 0 0; }
.aHero { position: relative; display: grid; grid-template-columns: 196px minmax(0, 1fr); gap: 40px; align-items: center; max-width: 1004px; margin: 0 auto; padding: 36px 40px; overflow: hidden; background: radial-gradient(120% 140% at 0% 0%, #2a1f3a, var(--dark) 62%); border-radius: var(--round); color: #fff; isolation: isolate; }
.aHero::after { content: ""; position: absolute; right: -120px; top: -160px; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(closest-side, rgba(176, 60, 255, .22), transparent); }
.aFace { position: relative; justify-self: center; padding: 6px; border-radius: 50%; isolation: isolate; }
.aFace::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: conic-gradient(from 200deg, #ff4f8e, #ffb36b, #b48cff, #5ec8ff, #ff4f8e); animation: aSpin 14s linear infinite; }
.aFace::after { content: ""; position: absolute; inset: 14% -10% -18%; z-index: -2; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 79, 142, .45), transparent); filter: blur(18px); }
.aPhoto { width: 184px; height: 184px; border: 5px solid var(--dark); border-radius: 50%; object-fit: cover; background: #2a1f3a; }
.aInitials { display: grid; place-items: center; color: #fff; font: 800 64px/1 var(--display); }
.aBadge { position: absolute; right: 8px; bottom: 10px; display: grid; place-items: center; width: 34px; height: 34px; background: var(--pink); border: 3px solid var(--dark); border-radius: 50%; color: #fff; }
.aBadge svg { width: 18px; height: 18px; }
@keyframes aSpin { to { transform: rotate(1turn); } }
.aRole { margin-bottom: 6px; color: #ff8db4; font: 800 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.aName { color: #fff; font: 800 clamp(40px, 5.6vw, 64px)/.95 var(--display); text-wrap: balance; }
.aBio { max-width: 62ch; margin-top: 14px; color: #ddd6e8; font-size: 17px; line-height: 1.65; }
.aStats { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.aStats b { display: block; color: #fff; font: 800 36px/1 var(--display); font-variant-numeric: tabular-nums; }
.aStats span { color: #ddd6e8; font: 600 12px/1.4 var(--body); letter-spacing: .04em; }

/* Columns */
.aCols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; align-items: start; margin-top: 44px; }
/* Author pages: the writer card spans the same column as "Lists by" below it (the left column of .aCols: the page width less the 340px sidebar and the 44px gap). */
@media (min-width: 1025px) { .aHero:not(.aCatHero):not(.hHero):not(.aPageHero) { max-width: calc(100% - 340px - 44px); margin: 0; } }
.aContent { display: grid; gap: 48px; min-width: 0; }
.aHead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.aHead h2 { font: 800 34px/1 var(--display); }
.aHead span { color: var(--muted); font: 600 13px/1.3 var(--body); }

/* Lists */
.aGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; }
.aCard { display: grid; gap: 8px; align-content: start; text-decoration: none; }
.aCard[hidden] { display: none; }
.aImg { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); border-radius: var(--img-round); }
.aImg img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.aCard:hover .aImg img { transform: scale(1.05); }
.aImg b { position: absolute; left: 10px; bottom: 10px; padding: 4px 9px 2px; background: rgba(20, 16, 28, .86); border-radius: 5px; color: #fff; font: 800 20px/1 var(--display); }
.aImg i { font: 700 11px/1 var(--body); font-style: normal; letter-spacing: .03em; }
.aCardTitle { font: 800 17px/1.3 var(--body); text-wrap: balance; transition: color .15s; }
.aCard:hover .aCardTitle { color: var(--accent); }
.aMeta { color: var(--muted); font: 600 12px/1.3 var(--body); }

/* Page numbers: the lists pager (made by the script) and the article pages */
.aPager, .aListPager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 28px; }
.aListPager > span:not(.aRange) { display: flex; flex-wrap: wrap; gap: 6px; }
.aPage, .aListPager button { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font: 800 14px/1 var(--body); font-variant-numeric: tabular-nums; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
a.aPage:hover, .aListPager button:hover:not(:disabled):not([aria-current]) { background: var(--soft); color: var(--accent); transform: translateY(-1px); }
.aPage[aria-current], .aListPager button[aria-current] { background: linear-gradient(135deg, var(--pink), var(--violet)); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(255, 79, 142, .8); color: #fff; }
.aListPager button:disabled { opacity: .35; cursor: default; }
.aPage svg, .aListPager svg { width: 18px; height: 18px; }
.aDots { display: grid; place-items: center; min-width: 24px; color: var(--muted); font-weight: 800; }
.aRange { flex-basis: 100%; margin-top: 4px; color: var(--muted); font: 600 12px/1.3 var(--body); text-align: center; }

/* Articles */
.aPosts { display: grid; gap: 18px; }
.aPosts .aHead { margin-bottom: 0; }
.aPost { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.aPost:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(29, 25, 39, .04), 0 20px 40px -20px rgba(29, 25, 39, .32); }
.aPostImg { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--img-round); background: var(--soft); }
.aPostImg img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.aPost:hover .aPostImg img { transform: scale(1.04); }
.aPostText { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.aPill { margin-bottom: 8px; padding: 3px 10px; background: var(--soft); border-radius: 99px; color: var(--ink); font: 800 11px/1.6 var(--body); letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.aPill:hover { background: var(--ink); color: #fff; }
.aPostTitle { margin-bottom: 6px; font: 800 27px/1.05 var(--display); }
.aPostTitle a { text-decoration: none; transition: color .15s; }
.aPost:hover .aPostTitle a { color: var(--accent); }
.aPostMeta { margin-bottom: 8px; color: var(--muted); font: 600 12px/1.3 var(--body); }
.aExcerpt { display: -webkit-box; overflow: hidden; color: var(--ink); font-size: 15px; line-height: 1.6; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.aMore { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; color: var(--accent); font: 800 13px/1 var(--body); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.aMore svg { width: 16px; height: 16px; transition: transform .15s; }
.aMore:hover svg { transform: translateX(3px); }
.aEmpty { padding: 40px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--round); text-align: center; }
.aEmpty h2 { margin-bottom: 8px; font: 800 30px/1.1 var(--display); }
.aEmpty p { color: var(--muted); }

/* Sidebar */
/* The sidebar runs the full height of the column; only its last box stays in view while scrolling. */
.aSide { display: grid; align-self: stretch; align-content: start; gap: 20px; }
.aSide > :last-child { position: sticky; top: 94px; }
.aBox { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--shadow); }
.aBoxTitle { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 800 24px/1 var(--display); }
.aBoxTitle::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }
.aLive { position: relative; width: 10px; height: 10px; flex: none; background: var(--pink); border-radius: 50%; }
.aLive::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--pink); opacity: .35; animation: aPulse 1.8s ease-out infinite; }
@keyframes aPulse { from { transform: scale(.6); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
.aFresh { display: grid; gap: 4px; padding: 0; list-style: none; }
.aFresh a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.aFresh a:hover { background: var(--soft); }
.aFreshImg { position: relative; display: block; width: 64px; height: 64px; overflow: hidden; background: var(--soft); border-radius: 10px; }
.aFreshImg img { width: 100%; height: 100%; object-fit: cover; }
.aFreshImg b { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; background: linear-gradient(135deg, var(--pink), var(--violet)); border-bottom-right-radius: 8px; color: #fff; font: 800 15px/1 var(--display); }
.aFreshText { display: grid; gap: 3px; min-width: 0; }
.aFreshText span { display: -webkit-box; overflow: hidden; font: 800 14px/1.3 var(--body); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.aFresh a:hover .aFreshText span { color: var(--accent); }
.aFreshText small { color: var(--muted); font: 600 12px/1.3 var(--body); }
.aTopics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aTopics a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 12px 12px 16px; overflow: hidden; background: var(--soft); border-radius: 10px; font: 800 14px/1.2 var(--body); text-decoration: none; transition: background .15s, color .15s; }
.aTopics a::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--c, var(--pink)); }
.aTopics a:nth-child(2) { --c: #ffb36b; } .aTopics a:nth-child(3) { --c: #b48cff; } .aTopics a:nth-child(4) { --c: #5ec8ff; } .aTopics a:nth-child(5) { --c: #3fd39b; } .aTopics a:nth-child(6) { --c: #ff6b5e; }
.aTopics svg { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.aTopics a:hover { background: var(--dark); color: #fff; }
.aTopics a:hover svg { color: #fff; transform: translateX(2px); }
.aWriters { display: grid; gap: 2px; padding: 0; list-style: none; }
.aWriters a { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.aWriters a:hover { background: var(--soft); }
.aWriters img, .aWi { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--line); }
.aWi { display: grid; place-items: center; background: var(--dark); color: #fff; font: 800 18px/1 var(--display); }
.aWriters a:hover img, .aWriters a:hover .aWi { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--pink); }
.aWriters span { display: grid; gap: 2px; min-width: 0; }
.aWriters b { font: 800 15px/1.2 var(--body); }
.aWriters small { color: var(--muted); font: 600 12px/1.3 var(--body); }
.aFollow { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #3a1f4a, var(--dark) 60%); border: 0; color: #fff; }
.aFollow .aBoxTitle { color: #fff; }
.aFollow .aBoxTitle::after { background: linear-gradient(90deg, rgba(255, 255, 255, .2), transparent); }
.aFollow p { margin-bottom: 14px; color: #ddd6e8; font-size: 14px; }
.aFollowLinks a { width: 42px; height: 42px; }

/* Footer */
.aFooter { position: relative; margin-top: 72px; overflow: hidden; background: var(--darker); color: #a79fb6; }
.aFooter::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, #ff4f8e, #ffb36b, #b48cff, #5ec8ff); }
.aFooter::after { content: "entoin"; position: absolute; right: -1vw; bottom: -5vw; color: #fff; font: 800 clamp(120px, 19vw, 300px)/1 var(--brand); letter-spacing: -.06em; opacity: .035; pointer-events: none; }
.aFooter .aWrap { position: relative; z-index: 1; padding: 54px 0 26px; }
.aFootTop { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.aFootBrand { display: grid; gap: 12px; max-width: 46ch; }
.aFootBrand .aLogo { color: #fff; font-size: 32px; }
.aFootBrand .aLogo svg rect:not(:first-child) { fill: #ff4f8e; }
.aFootBrand p { font-size: 15px; }
.aFootSocial a { width: 44px; height: 44px; border-color: rgba(255, 255, 255, .1); }
.aFootMenu { display: flex; flex-wrap: wrap; gap: 8px 30px; margin-top: 26px; padding: 22px 0; border-block: 1px solid rgba(255, 255, 255, .1); }
.aFootMenu a { color: #fff; font: 700 14px/1.6 var(--body); text-decoration: none; }
.aFootMenu a:hover { color: var(--pink); }
.aFootBottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; font: 500 13px/1.5 var(--body); }
.aTop { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; background: none; border: 1px solid rgba(255, 255, 255, .1); border-radius: 99px; color: #fff; font: 700 13px/1 var(--body); cursor: pointer; transition: background .15s, border-color .15s; }
.aTop:hover { background: var(--pink); border-color: var(--pink); }
.aTop svg { width: 14px; height: 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

@media (max-width: 1180px) {
  .aHeaderSocial { display: none; }
  .aNav > ul > li > a { padding-inline: 8px; font-size: 13px; }
}
@media (max-width: 1024px) {
  .aCols { grid-template-columns: minmax(0, 1fr); }
  .aSide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aSide > :last-child { position: static; }
  .aGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Menu becomes a drawer. A blurred header would trap the fixed drawer inside it, so the header is solid here. */
  .aHeader { background: var(--dark); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .aMenuBtn { display: flex; }
  .aNav { position: fixed; inset: 70px 0 0; z-index: 49; display: flex; flex-direction: column; gap: 20px; padding: 16px var(--gutter) 30px; overflow-y: auto; background: var(--dark); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .aNav.open { opacity: 1; visibility: visible; transform: none; }
  .aNav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .aNav > ul > li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .aNav > ul > li > a { padding: 16px 0; font-size: 16px; }
  .aSubBtn { width: 44px; height: 44px; margin: 0; }
  .aSub { position: static; flex-basis: 100%; display: none; min-width: 0; margin-bottom: 10px; padding: 4px; background: rgba(255, 255, 255, .04); border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .aHas:hover > .aSub, .aHas:focus-within > .aSub { display: none; }
  .aHas.open > .aSub { display: block; }
  .aHas:hover > .aSubBtn svg { transform: none; }
  .aHas.open > .aSubBtn svg { transform: rotate(180deg); }
  .aNavSocial { display: flex; }
  body.aLock { overflow: hidden; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .aLogo { font-size: 25px; }
  .aHeaderIn { min-height: 62px; }
  .aNav { inset: 62px 0 0; }
  .aMain { padding-top: 16px; }
  .aHero { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; padding: 28px 18px; text-align: center; }
  .aPhoto { width: 144px; height: 144px; }
  .aBio { font-size: 16px; }
  .aStats { justify-content: center; gap: 14px 24px; }
  .aStats b { font-size: 30px; }
  .aCols { margin-top: 32px; gap: 36px; }
  .aGrid { gap: 22px 14px; }
  .aCardTitle { font-size: 15px; }
  .aHead h2 { font-size: 30px; }
  .aPost { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 12px; }
  .aPostTitle { font-size: 25px; }
  .aSide { grid-template-columns: minmax(0, 1fr); }
  .aPage, .aListPager button { min-width: 38px; height: 38px; padding: 0 9px; }
  .aFootBottom { flex-wrap: wrap; }
  .aFooter .aWrap { padding-top: 40px; }
}
@media (max-width: 340px) {
  .aGrid { grid-template-columns: minmax(0, 1fr); }
}

/* Current section in the menu */
.aNav > ul > li.aOn > a { color: #ff8db4; }
.aSub a[aria-current] { background: rgba(255, 79, 142, .14); color: #fff; }
.aPostList { display: grid; gap: 18px; }
.aPostMeta a { color: inherit; text-decoration: none; }
.aPostMeta a:hover { color: var(--accent); }

/* Menu pages: title band without a photo, breadcrumb, related sections */
.aCatHero, .aPageHero { grid-template-columns: minmax(0, 1fr); max-width: none; padding: 44px 48px 40px; }
.aCatHero::before, .aPageHero::before { content: ""; position: absolute; inset: auto -60px -120px auto; z-index: -1; width: 380px; height: 380px; border-radius: 50%; background: conic-gradient(from 200deg, rgba(255, 79, 142, .35), rgba(255, 179, 107, .25), rgba(180, 140, 255, .35), rgba(94, 200, 255, .25), rgba(255, 79, 142, .35)); filter: blur(60px); }
.aCrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: #a79fb6; font: 700 12px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.aCrumbs a { color: #ff8db4; text-decoration: none; }
.aCrumbs a:hover { color: #fff; }
.aCatHero .aName { font-size: clamp(46px, 7vw, 88px); }
.aCatHero .aBio { max-width: 72ch; }
.aChips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.aChips a { padding: 8px 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 99px; color: #fff; font: 800 13px/1 var(--body); text-decoration: none; transition: background .15s, border-color .15s; }
.aChips a:hover { background: var(--pink); border-color: var(--pink); }

/* Magazine layout: the first article large with its title over the image, the rest two to a row */
.aMag { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.aMag .aPost { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 0 0 18px; overflow: hidden; }
.aMag .aPostImg { border-radius: 0; aspect-ratio: 16 / 9; }
.aMag .aPostText { padding: 0 18px; }
.aMag .aPostTitle { font-size: 26px; }
.aMag .aPost:first-child { position: relative; grid-column: 1 / -1; padding: 0; background: var(--dark); border: 0; }
.aMag .aPost:first-child .aPostImg { aspect-ratio: 16 / 8; }
.aMag .aPost:first-child .aPostImg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(15, 11, 22, .94)); }
.aMag .aPost:first-child .aPostText { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 32px 28px; color: #fff; }
.aMag .aPost:first-child .aPostTitle { max-width: 24ch; font-size: clamp(30px, 3.6vw, 46px); }
.aMag .aPost:first-child .aPostTitle a, .aMag .aPost:first-child .aMore { color: #fff; }
.aMag .aPost:first-child:hover .aPostTitle a { color: #ff8db4; }
.aMag .aPost:first-child .aPostMeta { color: #ddd6e8; }
.aMag .aPost:first-child .aExcerpt { max-width: 70ch; color: #ddd6e8; -webkit-line-clamp: 2; }
.aMag .aPost:first-child .aPill { background: var(--pink); color: #fff; }

/* Footer pages: page links on the left, the text on the right */
.aPageHero .aName { font-size: clamp(44px, 6.4vw, 80px); }
.aUpdated { margin-top: 12px; color: #a79fb6; font: 600 13px/1.3 var(--body); }
.aPageCols { grid-template-columns: 240px minmax(0, 1fr); }
.aPageNav { position: sticky; top: 94px; display: grid; gap: 4px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--shadow); }
.aPageNav a { padding: 10px 12px; border-radius: 10px; font: 700 14px/1.3 var(--body); text-decoration: none; transition: background .15s, color .15s; }
.aPageNav a:hover { background: var(--soft); color: var(--accent); }
.aPageNav a[aria-current] { background: var(--dark); color: #fff; }
.aProse { min-width: 0; max-width: 920px; padding: 40px 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--shadow); font-size: 17px; line-height: 1.75; }
.aProse > * + * { margin-top: 18px; }
.aProse h1, .aProse h2 { margin-top: 36px; font: 800 36px/1.05 var(--display); }
.aProse h3 { margin-top: 28px; font: 800 26px/1.1 var(--display); }
.aProse > :first-child { margin-top: 0; }
/* The old pages set their body text as h4; it reads as text */
.aProse h4 { font: 400 17px/1.75 var(--body); }
.aProse a { color: var(--accent); font-weight: 700; }
.aProse ul, .aProse ol { padding-left: 1.3em; }
.aProse li + li { margin-top: 8px; }
.aProse img { width: 100%; height: auto; border-radius: var(--img-round); }
.aProse figure { margin-block: 26px; }
.pInfo { display: inline-grid; gap: 4px; min-width: 220px; margin-right: 12px; padding: 16px 20px; background: var(--soft); border-left: 4px solid var(--pink); border-radius: 10px; vertical-align: top; }
.pInfo + .pInfo { border-left-color: #b48cff; }
.pInfo span { color: var(--muted); font: 800 12px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; }
.pInfo strong { font: 800 18px/1.3 var(--body); }
.pMail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px 28px; background: radial-gradient(120% 140% at 0% 0%, #2a1f3a, var(--dark) 62%); border-radius: var(--round); color: #fff; }
.pMail span { color: #ff8db4; font: 800 12px/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; }
.pMail strong { display: block; margin-top: 4px; font: 800 30px/1.1 var(--display); }
.pMail p { margin-top: 6px; color: #ddd6e8; font-size: 15px; }
.aProse .pMail a { padding: 13px 22px; background: linear-gradient(135deg, var(--pink), var(--violet)); border-radius: 99px; color: #fff; font: 800 14px/1 var(--body); text-decoration: none; box-shadow: 0 10px 24px -10px rgba(255, 79, 142, .8); }
.pFaq { border: 1px solid var(--line); border-radius: 12px; background: var(--card); transition: border-color .15s; }
.pFaq + .pFaq { margin-top: 10px; }
.pFaq[open] { border-color: var(--pink); }
.pFaq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; font: 800 17px/1.3 var(--body); cursor: pointer; list-style: none; }
.pFaq summary::-webkit-details-marker { display: none; }
.pFaq summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; flex: none; background: var(--soft); border-radius: 50%; color: var(--accent); font: 800 20px/1 var(--body); transition: transform .2s; }
.pFaq[open] summary::after { transform: rotate(45deg); }
.pFaq > :not(summary) { margin: 0; padding: 0 20px 16px; color: var(--muted); }

@media (max-width: 1024px) {
  .aPageCols { grid-template-columns: minmax(0, 1fr); }
  .aPageNav { position: static; display: flex; flex-wrap: wrap; padding: 8px; }
}
@media (max-width: 640px) {
  .aCatHero, .aPageHero { padding: 30px 20px; text-align: left; justify-items: start; }
  .aCatHero .aStats, .aPageHero .aStats { justify-content: flex-start; }
  .aMag { grid-template-columns: minmax(0, 1fr); }
  .aMag .aPost:first-child { display: grid; }
  .aMag .aPost:first-child .aPostImg { aspect-ratio: 16 / 10; }
  .aMag .aPost:first-child .aPostText { position: static; padding: 18px; }
  .aMag .aPost:first-child .aPostImg::after { display: none; }
  .aMag .aPostTitle { font-size: 24px; }
  .aProse { padding: 24px 18px; font-size: 16px; }
  .aProse h1, .aProse h2 { font-size: 30px; }
  .pInfo { display: grid; margin: 0 0 10px; }
  .pMail strong { font-size: 24px; }
}
.aProse figure img { max-height: 380px; object-fit: cover; }

/* Home page */
.hMain { display: grid; gap: 52px; }
.hMain > .aHero { margin: 0; }
.hHero { grid-template-columns: minmax(0, 1fr); max-width: none; padding: 52px 52px 44px; }
.hHero::before { content: ""; position: absolute; inset: auto -80px -160px auto; z-index: -1; width: 460px; height: 460px; border-radius: 50%; background: conic-gradient(from 200deg, rgba(255, 79, 142, .4), rgba(255, 179, 107, .3), rgba(180, 140, 255, .4), rgba(94, 200, 255, .3), rgba(255, 79, 142, .4)); filter: blur(70px); }
.hHero .aName { max-width: 18ch; font-size: clamp(42px, 6vw, 78px); }
.hHero .aStats b { font-size: 44px; }
.hMoreLink { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font: 800 13px/1 var(--body); letter-spacing: .04em; text-decoration: none; text-transform: uppercase; }
.hMoreLink svg { width: 16px; height: 16px; transition: transform .15s; }
.hMoreLink:hover svg { transform: translateX(3px); }
.hCard { position: relative; display: grid; gap: 12px; align-content: start; }
.hCardImg { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); border-radius: var(--img-round); }
.hCardImg img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.hCard:hover .hCardImg img { transform: scale(1.05); }
.hCardText { display: flex; flex-direction: column; align-items: flex-start; }
.hCardTitle { margin-bottom: 6px; font: 800 22px/1.1 var(--display); }
.hCardTitle a { text-decoration: none; transition: color .15s; }
.hCard:hover .hCardTitle a { color: var(--accent); }
/* Featured: one large cover with its title over the image, two beside it */
.hFeatured { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; }
.hBig { overflow: hidden; border-radius: var(--round); background: var(--dark); }
.hBig .hCardImg { height: 100%; min-height: 460px; aspect-ratio: auto; border-radius: 0; }
.hBig .hCardImg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(15, 11, 22, .95)); }
.hBig .hCardText { position: absolute; left: 0; right: 0; bottom: 0; padding: 32px; color: #fff; }
.hBig .hCardTitle { max-width: 22ch; font-size: clamp(32px, 3.6vw, 50px); }
.hBig .hCardTitle a, .hBig .aPostMeta a { color: #fff; }
.hBig:hover .hCardTitle a { color: #ff8db4; }
.hBig .aPostMeta, .hBig .aExcerpt { color: #ddd6e8; }
.hBig .aExcerpt { max-width: 64ch; margin-top: 4px; -webkit-line-clamp: 2; }
.hBig .aPill { background: var(--pink); color: #fff; }
.hFeatSide { display: grid; gap: 24px; align-content: start; }
.hFeatSide .hCard { grid-template-columns: minmax(0, 1fr); padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--shadow); }
.hFresh { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Latest articles beside the section tabs */
.hTwo { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; }
.hLatest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 22px; }
.hTabs { position: sticky; top: 94px; display: grid; gap: 14px; }
.hTabs .aHead { margin-bottom: 4px; }
.hTabList { display: flex; gap: 6px; padding: 5px; background: var(--soft); border-radius: 99px; }
.hTabList button { flex: 1; padding: 10px 12px; background: none; border: 0; border-radius: 99px; color: var(--muted); font: 800 14px/1 var(--body); cursor: pointer; transition: background .15s, color .15s; }
.hTabList button[aria-selected="true"] { background: var(--dark); color: #fff; box-shadow: 0 6px 16px -8px rgba(20, 16, 28, .6); }
.hPane { display: grid; gap: 6px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--shadow); }
.hPane[hidden] { display: none; }
.hMini { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; transition: background .15s; }
.hMini:hover { background: var(--soft); }
.hMini img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; }
.hMini span { display: grid; gap: 4px; min-width: 0; }
.hMini b { display: -webkit-box; overflow: hidden; font: 800 14px/1.3 var(--body); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hMini:hover b { color: var(--accent); }
.hMini small { color: var(--muted); font: 600 12px/1.3 var(--body); }
/* Most popular: numbered */
.hPopular { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 0; list-style: none; }
.hPopular a { display: grid; grid-template-columns: 34px 92px minmax(0, 1fr); gap: 12px; align-items: center; height: 100%; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.hPopular a:hover { border-color: var(--pink); box-shadow: var(--shadow); transform: translateY(-2px); }
.hRank { font: 800 34px/1 var(--display); background: linear-gradient(135deg, var(--pink), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; text-align: center; }
.hPopular img { width: 92px; height: 62px; object-fit: cover; border-radius: 8px; }
.hPopText { display: grid; gap: 4px; min-width: 0; }
.hPopText b { display: -webkit-box; overflow: hidden; font: 800 14px/1.3 var(--body); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hPopular a:hover b { color: var(--accent); }
.hPopText small { color: var(--muted); font: 700 11px/1.3 var(--body); letter-spacing: .05em; text-transform: uppercase; }
/* Writers */
.hWriters { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hWriters a { display: grid; justify-items: center; gap: 4px; padding: 22px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--round); text-align: center; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.hWriters a:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.hWriters img, .hWriters .aWi { width: 88px; height: 88px; margin-bottom: 8px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--line); }
.hWriters a:hover img { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--pink); }
.hWriters .aWi { font-size: 30px; }
.hWriters b { font: 800 15px/1.2 var(--body); }
.hWriters small { color: var(--muted); font: 600 12px/1.3 var(--body); }

@media (max-width: 1180px) {
  .hFresh { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hWriters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hPopular { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hTwo { grid-template-columns: minmax(0, 1fr); }
  .hTabs { position: static; }
  .hFeatured { grid-template-columns: minmax(0, 1fr); }
  .hFeatSide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hBig .hCardImg { min-height: 380px; }
}
@media (max-width: 640px) {
  .hMain { gap: 38px; }
  .hHero { padding: 32px 20px; }
  .hHero .aStats b { font-size: 32px; }
  .hHero .aStats { justify-content: flex-start; }
  .hHero, .hHero .aHeroText { text-align: left; justify-items: start; }
  .hFeatSide, .hLatest, .hPopular { grid-template-columns: minmax(0, 1fr); }
  .hBig .hCardImg { min-height: 320px; }
  .hBig .hCardText { padding: 20px; }
  .hBig .aExcerpt { display: none; }
  .hFresh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hWriters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Home: the large featured card fills with its photo; a collage of fresh list covers fills the title band */
.hBig { position: relative; min-height: 450px; }
.hBig .hCardImg { position: absolute; inset: 0; height: auto; min-height: 0; }
.hFeatSide .hCardImg { aspect-ratio: 16 / 9; }
.hHero { grid-template-columns: minmax(0, 1fr) 440px; align-items: center; }
.hHero .aHeroText { grid-column: 1; grid-row: 1; }
.hCollage { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; transform: rotate(-4deg); }
.hCollage img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid rgba(255, 255, 255, .9); border-radius: 12px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8); }
.hCollage img:nth-child(2) { transform: translateY(26px); }
.hCollage img:nth-child(3) { transform: translateY(-10px); }
.hCollage img:nth-child(4) { transform: translateY(16px); }
@media (max-width: 1024px) {
  .hHero { grid-template-columns: minmax(0, 1fr); }
  .hCollage { display: none; }
  .hBig { min-height: 420px; }
}
@media (max-width: 640px) { .hBig { min-height: 380px; } }
/* Headings now follow WordPress's levels; added section titles are text styled the same */
.aHead .aHeadT { margin: 0; font: 800 34px/1 var(--display); }
.aEmpty .aHeadT { margin-bottom: 8px; font: 800 30px/1.1 var(--display); }
.hMiniT { display: -webkit-box; margin: 0; overflow: hidden; font: 800 14px/1.3 var(--body); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hMini:hover .hMiniT { color: var(--accent); }
.aBoxTitle { margin-top: 0; }
.pInfo h5 { margin: 0; color: var(--muted); font: 800 12px/1.3 var(--body); letter-spacing: .08em; text-transform: uppercase; }
/* About: the team */
.aProse .pTeam { display: inline-grid; justify-items: center; gap: 6px; width: calc(25% - 12px); min-width: 150px; margin: 8px 12px 8px 0; padding: 18px 12px; background: var(--soft); border-radius: var(--round); color: var(--ink); font-weight: 400; text-align: center; text-decoration: none; vertical-align: top; transition: transform .15s, box-shadow .15s; }
.aProse .pTeam:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.aProse .pTeam img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--pink); }
.aProse .pTeam h3 { margin: 8px 0 0; font: 800 17px/1.2 var(--body); }
.aProse .pTeam:hover h3 { color: var(--accent); }
.aProse .pTeam small { color: var(--muted); font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 640px) { .aProse .pTeam { width: calc(50% - 8px); min-width: 0; margin-right: 8px; } }

/* Search: a button in the header that opens a small box (details/summary, so it works without JavaScript), the same box at the
   top of the phone menu, and on the 404 page. All send /?s=, the WordPress search. */
.aFind { position: relative; flex: none; }
.aFind > summary { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 50%; color: #fff; cursor: pointer; list-style: none; transition: background .15s, border-color .15s; }
.aFind > summary::-webkit-details-marker { display: none; }
.aFind > summary:hover, .aFind[open] > summary { background: var(--pink); border-color: var(--pink); }
.aFind > summary svg { width: 17px; height: 17px; }
.aFind > .aSearch { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; width: min(420px, calc(100vw - 2 * var(--gutter))); padding: 10px; background: var(--dark); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .7); }
.aSearch { display: flex; gap: 8px; }
.aSearch input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; color: #fff; font: 600 15px/1 var(--body); }
.aSearch input::placeholder { color: rgba(255, 255, 255, .55); }
.aSearch input:focus { outline: 0; border-color: #ff8db4; box-shadow: 0 0 0 4px rgba(255, 79, 142, .22); }
.aSearch button { flex: none; height: 44px; padding: 0 18px; background: var(--pink); border: 0; border-radius: 99px; color: #fff; font: 800 14px/1 var(--body); cursor: pointer; }
.aSearch button:hover { filter: brightness(1.08); }
.aNav > .aSearch { display: none; }
/* Tablets and phones: the search box sits at the top of the menu drawer instead. */
@media (max-width: 1024px) { .aHeaderIn > .aFind { display: none; } .aNav > .aSearch { display: flex; order: -1; } }
/* The 404 page */
.aNotFound .aHeroText { display: grid; gap: 16px; }
.aNotFound .aSearch { max-width: 520px; }
.aNotFoundLinks { display: flex; flex-wrap: wrap; gap: 8px; }
.aNotFoundLinks a { padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; color: #fff; font: 700 14px/1 var(--body); text-decoration: none; }
.aNotFoundLinks a:hover { background: var(--pink); border-color: var(--pink); }
