/*
Theme Name: Writings Online
Description: Brand theme for Writings Online — ink, paper and one bold mark. Pairs with the Writings Online Library plugin.
Author: Michelle Goodale
Version: 1.0.0
Text Domain: writings-online
*/

:root {
	--bg: #F6F5F1;
	--surface: #FFFFFF;
	--text: #18202C;
	--muted: #4A5260;
	--rule: #DAD6CC;
	--accent: #8B2E3C;
	--btn: #8B2E3C;
	--btn-text: #FFFFFF;
	--cover: #18202C;
	--band: #18202C;
	--fantasy: #4FB3A9;
	--display: 'Cormorant Garamond', Georgia, serif;
	--sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	--wrap: 1200px;
}

:root[data-theme="dark"] {
	--bg: #12171F; --surface: #1A212C; --text: #ECE9E2; --muted: #A9B0BB; --rule: #2C3542;
	--accent: #D9915A; --btn: #D9915A; --btn-text: #18202C; --cover: #232C3A; --band: #0B0F15;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #12171F; --surface: #1A212C; --text: #ECE9E2; --muted: #A9B0BB; --rule: #2C3542;
		--accent: #D9915A; --btn: #D9915A; --btn-text: #18202C; --cover: #232C3A; --band: #0B0F15;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; transition: background .25s, color .25s; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { opacity: .85; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; background: var(--surface); padding: 12px 16px; z-index: 100; }

.wo-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0 0 .4em; }
h1 em, h2 em, h3 em, .wo-title em { font-style: italic; font-weight: 500; color: var(--accent); }
.wo-eyebrow { margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.wo-section-title { font-size: clamp(34px, 5vw, 48px); }

/* Buttons */
.wo-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: 4px; border: 1px solid var(--btn); background: var(--btn); color: var(--btn-text); font: 600 15px var(--sans); text-decoration: none; cursor: pointer; }
.wo-btn--ghost { background: transparent; color: var(--text); border-color: var(--text); }
.wo-btn--small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.wo-link { font-weight: 600; font-size: 15px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wo-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; padding-bottom: 20px; }
.site-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.site-brand__name { font-family: var(--display); font-weight: 600; font-size: 26px; }
.site-brand__name em { font-style: italic; font-weight: 500; color: var(--accent); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; display: inline-block; padding: 12px 0; }
.site-nav .current-menu-item > a, .site-nav a[aria-current] { color: var(--accent); }
.theme-toggle { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--rule); background: var(--surface); color: var(--text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 88px; padding-bottom: 88px; }
.hero__text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.hero h1 { font-size: clamp(48px, 8vw, 76px); margin: 0; }
.hero__lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cover { flex: 1 1 300px; display: flex; justify-content: center; }

/* Covers */
.cover { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 2 / 3; width: 100%; max-width: 300px; background: var(--cover); border: 1px solid var(--rule); border-radius: 3px 8px 8px 3px; padding: 28px 24px; color: #F6F5F1; text-decoration: none; overflow: hidden; }
.cover__meta { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #D9915A; }
.cover__title { font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(28px, 4vw, 40px); line-height: 1.05; color: #F6F5F1; }
.cover svg { margin-bottom: 14px; }
.cover--img { padding: 0; }
.cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-flip { max-width: 300px; }
.cover-flip .cover { max-width: none; }
.cover-flip__face[hidden] { display: none; }
.cover-flip__face[data-full] { cursor: zoom-in; }
.cover-flip__face[data-full]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wo-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.wo-lightbox::backdrop { background: rgba(0, 0, 0, .88); }
.wo-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.wo-lightbox img { max-width: min(94vw, 900px); max-height: 94vh; width: auto; height: auto; border-radius: 4px; box-shadow: 0 10px 40px rgba(0, 0, 0, .6); cursor: zoom-out; }
.wo-lightbox__x { position: fixed; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .5); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.wo-lightbox__x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cover-flip__tabs { display: flex; gap: 6px; margin-top: 10px; justify-content: center; }
.cover-flip__tabs button { font: inherit; font-size: 14px; padding: 6px 16px; border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.cover-flip__tabs button.is-on { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.cover-flip__tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 800px) { .cover-flip { max-width: 240px; } }
.wo_genre-fantasy .cover__meta, .cover.is-fantasy .cover__meta { color: var(--fantasy); }
.cover.is-fantasy svg * { stroke: var(--fantasy); }

/* Genre cards */
.genres { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; padding-bottom: 88px; }
.genre-card { display: flex; flex-direction: column; gap: 14px; padding: 40px; border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; color: var(--text); background: var(--surface); }
.genre-card h2 { font-size: clamp(34px, 5vw, 44px); margin: 0; }
.genre-card p { margin: 0; color: var(--muted); }
.genre-card--fantasy { background: var(--cover); color: #F6F5F1; }
.genre-card--fantasy .wo-eyebrow { color: var(--fantasy); display: flex; align-items: center; gap: 10px; }
.genre-card--fantasy h2 em { color: var(--fantasy); }
.genre-card--fantasy p { color: #C9CDD4; }

/* Bands */
.band-surface { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section { padding-top: 80px; padding-bottom: 80px; }

/* Shelf */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 32px 24px; list-style: none; margin: 0; padding: 0; }
.work-card { display: flex; flex-direction: column; gap: 12px; }
.work-card .cover { max-width: none; }
.work-card h3 { font-size: 26px; margin: 0; }
.work-card h3 a { color: var(--text); text-decoration: none; }
.work-card__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); }
.wo-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border: 1px solid var(--rule); color: var(--muted); }
.wo-badge--free { color: var(--text); border-color: var(--text); }
.wo-badge--premium { background: var(--accent); border-color: var(--accent); color: var(--btn-text); }

/* Type filter */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 40px; padding: 0; list-style: none; }
.filter a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; background: var(--surface); }
.filter .is-active a { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Post list */
.post-list { border-top: 1px solid var(--rule); }
.post-list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--text); }
.post-list__title { font-family: var(--display); font-weight: 600; font-size: 30px; }
.post-list__meta { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about__photo { flex: 1 1 320px; max-width: 400px; aspect-ratio: 4 / 5; background: var(--rule); border-radius: 4px; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about__text h2 { font-size: clamp(38px, 5vw, 52px); margin: 0; }
.about__text p { margin: 0; font-size: 18px; color: var(--muted); max-width: 620px; }

/* Subscribe band */
.subscribe { background: var(--band); color: #F6F5F1; }
.subscribe .wo-wrap { max-width: 760px; padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.subscribe h2 { font-size: clamp(38px, 5vw, 52px); margin: 0; }
.subscribe h2 em { color: #D9915A; }
.subscribe p { margin: 0; font-size: 18px; color: #C9CDD4; }
.subscribe form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; width: 100%; }
.subscribe input[type="email"] { flex: 1 1 280px; max-width: 380px; height: 48px; padding: 0 16px; border-radius: 4px; border: 1px solid #4A5260; background: #F6F5F1; color: #18202C; font: 16px var(--sans); }
.subscribe input[type="submit"], .subscribe button { height: 48px; padding: 0 24px; border: 0; border-radius: 4px; background: #D9915A; color: #18202C; font: 600 15px var(--sans); cursor: pointer; }

/* Footer */
.site-footer .wo-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--muted); }

/* Single work / entries */
.entry { max-width: 720px; margin: 0 auto; padding: 72px 24px 88px; }
.entry--work { max-width: var(--wrap); display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 800px) { .entry--work { grid-template-columns: 1fr; gap: 32px; } .entry--work .cover { max-width: 240px; } }
.entry__head h1 { font-size: clamp(42px, 7vw, 64px); margin: 12px 0 16px; }
.entry__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.entry__content { font-size: 19px; line-height: 1.75; }
.entry__content p { margin: 0 0 1.2em; }
.entry__content.is-poem { white-space: pre-line; font-family: var(--display); font-size: 24px; line-height: 1.5; }

/* Editions */
.wo-editions { margin: 40px 0; padding: 28px; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
.wo-editions h2 { font-size: 34px; }
.wo-editions__list { list-style: none; margin: 0; padding: 0; }
.wo-edition { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--rule); }
.wo-edition__fmt { font-weight: 600; min-width: 110px; }
.wo-edition__label { flex: 1 1 140px; color: var(--muted); font-size: 15px; }
.wo-edition__locked { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* Paywall */
.wo-unlock { margin: 32px 0; padding: 36px; border: 1px solid var(--accent); border-radius: 6px; background: var(--surface); position: relative; }
.wo-unlock__title { font-size: 40px; margin: 6px 0 8px; }
.wo-unlock__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 20px; }

/* Pagination */
.pagination { margin-top: 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--text); padding: 0 12px; }
.pagination .current { background: var(--text); color: var(--bg); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* My library */
.wo-mylib { display: flex; flex-direction: column; gap: 32px; }
.wo-mylib__item { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-top: 1px solid var(--rule); align-items: start; }
.wo-mylib__cover .cover { padding: 14px; }
.wo-mylib__cover .cover__title { font-size: 20px; }
.wo-mylib__body h3 { font-size: 34px; margin: 0 0 12px; }
.wo-mylib__body h3 a { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { .wo-mylib__item { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; } }

/* Back-cover blurb on a work page */
.entry__blurb { margin: 28px 0 8px; max-width: 40em; color: var(--muted); }
.entry__blurb p { margin: 0 0 1em; }
.entry__blurb p:first-child { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 30px; line-height: 1.15; color: var(--accent); }

/* Bonus content page */
.bonus { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 88px; }
.bonus__head { text-align: center; margin-bottom: 40px; }
.bonus__head h1 { margin: 0; }
.bonus__signup { background: var(--band); color: #F6F5F1; border-radius: 8px; padding: 40px 28px; margin: 0 auto 64px; max-width: 820px; text-align: center; }
.bonus__signup .entry__content { max-width: 560px; margin: 0 auto; color: inherit; }
.bonus__signup h2, .bonus__signup h3 { color: #F6F5F1; margin-top: 0; }
.bonus__work { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: start; padding: 48px 0; border-top: 1px solid var(--rule); }
.bonus__work h2 { margin: 0 0 12px; }
.bonus__actions { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .bonus__work { grid-template-columns: 1fr; gap: 28px; } .bonus__work .cover { max-width: 240px; } .cover-flip { max-width: 240px; } }

/* Bonus content: movement (all of it switched off for reduced-motion users, below) */
@property --bonus-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.bonus__head { position: relative; isolation: isolate; padding: 56px 0 24px; overflow: hidden; }
.bonus__aurora { position: absolute; inset: -30% -10%; z-index: -1; filter: blur(60px); opacity: .55; pointer-events: none; }
.bonus__aurora i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; }
.bonus__aurora i:nth-child(1) { left: 4%; top: 10%; background: var(--accent); animation: bonus-drift 14s ease-in-out infinite alternate; }
.bonus__aurora i:nth-child(2) { right: 6%; top: 0; background: #4FB3A9; animation: bonus-drift 18s ease-in-out infinite alternate-reverse; }
.bonus__aurora i:nth-child(3) { left: 32%; bottom: -10%; background: #7B6CD9; animation: bonus-drift 22s ease-in-out infinite alternate; }
@keyframes bonus-drift { from { transform: translate(-8%, -6%) scale(.9); } to { transform: translate(10%, 8%) scale(1.15); } }
.bonus__eyebrow { letter-spacing: .3em; animation: bonus-rise .8s .05s cubic-bezier(.2, .7, .2, 1) both; }
.bonus__title { font-size: clamp(44px, 9vw, 96px); line-height: 1; margin: 6px 0 14px; background: linear-gradient(100deg, var(--text) 30%, var(--accent) 50%, var(--text) 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: bonus-shimmer 6s linear infinite; }
@keyframes bonus-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.bonus__sub { color: var(--muted); font-size: 18px; margin: 0; animation: bonus-rise .8s .35s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes bonus-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.bonus__signup { position: relative; border: 2px solid transparent; background: linear-gradient(var(--band), var(--band)) padding-box, conic-gradient(from var(--bonus-angle), var(--accent), #4FB3A9, #7B6CD9, var(--accent)) border-box; animation: bonus-spin 8s linear infinite; }
@keyframes bonus-spin { to { --bonus-angle: 360deg; } }

.wo-anim [data-reveal] { opacity: 0; transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.wo-anim [data-reveal="up"] { transform: translateY(40px); }
.wo-anim [data-reveal="left"] { transform: translateX(-48px) rotate(-2deg); }
.wo-anim [data-reveal="right"] { transform: translateX(48px); transition-delay: .12s; }
.wo-anim [data-reveal].is-in { opacity: 1; transform: none; }
.wo-anim .wo-edition { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.wo-anim .is-in .wo-edition { opacity: 1; transform: none; }
.wo-anim .is-in .wo-edition:nth-child(1) { transition-delay: .35s; }
.wo-anim .is-in .wo-edition:nth-child(2) { transition-delay: .45s; }
.wo-anim .is-in .wo-edition:nth-child(3) { transition-delay: .55s; }
.wo-anim .is-in .wo-edition:nth-child(4) { transition-delay: .65s; }

.cover-flip { perspective: 900px; }
.cover-flip__face { transition: transform .25s ease-out, box-shadow .25s ease-out; will-change: transform; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); }
.cover-flip__face.is-tilting { box-shadow: 0 26px 50px rgba(0, 0, 0, .5); }
.bonus__work .wo-btn { position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.bonus__work .wo-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.bonus__work .wo-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); }
.bonus__work .wo-btn:hover::after { transform: translateX(120%); transition: transform .7s ease; }

/* Front/Back swap flips the cover (every page) */
.cover-flip.is-flipping .cover-flip__face:not([hidden]) { animation: wo-flipin .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes wo-flipin { from { transform: perspective(900px) rotateY(-90deg); opacity: .3; } to { transform: perspective(900px) rotateY(0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	.bonus *, .bonus *::before, .bonus *::after, .cover-flip * { animation: none !important; transition: none !important; }
	.wo-anim [data-reveal], .wo-anim .wo-edition { opacity: 1 !important; transform: none !important; }
	.bonus__title { background: none; color: var(--text); }
}
.bonus { overflow-x: clip; }
.bonus__head { -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 70% 75% at 50% 50%, #000 45%, transparent 100%); }
.bonus__work:first-of-type { border-top: 0; }

/* Site-wide motion */
body { animation: wo-pagein .6s ease both; }
@keyframes wo-pagein { from { opacity: 0; } to { opacity: 1; } }
.hero__cover .cover { animation: wo-float 7s ease-in-out infinite; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); transition: transform .25s ease-out; }
@keyframes wo-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.hero__cover .cover.is-tilting { animation-play-state: paused; }
.work-card .cover { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease; }
.work-card:hover .cover, .work-card:focus-within .cover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 22px 36px rgba(0, 0, 0, .35); }
.genre-card { transition: transform .3s cubic-bezier(.2, .7, .2, 1), border-color .3s ease, box-shadow .3s ease; }
.genre-card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 18px 34px rgba(0, 0, 0, .25); }
.post-list a { transition: padding-left .3s ease, color .3s ease; }
.post-list a:hover { padding-left: 14px; }
.wo-link, .filter a { transition: color .2s ease, background-color .2s ease; }
.wo-btn { transition: transform .2s ease, box-shadow .2s ease; }
.wo-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.about__photo img, .about-page__img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.wo-anim .about__photo:not(.is-in) img, .wo-anim .about-page__photo:not(.is-in) img { transform: scale(1.12); }

/* About page */
.about-page { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 88px; }
.about-page__grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: start; }
.about-page__photo { margin: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); transition: transform .25s ease-out, opacity .8s ease; position: sticky; top: 96px; }
.about-page__img { width: 100%; height: auto; display: block; }
.about-page__text h1 { margin: 0 0 20px; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
.about-page__text .entry__content h2 { margin: 36px 0 8px; font-size: clamp(26px, 3.4vw, 34px); }
.about-page__start { margin-top: 88px; }
@media (max-width: 800px) { .about-page__grid { grid-template-columns: 1fr; gap: 32px; } .about-page__photo { position: static; max-width: 360px; } }

@media (prefers-reduced-motion: reduce) {
	body, .hero__cover .cover, .work-card .cover, .genre-card, .post-list a, .about__photo img, .about-page__img, .about-page__photo { animation: none !important; transition: none !important; }
	.wo-anim [data-reveal] { opacity: 1 !important; transform: none !important; }
	.wo-anim .about__photo:not(.is-in) img, .wo-anim .about-page__photo:not(.is-in) img { transform: none; }
}

html, body { overflow-x: clip; }

/* Home hero: two featured covers side by side */
.hero__cover--pair { gap: 20px; align-items: flex-start; flex-wrap: nowrap; }
.hero__cover--pair .cover { max-width: 240px; flex: 1 1 0; min-width: 0; }
.hero__cover--pair .cover:nth-child(2) { margin-top: 48px; }
.hero__cover--pair .cover:nth-child(2) { animation-delay: -3.5s; }
@media (max-width: 560px) { .hero__cover--pair { gap: 12px; } .hero__cover--pair .cover:nth-child(2) { margin-top: 28px; } }
.hero__cover--pair { flex: 1 1 460px; }
.hero__cover--pair .cover { max-width: 280px; }
.hero__cover--pair { flex: 1 1 340px; }
.hero__cover--pair .cover { max-width: 230px; }

/* Silver glow around a cover when you hover it */
.cover--img, .cover-flip__face { transition: box-shadow .35s ease, transform .35s cubic-bezier(.2, .7, .2, 1); }
.cover.cover--img:hover,
.cover.cover--img:focus-visible,
.work-card:hover .cover.cover--img,
.work-card:focus-within .cover.cover--img,
.hero__cover .cover.cover--img:hover,
.cover-flip__face:hover,
.cover-flip__face:focus-visible,
.cover-flip__face.is-tilting {
	box-shadow: 0 0 0 1px rgba(226, 231, 240, .75), 0 0 18px 3px rgba(214, 221, 233, .6), 0 0 46px 10px rgba(190, 200, 216, .38);
}
