/* The Sage Says — homepage, matching the mockup.
   Only the header and navigation for now; content comes in later steps. */

:root {
	--green: #ffae6e;
	--paper: #f2f2f1;
	--text: #ffffff;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--paper);
	/* The supplied texture, tiled so it continues without a visible edge. */
	background-image: url("texture-seamless.jpg");
	background-repeat: repeat;
	background-size: 720px auto;
	font-family: Georgia, "Times New Roman", serif;
}

.site-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	background-color: var(--green);
	color: var(--text);
	padding: 1rem 2rem;
	min-height: 72px;
}

.site-title {
	color: var(--text);
	text-decoration: none;
	font-size: clamp(1.5rem, 2.5vw, 2rem);
	font-weight: 700;
	letter-spacing: 0.01em;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
}

.site-nav a {
	color: var(--text);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
	color: #ffd166;
	text-decoration: underline;
	outline: none;
}

.page {
	min-height: calc(100vh - 72px);
}

/* Hamburger button: hidden on desktop. */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 10px;
	background: none;
	border: none;
	cursor: pointer;
}
.menu-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--text);
	transition: transform 200ms ease, opacity 200ms ease;
}
.menu-toggle.open span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
	opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}
.menu-toggle:focus-visible {
	outline: 2px solid var(--text);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.site-header {
		position: relative;
		padding: 1rem;
	}
	.menu-toggle {
		display: flex;
	}
	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		gap: 0;
		background: var(--green);
		padding: 0.25rem 1rem 1rem;
		box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
		z-index: 10;
	}
	.site-nav.open {
		display: flex;
	}
	.site-nav a {
		padding: 0.75rem 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.25);
		font-size: 1rem;
	}
	.site-nav a:last-child {
		border-bottom: none;
	}
}

/* ---------- Hero ---------- */
:root {
	--orange: #ec6330;
	--peach: #ffae6e;
	--blush: #ffdfe0;
	--aqua: #8edde0;
	--hero-bg: #f7f2e8;
	--hero-text: #252a26;
	--hero-muted: #4a4a44;
	--hero-bg-dark: #252a26;
	--hero-text-light: #f7f2e8;
}

.hero {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
	align-items: center;
	background-color: var(--hero-bg);
	color: var(--hero-text);
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 5vw, 4rem);
	min-height: calc((100vh - 72px) * 0.49); /* 30% shorter again */
}

.hero__topics {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--orange);
	margin: 0 0 1.5rem;
}

.hero__title {
	font-weight: 400;
	font-size: clamp(2.4rem, 5vw, 4rem);
	line-height: 1.05;
	margin: 0 0 1.5rem;
}
.hero__title em {
	color: var(--orange);
	font-style: italic;
}

.hero__body {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 1.05rem;
	line-height: 1.7;
	color: var(--hero-muted);
	max-width: 34rem;
	margin: 0 0 2rem;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.25rem 1.75rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.btn-primary {
	background: var(--hero-bg-dark);
	color: var(--hero-text-light);
	text-decoration: none;
	padding: 0.9rem 1.4rem;
	font-weight: 500;
	transition: background-color 200ms ease, color 200ms ease;
}
.btn-primary:hover,
.btn-primary:focus-visible {
	background: var(--orange);
	color: var(--hero-text-light);
	outline: none;
}

.btn-link {
	color: var(--hero-text);
	text-decoration: none;
	font-weight: 500;
	transition: color 200ms ease;
}
.btn-link:hover,
.btn-link:focus-visible {
	color: var(--orange);
	outline: none;
}

/* Cards */
.hero__cards {
	position: relative;
	height: 500px;
	min-width: 0;
}

.polaroid {
	position: absolute;
	margin: 0;
	padding: 12px 12px 48px;
	background: #3b433d;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
	transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(var(--rot, 0deg));
	cursor: grab;
	touch-action: none;
	user-select: none;
	transition: box-shadow 200ms ease;
}
.polaroid.is-dragging {
	cursor: grabbing;
	box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}
.polaroid img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 5 / 4;
	object-fit: cover;
	pointer-events: none;
}
.polaroid figcaption {
	position: absolute;
	left: 14px;
	bottom: 12px;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 1.05rem;
	color: var(--blush);
}

.polaroid--history {
	top: 0;
	left: 3%;
	width: 235px;
	background: #3b433d;
}
.polaroid--politics {
	top: 25px;
	right: 2.5%;
	width: 270px;
	background: #3b433d;
}
.polaroid--travel {
	top: 250px;
	left: 30%;
	width: 245px;
	background: #3b433d;
}
.polaroid--history figcaption,
.polaroid--politics figcaption,
.polaroid--travel figcaption {
	color: var(--aqua);
}

@media (max-width: 860px) {
	.hero {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.hero__cards {
		height: 440px;
	}
}
@media (max-width: 480px) {
	.hero__cards {
		height: 420px;
	}
	.polaroid--history { width: 180px; }
	.polaroid--politics { width: 200px; }
	.polaroid--travel { width: 190px; left: 40px; }
}

/* ---------- Blank sections below the hero (for scrolling) ---------- */
.blank-section {
	min-height: 100vh;
}


/* ---------- Journal section (layout from reference; our palette) ---------- */
.journal {
	width: 100%;
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem);
	color: var(--hero-text);
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.journal__head {
	padding-bottom: 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
	margin-bottom: 1.5rem;
}
.journal__kicker {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--orange);
	margin: 0 0 0.5rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.journal__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(1.9rem, 4vw, 2.8rem);
	margin: 0;
}

.feature {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	align-items: center;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.feature--reverse .feature__media { order: 2; }

.feature__label,
.card__label {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 0 0 1rem;
	color: var(--orange);
}
.feature__title,
.card__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	line-height: 1.2;
	margin: 0 0 0.75rem;
}
.feature__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.card__title { font-size: 1.35rem; }
.feature__title a,
.card__title a {
	color: var(--hero-text);
	text-decoration: none;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 1px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: color 0.2s ease, background-size 0.3s ease;
}
.feature__title a:hover,
.feature__title a:focus-visible,
.card__title a:hover,
.card__title a:focus-visible {
	color: var(--orange);
	background-size: 100% 1px;
	outline: none;
}
.feature__excerpt {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hero-muted);
	margin: 0 0 0.5rem;
}
.feature__meta,
.card__meta {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.78rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--hero-muted);
	margin: 0;
}

/* Placeholder image blocks (layout only). */
.feature__media,
.card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	padding: 1rem;
	overflow: hidden;
}
.feature__media::before,
.card__media::before {
	content: "";
	position: absolute;
	inset: 1rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	pointer-events: none;
}
.feature__media span,
.card__media span {
	position: relative;
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: clamp(5rem, 12vw, 9rem);
	line-height: 1;
	opacity: 0.9;
}
.feature__media--blush,
.card__media--peach { background: var(--blush); color: var(--orange); }
.feature__media--blush span { color: var(--orange); }
.card__media--peach { background: var(--peach); }
.card__media--peach span { color: #fff4ea; }
.card__media--aqua { background: var(--aqua); }
.card__media--aqua span { color: #1f4a4c; }
.feature__media--orange { background: var(--orange); }
.feature__media--orange span { color: var(--blush); }
.card__label--aqua { color: #1f4a4c; }
.card__label--peach { color: #ec6330; }

.journal__pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}
.card { min-width: 0; }
.card__media { margin-bottom: 1rem; }

@media (max-width: 760px) {
	.feature,
	.journal__pair {
		grid-template-columns: 1fr;
	}
	.feature--reverse .feature__media { order: 0; }
}

/* Real images in the journal cards: fill the slot, keep proportions via crop. */
.feature__media img,
.card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ---------- Two-column layout: content (90%) + sidebar (10%) ---------- */
.layout {
	display: grid;
	grid-template-columns: 80% 20%;
	align-items: start;
	border-top: 1px solid rgba(0, 0, 0, 0.18);
}
.layout__main {
	min-width: 0;
}

/* Sticky sidebar with its own scroll, independent of the page. */
.sidebar {
	position: sticky;
	top: 0;
	height: 100vh;
	overflow-y: auto;
	border-left: 1px solid rgba(0, 0, 0, 0.12);
	padding: 1.25rem 0.75rem;
	background: var(--hero-bg);
	color: var(--hero-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.78rem;
	scrollbar-width: thin;
}
.sidebar__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	margin: 0.25rem 0 0.6rem;
	color: var(--peach);
}
.sidebar__topics {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	margin-bottom: 1.25rem;
}
.sidebar__topics a {
	color: var(--hero-text);
	text-decoration: none;
	padding: 0.2rem 0;
}
.sidebar__topics a:hover,
.sidebar__topics a:focus-visible {
	color: var(--orange);
	outline: none;
}
.sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sidebar__item {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.sidebar__item a {
	display: block;
	padding: 0.6rem 0;
	color: var(--hero-text);
	text-decoration: none;
	line-height: 1.35;
}
.sidebar__item a:hover,
.sidebar__item a:focus-visible {
	color: var(--peach);
	outline: none;
}
.sidebar__topic {
	display: block;
	font-size: 0.66rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--aqua);
	margin-bottom: 0.2rem;
}
.sidebar__sentinel {
	height: 1px;
}

/* On phones there isn't room for a 10% sidebar; it is hidden. */
@media (max-width: 760px) {
	.layout {
		grid-template-columns: 1fr;
	}
	.sidebar {
		display: none;
	}
}

/* ---------- Submission section (layout from reference; our palette) ---------- */
.submit {
	display: grid;
	grid-template-columns: 5fr 6fr;
	gap: clamp(2rem, 4vw, 4rem);
	align-items: start;
	padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 3vw, 2.5rem);
	color: var(--hero-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	border-top: 1px solid rgba(0, 0, 0, 0.18);
}
.submit__kicker {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #5f7d62;
	margin: 0 0 1rem;
}
.submit__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(2.2rem, 4.5vw, 3.6rem);
	line-height: 1.08;
	margin: 0 0 1.25rem;
}
.submit__title em {
	color: #5f7d62;
	font-style: italic;
}
.submit__lede {
	color: var(--hero-muted);
	line-height: 1.65;
	margin: 0 0 1.5rem;
	max-width: 30rem;
}
.submit__topics {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--hero-muted);
	border-top: 1px solid rgba(0, 0, 0, 0.15);
	padding-top: 1.25rem;
	margin: 0 0 1.75rem;
}
.submit__steps {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.9rem;
	color: var(--hero-muted);
}
.submit__steps li span {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	color: #5f7d62;
	margin-right: 0.9rem;
}

.submit__form {
	background: #fffdf7;
	border: 1px solid rgba(0, 0, 0, 0.12);
	padding: clamp(1.5rem, 3vw, 2.25rem);
	color: var(--hero-text);
}
.submit__form-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 1.9rem;
	margin: 0 0 0.25rem;
}
.submit__note {
	color: var(--hero-muted);
	font-size: 0.9rem;
	margin: 0 0 1.5rem;
}
.submit__form .field {
	display: grid;
	gap: 0.4rem;
	margin-bottom: 1rem;
}
.submit__form .field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}
.submit__form label {
	font-size: 0.9rem;
	font-weight: 500;
}
.submit__form input,
.submit__form select,
.submit__form textarea {
	font: inherit;
	font-size: 0.95rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fff;
	color: var(--hero-text);
	width: 100%;
}
.submit__form textarea {
	resize: vertical;
}
.submit__form input:focus,
.submit__form select:focus,
.submit__form textarea:focus {
	outline: 2px solid var(--orange);
	outline-offset: 1px;
}
.consent {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	font-weight: 400;
	font-size: 0.85rem;
	color: var(--hero-muted);
	margin: 0.5rem 0 1.25rem;
	line-height: 1.5;
}
.consent input {
	margin-top: 0.25rem;
	width: auto;
}
.submit__button {
	width: 100%;
	padding: 0.95rem 1rem;
	border: none;
	background: var(--hero-bg-dark);
	color: var(--hero-text-light);
	font: inherit;
	font-size: 1rem;
	cursor: pointer;
	transition: background-color 200ms ease;
}
.submit__button:hover,
.submit__button:focus-visible {
	background: var(--orange);
	outline: none;
}

@media (max-width: 860px) {
	.submit {
		grid-template-columns: 1fr;
	}
}
@media (max-width: 560px) {
	.submit__form .field-row {
		grid-template-columns: 1fr;
	}
}

/* ---------- Logo in the header ---------- */
.site-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}
.site-logo {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}
.site-title .site-wordmark {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.05rem, 2vw, 1.4rem);
	font-weight: 400;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1c1712;
}
@media (max-width: 640px) {
	.site-logo { width: 36px; height: 36px; }
	.site-title .site-wordmark { letter-spacing: 0.1em; }
}

/* ---------- Footer (layout from reference; logo palette) ---------- */
.footer {
	background: #1c1712;
	color: #f1e6d2;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	padding: 0 clamp(1.25rem, 3vw, 2.5rem) 1.5rem;
}
.footer__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1.25rem 0;
	border-bottom: 1px solid rgba(241, 230, 210, 0.18);
}
.footer__tagline {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	color: #ffdfe0;
	margin: 0;
}
.footer__eop {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #ffae6e;
	margin: 0;
}
.footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 2rem;
	padding: 2.5rem 0 2rem;
}
.footer__name {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin: 0 0 0.75rem;
	color: #f1e6d2;
}
.footer__about {
	max-width: 22rem;
	line-height: 1.6;
	color: #ffdfe0;
	margin: 0 0 2.5rem;
}
.footer__quote {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	color: #ffae6e;
	margin: 0;
}
.footer__heading {
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8edde0;
	margin: 0 0 1rem;
}
.footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 0.65rem;
}
.footer ul a,
.footer__bottom a {
	color: #f1e6d2;
	text-decoration: none;
}
.footer ul a:hover,
.footer ul a:focus-visible,
.footer__bottom a:hover,
.footer__bottom a:focus-visible {
	color: #ec6330;
	outline: none;
}
.footer__bottom {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	border-top: 1px solid rgba(241, 230, 210, 0.18);
	padding-top: 1.25rem;
	font-size: 0.85rem;
	color: #ffdfe0;
}
.footer__bottom nav a {
	margin-left: 1.25rem;
}
@media (max-width: 760px) {
	.footer__grid {
		grid-template-columns: 1fr 1fr;
	}
	.footer__brand {
		grid-column: 1 / -1;
	}
}

/* Compact form: tighter spacing so the whole form is shorter. */
.submit__form {
	padding: 1.25rem 1.5rem;
}
.submit__form-title {
	font-size: 1.6rem;
}
.submit__note {
	margin-bottom: 1rem;
}
.submit__form .field {
	gap: 0.3rem;
	margin-bottom: 0.7rem;
}
.submit__form input,
.submit__form select,
.submit__form textarea {
	padding: 0.5rem 0.75rem;
}
.submit__form textarea {
	min-height: 0;
}
.consent {
	margin: 0.25rem 0 0.9rem;
}
.submit__button {
	padding: 0.75rem 1rem;
}

/* ---------- Q&A teaser (above the submission section) ---------- */
.qa-teaser {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	padding: 1.25rem clamp(1.25rem, 3vw, 2.5rem);
	border-top: 1px solid rgba(0, 0, 0, 0.18);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.qa-teaser__kicker {
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--orange);
	margin: 0 0 0.25rem;
}
.qa-teaser__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 1.35rem;
	margin: 0;
	color: var(--hero-text);
}
.qa-teaser__link {
	color: var(--orange);
	text-decoration: none;
	font-weight: 600;
}
.qa-teaser__link:hover,
.qa-teaser__link:focus-visible {
	color: var(--hero-text);
	outline: none;
}

/* ---------- Q&A page ---------- */
.qa-page {
	max-width: 900px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem);
	color: var(--hero-text);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.qa-page__kicker {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--orange);
	margin: 0 0 0.5rem;
}
.qa-page__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(2rem, 4vw, 3rem);
	margin: 0 0 0.75rem;
}
.qa-page__lede {
	color: var(--hero-muted);
	margin: 0 0 2rem;
	max-width: 36rem;
	line-height: 1.6;
}
.qa__item {
	border-top: 1px solid rgba(0, 0, 0, 0.14);
	padding: 1rem 0;
}
.qa__item:last-child {
	border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}
.qa__item summary {
	cursor: pointer;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.2rem;
	list-style: none;
}
.qa__item summary::-webkit-details-marker {
	display: none;
}
.qa__item summary::after {
	content: "+";
	float: right;
	color: var(--orange);
}
.qa__item[open] summary::after {
	content: "−";
}
.qa__item summary:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 2px;
}
.qa__item p {
	color: var(--hero-muted);
	line-height: 1.65;
	margin: 0.75rem 0 0;
}

/* Q&A strip: hero background colour, with space before the submission section. */
.qa-teaser {
	background: var(--hero-bg);
	margin-bottom: 0;
}

/* ---------- Ask a question form (Q&A page) ---------- */
.ask {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.14);
	max-width: 640px;
}
.ask__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 1.8rem;
	margin: 0 0 0.4rem;
	color: var(--hero-text);
}
.ask__lede {
	color: var(--hero-muted);
	margin: 0 0 1.25rem;
}
.ask__form {
	display: grid;
	gap: 0.8rem;
}
.ask__field {
	display: grid;
	gap: 0.3rem;
}
.ask__field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hero-text);
}
.ask__field input,
.ask__field textarea {
	font: inherit;
	font-size: 0.95rem;
	padding: 0.55rem 0.75rem;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fffdf7;
	color: var(--hero-text);
	width: 100%;
}
.ask__field input:focus,
.ask__field textarea:focus {
	outline: 2px solid var(--orange);
	outline-offset: 1px;
}
.ask__button {
	justify-self: start;
	padding: 0.75rem 1.4rem;
	border: none;
	background: var(--hero-bg-dark);
	color: var(--hero-text-light);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease;
}
.ask__button:hover,
.ask__button:focus-visible {
	background: var(--orange);
	outline: none;
}
.ask__status {
	margin: 0;
	font-size: 0.9rem;
	color: #2f6b45;
	min-height: 1.2em;
}
.ask__status.is-error {
	color: #9c3b2e;
}

/* ---------- Topic pages ---------- */
.is-active {
	color: var(--orange) !important;
	text-decoration: underline;
	text-underline-offset: 4px;
}
.cat-page {
	background: var(--hero-bg);
	color: var(--hero-text);
	min-height: 100vh;
	padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) 3rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cat-crumbs {
	font-size: 0.82rem;
	color: var(--hero-muted);
	margin-bottom: 1.25rem;
}
.cat-crumbs a {
	color: var(--hero-muted);
}
.cat-crumbs a:hover {
	color: var(--orange);
}
.cat-kicker {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--orange);
	margin: 0 0 0.6rem;
}
.cat-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(2.6rem, 6vw, 4.6rem);
	line-height: 1;
	margin: 0 0 0.75rem;
	color: var(--hero-text);
}
.cat-desc {
	color: var(--hero-muted);
	max-width: 36rem;
	line-height: 1.6;
	margin: 0 0 2rem;
}

.cat-feature {
	display: grid;
	grid-template-columns: 55% 1fr;
	background: #2f2e28;
	margin-bottom: 2.5rem;
}
.cat-feature__media {
	min-height: 260px;
	position: relative;
	overflow: hidden;
}
.cat-feature__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.cat-feature__block {
	position: absolute;
	inset: 0;
	background: var(--peach);
}
.cat-feature__body {
	padding: clamp(1.5rem, 3vw, 2.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cat-feature__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	line-height: 1.15;
	margin: 0 0 0.75rem;
	color: var(--hero-text);
}
.cat-feature__excerpt {
	color: var(--hero-muted);
	line-height: 1.6;
	margin: 0 0 1.25rem;
}
.cat-link {
	color: var(--peach);
	text-decoration: none;
	border-bottom: 1px solid var(--peach);
	align-self: flex-start;
	padding-bottom: 2px;
}
.cat-link:hover,
.cat-link:focus-visible {
	color: var(--orange);
	border-color: var(--orange);
	outline: none;
}

.cat-tools {
	margin-bottom: 1.5rem;
}
.cat-tools__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}
.cat-section-title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	margin: 0;
	color: var(--hero-text);
}
.cat-search input {
	background: transparent;
	border: 1px solid rgba(241, 230, 210, 0.3);
	color: var(--hero-text);
	padding: 0.6rem 0.9rem;
	font: inherit;
	font-size: 0.9rem;
	width: min(320px, 70vw);
}
.cat-search input::placeholder {
	color: var(--hero-muted);
}
.cat-search input:focus {
	outline: 2px solid var(--orange);
	outline-offset: 1px;
}
.cat-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	border-bottom: 1px solid rgba(241, 230, 210, 0.2);
	padding-bottom: 0.9rem;
}
.cat-tab {
	background: none;
	border: none;
	padding: 0.2rem 0;
	color: var(--hero-muted);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
	border-bottom: 2px solid transparent;
}
.cat-tab:hover,
.cat-tab:focus-visible {
	color: var(--hero-text);
	outline: none;
}
.cat-tab.is-active {
	color: var(--hero-text);
	border-bottom-color: var(--orange);
}
.cat-count {
	font-size: 0.85rem;
	color: var(--hero-muted);
	margin: 0.9rem 0 1.25rem;
}

.cat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 2rem 1.5rem;
}
.cat-card {
	color: var(--hero-text);
	text-decoration: none;
	display: block;
}
.cat-card[hidden] {
	display: none;
}
.cat-card:hover .cat-card__title,
.cat-card:focus-visible .cat-card__title {
	color: var(--peach);
}
.cat-card:focus-visible {
	outline: 2px solid var(--orange);
	outline-offset: 4px;
}
.cat-card__media {
	aspect-ratio: 4 / 3;
	margin-bottom: 0.9rem;
}
.cat-card__media--blush { background: var(--blush); }
.cat-card__media--peach { background: var(--peach); }
.cat-card__media--aqua { background: var(--aqua); }
.cat-card__media--orange { background: var(--orange); }
.cat-card__label {
	font-size: 0.72rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--peach);
	margin: 0 0 0.35rem;
}
.cat-card__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 1.3rem;
	line-height: 1.25;
	margin: 0;
	transition: color 200ms ease;
}

@media (max-width: 760px) {
	.cat-feature {
		grid-template-columns: 1fr;
	}
}

/* ---------- Publish page (submission form) ---------- */
.publish-page {
	background: var(--hero-bg);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	min-height: calc(100vh - 72px);
}
.publish-page .submit {
	border-top: none;
	padding: 0;
	max-width: 1120px;
	margin: 0 auto;
}

/* Publish teaser on the homepage: same style as the Q&A strip. */
.publish-teaser {
	margin-top: 0;
}

/* ---------- Audit follow-ups ---------- */
.mobile-topics {
	display: none;
}
@media (max-width: 760px) {
	.mobile-topics {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem 1rem;
		padding: 1rem clamp(1.25rem, 3vw, 2.5rem);
		font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
		font-size: 0.9rem;
	}
	.mobile-topics a {
		color: var(--hero-text);
		text-decoration: none;
		padding: 0.3rem 0;
	}
	.mobile-topics a:hover,
	.mobile-topics a:focus-visible {
		color: var(--orange);
		outline: none;
	}
}

/* Reduced motion: no movement, transitions, or smooth scrolling. */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
	.polaroid {
		transition: none;
	}
}

/* Publish page status and topic empty state. */
.submit__status {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	color: #2f6b45;
	min-height: 1.2em;
}
.submit__status.is-error {
	color: #9c3b2e;
}
.cat-empty {
	padding: clamp(2rem, 5vw, 4rem) 0;
	border-top: 1px solid rgba(241, 230, 210, 0.2);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.cat-empty__text {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.4rem, 3vw, 2rem);
	color: var(--hero-text);
	margin: 0 0 1rem;
}
.cat-empty__links {
	color: var(--hero-muted);
	line-height: 1.8;
}
.cat-empty__links a {
	color: var(--peach);
}

/* ---------- About page ---------- */
.about-page {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
	color: var(--hero-text);
}
.about-page__intro {
	border-bottom: 1px solid rgba(0, 0, 0, 0.14);
	padding-bottom: 1.25rem;
	margin-bottom: 1.75rem;
}
.about-page__intro .qa-page__kicker {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.about-page__body p {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.8;
	margin: 0 0 1.4rem;
}
.about-page__body p:first-child::first-letter {
	float: left;
	font-size: 3.4em;
	line-height: 0.9;
	padding: 0.08em 0.1em 0 0;
	color: var(--orange);
}
.about-page__signoff {
	font-style: italic;
	color: var(--orange);
	font-size: clamp(1.3rem, 2.2vw, 1.6rem) !important;
	margin-top: 2rem !important;
}
.about-page__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
	margin-top: 2.5rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.about-page__link {
	color: var(--hero-text);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.about-page__link:hover,
.about-page__link:focus-visible {
	color: var(--orange);
	outline: none;
}

/* ---------- Content from the editor ---------- */
/* Topic pages: latest article and the grid of older ones. */
.cat-feature--live {
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
}
.cat-feature--live .cat-feature__media {
	display: block;
}
.cat-feature--live .cat-feature__title a {
	color: var(--hero-text);
	text-decoration: none;
}
.cat-feature--live .cat-feature__title a:hover,
.cat-feature--live .cat-feature__title a:focus-visible {
	color: var(--orange);
	outline: none;
}
.cat-feature--live .cat-link {
	color: var(--orange);
	border-color: var(--orange);
}
.cat-more .cat-section-title {
	margin-bottom: 1.25rem;
}
.cat-card__media {
	overflow: hidden;
}
.cat-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 300ms ease;
}
.cat-card:hover .cat-card__media img {
	transform: scale(1.03);
}
.cat-card__label {
	color: var(--orange);
}
.cat-card:hover .cat-card__title,
.cat-card:focus-visible .cat-card__title {
	color: var(--orange);
}

/* About page portrait. */
.about-page__portrait {
	margin: 0 0 2rem;
}
.about-page__portrait img {
	display: block;
	width: min(100%, 320px);
	aspect-ratio: 4 / 5;
	object-fit: cover;
}

/* Q&A answers with more than one paragraph. */
.qa__answer p {
	margin: 0.6rem 0 0;
	line-height: 1.65;
}

/* Article page. */
.post-page {
	max-width: 760px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.5rem) clamp(2.5rem, 6vw, 4.5rem);
	color: var(--hero-text);
}
.post__crumbs {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.82rem;
	color: var(--hero-muted);
	margin-bottom: 1.5rem;
}
.post__crumbs a {
	color: var(--hero-muted);
}
.post__crumbs a:hover {
	color: var(--orange);
}
.post__status {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.3rem;
	color: var(--hero-muted);
}
.post-page:not(.is-loaded) .post {
	display: none;
}
.post__head {
	border-bottom: 1px solid rgba(0, 0, 0, 0.14);
	padding-bottom: 1.5rem;
	margin-bottom: 2rem;
}
.post__topic {
	display: inline-block;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--orange);
	text-decoration: none;
	margin-bottom: 0.75rem;
}
.post__title {
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: clamp(2.1rem, 5vw, 3.3rem);
	line-height: 1.1;
	margin: 0 0 1rem;
}
.post__dek {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.1rem, 2vw, 1.3rem);
	font-style: italic;
	color: var(--hero-muted);
	line-height: 1.5;
	margin: 0 0 1rem;
}
.post__dek:empty {
	display: none;
}
.post__date {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.85rem;
	color: var(--hero-muted);
}
.post__media {
	margin: 0 0 2.25rem;
}
.post__media img {
	display: block;
	width: 100%;
	height: auto;
}
.post__body {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.05rem, 1.6vw, 1.2rem);
	line-height: 1.8;
	overflow-wrap: break-word;
}
.post__body p,
.post__body ul,
.post__body ol {
	margin: 0 0 1.4rem;
}
.post__body h2,
.post__body h3 {
	font-weight: 400;
	line-height: 1.25;
	margin: 2.5rem 0 1rem;
}
.post__body h2 { font-size: 1.7rem; }
.post__body h3 { font-size: 1.35rem; }
.post__body a {
	color: var(--orange);
}
.post__body blockquote {
	margin: 2rem 0;
	padding: 0 0 0 1.25rem;
	border-left: 3px solid var(--orange);
	font-style: italic;
	color: var(--hero-muted);
}
.post__body img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 2rem auto;
}
.post__body hr {
	border: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.14);
	margin: 2.5rem 0;
}
.post__foot {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 1.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.14);
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.post__more {
	color: var(--hero-text);
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}
.post__more:hover,
.post__more:focus-visible {
	color: var(--orange);
	outline: none;
}
.post__more--quiet {
	color: var(--hero-muted);
}

/* ---------- Articles written in the visual editor ---------- */
.post__body figure.post-figure {
	margin: 2.25rem 0;
}

.post__body figure.post-figure img,
.post__body figure.post-figure video {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	border-radius: 4px;
	background: #000;
}

.post__body figure.post-figure img {
	background: none;
}

.post__body .embed {
	position: relative;
	padding-top: 56.25%;
	border-radius: 4px;
	overflow: hidden;
	background: #000;
}

.post__body .embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.post__body figcaption {
	margin-top: 0.6rem;
	text-align: center;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--hero-muted);
}

.post__body mark {
	padding: 0 2px;
	border-radius: 2px;
	color: inherit;
}

.post__body pre {
	background: #f1ede6;
	padding: 1rem 1.1rem;
	border-radius: 6px;
	font-size: 0.9rem;
	line-height: 1.6;
	overflow-x: auto;
}

.post__body code {
	font-family: "Courier New", monospace;
	font-size: 0.92em;
}

.post__body u {
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* ---------- Comments under articles ---------- */
.comments {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(0, 0, 0, 0.14);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--hero-text);
}

.cmt-title {
	margin: 0 0 1.25rem;
	font-family: Georgia, "Times New Roman", serif;
	font-weight: 400;
	font-size: 1.6rem;
}

.cmt-title span {
	display: inline-block;
	min-width: 1.6em;
	padding: 0 0.45em;
	border-radius: 999px;
	background: #f1e4d8;
	color: var(--orange);
	font-family: system-ui, sans-serif;
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
}

.cmt-signin {
	padding: 1.1rem 1.2rem;
	margin-bottom: 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.75);
}

.cmt-signin p {
	margin: 0 0 0.75rem;
	color: var(--hero-muted);
}

.cmt-me {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-bottom: 0.6rem;
	font-size: 0.9rem;
	color: var(--hero-muted);
}

.cmt-link {
	margin-left: auto;
	border: 0;
	background: none;
	color: var(--hero-muted);
	font: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
	cursor: pointer;
}

.cmt-form {
	margin-bottom: 1.75rem;
}

.cmt-form textarea {
	display: block;
	width: 100%;
	padding: 0.8rem 0.9rem;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 0.98rem;
	line-height: 1.5;
	resize: vertical;
}

.cmt-form textarea:focus {
	outline: 2px solid var(--orange);
	outline-offset: 1px;
	border-color: transparent;
}

.cmt-form__row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.6rem;
}

.cmt-form__error {
	flex: 1;
	margin: 0;
	color: #9c3b2e;
	font-size: 0.88rem;
}

.cmt-btn {
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--hero-text);
	color: #fff;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
}

.cmt-btn:hover {
	background: var(--orange);
}

.cmt-btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

.cmt-btn--ghost {
	background: none;
	color: var(--hero-muted);
	border: 1px solid rgba(0, 0, 0, 0.18);
}

.cmt-btn--ghost:hover {
	background: #f4efe8;
	color: var(--hero-text);
}

.cmt-empty {
	color: var(--hero-muted);
	font-size: 0.95rem;
}

.cmt {
	display: flex;
	gap: 0.8rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.cmt__avatar {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #e8ddd1;
	color: #6b5a49;
	font-weight: 700;
	object-fit: cover;
}

.cmt--reply .cmt__avatar,
.cmt-me .cmt__avatar {
	width: 30px;
	height: 30px;
	font-size: 0.85rem;
}

.cmt__avatar--author {
	background: var(--orange);
	color: #fff;
	font-family: Georgia, serif;
}

.cmt__body {
	flex: 1;
	min-width: 0;
}

.cmt__meta {
	margin: 0 0 0.25rem;
	font-size: 0.9rem;
}

.cmt__time {
	color: var(--hero-muted);
}

.cmt__badge {
	display: inline-block;
	padding: 0.05rem 0.45rem;
	border-radius: 4px;
	background: var(--orange);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	vertical-align: 1px;
}

.cmt__text {
	margin: 0;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.02rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.cmt__reply {
	margin-top: 0.35rem;
	padding: 0;
	border: 0;
	background: none;
	color: var(--hero-muted);
	font: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	cursor: pointer;
}

.cmt__reply:hover {
	color: var(--orange);
}

.cmt-form--reply {
	margin: 0.75rem 0 0;
}

.cmt__replies {
	margin-left: 3rem;
	border-left: 2px solid #eadfd3;
	padding-left: 1rem;
}

.cmt__replies .cmt:last-child {
	border-bottom: 0;
}

@media (max-width: 600px) {
	.cmt__replies {
		margin-left: 1rem;
	}
}
