/* SeniorPerksList — global styles: tokens, base, buttons, header, footer, forms, interior pages. */

@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-latin-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Newsreader";
	src: url("../fonts/newsreader-latin-italic-var.woff2") format("woff2");
	font-weight: 200 800;
	font-style: italic;
	font-display: swap;
}
@font-face {
	font-family: "Figtree";
	src: url("../fonts/figtree-latin-var.woff2") format("woff2");
	font-weight: 300 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--cream: #f7f1e8;
	--paper: #fffdf8;
	--sand: #e8e2d1;
	--olive: #343a27;
	--olive-deep: #2a2f1f;
	--olive-soft: #4a5238;
	--lime: #dde98a;
	--lime-strong: #d3e26c;
	--coral: #f5b0a1;
	--coral-strong: #ef8a6f;
	--ink: #22251b;
	--muted: #525747;
	--line: #ddd4c1;
	--line-soft: #ebe4d6;

	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(20px, 4vw, 40px);
	--radius: 12px;
	--radius-sm: 6px;
	--shadow: 0 1px 2px rgb(34 37 27 / 6%), 0 12px 32px -12px rgb(34 37 27 / 22%);
	--shadow-lg: 0 2px 4px rgb(34 37 27 / 6%), 0 24px 48px -16px rgb(34 37 27 / 30%);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--header-h: 76px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1.1875rem; /* 19px: the audience reads better a size up. */
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
picture {
	display: block;
	max-width: 100%;
}
img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--serif);
	font-weight: 300;
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}
h1 em,
h2 em,
h3 em {
	font-style: italic;
}

p {
	margin: 0 0 1em;
	text-wrap: pretty;
}
p:last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}
a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--coral-strong);
	outline-offset: 3px;
	border-radius: 4px;
}

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

address {
	font-style: normal;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -100px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--olive);
	color: var(--paper);
	font-weight: 600;
	border-radius: var(--radius-sm);
}
.skip-link:focus {
	top: 12px;
}

.site-main:focus {
	outline: none;
}

.eyebrow {
	margin: 0 0 16px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.btn {
	--btn-bg: var(--olive);
	--btn-fg: var(--paper);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 52px;
	padding: 12px 24px;
	border: 1.5px solid var(--btn-border, var(--btn-bg));
	border-radius: var(--radius-sm);
	background: var(--btn-bg);
	color: var(--btn-fg);
	font: 600 1.0625rem/1.2 var(--sans);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px -10px rgb(34 37 27 / 55%);
}
.btn:active {
	transform: translateY(0);
}
.btn--sm {
	min-height: 44px;
	padding: 8px 18px;
	font-size: 1rem;
}
.btn--block {
	width: 100%;
}
.btn--lime {
	--btn-bg: var(--lime);
	--btn-fg: var(--olive-deep);
}
.btn--lime:hover {
	--btn-bg: var(--lime-strong);
}
.btn--coral {
	--btn-bg: var(--coral-strong);
	--btn-fg: var(--ink);
}
.btn--coral:hover {
	--btn-bg: #e97a5d;
}
.btn--olive:hover {
	--btn-bg: var(--olive-deep);
}
.btn--outline {
	--btn-bg: transparent;
	--btn-fg: var(--ink);
	--btn-border: var(--coral-strong);
}
.btn--outline:hover {
	--btn-bg: rgb(239 138 111 / 12%);
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	text-decoration: none;
}
.text-link .icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s var(--ease);
}
.text-link:hover .icon {
	transform: translateX(3px);
}

.icon {
	width: 24px;
	height: 24px;
	flex: none;
}

/* ---------- Logo ---------- */

.logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	color: var(--olive);
}
.logo__mark {
	width: 34px;
	height: 34px;
	flex: none;
}
.logo__cut,
.logo__tick {
	fill: var(--cream);
	stroke: var(--cream);
}
.logo__tick {
	fill: none;
}
.logo__word {
	font-family: var(--serif);
	font-size: 1.625rem;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1;
}
.logo__word em {
	font-weight: 400;
	color: #c4583c;
	padding-inline: 1px;
}
.logo--lime {
	color: var(--lime);
}
.logo--lime .logo__cut,
.logo--lime .logo__tick {
	fill: var(--olive);
	stroke: var(--olive);
}
.logo--lime .logo__tick {
	fill: none;
}
.logo--lime .logo__word em {
	color: var(--coral);
}
.logo--mark-only .logo__word {
	display: none;
}

/* ---------- Header ---------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgb(247 241 232 / 94%);
	backdrop-filter: saturate(1.4) blur(10px);
	-webkit-backdrop-filter: saturate(1.4) blur(10px);
	transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled {
	box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgb(34 37 27 / 40%);
}
.admin-bar .site-header {
	top: 32px;
}
@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}
@media (max-width: 600px) {
	.admin-bar .site-header {
		top: 0;
	}
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: var(--header-h);
}
.site-header__brand {
	text-decoration: none;
	margin-right: auto;
}
.site-nav ul {
	display: flex;
	gap: 4px;
}
.site-nav a {
	display: block;
	padding: 10px 12px;
	font-size: 1rem;
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--radius-sm);
}
.site-nav a:hover {
	background: var(--line-soft);
}
.site-header__actions {
	display: flex;
	gap: 10px;
	margin-left: 12px;
}
.site-header__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	cursor: pointer;
}

.drawer {
	border-top: 1px solid var(--line);
	background: var(--cream);
	padding: 8px var(--gutter) 24px;
}
.drawer[hidden] {
	display: none;
}
.drawer li a {
	display: block;
	padding: 14px 4px;
	border-bottom: 1px solid var(--line-soft);
	font-size: 1.25rem;
	font-weight: 500;
	text-decoration: none;
}
.drawer .btn {
	margin-top: 20px;
}

@media (max-width: 1120px) {
	.site-nav {
		display: none;
	}
}
@media (min-width: 1121px) {
	.drawer {
		display: none !important;
	}
}
@media (max-width: 1120px) {
	.site-header__toggle {
		display: inline-flex;
	}
}
@media (max-width: 640px) {
	:root {
		--header-h: 68px;
	}
	.site-header__actions .btn--outline {
		display: none;
	}
	.site-header__inner {
		gap: 10px;
	}
	.logo__word {
		font-size: 1.375rem;
	}
	.logo__mark {
		width: 28px;
		height: 28px;
	}
	.site-header__actions {
		margin-left: 0;
	}
}
@media (max-width: 359px) {
	.site-header__actions {
		display: none;
	}
}

/* ---------- Signup form ---------- */

.signup {
	max-width: 560px;
}
.signup__label {
	display: block;
	margin-bottom: 8px;
	font-size: 1rem;
	font-weight: 600;
}
.signup__row {
	display: flex;
	gap: 8px;
}
.signup__input {
	flex: 1;
	min-width: 0;
	min-height: 56px;
	padding: 12px 18px;
	border: 1.5px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	font: 400 1.125rem/1.2 var(--sans);
}
.signup__input::placeholder {
	color: #66695b;
}
.signup__input:focus-visible {
	outline: 3px solid var(--coral-strong);
	outline-offset: 1px;
	border-color: transparent;
}
.signup__input[aria-invalid="true"] {
	border-color: #b3261e;
}
.signup .btn {
	min-height: 56px;
}
.signup__note {
	margin-top: 12px;
	font-size: 0.9375rem;
	opacity: 0.85;
}
.signup__error {
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: var(--radius-sm);
	background: #fde8e4;
	color: #8a1c12;
	font-size: 1rem;
	font-weight: 500;
}
.signup__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.signup-done {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	max-width: 560px;
	padding: 18px 20px;
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	box-shadow: var(--shadow);
}
.signup-done:focus {
	outline: none;
}
.signup-done__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: 50%;
	background: var(--lime);
	color: var(--olive-deep);
}
.signup-done__title {
	margin-bottom: 4px;
	font-family: var(--serif);
	font-size: 1.375rem;
	font-weight: 500;
}
.signup-done p:not(.signup-done__title) {
	font-size: 1rem;
	color: var(--muted);
}

@media (max-width: 560px) {
	.signup__row {
		flex-direction: column;
	}
	.signup .btn {
		width: 100%;
	}
}

/* ---------- Footer ---------- */

.site-footer {
	background: var(--olive);
	color: #ecebdf;
	padding: 72px 0 40px;
	font-size: 1rem;
}
.site-footer a {
	color: inherit;
}
.site-footer__top {
	display: grid;
	grid-template-columns: minmax(280px, 1.6fr) repeat(4, minmax(0, 1fr));
	gap: 40px 32px;
	padding-bottom: 48px;
}
.site-footer__brand {
	display: inline-block;
	margin-bottom: 28px;
	text-decoration: none;
}
.site-footer__brand .logo__word {
	font-size: 2.25rem;
}
.site-footer__brand .logo__mark {
	width: 42px;
	height: 42px;
}
.site-footer__heading {
	margin-bottom: 14px;
	font-family: var(--sans);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--paper);
}
.site-footer__signup > p {
	max-width: 34ch;
	color: #d6d6c6;
}
.site-footer__signup .signup {
	margin-top: 18px;
}
.site-footer__signup .signup__label {
	color: var(--paper);
	font-size: 0.9375rem;
}
.site-footer__signup .signup__input {
	min-height: 50px;
	border-color: transparent;
	font-size: 1rem;
}
.site-footer__signup .signup .btn {
	min-height: 50px;
}
.site-footer__signup .signup__row {
	flex-direction: row;
}
.btn--icon {
	width: 50px;
	flex: none;
	padding: 0;
}
.site-footer__signup .signup .btn--icon {
	width: 50px;
}
.site-footer__signup .signup-done {
	box-shadow: none;
}
.site-footer__col li + li {
	margin-top: 10px;
}
.site-footer__col a {
	text-decoration: none;
	color: #d6d6c6;
}
.site-footer__col a:hover {
	color: var(--paper);
	text-decoration: underline;
}
.site-footer__col address {
	line-height: 1.7;
	color: #d6d6c6;
}
.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0;
	border-top: 1px solid rgb(255 255 255 / 16%);
}
.site-footer__legal-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 28px;
	font-size: 0.9375rem;
}
.site-footer__legal-links a {
	text-decoration: none;
	color: #d6d6c6;
}
.site-footer__legal-links a:hover {
	color: var(--paper);
	text-decoration: underline;
}
.site-footer__social {
	display: flex;
	gap: 8px;
}
.site-footer__social a {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgb(255 255 255 / 8%);
	color: var(--paper);
	transition: background-color 0.2s var(--ease);
}
.site-footer__social a:hover {
	background: rgb(255 255 255 / 18%);
}
.site-footer__social svg {
	width: 20px;
	height: 20px;
}
.site-footer__fine {
	max-width: 900px;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #c3c4b2;
}

@media (max-width: 1020px) {
	.site-footer__top {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.site-footer__signup {
		grid-column: 1 / -1;
	}
}
@media (max-width: 480px) {
	.site-footer__top {
		grid-template-columns: 1fr;
	}
}

/* ---------- Interior pages ---------- */

.page-hero {
	padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px);
	border-bottom: 1px solid var(--line);
}
.page-hero__title {
	max-width: 18ch;
	font-size: clamp(2.5rem, 5.5vw, 4.25rem);
}
.page-hero__meta {
	margin-top: 18px;
	color: var(--muted);
	font-size: 1rem;
}
.breadcrumbs {
	margin-bottom: 20px;
	font-size: 0.9375rem;
	color: var(--muted);
}
.breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.breadcrumbs li + li::before {
	content: "/";
	margin-right: 6px;
	opacity: 0.6;
}

.page-body {
	padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px);
}
.page-body__grid {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: clamp(32px, 6vw, 80px);
	align-items: start;
}
.toc {
	position: sticky;
	top: calc(var(--header-h) + 24px);
	padding: 22px 22px 18px;
	border-radius: var(--radius);
	background: var(--paper);
	font-size: 0.9375rem;
	box-shadow: var(--shadow);
}
.toc__title {
	margin-bottom: 10px;
	font-family: var(--sans);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}
.toc li + li {
	margin-top: 8px;
}
.toc a {
	text-decoration: none;
	line-height: 1.35;
	display: block;
}
.toc a:hover {
	text-decoration: underline;
}

.prose {
	max-width: 72ch;
}
.prose h2 {
	margin: 2.2em 0 0.6em;
	font-size: clamp(1.75rem, 3vw, 2.125rem);
	font-weight: 400;
	scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child {
	margin-top: 0;
}
.prose h3 {
	margin: 1.8em 0 0.5em;
	font-family: var(--sans);
	font-size: 1.1875rem;
	font-weight: 700;
	letter-spacing: 0;
}
.prose ul,
.prose ol {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}
.prose ul {
	list-style: disc;
}
.prose li + li {
	margin-top: 0.4em;
}
.prose a {
	color: #2f4c1c;
	font-weight: 500;
}
.prose table {
	width: 100%;
	margin: 0 0 1.5em;
	border-collapse: collapse;
	font-size: 1rem;
}
.prose th,
.prose td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}
.prose th {
	font-weight: 700;
	background: var(--line-soft);
}
.prose .table-scroll {
	overflow-x: auto;
}
.prose .callout {
	padding: 18px 22px;
	border-left: 4px solid var(--coral-strong);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--paper);
}

@media (max-width: 900px) {
	.page-body__grid {
		grid-template-columns: 1fr;
	}
	.toc {
		position: static;
	}
}

/* ---------- Sample issue ---------- */

.issue {
	padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px);
}
.issue__paper {
	max-width: 760px;
	margin-inline: auto;
	border-radius: var(--radius);
	background: var(--paper);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
}
.issue__masthead {
	padding: 36px clamp(24px, 5vw, 56px) 28px;
	background: var(--olive);
	color: var(--paper);
}
.issue__masthead .logo {
	color: var(--lime);
}
.issue__masthead .logo .logo__cut,
.issue__masthead .logo .logo__tick {
	fill: var(--olive);
	stroke: var(--olive);
}
.issue__masthead .logo .logo__tick {
	fill: none;
}
.issue__masthead .logo__word em {
	color: var(--coral);
}
.issue__meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	margin-top: 18px;
	font-size: 0.9375rem;
	color: #d6d6c6;
}
.issue__subject {
	margin-top: 14px;
	font-size: clamp(1.75rem, 4vw, 2.375rem);
	color: var(--lime);
}
.issue__body {
	padding: clamp(28px, 5vw, 48px) clamp(24px, 5vw, 56px);
}
.issue__note {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 18px;
	padding-bottom: 32px;
	border-bottom: 1px solid var(--line);
}
.issue__note img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
}
.issue__note-from {
	margin-top: 10px;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--muted);
}
.issue__potw {
	margin: 32px 0;
	padding: 24px 26px;
	border-radius: var(--radius);
	background: var(--lime);
	color: var(--olive-deep);
}
.issue__potw .eyebrow {
	margin-bottom: 8px;
}
.issue__potw h2 {
	font-size: 1.75rem;
	font-weight: 400;
	margin-bottom: 10px;
}
.issue__potw-meta {
	margin-top: 10px;
	font-size: 0.9375rem;
	font-weight: 700;
}
.issue__section + .issue__section {
	margin-top: 36px;
}
.issue__section h2 {
	padding-bottom: 10px;
	margin-bottom: 6px;
	border-bottom: 2px solid var(--olive);
	font-size: 1.875rem;
	font-weight: 400;
}
.issue__item {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--line-soft);
}
.issue__item h3 {
	font-family: var(--sans);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0;
}
.issue__item p {
	grid-column: 1;
	font-size: 1.0625rem;
	color: var(--muted);
}
.issue__item:last-child {
	border-bottom: 0;
}
.issue__tag {
	grid-column: 2;
	grid-row: 1 / span 2;
	align-self: start;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--line-soft);
	font-size: 0.8125rem;
	font-weight: 700;
	white-space: nowrap;
}
.issue__sponsor {
	margin: 36px 0;
	padding: 24px 26px;
	border: 1.5px dashed var(--coral-strong);
	border-radius: var(--radius);
	background: #fff6f1;
}
.issue__sponsor .eyebrow {
	color: #9a3c22;
	margin-bottom: 8px;
}
.issue__sponsor h2 {
	font-size: 1.625rem;
	font-weight: 400;
	margin-bottom: 10px;
}
.issue__team {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--line);
	font-size: 0.9375rem;
}
.issue__team li {
	display: flex;
	align-items: center;
	gap: 10px;
}
.issue__team img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}
.issue__footer {
	padding: 24px clamp(24px, 5vw, 56px) 32px;
	background: var(--line-soft);
	font-size: 0.875rem;
	color: var(--muted);
}
.issue__cta {
	max-width: 760px;
	margin: 48px auto 0;
	text-align: center;
}
.issue__cta h2 {
	font-size: clamp(2rem, 4vw, 2.75rem);
	margin-bottom: 20px;
}
.issue__cta .signup {
	margin-inline: auto;
	text-align: left;
}

/* ---------- 404 / index ---------- */

.not-found {
	padding: clamp(80px, 12vw, 160px) 0;
	text-align: center;
}
.not-found h1 {
	font-size: clamp(2.75rem, 6vw, 4.5rem);
	margin-bottom: 18px;
}
.not-found p {
	max-width: 46ch;
	margin-inline: auto;
	color: var(--muted);
}
.not-found .btn {
	margin-top: 28px;
}

.post-list {
	display: grid;
	gap: 24px;
	padding: 56px 0 96px;
}
.post-list article {
	padding: 28px;
	border-radius: var(--radius);
	background: var(--paper);
}
.post-list h2 {
	font-size: 1.75rem;
	margin-bottom: 10px;
}
