/*
Theme Name: The Agent Unleashed Magazine
Description: Black, gold and ivory editorial theme for The Agent Unleashed.
Version: 2.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: the-agent-unleashed-magazine
*/
:root {
    --paper: #f9f5ed;
    --ink: #141310;
    --muted: #5f584d;
    --gold: #89570c;
    --bright-gold: #e5bb70;
    --rule: #c5b8a2;
    --black: #10100f;
    --serif: Georgia, 'Times New Roman', serif;
    --sans: system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.45 var(--serif); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #936112; outline-offset: 4px; }
figure, p, h1, h2, h3 { margin: 0; }
.wrap { width: min(100% - 3rem, 82rem); margin-inline: auto; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; overflow: hidden; clip-path: inset(50%); width: 1px; height: 1px; white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 20; inset: 1rem auto auto 1rem; background: var(--paper); padding: .6rem 1rem; }

.site-header { background: radial-gradient(ellipse at top, #fffaf0, #f4ecdf); }
.topline { min-height: 2.8rem; border-bottom: 1px solid var(--rule); display: grid; align-items: center; grid-template-columns: 1fr auto 1fr; gap: 1rem; font-size: .73rem; font-weight: 700; text-transform: uppercase; }
.network { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; margin: 0; padding: 0; }
.network a { text-decoration: none; }
.network a:hover { text-decoration: underline; }
.motto { letter-spacing: .25em; text-align: center; }
.topline time { justify-self: end; text-align: right; }
.masthead { text-align: center; padding: 1.1rem 0 1rem; }
.wordmark { display: inline-flex; flex-direction: column; font-size: clamp(2.7rem, 8.3vw, 8.2rem); line-height: .77; font-weight: 700; text-transform: uppercase; text-decoration: none; color: #85570e; letter-spacing: -.055em; }
.wordmark span { font-size: .79em; letter-spacing: -.035em; }
.wordmark strong { font-weight: inherit; }
@supports (background-clip: text) {
    .wordmark { background: linear-gradient(161deg, #684006 8%, #a8721a 46%, #80520a 82%); background-clip: text; color: transparent; }
}
.masthead p { display: flex; justify-content: center; align-items: center; gap: clamp(.5rem, 2vw, 1.7rem); margin: 1rem auto 0; font-size: clamp(.57rem, 1.35vw, .91rem); font-weight: 700; text-transform: uppercase; letter-spacing: .17em; }
.masthead p::before, .masthead p::after { content: ''; width: min(10vw, 7.5rem); height: 1px; background: #b07c31; flex: none; }

.nav-band { background: var(--black); color: var(--paper); }
.nav-inner { display: flex; align-items: center; gap: 1rem; }
.nav { display: flex; justify-content: center; flex-wrap: wrap; flex: 1; text-transform: uppercase; }
.nav a { position: relative; text-align: center; font-weight: 700; font-size: clamp(.75rem, 1.45vw, 1rem); padding: .8rem clamp(.55rem, 3vw, 2.9rem); white-space: nowrap; text-decoration: none; }
.nav a + a::before { content: ''; width: 1px; height: .9em; background: #c4b9a4; position: absolute; left: 0; top: calc(50% - .45em); }
.nav a:hover, .nav a[aria-current] { color: var(--bright-gold); text-decoration: underline; text-underline-offset: .53em; }
.site-search { position: relative; }
.site-search summary { cursor: pointer; padding: .65rem .4rem; display: grid; place-items: center; list-style: none; width: 2.5rem; height: 2.5rem; }
.site-search summary::-webkit-details-marker { display: none; }
.site-search summary span { width: 1rem; height: 1rem; margin: -.2rem .18rem 0 0; border: 2px solid currentColor; border-radius: 50%; position: relative; }
.site-search summary span::after { content: ''; position: absolute; width: .48rem; height: 2px; right: -.37rem; bottom: -.19rem; background: currentColor; transform: rotate(48deg); }
.search-form { display: flex; gap: .4rem; }
.site-search .search-form { position: absolute; top: calc(100% + .35rem); right: 0; z-index: 2; padding: .65rem; background: var(--black); box-shadow: 0 6px 14px #14131040; }
.search-field { max-width: 53vw; }
.search-field, .search-submit { font: inherit; padding: .45rem; }
.search-submit { cursor: pointer; }

.front-page { padding-top: clamp(.9rem, 1.8vw, 1.5rem); }
.editorial-grid { display: grid; grid-template-columns: 1fr 2.12fr 1fr; grid-template-areas: 'leadership cover interview' 'profile cover spotlight'; grid-template-rows: 1.05fr .95fr; column-gap: clamp(.8rem, 1.8vw, 1.5rem); row-gap: .6rem; border-bottom: 1px solid var(--rule); padding-bottom: .65rem; }
.cover-story { grid-area: cover; position: relative; background: var(--black); }
.cover-story::before, .cover-story::after { content: ''; position: absolute; inset: 0 auto; width: 1px; background: var(--rule); }
.cover-story::before { left: calc(clamp(.8rem, 1.8vw, 1.5rem) / -2); }
.cover-story::after { right: calc(clamp(.8rem, 1.8vw, 1.5rem) / -2); }
.cover-story > img, .live-cover { width: 100%; height: 100%; }
.cover-story > img { object-fit: cover; aspect-ratio: 484 / 664; }
.live-cover { display: grid; align-items: end; min-height: 26rem; position: relative; overflow: hidden; color: var(--paper); text-decoration: none; }
.live-cover img { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; }
.live-cover-copy { position: relative; padding: clamp(1.25rem, 3vw, 3rem); background: linear-gradient(transparent, #100d0ae8 44%); }
.live-cover-copy h1 { font-size: clamp(2rem, 5vw, 4.2rem); line-height: .98; margin: .35em 0; }
.live-cover-copy span { color: var(--bright-gold); text-transform: uppercase; letter-spacing: .13em; font-size: .8rem; }
.feature-leadership { grid-area: leadership; }
.feature-profile { grid-area: profile; }
.feature-interview { grid-area: interview; }
.feature-spotlight { grid-area: spotlight; }
.feature { min-width: 0; }
.feature-leadership, .feature-interview { border-bottom: 1px solid var(--rule); padding-bottom: .55rem; }
.feature-picture { position: relative; background: linear-gradient(145deg, #292118, var(--black)); aspect-ratio: 1.32; }
.feature-profile .feature-picture, .feature-spotlight .feature-picture { aspect-ratio: 1.67; }
.feature-picture img { width: 100%; height: 100%; object-fit: cover; }
.feature-picture span { position: absolute; bottom: 0; left: .48rem; padding: .13rem .5rem; background: #edc77e; color: var(--ink); font-size: .75rem; text-transform: uppercase; font-weight: 700; }
.feature-copy { padding: .46rem .48rem 0; }
.feature h2 { font-size: clamp(1.15rem, 2.45vw, 2.02rem); line-height: .97; letter-spacing: -.035em; text-transform: uppercase; }
.feature p { margin-top: .35rem; font-size: clamp(.84rem, 1.43vw, 1.12rem); line-height: 1.18; }
.text-link { display: inline-block; color: var(--gold); font-weight: 700; text-transform: uppercase; text-decoration: none; font-size: .82rem; }
.text-link:hover { text-decoration: underline; }
.feature .text-link { margin-top: .5rem; }

.issues { padding: .85rem clamp(0rem, 2.6vw, 2rem) 0; }
.ruled-title { display: flex; justify-content: center; align-items: center; gap: clamp(.65rem, 2.5vw, 2rem); line-height: 1; font-size: clamp(1.7rem, 4vw, 3.6rem); text-transform: uppercase; text-align: center; margin-bottom: clamp(.8rem, 2vw, 1.5rem); }
.ruled-title::before, .ruled-title::after { content: ''; height: 1px; background: #a67020; flex: 1; }
.issue-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.7rem, 2.4vw, 2rem); }
.issue img { width: 100%; aspect-ratio: 213 / 278; object-fit: cover; }
.issue a { display: block; }
.issue a:hover { box-shadow: 0 .3rem 1rem #2a201b50; }
.application { border: 1px solid #ab7523; background: #fff8eb; margin: clamp(1rem, 2vw, 1.65rem) clamp(0rem, 1.6vw, 1.4rem); padding: .82rem 1.15rem; display: flex; justify-content: center; align-items: center; gap: .8rem 2rem; flex-wrap: wrap; text-align: center; }
.application h2 { font-size: clamp(1.4rem, 2.8vw, 2.5rem); line-height: 1.05; text-transform: uppercase; }
.btn { display: inline-block; padding: .65rem 1.1rem; background: #81530d; color: white; text-transform: uppercase; text-decoration: none; font-weight: 700; }
.btn:hover { background: #633e09; }
.application-status { color: var(--gold); font-weight: 700; text-transform: uppercase; font-size: .81rem; }
.publisher { display: grid; grid-template-columns: minmax(8rem, .85fr) minmax(0, 2fr); align-items: center; background: var(--black); color: var(--paper); margin: 2rem 0; border-top: 2px solid #986b2b; }
.publisher-art { display: grid; min-height: 100%; place-items: center; background: radial-gradient(ellipse at 25% 25%, #3a2916, #151311 72%); }
.publisher-art img { width: 100%; height: 100%; object-fit: cover; }
.publisher-art span { color: var(--bright-gold); font-size: clamp(3rem, 10vw, 8rem); line-height: 1; padding: 1.5rem; }
.publisher-copy { padding: clamp(1.25rem, 4vw, 3.5rem); }
.kicker { color: var(--gold); font: 700 .73rem/1.4 var(--sans); letter-spacing: .17em; text-transform: uppercase; }
.publisher .kicker { color: var(--bright-gold); }
.publisher h2 { font-size: clamp(2rem, 4.8vw, 4rem); letter-spacing: -.045em; line-height: 1.05; margin-top: .4rem; }
.publisher-copy p:not(.kicker) { margin-top: .75rem; max-width: 44rem; }
.publisher .text-link { color: var(--bright-gold); margin-top: 1rem; }
.social-band { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; padding: 0 0 1.5rem; }
.site-footer { background: var(--black); color: var(--paper); padding: 1.25rem 0; font-size: .86rem; }
.footer-inner, .footer-inner nav { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; }
.footer-inner { justify-content: space-between; }
.footer-inner a { text-underline-offset: .2em; }

.content-area { width: min(100% - 3rem, 62rem); margin: clamp(1.5rem, 5vw, 4rem) auto; }
.article-title { font-size: clamp(2.1rem, 6vw, 4rem); line-height: 1.05; margin: .45em 0; }
.article-meta { color: var(--muted); margin-bottom: 1.3rem; }
.article-body { max-width: 46rem; margin-top: 1.3rem; font-size: 1.12rem; }
.article-body > * + * { margin-top: 1em; }
.article-body a { color: var(--gold); }
.list-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.story-card { border-top: 1px solid var(--rule); padding-top: .8rem; }
.story-card a { text-decoration: none; }
.story-card a:hover h3 { text-decoration: underline; }
.story-card h3 { font-size: 1.55rem; line-height: 1.1; margin: .45rem 0; }
.story-label, .pagination { color: var(--muted); margin-top: 1rem; font-size: .86rem; }
.story-placeholder { display: none; }
@media (max-width: 760px) {
    .wrap { width: min(100% - 1.5rem, 82rem); }
    .topline { grid-template-columns: 1fr auto; }
    .network:empty { display: none; }
    .network:not(:empty) { grid-column: 1 / -1; justify-content: center; padding-top: .5rem; }
    .motto { text-align: left; letter-spacing: .09em; }
    .nav-inner { gap: .2rem; }
    .nav a { padding: .6rem .58rem; }
    .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; grid-template-areas: 'cover cover' 'leadership interview' 'profile spotlight'; gap: .9rem .75rem; }
    .cover-story::before, .cover-story::after { display: none; }
    .cover-story > img { object-fit: contain; max-height: 43rem; }
    .editorial-grid .feature-picture { aspect-ratio: 1.44; }
    .publisher { margin-block: 1rem; }
}
@media (max-width: 420px) {
    .topline { font-size: .6rem; gap: .35rem; }
    .nav a { font-size: .72rem; padding: .45rem .48rem; }
    .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .publisher { grid-template-columns: 1fr; }
    .publisher-art { min-height: 7rem; }
    .publisher-art img { max-height: 19rem; }
}
