/*
Theme Name: The Quiet Guest
Theme URI: https://thequietguest.net
Author: The Quiet Guest
Description: Custom theme for TheQuietGuest.net, a personal travel journal published under a pen name. Navy and white, ruled notebook paper, handwritten type and small hotel details.
Version: 1.0.0
Requires at least: 6.0
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: quiet-guest
*/

/* ==========================================================================
   Contents
   1.  Fonts
   2.  Design tokens
   3.  Base and accessibility
   4.  Layout helpers
   5.  Shared components (plaques, buttons, chips, images)
   6.  Header and navigation
   7.  Home: guest's picks
   8.  Home and archives: story cards and register rows
   9.  Home: editorials (Neighbourhood Notes)
   10. Home: who writes this (E-E-A-T)
   11. Single story
   12. About the guest
   13. Reception (contact) page
   14. Places page and archives
   15. 404
   16. Footer
   17. WordPress core classes
   18. Motion
   ========================================================================== */

/* 1. Fonts (self-hosted, SIL Open Font License, see assets/fonts) */
@font-face {
	font-family: "Caveat";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/caveat-latin-wght-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Patrick Hand";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("assets/fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
}

/* 2. Design tokens */
:root {
	--qg-navy: #14213d;
	--qg-night: #0e1726;
	--qg-navy-2: #22345a;
	--qg-ink-2: #2b3a55;
	--qg-white: #ffffff;
	--qg-rule: #d3dae5;
	--qg-dots: #8a96ab;
	--qg-slate: #4a5670;
	--qg-placeholder: #dde4ee;
	--qg-window: #e9eff7;
	--qg-on-navy: #c9d3e3;
	--qg-on-navy-muted: #a9b6cc;
	--qg-brass: #7d5e1b;
	--qg-brass-light: #d8b76a;
	--qg-handle: #b08a3e;

	--qg-hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
	--qg-print: "Patrick Hand", "Bradley Hand", "Segoe Print", cursive;

	--qg-ruled: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(20, 33, 61, 0.06) 31px, rgba(20, 33, 61, 0.06) 32px);
	--qg-ruled-strong: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(20, 33, 61, 0.09) 31px, rgba(20, 33, 61, 0.09) 32px);

	--qg-max: 1200px;
	--qg-gutter: clamp(16px, 5vw, 64px);
}

/* 3. Base and accessibility */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

[hidden] {
	display: none !important;
}

body {
	margin: 0;
	background-color: var(--qg-white);
	background-image: var(--qg-ruled);
	color: var(--qg-navy);
	font-family: var(--qg-print);
	font-size: 20px;
	line-height: 1.55;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--qg-navy);
}

a:hover {
	color: var(--qg-brass);
}

:focus-visible {
	outline: 3px solid var(--qg-handle);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--qg-hand);
	font-weight: 600;
	line-height: 1.1;
	margin: 0;
}

p {
	margin: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--qg-white);
	clip: auto !important;
	clip-path: none;
	color: var(--qg-navy);
	display: block;
	font-size: 16px;
	height: auto;
	left: 8px;
	padding: 12px 20px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

/* 4. Layout helpers */
.qg-container {
	max-width: var(--qg-max);
	margin: 0 auto;
	padding-left: var(--qg-gutter);
	padding-right: var(--qg-gutter);
}

.qg-section {
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.qg-band--ruled {
	background-color: var(--qg-white);
	background-image: var(--qg-ruled-strong);
	border-top: 1px solid var(--qg-rule);
	border-bottom: 1px solid var(--qg-rule);
}

.qg-band--navy {
	background: var(--qg-navy);
	color: var(--qg-white);
}

.qg-section-head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 24px;
	margin-bottom: 28px;
	padding-bottom: 14px;
	border-bottom: 3px double var(--qg-navy);
}

.qg-section-head h2,
.qg-section-head h1 {
	font-size: clamp(26px, 2.8vw, 34px);
}

.qg-band--navy .qg-section-head {
	border-bottom: 1px solid var(--qg-ink-2);
}

.qg-label {
	font-size: 16px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--qg-slate);
}

.qg-meta {
	font-size: 16px;
	color: var(--qg-slate);
}

.qg-number {
	font-size: 16px;
	letter-spacing: 0.06em;
	color: var(--qg-brass);
}

/* 5. Shared components */
.qg-plaque {
	display: block;
	width: fit-content;
	margin-bottom: 10px;
	padding: 3px 10px;
	border: 1px solid var(--qg-brass);
	color: var(--qg-brass);
	font-family: var(--qg-print);
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0.16em;
	line-height: 1.5;
	text-transform: uppercase;
}

.qg-band--navy .qg-plaque {
	border-color: var(--qg-brass-light);
	color: var(--qg-brass-light);
}

.qg-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--qg-navy);
	background: transparent;
	color: var(--qg-navy);
	font-family: var(--qg-print);
	font-size: 17px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.qg-button:hover {
	background: var(--qg-navy);
	color: var(--qg-white);
}

.qg-button--solid {
	background: var(--qg-navy);
	color: var(--qg-white);
}

.qg-button--solid:hover {
	background: var(--qg-night);
	color: var(--qg-white);
}

.qg-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.qg-text-link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: 17px;
	color: var(--qg-navy);
}

.qg-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qg-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--qg-rule);
	background: var(--qg-white);
	color: var(--qg-navy);
	font-family: var(--qg-print);
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
}

.qg-chip:hover {
	border-color: var(--qg-navy);
	color: var(--qg-navy);
}

.qg-chip.is-active,
.qg-chip[aria-current="page"],
.qg-chip[aria-pressed="true"] {
	background: var(--qg-navy);
	border-color: var(--qg-navy);
	color: var(--qg-white);
}

.qg-img {
	display: block;
	width: 100%;
	object-fit: cover;
	background: var(--qg-placeholder);
	border: 1px solid var(--qg-rule);
}

.qg-redact {
	display: inline-block;
	height: 12px;
	background: var(--qg-navy);
	vertical-align: middle;
}

.qg-notice {
	margin: 0 0 24px;
	padding: 14px 18px;
	border: 1px solid var(--qg-navy);
	background: var(--qg-white);
	font-size: 18px;
}

.qg-notice--error {
	border-color: #9b2c2c;
	color: #7a1f1f;
}

.qg-disclosure {
	margin: 0 0 28px;
	padding: 12px 16px;
	border: 1px dashed var(--qg-brass);
	color: var(--qg-ink-2);
	font-size: 17px;
}

.qg-empty {
	font-family: var(--qg-hand);
	font-size: 28px;
	color: var(--qg-slate);
}

/* 6. Header and navigation */
.qg-skip-link {
	position: absolute;
	left: -9999px;
}

.qg-skip-link:focus {
	left: 8px;
	top: 8px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--qg-white);
	border: 2px solid var(--qg-navy);
}

.qg-header {
	border-bottom: 3px double var(--qg-navy);
	background-color: var(--qg-white);
	background-image: var(--qg-ruled);
}

.qg-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 32px;
	padding-top: 18px;
}

.qg-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 44px;
	color: var(--qg-navy);
	text-decoration: none;
}

.qg-brand:hover {
	color: var(--qg-navy);
}

.qg-brand__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 32px;
}

.qg-brand__name {
	font-family: var(--qg-print);
	font-size: 23px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.qg-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qg-nav a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--qg-navy);
	font-size: 18px;
	text-decoration: none;
}

.qg-nav a:hover,
.qg-nav .current-menu-item > a,
.qg-nav .current_page_item > a,
.qg-nav .current-menu-ancestor > a {
	color: var(--qg-brass);
	text-decoration: underline;
	text-underline-offset: 6px;
}

.qg-nav-toggle {
	display: none;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--qg-navy);
	background: var(--qg-white);
	color: var(--qg-navy);
	font-family: var(--qg-print);
	font-size: 17px;
	cursor: pointer;
}

.qg-nav-toggle__bars {
	display: inline-block;
	width: 18px;
	height: 2px;
	background: currentColor;
	position: relative;
}

.qg-nav-toggle__bars::before,
.qg-nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
	width: 18px;
	height: 2px;
	background: currentColor;
}

.qg-nav-toggle__bars::before {
	top: -6px;
}

.qg-nav-toggle__bars::after {
	top: 6px;
}

.qg-header__tagline {
	padding-top: 6px;
	padding-bottom: 14px;
	font-family: var(--qg-hand);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--qg-slate);
}

/* Small screens: menu collapses behind a button when JavaScript is available. */
@media (max-width: 640px) {
	.qg-js .qg-nav-toggle {
		display: inline-flex;
	}

	.qg-js .qg-nav {
		display: none;
		width: 100%;
	}

	.qg-js .qg-nav.is-open {
		display: block;
	}

	.qg-js .qg-nav ul {
		flex-direction: column;
		gap: 0;
		padding: 8px 0;
		border-top: 1px solid var(--qg-rule);
	}

	.qg-brand__name {
		font-size: 19px;
	}
}

/* 7. Home: guest's picks */
.qg-picks {
	position: relative;
	overflow: hidden;
}

.qg-picks__note {
	color: var(--qg-brass-light);
	font-size: 16px;
	letter-spacing: 0.06em;
}

.qg-picks .qg-section-head h2 {
	color: var(--qg-white);
}

.qg-picks__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 40px;
}

.qg-pick-main {
	flex: 999 1 520px;
	min-width: 0;
	display: block;
	color: var(--qg-white);
	text-decoration: none;
}

.qg-pick-main:hover {
	color: var(--qg-white);
}

.qg-pick-main .qg-img {
	height: clamp(240px, 30vw, 380px);
	margin-bottom: 20px;
	border: 0;
	background: var(--qg-navy-2);
}

.qg-pick-main__category,
.qg-pick-small__category {
	display: block;
	margin-bottom: 8px;
	color: var(--qg-brass-light);
	font-size: 16px;
	letter-spacing: 0.06em;
}

.qg-pick-main__title {
	display: block;
	margin-bottom: 12px;
	font-family: var(--qg-hand);
	font-size: clamp(38px, 4.2vw, 54px);
	font-weight: 500;
	line-height: 1.02;
}

.qg-pick-main__why {
	display: block;
	max-width: 30em;
	color: var(--qg-window);
	font-family: var(--qg-hand);
	font-size: 26px;
	line-height: 1.2;
}

.qg-picks__side {
	flex: 1 1 320px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qg-pick-small {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--qg-ink-2);
	color: var(--qg-white);
	text-decoration: none;
}

.qg-picks__side li:last-child .qg-pick-small {
	padding-bottom: 0;
	border-bottom: 0;
}

.qg-pick-small:hover {
	color: var(--qg-white);
}

.qg-pick-small .qg-img {
	flex: 0 0 120px;
	width: 120px;
	height: 96px;
	border: 0;
	background: var(--qg-navy-2);
}

.qg-pick-small__text {
	flex: 1 1 160px;
	min-width: 0;
}

.qg-pick-small__title {
	display: block;
	font-family: var(--qg-hand);
	font-size: 29px;
	font-weight: 500;
	line-height: 1.08;
}

/* Decorative door hanger hanging off the picks band on wide screens. */
.qg-picks__hanger {
	display: none;
	position: absolute;
	left: calc((100vw - var(--qg-max)) / 2 - 150px);
	top: 150px;
	width: 143px;
	transform-origin: 50% 12%;
	pointer-events: none;
}

@media (min-width: 1500px) {
	.qg-picks__hanger {
		display: block;
	}
}

/* 8. Story cards and register rows */
.qg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 44px 32px;
	margin-bottom: 36px;
}

.qg-card {
	display: block;
	color: var(--qg-navy);
	text-decoration: none;
}

.qg-card:hover {
	color: var(--qg-navy);
}

.qg-card:hover .qg-card__title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
}

.qg-card .qg-img {
	height: 210px;
	margin-bottom: 16px;
}

.qg-card__number {
	display: block;
	margin-bottom: 6px;
}

.qg-card__title {
	display: block;
	margin-bottom: 8px;
	font-family: var(--qg-hand);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.05;
}

.qg-card__meta {
	display: block;
}

.qg-filter-empty {
	margin: 0 0 32px;
}

.qg-register {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--qg-navy);
}

.qg-register__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 24px;
	padding: 18px 0;
	border-bottom: 1px solid var(--qg-rule);
}

.qg-register__no {
	flex: 0 0 76px;
}

.qg-register__title {
	flex: 999 1 320px;
	font-family: var(--qg-hand);
	font-size: 30px;
	font-weight: 500;
	line-height: 1.1;
	color: var(--qg-navy);
	text-decoration: none;
}

.qg-register__title:hover {
	text-decoration: underline;
	text-underline-offset: 6px;
}

.qg-register__meta {
	flex: 1 1 240px;
}

.qg-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.qg-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border: 1px solid var(--qg-rule);
	color: var(--qg-navy);
	text-decoration: none;
}

.qg-pagination .page-numbers.current {
	background: var(--qg-navy);
	border-color: var(--qg-navy);
	color: var(--qg-white);
}

.qg-archive-intro {
	max-width: 40em;
	margin: -8px 0 28px;
	color: var(--qg-slate);
}

/* 9. Editorials (Neighbourhood Notes) */
.qg-editorials__grid {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 64px;
}

.qg-editorial-lead {
	flex: 999 1 520px;
	min-width: 0;
}

.qg-editorial-lead__meta {
	margin-bottom: 10px;
}

.qg-editorial-lead__title {
	margin-bottom: 18px;
	font-size: clamp(40px, 4.6vw, 60px);
	font-weight: 500;
	line-height: 1;
}

.qg-editorial-lead__title a {
	color: var(--qg-navy);
	text-decoration: none;
}

.qg-editorial-lead__excerpt {
	max-width: 30em;
	margin-bottom: 16px;
	padding-top: 2px;
	background-color: var(--qg-white);
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 35px, rgba(20, 33, 61, 0.16) 35px, rgba(20, 33, 61, 0.16) 36px);
	font-family: var(--qg-hand);
	font-size: 27px;
	line-height: 36px;
}

.qg-editorial-list {
	flex: 1 1 320px;
	min-width: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--qg-navy);
}

.qg-editorial-list li {
	padding: 18px 0;
	border-bottom: 1px solid var(--qg-rule);
}

.qg-editorial-list a {
	display: block;
	color: var(--qg-navy);
	text-decoration: none;
}

.qg-editorial-list__title {
	display: block;
	margin-bottom: 4px;
	font-family: var(--qg-hand);
	font-size: 29px;
	font-weight: 500;
	line-height: 1.08;
}

/* 10. Who writes this (E-E-A-T) */
.qg-who {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 40px 64px;
}

.qg-who__portrait {
	flex: 1 1 280px;
	max-width: 360px;
	margin: 0;
}

.qg-who__body {
	flex: 999 1 520px;
	min-width: 0;
}

.qg-who__body h2 {
	margin-bottom: 16px;
	font-size: clamp(30px, 3.8vw, 46px);
	line-height: 1.12;
}

.qg-who__bio {
	max-width: 36em;
	margin-bottom: 32px;
	color: var(--qg-slate);
}

.qg-proof {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px 32px;
	margin: 0 0 32px;
}

.qg-proof__item {
	padding-top: 16px;
	border-top: 1px solid var(--qg-navy);
}

.qg-proof__item h3 {
	margin-bottom: 8px;
	font-family: var(--qg-print);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.qg-proof__item p {
	color: var(--qg-ink-2);
	font-size: 17px;
	line-height: 1.5;
}

.qg-proof__stats {
	margin-top: 8px !important;
	color: var(--qg-slate) !important;
	font-size: 16px !important;
}

.qg-portrait {
	display: block;
	padding: 14px;
	background: var(--qg-navy);
	line-height: 0;
}

.qg-portrait svg {
	display: block;
	width: 100%;
	height: auto;
}

.qg-caption {
	margin-top: 12px;
	color: var(--qg-slate);
	font-size: 16px;
}

/* 11. Single story */
.qg-story-head {
	padding-top: clamp(40px, 6vw, 80px);
	padding-bottom: 40px;
}

.qg-breadcrumb {
	margin-bottom: 28px;
	color: var(--qg-slate);
	font-size: 16px;
}

.qg-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qg-breadcrumb li + li::before {
	content: "/";
	margin-right: 6px;
}

.qg-breadcrumb a {
	color: var(--qg-slate);
}

.qg-story-head__number {
	margin-bottom: 16px;
	letter-spacing: 0.08em;
}

.qg-story-title {
	max-width: 18em;
	margin-bottom: 28px;
	font-size: clamp(48px, 6.4vw, 88px);
	font-weight: 500;
	line-height: 0.98;
}

.qg-byline {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 40px;
	font-size: 17px;
}

.qg-byline svg {
	width: 14px;
	height: 25px;
}

.qg-byline__withheld {
	color: var(--qg-slate);
}

.qg-folio {
	border: 1px solid var(--qg-navy);
	background-color: var(--qg-white);
	background-image: var(--qg-ruled);
	box-shadow: 0 6px 18px rgba(20, 33, 61, 0.08);
}

.qg-folio__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 12px 20px;
	border-bottom: 1px solid var(--qg-navy);
	font-size: 15px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.qg-folio__head span + span {
	color: var(--qg-slate);
}

.qg-folio dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin: 0;
	font-size: 18px;
	line-height: 1.5;
}

.qg-folio dl > div {
	padding: 14px 20px;
	border-bottom: 1px solid var(--qg-rule);
}

.qg-folio dt {
	color: var(--qg-slate);
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.qg-folio dd {
	margin: 4px 0 0;
}

.qg-story-body {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 48px 80px;
	padding-top: clamp(48px, 6vw, 80px);
	padding-bottom: clamp(48px, 6vw, 80px);
}

.qg-story-body__main {
	flex: 999 1 560px;
	min-width: 0;
	max-width: 680px;
}

.qg-story-body__aside {
	flex: 1 1 280px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.qg-entry {
	font-size: 21px;
	line-height: 1.65;
}

.qg-entry > * + * {
	margin-top: 0;
}

.qg-entry p {
	margin: 0 0 28px;
}

/* His opening lines: handwritten on ruled paper. */
.qg-entry > p:first-of-type {
	padding-top: 2px;
	background-color: var(--qg-white);
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 37px, rgba(20, 33, 61, 0.16) 37px, rgba(20, 33, 61, 0.16) 38px);
	font-family: var(--qg-hand);
	font-size: 29px;
	line-height: 38px;
}

.qg-entry h2 {
	margin: 48px 0 16px;
	font-size: 34px;
	line-height: 1.2;
}

.qg-entry h3 {
	margin: 36px 0 12px;
	font-size: 28px;
}

.qg-entry blockquote {
	margin: 48px 0;
	padding: 28px 0;
	border-top: 1px solid var(--qg-navy);
	border-bottom: 1px solid var(--qg-rule);
	font-family: var(--qg-hand);
	font-size: clamp(32px, 3.4vw, 42px);
	font-weight: 500;
	line-height: 1.15;
}

.qg-entry blockquote p {
	margin: 0;
}

.qg-entry blockquote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--qg-print);
	font-size: 16px;
	font-style: normal;
	color: var(--qg-slate);
}

.qg-entry ul,
.qg-entry ol {
	margin: 0 0 28px;
	padding-left: 1.2em;
}

.qg-entry figure {
	margin: 8px 0 36px;
}

.qg-entry figure img {
	display: block;
	width: 100%;
	border: 1px solid var(--qg-rule);
}

.qg-entry figcaption,
.qg-entry .wp-element-caption {
	padding-top: 10px;
	color: var(--qg-slate);
	font-size: 16px;
	line-height: 1.5;
}

.qg-story-figure img {
	height: clamp(220px, 30vw, 400px);
	object-fit: cover;
}

.qg-signoff {
	margin: 0 0 40px;
	font-family: var(--qg-hand);
	font-size: 30px;
	line-height: 1.1;
}

.qg-terms {
	padding-top: 24px;
	border-top: 1px solid var(--qg-rule);
}

.qg-terms .qg-chip:first-child {
	border-color: var(--qg-navy);
}

.qg-frontdesk {
	padding: 28px;
	background-color: var(--qg-white);
	background-image: var(--qg-ruled-strong);
	border-top: 1px solid var(--qg-rule);
	border-bottom: 1px solid var(--qg-rule);
}

.qg-frontdesk h2 {
	margin-bottom: 18px;
	font-family: var(--qg-print);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.qg-frontdesk dl {
	margin: 0 0 20px;
	font-size: 18px;
	line-height: 1.45;
}

.qg-frontdesk dl > div {
	padding: 10px 0;
	border-bottom: 1px solid var(--qg-rule);
}

.qg-frontdesk dt {
	color: var(--qg-slate);
	font-size: 14px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.qg-frontdesk dd {
	margin: 2px 0 0;
}

.qg-frontdesk p {
	color: var(--qg-slate);
	font-size: 15px;
	line-height: 1.5;
}

.qg-aside-figure {
	margin: 0;
}

.qg-aside-figure .qg-img {
	height: 220px;
}

.qg-related .qg-grid {
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 40px;
	margin-bottom: 0;
}

.qg-related .qg-card .qg-img {
	height: 200px;
	margin-bottom: 18px;
}

.qg-related .qg-card__title {
	font-size: 31px;
}

/* 12. About the guest */
.qg-about-intro {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 48px 80px;
	padding-top: clamp(48px, 7vw, 104px);
	padding-bottom: clamp(48px, 7vw, 104px);
}

.qg-about-intro__text {
	flex: 999 1 520px;
	min-width: 0;
}

.qg-about-intro__text .qg-label {
	margin-bottom: 20px;
}

.qg-about-intro__text h1 {
	margin-bottom: 32px;
	font-size: clamp(40px, 6vw, 76px);
	line-height: 1.05;
}

.qg-about-quote {
	max-width: 26em;
	margin: 0;
	font-family: var(--qg-hand);
	font-size: clamp(27px, 2.6vw, 32px);
	line-height: 1.3;
}

.qg-about-quote p {
	margin: 0 0 16px;
}

.qg-about-intro__figure {
	flex: 1 1 320px;
	max-width: 460px;
	margin: 0 auto;
}

.qg-card-band {
	padding-top: clamp(56px, 7vw, 96px);
	padding-bottom: clamp(56px, 7vw, 96px);
}

.qg-regcard {
	max-width: 900px;
	margin: 0 auto;
	background-color: var(--qg-white);
	background-image: var(--qg-ruled);
	border: 1px solid var(--qg-navy);
	box-shadow: 0 16px 36px rgba(20, 33, 61, 0.12);
}

.qg-regcard__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px 24px;
	padding: 20px clamp(20px, 3vw, 36px);
	border-bottom: 1px solid var(--qg-navy);
}

.qg-regcard__head h2 {
	font-family: var(--qg-print);
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.qg-regcard__head span {
	font-family: var(--qg-hand);
	font-size: 24px;
	font-weight: 600;
}

.qg-regcard dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	column-gap: 40px;
	margin: 0;
	padding: 8px clamp(20px, 3vw, 36px) 0;
}

.qg-regcard dl > div {
	padding: 16px 0;
	border-bottom: 1px dotted var(--qg-dots);
}

.qg-regcard dt {
	color: var(--qg-slate);
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.qg-regcard dd {
	margin: 2px 0 0;
	font-family: var(--qg-hand);
	font-size: 28px;
	font-weight: 500;
	line-height: 1.15;
}

.qg-regcard__name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-family: var(--qg-print) !important;
	font-size: 16px !important;
	color: var(--qg-slate);
}

.qg-regcard__name .qg-redact {
	width: 150px;
	height: 16px;
}

.qg-regcard__wide {
	padding: 16px clamp(20px, 3vw, 36px);
	border-bottom: 1px dotted var(--qg-dots);
}

.qg-regcard__wide p:last-child {
	margin-top: 4px;
	font-family: var(--qg-hand);
	font-size: 32px;
	font-weight: 500;
	line-height: 1.15;
}

.qg-regcard__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px 32px;
	padding: 24px clamp(20px, 3vw, 36px) 28px;
}

.qg-regcard__signature {
	flex: 1 1 260px;
}

.qg-regcard__signature p:first-child {
	margin-bottom: 2px;
	font-family: var(--qg-hand);
	font-size: 38px;
	font-weight: 600;
	line-height: 1;
	transform: rotate(-2deg);
	transform-origin: left bottom;
}

.qg-regcard__signature p:last-child {
	padding-top: 6px;
	border-top: 1px solid var(--qg-navy);
	color: var(--qg-slate);
	font-size: 14px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.qg-regcard__confirmed {
	flex: 1 1 260px;
	color: var(--qg-slate);
	font-size: 16px;
	line-height: 1.5;
}

.qg-words {
	padding-top: clamp(64px, 8vw, 112px);
}

.qg-words > h2 {
	margin-bottom: 44px;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--qg-navy);
	font-size: clamp(28px, 3vw, 38px);
}

/* Q and A pairs written in the block editor as Group blocks, or as h3 + p. */
.qg-words__content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 48px 64px;
}

.qg-words__content > * {
	margin: 0;
}

.qg-words__content h3 {
	margin: 0 0 12px;
	font-size: 27px;
	line-height: 1.25;
}

.qg-words__content p {
	margin: 0;
	color: var(--qg-ink-2);
	font-size: 18px;
}

.qg-rules {
	padding-top: clamp(64px, 8vw, 112px);
	padding-bottom: clamp(64px, 8vw, 112px);
	scroll-margin-top: 24px;
}

.qg-rules .qg-label {
	margin-bottom: 18px;
}

.qg-rules h2 {
	margin-bottom: 20px;
	font-size: clamp(32px, 4.2vw, 52px);
}

.qg-rules__lead {
	max-width: 38em;
	margin-bottom: 52px;
	color: var(--qg-slate);
}

.qg-rules__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin: 0 0 48px;
	padding: 0;
	list-style: none;
}

.qg-rules__list li {
	padding-top: 20px;
	border-top: 1px solid var(--qg-navy);
}

.qg-rules__list .qg-number {
	display: block;
	margin-bottom: 10px;
}

.qg-rules__title {
	display: block;
	margin-bottom: 8px;
	font-family: var(--qg-hand);
	font-size: 26px;
	font-weight: 600;
	line-height: 1.2;
	hyphens: none;
}

.qg-rules__text {
	display: block;
	color: var(--qg-slate);
	font-size: 17px;
}

.qg-ai-note {
	max-width: 46em;
	padding: 18px 22px;
	background-color: var(--qg-white);
	background-image: var(--qg-ruled-strong);
	border-top: 1px solid var(--qg-rule);
	border-bottom: 1px solid var(--qg-rule);
	color: var(--qg-ink-2);
	font-size: 17px;
	line-height: 1.55;
}

.qg-reception-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px 48px;
	margin-top: clamp(56px, 7vw, 88px);
	padding-top: clamp(40px, 5vw, 64px);
	border-top: 1px solid var(--qg-rule);
}

.qg-reception-cta > div {
	flex: 999 1 420px;
}

.qg-reception-cta .qg-label {
	margin-bottom: 14px;
}

.qg-reception-cta h2 {
	margin-bottom: 12px;
	font-size: clamp(28px, 3vw, 38px);
}

.qg-reception-cta p {
	max-width: 34em;
	color: var(--qg-slate);
}

/* 13. Reception (contact) page */
.qg-reception {
	display: flex;
	flex-wrap: wrap;
	gap: 48px 80px;
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(48px, 7vw, 96px);
}

.qg-reception__intro {
	flex: 1 1 320px;
	min-width: 0;
}

.qg-reception__intro h1 {
	margin: 0 0 20px;
	font-size: clamp(40px, 5vw, 64px);
}

.qg-reception__intro p {
	margin-bottom: 16px;
	color: var(--qg-slate);
}

.qg-reception__email {
	font-size: 22px;
}

.qg-reception__form {
	flex: 999 1 480px;
	min-width: 0;
}

.qg-note-anchor {
	scroll-margin-top: 24px;
}

.qg-form {
	padding: clamp(20px, 3vw, 36px);
	background-color: var(--qg-white);
	background-image: var(--qg-ruled);
	border: 1px solid var(--qg-navy);
	box-shadow: 0 16px 36px rgba(20, 33, 61, 0.12);
}

.qg-field {
	margin-bottom: 22px;
}

.qg-field label {
	display: block;
	margin-bottom: 6px;
	color: var(--qg-slate);
	font-size: 15px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.qg-field input,
.qg-field select,
.qg-field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px dotted var(--qg-dots);
	background: transparent;
	color: var(--qg-navy);
	font-family: var(--qg-hand);
	font-size: 26px;
	line-height: 1.3;
}

.qg-field textarea {
	min-height: 180px;
	background-color: var(--qg-white);
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, rgba(20, 33, 61, 0.16) 33px, rgba(20, 33, 61, 0.16) 34px);
	line-height: 34px;
	resize: vertical;
}

.qg-field input:focus,
.qg-field select:focus,
.qg-field textarea:focus {
	outline: 2px solid var(--qg-handle);
	outline-offset: 2px;
}

.qg-field__error {
	display: block;
	margin-top: 6px;
	color: #7a1f1f;
	font-size: 16px;
}

.qg-field--consent {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 17px;
	color: var(--qg-slate);
}

.qg-field--consent input {
	width: 22px;
	min-height: 22px;
	height: 22px;
	margin-top: 4px;
	flex: 0 0 22px;
}

.qg-field--consent label {
	text-transform: none;
	letter-spacing: 0;
	font-size: 17px;
}

/* Honeypot: hidden from people, visible to simple bots. */
.qg-field--hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* 14. Places page */
.qg-places {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 40px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qg-places > li {
	padding-top: 18px;
	border-top: 1px solid var(--qg-navy);
}

.qg-places__country {
	display: inline-block;
	margin-bottom: 8px;
	font-family: var(--qg-hand);
	font-size: 34px;
	font-weight: 600;
	color: var(--qg-navy);
	text-decoration: none;
}

.qg-places ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.qg-places ul a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--qg-rule);
	color: var(--qg-navy);
	text-decoration: none;
}

.qg-places ul a span {
	color: var(--qg-slate);
	font-size: 16px;
}

/* Generic pages */
.qg-page {
	padding-top: clamp(48px, 7vw, 96px);
	padding-bottom: clamp(48px, 7vw, 96px);
}

.qg-page h1 {
	margin-bottom: 32px;
	font-size: clamp(40px, 5vw, 64px);
}

.qg-page .qg-entry {
	max-width: 720px;
}

.qg-page .qg-entry > p:first-of-type {
	padding-top: 0;
	background: none;
	font-family: var(--qg-print);
	font-size: 21px;
	line-height: 1.65;
}

/* 15. 404 */
.qg-404 {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 40px 80px;
	padding-top: clamp(48px, 7vw, 104px);
	padding-bottom: clamp(48px, 7vw, 104px);
}

.qg-404__hanger {
	flex: 0 0 176px;
	margin: 0 auto;
}

.qg-404__text {
	flex: 999 1 420px;
}

.qg-404__text h1 {
	margin-bottom: 20px;
	font-size: clamp(40px, 5vw, 64px);
}

.qg-404__text p {
	margin-bottom: 28px;
	color: var(--qg-slate);
}

/* 16. Footer */
.qg-footer {
	border-top: 3px double var(--qg-navy);
	background-color: var(--qg-white);
	background-image: var(--qg-ruled);
	color: var(--qg-slate);
}

.qg-footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 32px;
	padding-top: 28px;
	padding-bottom: 28px;
	font-size: 16px;
}

.qg-footer ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.qg-footer a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: var(--qg-navy);
	text-decoration: none;
	font-size: 17px;
}

.qg-footer a:hover {
	text-decoration: underline;
}

/* 17. WordPress core classes */
.alignleft {
	float: left;
	margin: 0 24px 16px 0;
}

.alignright {
	float: right;
	margin: 0 0 16px 24px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide {
	margin-left: -40px;
	margin-right: -40px;
	max-width: calc(100% + 80px);
}

.alignfull {
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: 100vw;
	width: 100vw;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
	color: var(--qg-slate);
	font-size: 16px;
}

.sticky,
.bypostauthor {
	display: block;
}

.wp-block-image img {
	height: auto;
}

/* 18. Motion */
@keyframes qg-hanger-sway {
	0% {
		transform: rotate(-8deg);
	}
	35% {
		transform: rotate(5deg);
	}
	65% {
		transform: rotate(-3deg);
	}
	100% {
		transform: rotate(-4deg);
	}
}

.qg-hanger {
	display: block;
	width: 100%;
	height: auto;
	transform: rotate(-4deg);
	transform-origin: 50% 12%;
	animation: qg-hanger-sway 2.4s ease-out 0.3s 1 both;
}

.qg-reveal {
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.qg-reveal.is-pending {
	opacity: 0;
	transform: translateY(14px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.qg-hanger {
		animation: none;
	}

	.qg-reveal,
	.qg-reveal.is-pending {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* Tablet and phone tweaks */
@media (max-width: 782px) {
	body {
		font-size: 19px;
	}

	.qg-entry {
		font-size: 20px;
	}

	.alignwide {
		margin-left: 0;
		margin-right: 0;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.qg-grid,
	.qg-related .qg-grid {
		grid-template-columns: 1fr;
	}

	.qg-register__no {
		flex-basis: 100%;
	}

	.qg-folio dl {
		grid-template-columns: 1fr 1fr;
	}

	.qg-regcard dl {
		grid-template-columns: 1fr;
	}

	.qg-words__content {
		grid-template-columns: 1fr;
	}
}

@media print {
	.qg-header,
	.qg-footer,
	.qg-story-body__aside,
	.qg-related {
		display: none;
	}

	body {
		background: none;
	}
}
