/*
Theme Name: Assorted Magic
Theme URI: https://assortedmagic.com/
Author: Asha Dey
Description: A literary home for poems, spoken word, short stories, photos, doodles and blogs. Each kind of content has its own section in the dashboard and the home page fills itself from whatever you publish.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: assorted-magic
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--paper: #f6f1e8;
	--paper-2: #efe7d9;
	--card: #fffdf8;
	--ink: #1f1a26;
	--ink-2: #4a4352;
	--ink-3: #7a7280;
	--line: #e2d8c6;
	--plum: #5a2d6b;
	--plum-2: #7b4590;
	--gold: #b88a2e;
	--gold-soft: #e9cf8f;
	--night: #17121e;
	--night-2: #231c2d;
	--night-ink: #f1e9dc;
	--night-ink-2: #b9aec2;

	--serif: "Fraunces", "Iowan Old Style", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1200px;
	--narrow: 680px;
	--mid: 960px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 14px;
	--band: clamp(72px, 10vw, 128px);
	--shadow: 0 1px 2px rgba(31, 26, 38, .04), 0 12px 32px -16px rgba(31, 26, 38, .18);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--serif);
	font-size: 18px;
	line-height: 1.65;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }
.wrap-mid { max-width: calc(var(--mid) + 2 * var(--gutter)); margin-left: auto; margin-right: auto; padding: 0 var(--gutter); }

.icon { width: 1em; height: 1em; flex: none; }

/* Small type */
.kicker, .meta, .tag, .btn, .see-all, .nav, .latest, .hero-sections, .footer-h, .share, .entry-nav span, .story-more-meta, .poem-flag {
	font-family: var(--sans);
}
.kicker {
	display: inline-block;
	font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--plum); margin: 0 0 14px;
}
.kicker-link { text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.meta .type { color: var(--plum); font-weight: 600; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
	display: inline-block; font-size: 12px; font-weight: 500; text-decoration: none;
	padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: transparent;
	transition: border-color .2s, color .2s, background .2s;
}
.tag:hover, .tag.is-current { border-color: var(--plum); color: var(--plum); background: rgba(90, 45, 107, .06); }

.btn {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 14px; font-weight: 600; text-decoration: none;
	padding: 12px 20px; border-radius: 999px;
	background: var(--ink); color: var(--paper); border: 0;
	transition: background .2s, transform .2s;
}
.btn:hover { background: var(--plum); color: #fff; }
.btn .icon { transition: transform .2s; }
.btn:hover .icon-arrow { transform: translateX(3px); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--plum); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(246, 241, 232, .86);
	backdrop-filter: saturate(140%) blur(12px);
	-webkit-backdrop-filter: saturate(140%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--gold); font-size: 20px; display: inline-flex; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.brand:hover .brand-mark { transform: rotate(90deg) scale(1.1); }
.brand-name { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 24px; letter-spacing: -.01em; }
.brand-logo { max-height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.nav .menu a { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-2); padding: 6px 0; position: relative; }
.nav .menu a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--plum);
	transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav .menu a:hover, .nav .current-menu-item > a, .nav .current_page_item > a { color: var(--ink); }
.nav .menu a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }
.nav .sub-menu { display: none; }

.nav-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 4px 0 14px; background: var(--card); }
.nav-search input { border: 0; background: transparent; font: 14px var(--sans); width: 140px; padding: 8px 0; color: var(--ink); outline: none; transition: width .3s; }
.nav-search input:focus { width: 190px; }
.nav-search button { border: 0; background: none; padding: 6px 8px; color: var(--ink-3); display: flex; }
.nav-search:focus-within { border-color: var(--plum); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); font-size: 26px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 920px) {
	.nav-toggle { display: inline-flex; }
	.nav {
		position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 20px;
		background: var(--paper); padding: 24px var(--gutter) 32px; border-bottom: 1px solid var(--line);
		transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s;
	}
	.admin-bar .nav { top: 118px; }
	.nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.nav .menu { flex-direction: column; gap: 4px; }
	.nav .menu a { display: block; font-family: var(--serif); font-size: 26px; color: var(--ink); padding: 6px 0; }
	.nav .menu a::after { display: none; }
	.nav-search input, .nav-search input:focus { width: 100%; }
	.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
	.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero::before {
	content: ""; position: absolute; width: 720px; height: 720px; right: -220px; top: -260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(233, 207, 143, .55), rgba(233, 207, 143, 0) 65%);
	pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 48px; align-items: center; }
.hero.has-image .hero-inner { grid-template-columns: 1.4fr 1fr; }
.hero-title {
	font-size: clamp(44px, 7.4vw, 104px); font-weight: 400; line-height: .98; letter-spacing: -.035em;
	max-width: 13ch; margin-bottom: 28px;
	font-variation-settings: "SOFT" 50, "WONK" 1;
}
.hero-title::first-line { font-style: italic; }
.hero-text { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 46ch; line-height: 1.6; }
.hero-sections { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-sections a {
	display: inline-block; font-size: 14px; font-weight: 500; text-decoration: none;
	padding: 9px 18px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink);
	transition: background .2s, color .2s;
}
.hero-sections a:hover { background: var(--ink); color: var(--paper); }
.hero-art img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 200px 200px var(--radius) var(--radius); }

.latest {
	position: relative; margin-top: clamp(40px, 6vw, 72px);
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
	padding: 18px 22px; border-radius: var(--radius); text-decoration: none;
	background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
	font-size: 14px; color: var(--ink);
}
.latest:hover { color: var(--ink); border-color: var(--plum); }
.latest-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
.latest-type { color: var(--ink-3); }
.latest-title { font-family: var(--serif); font-size: 19px; flex: 1; min-width: 200px; }
.latest .icon-arrow { font-size: 20px; color: var(--plum); transition: transform .2s; }
.latest:hover .icon-arrow { transform: translateX(4px); }

/* ==========================================================================
   Home sections
   ========================================================================== */
.band { padding: var(--band) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-poems + .band, .band + .band-poems, .band-news, .band + .band-news { border-top: 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title { font-size: clamp(38px, 5.2vw, 64px); font-weight: 400; letter-spacing: -.03em; margin: 0; }
.section-intro { color: var(--ink-2); max-width: 52ch; margin: 16px 0 0; font-size: 18px; }
.see-all { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--plum); padding-bottom: 6px; }
.see-all .icon { transition: transform .2s; }
.see-all:hover .icon { transform: translateX(4px); }

.media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); position: relative; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
a.media:hover img { transform: scale(1.035); }

.card-title { font-size: 22px; font-weight: 500; margin: 0; }
.card-title a { text-decoration: none; }
.card-title-lg { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.02em; }
.excerpt { color: var(--ink-2); margin: 12px 0 0; }
.excerpt-sm { font-size: 16px; line-height: 1.55; }

/* Blogs */
.blog-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 64px); }
.blog-grid.is-single { grid-template-columns: 1fr; max-width: 860px; }
.blog-lead .media { aspect-ratio: 16/10; margin-bottom: 22px; }
.blog-list { display: flex; flex-direction: column; }
.blog-item { display: grid; grid-template-columns: 128px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.blog-item:first-child { padding-top: 0; }
.blog-item:last-child { border-bottom: 0; }
.blog-item .media { aspect-ratio: 1; }
.blog-item:not(:has(.media)) { grid-template-columns: 1fr; }

/* Poems — the dark stage */
.band-poems { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.band-poems::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(600px 300px at 15% 0%, rgba(123, 69, 144, .35), transparent 70%),
		radial-gradient(500px 300px at 90% 100%, rgba(184, 138, 46, .18), transparent 70%);
}
.band-poems .wrap { position: relative; }
.band-poems .kicker, .band-poems .see-all { color: var(--gold-soft); }
.band-poems .section-intro { color: var(--night-ink-2); font-style: italic; }
.band-poems .card-title a:hover { color: var(--gold-soft); }
.band-poems .tag { border-color: rgba(241, 233, 220, .2); color: var(--night-ink-2); }
.band-poems .tag:hover { border-color: var(--gold-soft); color: var(--gold-soft); background: transparent; }

.poem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.poem-card .yt { margin-bottom: 18px; }
.poem-flag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 8px; }
.poem-flag .icon { font-size: 12px; }
.poem-lines {
	margin: 0 0 18px; padding: 28px; border-radius: var(--radius);
	background: var(--night-2); border: 1px solid rgba(241, 233, 220, .08);
	font-style: italic; font-size: 19px; line-height: 1.6; color: var(--night-ink);
	aspect-ratio: 16/9; overflow: hidden; display: flex; align-items: center;
}
.poem-lines-sm { aspect-ratio: auto; background: var(--paper-2); color: var(--ink); border: 0; font-size: 17px; padding: 20px; margin-top: 10px; }

/* Lite YouTube */
.yt {
	position: relative; display: block; width: 100%; aspect-ratio: 16/9; padding: 0; border: 0;
	border-radius: var(--radius); overflow: hidden; background: #000;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
	background: rgba(255, 253, 248, .92); color: var(--plum); font-size: 26px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, .35); transition: transform .25s, background .25s;
}
.yt-play .icon { margin-left: 3px; }
.yt:hover .yt-play, .media.is-video:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }
.media.is-video .yt-play { width: 52px; height: 52px; font-size: 20px; }

/* Stories */
.band-stories { background: var(--paper-2); }
.story-lead { display: grid; grid-template-columns: minmax(240px, 1fr) 1.5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.story-lead:not(:has(.media)) { grid-template-columns: 1fr; max-width: 760px; }
.story-lead .media { aspect-ratio: 3/4; box-shadow: var(--shadow); }
.story-title { font-size: clamp(34px, 4.4vw, 56px); font-weight: 400; letter-spacing: -.025em; font-style: italic; }
.story-title a { text-decoration: none; }
.story-opening { font-size: 19px; line-height: 1.75; color: var(--ink-2); margin-bottom: 28px; }
.story-opening::first-letter {
	float: left; font-size: 4.2em; line-height: .82; padding: 6px 12px 0 0; color: var(--plum); font-weight: 500;
}
.story-more { list-style: none; padding: 0; margin: clamp(40px, 6vw, 64px) 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; border-top: 1px solid var(--line); }
.story-more a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.story-more-title { font-size: 20px; }
.story-more-meta { font-size: 12px; color: var(--ink-3); flex: none; }

/* Photos */
.photo-wall { columns: 3 280px; column-gap: 20px; }
.photo { break-inside: avoid; margin: 0 0 20px; position: relative; }
.photo a { display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.photo img { width: 100%; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.photo a:hover img { transform: scale(1.03); }
.photo figcaption {
	position: absolute; left: 12px; bottom: 12px; right: 12px; pointer-events: none;
	font: 500 13px var(--sans); color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
	opacity: 0; transform: translateY(4px); transition: all .25s;
}
.photo:hover figcaption { opacity: 1; transform: none; }

/* Doodles */
.doodle-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 20px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.doodle { scroll-snap-align: start; text-decoration: none; display: block; background: var(--card); padding: 12px 12px 14px; border-radius: 6px; box-shadow: var(--shadow); transition: transform .3s; }
.doodle:nth-child(odd) { transform: rotate(-1.2deg); }
.doodle:nth-child(even) { transform: rotate(1deg); }
.doodle:hover { transform: rotate(0) translateY(-4px); }
.doodle img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: 3px; }
.doodle span { display: block; font-style: italic; text-align: center; margin-top: 10px; font-size: 16px; }

/* About */
.about-inner { display: grid; gap: clamp(32px, 6vw, 80px); align-items: center; max-width: 1000px; }
.about-inner.has-image { grid-template-columns: 1fr 1.4fr; }
.about-art img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius) var(--radius) 200px 200px; }
.about-copy p { font-size: 20px; color: var(--ink-2); }
.about-copy .section-title { margin-bottom: 24px; }

.social { display: flex; gap: 8px; margin-top: 24px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 19px; color: var(--ink-2); transition: all .2s; }
.social a:hover { border-color: var(--plum); color: #fff; background: var(--plum); }

/* Newsletter */
.band-news { padding-top: 0; }
.news-box {
	display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
	padding: clamp(32px, 5vw, 64px); border-radius: calc(var(--radius) * 1.6);
	background: var(--plum); color: #fff; position: relative; overflow: hidden;
}
.news-box::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(233, 207, 143, .35), transparent 65%); }
.news-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 400; font-style: italic; margin-bottom: 12px; }
.news-box p { color: rgba(255, 255, 255, .8); margin: 0; }
.news-form { position: relative; z-index: 1; }
.news-form input[type="email"], .news-form input[type="text"] {
	width: 100%; padding: 14px 18px; border-radius: 999px; border: 0; font: 15px var(--sans); margin-bottom: 10px;
}
.news-form input[type="submit"], .news-form button {
	padding: 13px 22px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font: 600 14px var(--sans);
}

/* ==========================================================================
   Archives
   ========================================================================== */
.page-head { padding: clamp(56px, 8vw, 104px) 0 clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.page-title { font-size: clamp(48px, 7vw, 92px); font-weight: 400; letter-spacing: -.035em; margin: 0; }
.page-intro { max-width: 56ch; color: var(--ink-2); font-size: 19px; margin-top: 18px; }
.page-intro p:last-child { margin: 0; }
.theme-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.archive-body { padding-top: clamp(40px, 5vw, 64px); padding-bottom: var(--band); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 48px 32px; }
.card .media { aspect-ratio: 16/11; margin-bottom: 18px; }
.empty { font-style: italic; color: var(--ink-3); font-size: 20px; }

.pagination { margin-top: 64px; font-family: var(--sans); }
.pagination .nav-links { display: flex; gap: 6px; justify-content: center; }
.pagination .page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; text-decoration: none; font-size: 14px; border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.search-form { display: flex; gap: 8px; margin-top: 24px; max-width: 520px; }
.search-form input { flex: 1; padding: 13px 18px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; font: 15px var(--sans); }
.search-form button { padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); }
.page-404 .btn { margin-top: 24px; }

/* ==========================================================================
   Single entry
   ========================================================================== */
.entry { padding: clamp(48px, 7vw, 96px) 0 var(--band); }
.entry-head { text-align: center; margin-bottom: clamp(32px, 5vw, 56px); }
.entry-head .meta { justify-content: center; }
.entry-title { font-size: clamp(40px, 6vw, 72px); font-weight: 400; letter-spacing: -.03em; margin-bottom: 18px; }
.entry-poem .entry-title, .entry-story .entry-title { font-style: italic; }
.entry-video, .entry-cover, .entry-photo { margin: 0 auto clamp(40px, 5vw, 64px); }
.entry-cover img { border-radius: var(--radius); width: 100%; }
.entry-photo img { border-radius: 6px; margin: 0 auto; max-height: 82vh; width: auto; }
.entry-photo figcaption { text-align: center; font-style: italic; color: var(--ink-3); margin-top: 14px; }

.entry-content { font-size: 20px; line-height: 1.75; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content h2 { font-size: 32px; margin-top: 1.8em; }
.entry-content h3 { font-size: 25px; margin-top: 1.6em; }
.entry-content a { color: var(--plum); }
.entry-content blockquote { margin-left: 0; padding-left: 24px; border-left: 2px solid var(--gold); font-style: italic; color: var(--ink-2); }
.entry-content img { border-radius: 8px; }
.entry-content .alignwide { margin-left: calc(-1 * min(140px, 10vw)); margin-right: calc(-1 * min(140px, 10vw)); max-width: none; }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content hr { border: 0; text-align: center; margin: 2.4em 0; }
.entry-content hr::before { content: "✦  ✦  ✦"; color: var(--gold); letter-spacing: .4em; }
.entry-story .entry-content > p:first-of-type::first-letter { float: left; font-size: 4.4em; line-height: .8; padding: 8px 12px 0 0; color: var(--plum); }

/* Poems read best centred, with line breaks preserved */
.entry-content.is-poem { text-align: center; font-size: 21px; line-height: 1.85; font-style: italic; }
.entry-content.is-poem .wp-block-verse, .entry-content.is-poem pre { font-family: var(--serif); font-size: inherit; white-space: pre-wrap; background: none; padding: 0; margin: 0 0 1.4em; }

.entry-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.entry-foot .tags { margin: 0; }
.share { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-3); }
.share a { font-weight: 600; color: var(--ink-2); text-decoration: none; }
.share a:hover { color: var(--plum); }

.entry-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.entry-nav a { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: 19px; line-height: 1.3; background: var(--card); transition: border-color .2s; }
.entry-nav a:hover { border-color: var(--plum); }
.entry-nav .next { text-align: right; grid-column: 2; }
.entry-nav span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }

/* Comments */
.comments { margin-top: 64px; font-size: 17px; }
.comments-title, .comment-reply-title { font-size: 28px; font-style: italic; font-weight: 400; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid var(--line); }
.comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.comment-meta { font: 13px var(--sans); color: var(--ink-3); }
.comment-form label { display: block; font: 600 13px var(--sans); margin-bottom: 6px; }
.comment-form textarea, .comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: 16px var(--sans);
}
.comment-form .submit { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); font: 600 14px var(--sans); cursor: pointer; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--night); color: var(--night-ink-2); padding: clamp(56px, 8vw, 88px) 0 28px; font-size: 15px; }
.site-footer .brand { color: var(--night-ink); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-tagline { font-style: italic; margin-top: 14px; }
.footer-h { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--night-ink); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { text-decoration: none; }
.site-footer .social a { border-color: rgba(241, 233, 220, .18); color: var(--night-ink); }
.site-footer .social a:hover { background: var(--gold); border-color: var(--gold); color: var(--night); }
.footer-base { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(241, 233, 220, .1); font: 13px var(--sans); }
.footer-base p { margin: 0; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(23, 18, 30, .94); display: grid; place-items: center; padding: 40px 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; }
.lightbox img { max-height: 82vh; width: auto; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: var(--night-ink); text-align: center; font-style: italic; margin-top: 14px; }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: none; border: 0; color: #fff; font-size: 30px; padding: 8px; }

/* ==========================================================================
   Gentle reveal on scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
	.hero.has-image .hero-inner, .blog-grid, .story-lead, .about-inner.has-image, .news-box { grid-template-columns: 1fr; }
	.hero-art { max-width: 360px; }
	.story-lead .media { max-width: 360px; }
	.about-art { max-width: 360px; }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	body { font-size: 17px; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.blog-item { grid-template-columns: 88px 1fr; gap: 16px; }
	.poem-grid, .card-grid { grid-template-columns: 1fr; }
	.photo-wall { columns: 2; column-gap: 12px; }
	.photo { margin-bottom: 12px; }
	.doodle-strip { grid-auto-columns: 72%; }
	.entry-nav { grid-template-columns: 1fr; }
	.entry-nav .next { grid-column: auto; }
	.entry-content { font-size: 18px; }
	.entry-content.is-poem { font-size: 19px; }
}
