/*
Theme Name: Dreadful
Theme URI: https://dreadfulwriter.com
Author: Chris Cooper
Description: Block theme for dreadfulwriter.com. Black and violet, flocked wallpaper, eyes that occasionally blink.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dreadful
*/

:root {
	--dw-ink-a93: rgba(8, 6, 14, .93);
	--dw-ink-a90: rgba(8, 6, 14, .9);
	--dw-ink-a85: rgba(8, 6, 14, .85);
	--dw-ink-a72: rgba(8, 6, 14, .72);
	--dw-line: rgba(107, 70, 168, .4);
	--dw-line-soft: rgba(107, 70, 168, .25);
	--dw-edge: rgba(203, 184, 232, .28);
	--dw-card: rgba(36, 22, 69, .22);
	--dw-card-hover: rgba(75, 47, 133, .3);
	--dw-text-soft: rgba(242, 236, 225, .82);
	--dw-cover-stripes: repeating-linear-gradient(135deg, #1a1030 0 9px, #241645 9px 18px);
}

body {
	-webkit-font-smoothing: antialiased;
	min-height: 100vh;
}

/*
 * Wallpaper: on a fixed layer rather than body's background, because phones ignore
 * background-attachment: fixed. The tile starts at the viewport's top-left, which
 * assets/blink.js relies on to put lids exactly over eyes (keep the size in sync there).
 */
body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: url("assets/wallpaper.svg") 0 0 / 160px 248px repeat;
}
/* Block editor, editing a page's content alone: the dw-panel that dims the wallpaper on the site
   is in the template, not the content, so dim the layer here to match (front-end pages never have
   .is-root-container). Two rules, as the editor rewrites body selectors. */
body:has(.is-root-container.wp-block-post-content)::before { opacity: .15; }
.editor-styles-wrapper:has(.is-root-container.wp-block-post-content)::before { opacity: .15; }
.dw-blinks { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dw-blink { position: absolute; width: 61px; height: 102px; animation: dw-lid 520ms ease-in-out both; }
.dw-blink svg { display: block; width: 100%; height: 100%; }
@keyframes dw-lid { 0%, 100% { opacity: 0; } 22%, 78% { opacity: 1; } }

::selection { background: var(--wp--preset--color--violet); color: var(--wp--preset--color--cream); }

.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.wp-site-blocks > main { flex: 1 0 auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.screen-reader-text:focus {
	clip: auto !important; clip-path: none; height: auto; width: auto;
	background: var(--wp--preset--color--cream); color: var(--wp--preset--color--ink);
	padding: 12px 18px; z-index: 100000; left: 8px; top: 8px;
}

/* ---------- Labels (small mono caps — always lavender for legibility) ---------- */
.dw-label,
.dw-label a {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: .3em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lavender);
	line-height: 1.6;
}
.dw-link-caps,
.dw-link-caps a {
	font-size: 11px;
	letter-spacing: .24em;
	text-transform: uppercase;
	font-weight: 400;
	color: var(--wp--preset--color--lavender);
}
.dw-link-caps a:hover { color: var(--wp--preset--color--cream); }
.dw-soft { color: var(--dw-text-soft); }

/* ---------- Buttons ---------- */
/* Outline/ghost = the second button of a pair. Same size as the filled one: core's outline
   style would otherwise shrink the padding; .dw-btn.dw-btn--ghost outranks the base .dw-btn. */
.wp-block-button.is-style-outline > .wp-block-button__link,
.dw-btn.dw-btn--ghost {
	background: transparent;
	border: 1px solid rgba(203, 184, 232, .35);
	color: var(--wp--preset--color--cream);
}
.wp-block-button.is-style-outline > .wp-block-button__link { padding: 16px 26px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.dw-btn.dw-btn--ghost:hover {
	background: transparent;
	border-color: var(--wp--preset--color--lavender);
	color: var(--wp--preset--color--cream);
}
.dw-btn {
	display: inline-block;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: .24em;
	text-transform: uppercase;
	line-height: 1.4;
	text-align: center;
	padding: 16px 26px;
	background: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--violet-bright);
	cursor: pointer;
	text-decoration: none;
}
.dw-btn:hover { background: var(--wp--preset--color--violet-bright); color: var(--wp--preset--color--cream); }
.dw-btn--small { font-size: 11px; letter-spacing: .22em; padding: 13px 24px; }
:where(.dw-btn, button, input, a):focus-visible {
	outline: 2px solid var(--wp--preset--color--lavender);
	outline-offset: 3px;
}

/* ---------- Header ---------- */
.dw-header {
	position: sticky;
	top: 0;
	z-index: 50;
	gap: 8px clamp(14px, 3vw, 24px);
	padding: 12px clamp(14px, 4vw, 56px) !important;
	background: rgba(8, 6, 14, .88);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid rgba(107, 70, 168, .45);
}
.admin-bar .dw-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .dw-header { top: 0; } }
.dw-brand { gap: 4px 12px; min-width: 0; align-items: baseline !important; }
.dw-brand .wp-block-site-title {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(16px, 4.4vw, 19px);
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	line-height: 1.2;
}
.dw-brand .wp-block-site-title a { color: var(--wp--preset--color--cream); }
.dw-brand__tag {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .28em;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--wp--preset--color--lavender);
	line-height: 1.2;
}
.dw-nav { gap: 2px clamp(16px, 2.4vw, 30px) !important; }
.dw-nav .wp-block-navigation-item__content {
	padding: 11px 0;
	color: var(--wp--preset--color--cream);
	border-bottom: 1px solid transparent;
}
.dw-nav .wp-block-navigation-item__content:hover,
.dw-nav .current-menu-item > .wp-block-navigation-item__content {
	border-bottom-color: var(--wp--preset--color--violet-bright);
	color: var(--wp--preset--color--cream);
}

/* Social icons: inherit lavender, no chip background. The rendered row has no
   wp-block-social-links class (content blockers hide that; see includes/social-links.php in
   dreadful-core), so the core rules it relied on are repeated here for .dw-social. */
.dw-social {
	box-sizing: border-box;
	margin-left: 0;
	padding-left: 0;
	padding-right: 0;
	text-indent: 0;
	background: none;
	list-style: none;
}
.dw-social .wp-social-link { display: inline-block; margin: 0; }
.dw-social .wp-social-link a,
.dw-social .wp-social-link a:hover { border-bottom: 0; box-shadow: none; text-decoration: none; }
.dw-social { gap: 0 14px !important; }
.dw-social .wp-social-link {
	background: none !important;
	color: var(--wp--preset--color--lavender) !important;
	padding: 0;
}
.dw-social .wp-social-link a { padding: 11px 0; color: inherit !important; }
.dw-social .wp-social-link:hover { color: var(--wp--preset--color--cream) !important; transform: none; }
.dw-social .wp-social-link svg { width: 19px; height: 19px; }

/* ---------- Footer ---------- */
.dw-footer {
	background: var(--wp--preset--color--ink-deep);
	border-top: 1px solid rgba(107, 70, 168, .45);
	padding-top: clamp(40px, 6vh, 70px) !important;
	padding-bottom: clamp(40px, 6vh, 70px) !important;
	gap: 24px;
}
.dw-footer__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: 22px;
	font-weight: 500;
	letter-spacing: .1em;
	line-height: 1.3;
}
.dw-footer__name a { color: var(--wp--preset--color--cream); }
.dw-footer .dw-label { font-size: 9px; letter-spacing: .28em; margin: 0; }
.dw-footer-nav { gap: 4px 22px !important; font-size: 11px !important; letter-spacing: .2em !important; }
.dw-footer-nav .wp-block-navigation-item__content { color: var(--wp--preset--color--lavender); line-height: 44px; padding: 0; }
.dw-footer-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--cream); }
.dw-lights-toggle { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; line-height: 44px; }
.dw-lights-toggle button {
	background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit;
	color: rgba(242, 236, 225, .55); cursor: pointer;
}
.dw-lights-toggle button:hover { color: var(--wp--preset--color--cream); }

/* ---------- Page hero + panels ---------- */
.dw-hero {
	position: relative;
	text-align: center;
	padding-top: clamp(70px, 12vh, 140px) !important;
	padding-bottom: clamp(40px, 6vh, 70px) !important;
	background: radial-gradient(ellipse 60% 100% at 50% 40%, rgba(8, 6, 14, .92), rgba(8, 6, 14, .6));
}
.dw-hero > * { margin-inline: auto; }
.dw-hero .dw-label { letter-spacing: .4em; margin-bottom: 16px; }
.dw-hero h1 { margin-top: 0; }
.dw-hero__intro { max-width: 50ch; margin: 18px auto 0; font-size: 15px; line-height: 1.75; color: rgba(242, 236, 225, .78); text-wrap: pretty; }

.dw-panel {
	background: var(--dw-ink-a85);
	padding-top: clamp(40px, 7vh, 80px) !important;
	padding-bottom: clamp(60px, 9vh, 110px) !important;
}
.dw-panel--deep { background: var(--dw-ink-a93); }
.dw-panel--mid { background: var(--dw-ink-a72); }
.dw-rule-top { border-top: 1px solid var(--dw-line-soft); }
.dw-rule-bottom { border-bottom: 1px solid var(--dw-line-soft); }

/* Readable defaults for editor-made pages */
.dw-panel .wp-block-post-content > p,
.dw-panel .wp-block-post-content > ul,
.dw-panel .wp-block-post-content > ol { color: var(--dw-text-soft); text-wrap: pretty; }
.dw-panel .wp-block-post-content > h2 { font-size: clamp(26px, 3.6vw, 40px); margin-top: 1.6em; }
.dw-panel .wp-block-post-content > h3 { margin-top: 1.4em; }
.dw-panel .wp-block-post-content a:not(.wp-block-button__link) { border-bottom: 1px solid rgba(107, 70, 168, .7); }
.dw-panel .wp-block-post-content a:not(.wp-block-button__link):hover { border-bottom-color: var(--wp--preset--color--lavender); }
.wp-block-separator { border-top-width: 1px; opacity: 1; }

/* Section header row: heading left, small link right */
.dw-section-head {
	border-bottom: 1px solid var(--dw-line);
	padding-bottom: 14px;
	gap: 14px 24px;
}
.dw-section-head h2 { margin: 0; }

/* ---------- Forms ---------- */
.dw-input,
input[type="email"],
input[type="text"],
input[type="search"],
textarea {
	box-sizing: border-box;
	padding: 14px 16px;
	min-height: 52px;
	background: rgba(36, 22, 69, .6);
	border: 1px solid var(--dw-edge);
	border-radius: 0;
	color: var(--wp--preset--color--cream);
	font: inherit;
	font-size: 15px;
	font-weight: 300;
}
.dw-input::placeholder, input::placeholder { color: rgba(242, 236, 225, .55); }
.dw-input:focus, input:focus, textarea:focus { outline: 2px solid var(--wp--preset--color--lavender); outline-offset: 1px; }

/* ---------- Book cover placeholder (used when a book has no cover yet) ---------- */
.dw-cover {
	display: block;
	aspect-ratio: 2 / 3;
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(203, 184, 232, .22);
	background: var(--dw-cover-stripes);
	overflow: hidden;
}
.dw-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dw-cover--blank { display: flex; align-items: flex-end; padding: 18px; container-type: inline-size; }
/* Title scales with the card so long titles fit small covers (two-up on a 320px phone) */
.dw-cover--blank span { font-family: var(--wp--preset--font-family--display); font-size: clamp(15px, 13cqi, 22px); line-height: 1.05; color: var(--wp--preset--color--cream); overflow-wrap: break-word; hyphens: auto; }

/* ---------- Lights out (easter egg) ---------- */
.dw-dark { position: fixed; inset: 0; z-index: 9990; pointer-events: none; }
.dw-dark__beam { position: fixed; inset: 0; z-index: 9991; pointer-events: none; }
.dw-dark__v { position: absolute; color: var(--wp--preset--color--lavender); filter: drop-shadow(0 0 10px rgba(107, 70, 168, .9)); }
.dw-dark__cap {
	position: absolute;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	letter-spacing: .24em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lavender);
}
.dw-dark__line {
	position: absolute; left: 50%; top: 46%;
	transform: translate(-50%, -50%);
	width: max-content; max-width: 90vw; text-align: center;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(22px, 5vw, 30px);
	color: var(--wp--preset--color--lavender);
	filter: drop-shadow(0 0 14px rgba(107, 70, 168, .8));
}
.dw-dark__off {
	position: fixed; z-index: 9992; left: 50%; bottom: 36px; transform: translateX(-50%);
	font-family: var(--wp--preset--font-family--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
	padding: 12px 22px; background: rgba(11, 8, 16, .9); border: 1px solid var(--wp--preset--color--violet);
	color: var(--wp--preset--color--lavender); cursor: pointer; white-space: nowrap;
}
.dw-dark__off:hover { border-color: var(--wp--preset--color--lavender); }

/* ---------- About-page helpers (usable on any page) ---------- */
.dw-photo-placeholder {
	aspect-ratio: 4 / 5;
	padding: 20px;
	text-align: center;
	border: 1px solid rgba(107, 70, 168, .5);
	background: repeating-linear-gradient(122deg, #150d28 0 10px, #1d1235 10px 20px);
}
/* Photo column (class dw-photo-col on a Column): the photo (placeholder or Image block) is a
   4:5 portrait at every width, top-aligned with the text; the caption-style paragraph after it
   sits just below. A real photo is cropped to fit, weighted to the top quarter. */
.dw-photo-col > .wp-block-image { position: relative; aspect-ratio: 4 / 5; margin: 0; }
.dw-photo-col > .wp-block-image img {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: 50% 25%;
}
.dw-photo-col > :is(.dw-photo-placeholder, .wp-block-image) + .dw-label { margin-top: 14px; }
/* Once the columns stack (core's 782px breakpoint), keep the portrait from filling a tablet screen */
@media (max-width: 781px) { .dw-photo-col { max-width: 420px; } }
.dw-lead,
.dw-panel .wp-block-post-content .dw-lead {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(22px, 2.8vw, 30px);
	line-height: 1.4;
	font-weight: 400;
	color: var(--wp--preset--color--lavender);
}
.dw-rules { list-style: none; padding: 0 !important; counter-reset: rule; display: flex; flex-direction: column; gap: 12px; }
.dw-rules li {
	counter-increment: rule;
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: baseline;
	font-size: 15px; line-height: 1.7;
}
.dw-rules li::before {
	content: counter(rule, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--mono); font-size: 10px; color: var(--wp--preset--color--lavender);
}

/* ---------- Shared components ---------- */
.wp-block-separator.dw-rule-fade {
	width: 100%;
	max-width: 520px;
	height: 1px;
	margin-inline: auto;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--violet-bright), transparent);
}
.dw-btn--small .wp-block-button__link { font-size: 11px; letter-spacing: .22em; padding: 14px 24px; }

/* Query sections that have nothing to show collapse instead of leaving an empty band */
.dw-featured:not(:has(.wp-block-post)),
.dw-home-books:not(:has(.wp-block-post)) { display: none; }

/* Empty state (events etc.) */
.dw-empty {
	gap: 18px;
	padding: clamp(22px, 3vw, 30px);
	border: 1px dashed rgba(107, 70, 168, .6);
	background: rgba(36, 22, 69, .18);
}
.dw-empty__line {
	margin: 0;
	max-width: 34ch;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(20px, 2.8vw, 26px);
	line-height: 1.3;
}

/* Newsletter (patterns/newsletter.php) */
.dw-newsletter {
	padding-top: clamp(50px, 8vh, 90px) !important;
	padding-bottom: clamp(50px, 8vh, 90px) !important;
	background: rgba(8, 6, 14, .92);
	border-top: 1px solid var(--dw-line);
	text-align: center;
}
.dw-newsletter h2 { margin: 0; font-size: clamp(28px, 4vw, 46px); }
.dw-newsletter__blurb { max-width: 48ch; margin-inline: auto !important; font-size: 15px; line-height: 1.7; color: rgba(242, 236, 225, .75); }
.dw-newsletter .dw-signup { margin-top: clamp(24px, 3.5vh, 32px); }
/* Phones: the input takes the full row, so the button does too (a short centred button looked lopsided). */
@media (max-width: 480px) {
	.dw-newsletter .dw-signup .dw-btn { flex: 1 1 100%; }
}
/* Signup form (dreadful/signup-form block): inline in the newsletter section, stacked in compact spots */
.dw-signup { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 460px; margin: 0 auto; justify-content: center; }
.dw-signup .dw-input { flex: 1 1 240px; min-width: 0; font-size: 14px; }
.dw-signup--stacked { flex-direction: column; flex-wrap: nowrap; max-width: 400px; margin: 0; }
.dw-signup--stacked .dw-input { flex: 0 0 auto; width: 100%; font-size: 15px; }
.dw-signup--stacked .dw-btn { width: 100%; min-height: 52px; }
.dw-signup__label { display: block; letter-spacing: .24em; }
.dw-signup__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Amazon Associates disclosure (book page "Where to buy", link-in-bio tiles). */
.dw-affiliate-note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; color: var(--wp--preset--color--lavender); }
.dw-tiles + .dw-affiliate-note { text-align: center; }
.dw-signup__note { flex: 1 1 100%; margin: 2px 0 0; font-size: 12px; line-height: 1.5; text-align: center; color: var(--wp--preset--color--lavender); }
.dw-signup--stacked .dw-signup__note { text-align: left; }
.dw-signup__note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.dw-signup__note a:hover { color: var(--wp--preset--color--cream); }
.dw-signup__message { flex: 1 1 100%; margin: 4px 0 0; font-size: 14px; line-height: 1.6; text-align: center; color: var(--wp--preset--color--lavender); }
.dw-signup--stacked .dw-signup__message { text-align: left; }
.dw-signup__message.is-error { color: var(--wp--preset--color--cream); }
.dw-signup.is-done .dw-signup__message { margin: 0; font-size: 15px; }
.dw-signup.is-busy .dw-btn { opacity: .6; cursor: progress; }

/* ---------- Homepage ---------- */
.dw-home-hero {
	position: relative;
	min-height: 82vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(18px, 3vh, 26px);
	padding-top: clamp(48px, 10vh, 130px) !important;
	padding-bottom: clamp(44px, 8vh, 90px) !important;
	background: radial-gradient(ellipse 70% 62% at 50% 46%, rgba(8, 6, 14, .93) 0%, rgba(8, 6, 14, .82) 42%, rgba(8, 6, 14, .55) 72%, rgba(8, 6, 14, .86) 100%);
	text-align: center;
}
.dw-home-hero > * { margin-block: 0 !important; }
.dw-home-hero__name {
	font-size: var(--wp--preset--font-size--display) !important;
	line-height: .88 !important;
	letter-spacing: -.01em;
	text-wrap: balance;
}
.dw-home-hero__tagline {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(21px, 4.6vw, 32px);
	color: var(--wp--preset--color--lavender);
	text-wrap: balance;
}
.dw-home-hero__intro { max-width: 520px; margin-inline: auto !important; font-size: 15px; line-height: 1.75; color: rgba(242, 236, 225, .78); text-wrap: pretty; }
.dw-home-hero__ctas { gap: 12px; max-width: 520px; width: 100%; margin: 6px auto 0 !important; }
.dw-home-hero__ctas .wp-block-button { flex: 1 1 190px; }
.dw-home-hero__ctas .wp-block-button__link { width: 100%; box-sizing: border-box; }

/* Featured book */
.dw-featured {
	padding: clamp(50px, 8vh, 90px) clamp(20px, 5vw, 64px);
	background: var(--dw-ink-a90);
	border-block: 1px solid var(--dw-line-soft);
}
.dw-featured .wp-block-post-template { margin: 0; padding: 0; list-style: none; }
.dw-featured .wp-block-post {
	max-width: 1180px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: clamp(32px, 5vw, 70px);
	align-items: center;
}
.dw-featured .dw-cover { max-width: 420px; margin: 0; }
.dw-featured__body > * { margin: 0; }
.dw-featured__body .dw-label { letter-spacing: .36em; }
.dw-featured__body .wp-block-post-title { font-size: clamp(34px, 5vw, 60px); line-height: 1; }
.dw-featured__body .wp-block-post-title a { color: var(--wp--preset--color--cream); }
.dw-featured__body .wp-block-post-excerpt { max-width: 52ch; }
.dw-featured__body .wp-block-post-excerpt__excerpt { margin: 0; font-size: 16px; line-height: 1.8; }

/* Book grid (homepage; reused by the books archive later) */
.dw-home-books { padding-bottom: clamp(60px, 9vh, 110px) !important; }
.dw-home-books > * + * { margin-top: 40px !important; }
.dw-book-grid { gap: clamp(20px, 3vw, 36px) !important; grid-template-columns: repeat(auto-fill, minmax(min(210px, calc((100% - 36px) / 2)), 1fr)) !important; }
/* ^ never fewer than two columns: 44vw (the prototype's value) overflows once the page gutter is taken off */
/* Homepage row holds up to 4 books: 2 or 4 across, never 3 with one left over */
.dw-book-grid:not(.dw-book-grid--more) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (min-width: 700px) { .dw-book-grid:not(.dw-book-grid--more) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.dw-book-grid .wp-block-post { display: flex; flex-direction: column; gap: 6px; }
.dw-book-grid .dw-cover { margin: 0 0 8px; }
.dw-book-grid__title { margin: 0; font-size: 19px !important; line-height: 1.2; }
.dw-book-grid__title a { color: var(--wp--preset--color--cream); }
.dw-book-grid .dw-label { margin: 0; letter-spacing: .2em; }

/* Pull quote */
.dw-home-quote { padding-top: clamp(70px, 11vh, 140px) !important; padding-bottom: clamp(70px, 11vh, 140px) !important; text-align: center; }
.dw-home-quote:not(:has(.wp-block-pullquote)) { display: none; }
.dw-home-quote .wp-block-pullquote { margin: 0; padding: 0; }
.dw-home-quote .wp-block-pullquote p { color: var(--wp--preset--color--cream); text-wrap: balance; }
.dw-home-quote .wp-block-pullquote cite {
	display: block;
	margin-top: 26px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	letter-spacing: .34em;
	text-transform: uppercase;
	font-style: normal;
	color: var(--wp--preset--color--lavender);
}

/* Upcoming events */
.dw-home-events { background: rgba(8, 6, 14, .86); padding-top: clamp(46px, 7vh, 84px) !important; padding-bottom: clamp(46px, 7vh, 84px) !important; }
.dw-home-events .dw-section-head h2 { font-size: clamp(24px, 3.4vw, 38px); }
.dw-home-events > * + * { margin-top: 20px !important; }
.dw-event-grid { gap: clamp(14px, 2.4vw, 22px) !important; }
.dw-event-grid .wp-block-post {
	display: flex;
	gap: 18px;
	padding: clamp(18px, 2.6vw, 24px);
	border: 1px solid rgba(203, 184, 232, .22);
	background: var(--dw-card);
}
.dw-event-grid .wp-block-post:hover { border-color: var(--wp--preset--color--lavender); background: var(--dw-card-hover); }
.dw-event-grid .dw-datebox { min-width: 74px; padding: 10px 12px; }
.dw-event-grid .dw-datebox__month { font-size: 9px; }
.dw-event-grid .dw-datebox__day { font-size: 28px; }
.dw-event-grid .wp-block-post-title { font-size: 21px; line-height: 1.2; }
.dw-event-grid .dw-event-field--when-where-short { font-size: 10px; }
.dw-event-grid .dw-event-field--details-link a { display: inline-block; padding: 9px 0; font-size: 10px; }

/* ---------- Events page ---------- */
.dw-datebox {
	flex: 0 0 auto;
	display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: flex-start;
	min-width: 92px; padding: 14px 18px; box-sizing: border-box;
	border: 1px solid rgba(107, 70, 168, .55);
	background: rgba(11, 8, 16, .55);
	scroll-margin-top: 110px;
}
.dw-datebox__month, .dw-datebox__year {
	font-family: var(--wp--preset--font-family--mono); font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
	color: var(--wp--preset--color--lavender); line-height: 1.6;
}
.dw-datebox__year { font-size: 9px; letter-spacing: .2em; }
.dw-datebox__day { font-family: var(--wp--preset--font-family--display); font-size: clamp(30px, 4vw, 40px); line-height: 1.05; }
.dw-event-card__body { flex: 1 1 300px; min-width: 0; }
.dw-event-card__body > * { margin: 0 !important; }
.dw-event-card__body .wp-block-post-title { font-weight: 400; }
.dw-event-field { margin: 0; }
.dw-event-field--type { font-size: 9px !important; letter-spacing: .26em !important; }
.dw-event-field--when-where,
.dw-event-field--when-where-short {
	font-family: var(--wp--preset--font-family--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--wp--preset--color--lavender); line-height: 1.6;
}
.dw-event-field--description { max-width: 58ch; font-size: 15px; line-height: 1.8; color: rgba(242, 236, 225, .84); text-wrap: pretty; }
.dw-event-field--link a {
	display: inline-block; padding: 11px 0;
	font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
	border-bottom: 1px solid rgba(107, 70, 168, .7);
}
.dw-event-field--link a:hover { border-bottom-color: var(--wp--preset--color--lavender); }

.dw-events-upcoming {
	background: rgba(8, 6, 14, .86);
	border-top: 1px solid var(--dw-line-soft);
	padding-top: clamp(20px, 4vh, 40px) !important;
	padding-bottom: clamp(50px, 8vh, 90px) !important;
}
.dw-events-upcoming > * + * { margin-top: clamp(24px, 4vh, 36px) !important; }
.dw-events-upcoming .dw-section-head { padding-top: clamp(18px, 3vh, 28px); }
.dw-events-upcoming .dw-section-head h2 { font-size: clamp(28px, 4.4vw, 48px); }
.dw-events-upcoming .dw-section-head .dw-label { margin: 0; letter-spacing: .24em; }
.dw-event-cards { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 24px); }
.dw-event-cards > .wp-block-post {
	display: flex; flex-wrap: wrap;
	gap: clamp(18px, 3vw, 36px);
	padding: clamp(22px, 3vw, 30px);
	border: 1px solid rgba(203, 184, 232, .22);
	background: var(--dw-card);
}
.dw-event-cards > .wp-block-post:hover { border-color: var(--wp--preset--color--lavender); background: var(--dw-card-hover); }
.dw-event-cards .wp-block-post-title { font-size: clamp(23px, 3vw, 32px); line-height: 1.15; }

.dw-empty--events { align-items: flex-start !important; gap: 16px; padding: clamp(30px, 5vw, 48px); }
.dw-empty--events > * { margin: 0 !important; }
.dw-empty--events .dw-empty__line { font-size: clamp(21px, 3.2vw, 30px); line-height: 1.4; max-width: 40ch; }
.dw-empty--events .dw-soft { max-width: 52ch; font-size: 15px; line-height: 1.8; }
.dw-empty__actions { gap: 12px 22px; padding-top: 6px; width: 100%; }
.dw-empty__actions .dw-signup { flex: 1 1 300px; }

.dw-events-past {
	background: rgba(8, 6, 14, .7);
	border-top: 1px solid var(--dw-line-soft);
	padding-top: clamp(40px, 7vh, 80px) !important;
	padding-bottom: clamp(56px, 9vh, 100px) !important;
}
.dw-events-past:not(:has(.dw-past)) { display: none; }
.dw-events-past > * + * { margin-top: 22px !important; }
.dw-events-past .dw-section-head { border-bottom-color: rgba(107, 70, 168, .28); padding-bottom: 12px; }
.dw-events-past .dw-section-head h2 { font-size: clamp(20px, 2.6vw, 28px); color: rgba(242, 236, 225, .72); }
.dw-past__list { margin: 0; padding: 0; list-style: none; }
.dw-past__row {
	display: flex; flex-wrap: wrap; align-items: baseline;
	gap: 6px 20px; padding: 15px 0;
	border-bottom: 1px solid rgba(107, 70, 168, .16);
}
.dw-past__date {
	flex: 0 0 118px;
	font-family: var(--wp--preset--font-family--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--wp--preset--color--lavender);
}
.dw-past__title { flex: 1 1 220px; font-family: var(--wp--preset--font-family--display); font-size: 18px; color: rgba(242, 236, 225, .85); }
.dw-past__meta { flex: 1 1 180px; font-size: 13px; font-weight: 300; color: rgba(242, 236, 225, .7); }
.dw-past__more summary { display: inline-block; padding: 14px 0; cursor: pointer; list-style: none; }
.dw-past__more summary::-webkit-details-marker { display: none; }
.dw-past__more summary:hover { color: var(--wp--preset--color--cream); }
.dw-past__more[open] summary { display: none; }

/* ---------- Books (dreadful-core blocks + book templates) ---------- */
#buy, #excerpt, #newsletter { scroll-margin-top: 90px; }
.dw-block-placeholder {
	margin: 0; padding: 12px 14px;
	border: 1px dashed var(--dw-line); color: var(--wp--preset--color--lavender);
	font-family: var(--wp--preset--font-family--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
}
a.dw-cover:hover { border-color: var(--wp--preset--color--lavender); }
.dw-featured .dw-cover--blank { padding: 26px; }
.dw-featured .dw-cover--blank span { font-size: clamp(26px, 3.4vw, 40px); }

.dw-book-field { margin: 0; }
.dw-book-field--mood {
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--wp--preset--color--lavender);
}
.dw-book-field--blurb p { margin: 0 0 1em; max-width: 60ch; font-size: 16px; line-height: 1.85; color: rgba(242, 236, 225, .86); text-wrap: pretty; }
.dw-book-field--blurb p:last-child { margin-bottom: 0; }
.dw-book-field--blurb-short { max-width: 58ch; font-size: 15px; line-height: 1.8; text-wrap: pretty; }
.dw-featured .dw-book-field--blurb-short { max-width: 52ch; font-size: 16px; }

.dw-book-buttons { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; max-width: 520px; }
.dw-book-buttons .dw-btn { flex: 1 1 190px; white-space: nowrap; } /* too narrow for both → stack, don't wrap a label */
.dw-book-buttons--small { max-width: none; margin-top: 4px; }
.dw-book-buttons--small .dw-btn { flex: 0 0 auto; }

/* Hero */
.dw-book-hero {
	padding-top: clamp(40px, 7vh, 80px) !important;
	padding-bottom: clamp(40px, 6vh, 70px) !important;
	background: radial-gradient(ellipse 75% 80% at 50% 40%, rgba(8, 6, 14, .94), rgba(8, 6, 14, .72));
}
.dw-book-hero__grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(26px, 5vw, 64px); }
.dw-book-hero__aside { flex: 1 1 240px; max-width: 340px; }
.dw-book-hero__aside .dw-cover { margin: 0; }
.dw-book-hero__aside .dw-link-caps a { display: inline-block; padding: 8px 0; }
.dw-book-hero__body { flex: 2 1 380px; min-width: 0; }
.dw-book-hero__body > * { margin: 0 !important; }
.dw-book-hero__body .dw-label { letter-spacing: .34em; }
.dw-book-hero__body .wp-block-post-title { font-size: clamp(38px, 7vw, 76px); line-height: .98; text-wrap: balance; }
.wp-block-separator.dw-rule-fade--left { max-width: none; margin: 0; background: linear-gradient(90deg, var(--wp--preset--color--violet-bright), transparent); }
.dw-book-hero__body .dw-book-buttons { padding-top: 4px; }

/* Sections under the hero; each hides itself when its block has nothing to show */
.dw-book-section { padding-top: clamp(50px, 8vh, 90px) !important; padding-bottom: clamp(50px, 8vh, 90px) !important; }
.dw-book-section--excerpt { background: var(--dw-ink-a90); border-block: 1px solid var(--dw-line-soft); }
.dw-book-section--praise { background: var(--dw-ink-a72); }
.dw-book-section--buy { background: rgba(8, 6, 14, .92); border-top: 1px solid var(--dw-line-soft); }
.dw-book-section--more { background: rgba(8, 6, 14, .78); border-top: 1px solid var(--dw-line-soft); }
.dw-book-section--more > * + * { margin-top: 32px !important; }
.dw-book-section--more .dw-section-head h2 { font-size: clamp(26px, 3.6vw, 40px); }
.dw-book-section--excerpt:not(:has(.dw-excerpt)),
.dw-book-section--praise:not(:has(.dw-reviews)),
.dw-book-section--buy:not(:has(.dw-retailers, .dw-details)),
.dw-book-section--more:not(:has(.wp-block-post)) { display: none; }

/* Excerpt */
.dw-excerpt { display: flex; flex-direction: column; gap: 22px; }
.dw-excerpt > * { margin: 0; }
.dw-excerpt .dw-label { letter-spacing: .34em; }
.dw-excerpt__text p { margin: 0 0 22px; font-size: 16px; line-height: 1.9; color: rgba(242, 236, 225, .82); text-wrap: pretty; }
.dw-excerpt__text p:first-child {
	font-family: var(--wp--preset--font-family--display);
	font-size: clamp(19px, 2.4vw, 25px); line-height: 1.65; color: var(--wp--preset--color--cream);
}
.dw-excerpt__text p:last-child { margin-bottom: 0; }
.dw-excerpt .dw-link-caps a { display: inline-block; padding: 8px 0; }

/* Reviews */
.dw-reviews--grid { display: flex; flex-direction: column; gap: 32px; }
.dw-reviews--grid > .dw-label { margin: 0; letter-spacing: .34em; }
.dw-reviews--grid .dw-reviews__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: clamp(20px, 3vw, 36px); }
.dw-review {
	margin: 0;
	display: flex; flex-direction: column; gap: 14px;
	border-left: 1px solid var(--wp--preset--color--violet-bright);
	padding-left: 22px;
}
.dw-review p { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 20px; line-height: 1.5; color: var(--wp--preset--color--cream); }
.dw-review cite {
	font-style: normal;
	font-family: var(--wp--preset--font-family--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
	color: var(--wp--preset--color--lavender);
}
.dw-review cite a { color: inherit; border-bottom: 1px solid var(--dw-line); }
.dw-reviews--inline .dw-review { gap: 8px; padding-left: 20px; max-width: 46ch; }
.dw-reviews--inline .dw-review p { font-size: 19px; color: var(--wp--preset--color--lavender); }

/* Where to buy + details */
.dw-book-buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: start; }
.dw-book-buy > * { margin: 0 !important; }
.dw-retailers { display: flex; flex-direction: column; gap: 20px; }
.dw-retailers .dw-label, .dw-details .dw-label { margin: 0; letter-spacing: .34em; }
.dw-retailers__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.dw-retailer {
	display: flex; align-items: center; gap: 14px;
	min-height: 44px; padding: 16px 18px;
	border: 1px solid var(--dw-edge);
	color: var(--wp--preset--color--cream);
}
.dw-retailer:hover { border-color: var(--wp--preset--color--lavender); background: var(--dw-card-hover); color: var(--wp--preset--color--cream); }
.dw-retailer__icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--wp--preset--color--lavender); }
.dw-retailer__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dw-retailer__name { font-size: 14px; line-height: 1.3; }
.dw-retailer__note {
	font-family: var(--wp--preset--font-family--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--wp--preset--color--lavender); line-height: 1.5;
}
.dw-details {
	display: flex; flex-direction: column; gap: 18px;
	padding: clamp(22px, 3vw, 30px);
	border: 1px solid var(--dw-line);
	background: rgba(36, 22, 69, .28);
}
.dw-details dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 20px; font-size: 14px; line-height: 1.6; }
.dw-details dt {
	font-family: var(--wp--preset--font-family--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--wp--preset--color--lavender); line-height: 2.2;
}
.dw-details dd { margin: 0; font-weight: 300; overflow-wrap: anywhere; }

/* Books archive rows */
.dw-books-list { background: rgba(8, 6, 14, .82); padding-top: 0 !important; padding-bottom: clamp(70px, 10vh, 120px) !important; }
.dw-book-rows { margin: 0; padding: 0; list-style: none; }
.dw-book-rows > .wp-block-post {
	display: flex; flex-wrap: wrap; align-items: flex-start;
	gap: clamp(20px, 4vw, 54px);
	padding: clamp(30px, 5vh, 48px) 0;
	border-top: 1px solid var(--dw-line-soft);
}
.dw-book-rows > .wp-block-post:last-child { border-bottom: 1px solid var(--dw-line-soft); }
.dw-book-rows .dw-cover { flex: 1 1 150px; max-width: 220px; margin: 0; }
.dw-book-row__body { flex: 3 1 300px; min-width: 0; }
.dw-book-row__body > * { margin: 0 !important; }
.dw-book-row__body .dw-label { letter-spacing: .26em; }
.dw-book-row__body .wp-block-post-title { font-size: clamp(28px, 4vw, 44px); line-height: 1; }
.dw-book-row__body .wp-block-post-title a { color: var(--wp--preset--color--cream); }
.dw-book-row__body .wp-block-read-more { margin-top: 6px !important; }

/* ---------- Link in bio (mobile-first, no header/footer) ---------- */
.dw-links {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(40px, 8vh, 80px) 18px clamp(32px, 6vh, 60px);
}
.dw-links::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 80% 60% at 50% 34%, var(--dw-ink-a90) 0%, rgba(8, 6, 14, .95) 55%, rgba(8, 6, 14, .99) 100%);
	pointer-events: none;
}
.dw-links__inner {
	position: relative;
	width: 100%;
	max-width: 420px;
	gap: clamp(22px, 4vh, 32px) !important;
	text-align: center;
}
.dw-links__photo {
	width: 104px;
	height: 104px;
	margin: 0;
	border-radius: 50%;
	overflow: hidden;
	border: 1px solid rgba(203, 184, 232, .4);
	background: repeating-linear-gradient(122deg, #150d28 0 10px, #1d1235 10px 20px);
}
.dw-links__photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dw-links__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 400;
	font-size: clamp(38px, 11vw, 52px);
	line-height: 1;
}
.dw-links__tagline {
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 10px;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lavender);
	line-height: 1.7;
}
.dw-links__rule.wp-block-separator {
	width: 100%;
	max-width: 340px;
	height: 1px;
	margin: 0;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--wp--preset--color--violet-bright), transparent);
	opacity: 1;
}
/* Social icons (rebuilt from Settings → Social links): bigger, with thumb-sized tap areas.
   The negative margin lets the tap areas' empty padding overlap the column gap above and below. */
.dw-social.dw-links__social { margin: -14px 0; gap: 0 6px !important; }
.dw-social.dw-links__social .wp-social-link a { padding: 11px; }
.dw-social.dw-links__social .wp-social-link svg { width: 23px; height: 23px; }
/* Tiles (dreadful/link-tiles block) */
.dw-tiles { width: 100%; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.dw-tile {
	box-sizing: border-box;
	width: 100%;
	min-height: 62px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 18px 22px;
	background: var(--wp--preset--color--plum);
	border: 1px solid var(--dw-edge);
	color: var(--wp--preset--color--cream);
}
a.dw-tile:hover,
a.dw-tile:active { background: var(--wp--preset--color--violet); border-color: var(--wp--preset--color--lavender); color: var(--wp--preset--color--cream); }
.dw-tile__main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dw-tile__icon { width: 22px; height: 22px; flex: 0 0 auto; color: var(--wp--preset--color--lavender); }
.dw-tile__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dw-tile__title { font-family: var(--wp--preset--font-family--display); font-size: 21px; line-height: 1.1; }
.dw-tile__sub {
	font-family: var(--wp--preset--font-family--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--wp--preset--color--lavender); line-height: 1.5;
}
.dw-tile__arrow { flex: 0 0 auto; color: var(--wp--preset--color--lavender); font-size: 16px; }
/* "Highlight this tile" (e.g. a new release): violet fill, glow that slowly breathes.
   The glow lives on ::after and only its opacity animates, so the browser doesn't repaint the shadow. */
.dw-tile--highlight {
	position: relative;
	background: color-mix(in srgb, var(--wp--preset--color--violet) 55%, var(--wp--preset--color--plum));
	border-color: var(--wp--preset--color--violet-bright);
}
.dw-tile--highlight::after {
	content: "";
	position: absolute;
	inset: -1px;
	box-shadow: 0 0 26px rgba(107, 70, 168, .6);
	opacity: .75;
	pointer-events: none;
	animation: dw-tile-glow 4s ease-in-out infinite alternate;
}
@keyframes dw-tile-glow {
	from { opacity: .35; }
	to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.dw-tile--highlight::after { animation: none; }
}
.dw-tile--highlight .dw-tile__icon, .dw-tile--highlight .dw-tile__arrow { color: var(--wp--preset--color--cream); }
/* Book tiles: the cover in place of an icon. Compact = about a normal tile's height; card = bigger
   cover with the blurb (or the tile's own subtitle) in readable text. */
.dw-tile--book { padding: 14px 22px 14px 14px; }
.dw-tile--book .dw-tile__main { gap: 16px; }
.dw-tile__cover {
	flex: 0 0 auto;
	display: block;
	width: 46px;
	height: 73px;
	object-fit: cover;
	border: 1px solid rgba(203, 184, 232, .3);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .55);
}
.dw-tile__cover--blank { background: var(--dw-cover-stripes); }
.dw-tile--card { padding: 16px 20px 16px 16px; }
.dw-tile--card .dw-tile__main { gap: 18px; }
.dw-tile--card .dw-tile__cover { width: 78px; height: 124px; }
.dw-tile--card .dw-tile__text { gap: 8px; }
.dw-tile--card .dw-tile__title { font-size: 24px; }
@media (max-width: 360px) {
	.dw-tile--card .dw-tile__main { gap: 14px; }
	.dw-tile--card .dw-tile__cover { width: 64px; height: 102px; }
	.dw-tile--card .dw-tile__title { font-size: 22px; }
}
.dw-tile__blurb {
	font-size: 14px;
	line-height: 1.5;
	color: rgba(242, 236, 225, .8);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Badge: a small tag sitting on the tile's top edge (cream on bright violet, 5.8:1) */
.dw-tile--badge { position: relative; }
.dw-tile__badge {
	position: absolute;
	top: 0;
	right: 18px;
	z-index: 1;
	transform: translateY(-50%);
	padding: 4px 9px;
	background: var(--wp--preset--color--violet-bright);
	color: var(--wp--preset--color--cream);
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	letter-spacing: .22em;
	line-height: 1.4;
	text-transform: uppercase;
	white-space: nowrap;
}
.dw-tile--signup { flex-direction: column; align-items: stretch; gap: 12px; padding: 18px 22px 20px; border-color: var(--wp--preset--color--violet-bright); }
.dw-tile--signup .dw-signup { max-width: none; gap: 10px; }
/* Email and button on one row; basis 0 so they never wrap apart (the message still wraps below). */
.dw-tile--signup .dw-input { flex: 1 1 0; font-size: 15px; }
.dw-tile--signup .dw-btn { flex: 0 0 auto; padding-inline: 18px; font-size: 12px; letter-spacing: .2em; }
.dw-tile--signup .dw-input, .dw-tile--signup .dw-btn { min-height: 52px; }
.dw-tile--signup .dw-signup__message { text-align: left; }
@media (max-width: 360px) {
	/* Narrowest phones: tighter button so the placeholder isn't cut off. */
	.dw-tile--signup .dw-btn { padding-inline: 12px; letter-spacing: .1em; }
	.dw-tile--signup .dw-input { padding-inline: 10px; font-size: 14px; }
}
.dw-links__home { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 26px; margin: 0; }
.dw-links__home a {
	display: inline-block;
	padding: 12px 0;
	font-size: 10px;
	letter-spacing: .26em;
	text-transform: uppercase;
	color: var(--wp--preset--color--lavender);
}
.dw-links__home a:hover { color: var(--wp--preset--color--cream); }

/* ---------- Layout fixes ---------- */
.wp-site-blocks > main { display: flex; flex-direction: column; }
/* Sections butt together: core's block-gap margin would leave a strip of bare wallpaper between them */
.wp-site-blocks > main > * { margin-block: 0 !important; }
/* On a short page the last section stretches down to the footer: the wallpaper is bright on its own
   and only the sections' backgrounds dim it. A short hero (404) stretches with its text centred. */
.wp-site-blocks > main > .dw-panel:last-child { flex-grow: 1; }
.wp-site-blocks > main > .dw-hero:last-child { flex-grow: 1; display: flex; flex-direction: column; justify-content: center; }
/* Fallback for any other ending (or a last section hidden because it's empty): a dimmed filler. */
.wp-site-blocks > main:not(:has(> .dw-panel:last-child, > .dw-hero:last-child))::after {
	content: "";
	flex-grow: 1;
	background: var(--dw-ink-a85);
}
.dw-footer { padding-left: clamp(20px, 5vw, 64px) !important; padding-right: clamp(20px, 5vw, 64px) !important; }
/* Outline icon: core's social-links CSS sets fill: currentColor with a more specific selector */
.dw-social .wp-social-link svg { fill: none !important; }
