/**
 * Reusable UI components — Figma "Components" pages (264:513 – 264:523).
 *
 * Icons · Button (components.css) · Text Link · Eyebrow & Tag · Input &
 * Checkbox · Section Heading · Article Card · Podcast Row · Book Card ·
 * Pull Quote · Newsletter, plus the supporting editorial / commerce /
 * feedback blocks restyled on the same semantic tokens.
 *
 * Every colour, size and space reads a token from tokens.css, so the same
 * markup renders correctly on the light surface and inside `.sf-inverse`.
 * The button foundation, form-control foundation and focus ring live in
 * components.css.
 */

/* =======================================================================
 * Icons — inline SVG, currentColor, 1.5px stroke (inc/icons.php).
 * ===================================================================== */
.sf-icon {
	flex: 0 0 auto;
	vertical-align: middle;
}

/* =======================================================================
 * Text Link — Figma 267:533. Always underlined, the underline leaves on
 * hover. `.sf-link-text` is the legacy name for the same component.
 * ===================================================================== */
.sf-link-text {
	display: inline-flex;
	align-items: center;
	gap: var(--sf-space-2xs);
	padding: var(--sf-space-3xs) 0;
	border-radius: var(--sf-radius-xs);
	color: var(--sf-color-link);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-button);
	line-height: var(--sf-leading-label);
}

.sf-link-text:hover {
	color: var(--sf-color-link);
}

.sf-link-text:focus-visible {
	outline: 2px solid transparent;
	box-shadow:
		0 0 0 var(--sf-focus-ring-width) var(--sf-color-bg),
		0 0 0 calc(var(--sf-focus-ring-width) * 2) var(--sf-color-focus);
}

.sf-link-text svg,
.sf-link-text .sf-icon {
	width: 1.125rem;
	height: 1.125rem;
}

/* The underline sits on the element so legacy markup without a label span
   (text node + icon) is covered too. */
.sf-link-text,
.sf-button--text,
.sf-text-link {
	text-decoration-line: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
	transition: text-decoration-color var(--sf-duration-fast) var(--sf-ease-standard);
}

.sf-link-text:hover,
.sf-button--text:hover,
.sf-text-link:hover {
	text-decoration-color: transparent;
}

.sf-button--text .sf-button__label,
.sf-text-link__label {
	text-decoration: inherit;
}

/* =======================================================================
 * Breadcrumb — Figma 279:1186. Parent levels: muted + underlined; current
 * page: heading colour, not a link. Separator is "/".
 * ===================================================================== */
.sf-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sf-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	gap: var(--sf-space-2xs);
}

.sf-breadcrumb__link {
	color: var(--sf-color-text-muted);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-breadcrumb__link:hover {
	color: var(--sf-color-heading);
	text-decoration-color: transparent;
}

.sf-breadcrumb__separator {
	color: var(--sf-color-text-muted);
}

.sf-breadcrumb__current {
	color: var(--sf-color-heading);
}

/* =======================================================================
 * Eyebrow — Figma 267:555. Commissioner Medium 14, +8% tracking,
 * uppercase (lang="el" drops the tonos), muted. `--rule` adds the 32×1px
 * rule in the heading colour. Never the only heading on a section.
 * ===================================================================== */
.sf-eyebrow {
	display: flex;
	align-items: center;
	gap: var(--sf-space-xs);
	margin: 0;
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-xs);
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-eyebrow);
	line-height: var(--sf-leading-nav);
	text-transform: uppercase;
}

.sf-eyebrow--rule::before {
	content: "";
	flex: none;
	width: 2rem;
	height: 1px;
	background: var(--sf-color-heading);
}

/* =======================================================================
 * Tag — Figma 267:562. 12/4 padding, 2px radius, Label/Meta. Default,
 * Hover (muted surface + emphasis border), Selected (action fill).
 * ===================================================================== */
.sf-tag {
	display: inline-flex;
	align-items: center;
	padding: calc(var(--sf-space-3xs) - var(--sf-border-width)) calc(var(--sf-space-xs) - var(--sf-border-width));
	border: var(--sf-border-width) solid var(--sf-color-border-strong);
	border-radius: var(--sf-radius-xs);
	background: transparent;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-sans);
	font-size: var(--sf-text-xs);
	font-weight: var(--sf-font-weight-regular);
	line-height: var(--sf-leading-meta);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background-color var(--sf-duration-fast) var(--sf-ease-standard),
		border-color var(--sf-duration-fast) var(--sf-ease-standard),
		color var(--sf-duration-fast) var(--sf-ease-standard);
}

.sf-tag:hover {
	background: var(--sf-color-surface-muted);
	border-color: var(--sf-color-border-emphasis);
	color: var(--sf-color-heading);
}

.sf-tag:focus-visible {
	outline: 2px solid transparent;
	box-shadow:
		0 0 0 var(--sf-focus-ring-width) var(--sf-color-bg),
		0 0 0 calc(var(--sf-focus-ring-width) * 2) var(--sf-color-focus);
}

.sf-tag.is-selected,
.sf-tag[aria-pressed="true"],
.sf-tag[aria-current="true"],
.sf-tag[aria-current="page"] {
	background: var(--sf-color-action);
	border-color: var(--sf-color-action);
	color: var(--sf-color-on-action);
}

.sf-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-2xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

/* =======================================================================
 * Input & Checkbox — Figma 268:533 / 268:550. The control foundation
 * (border, padding, focus ring) is in components.css; this adds the field
 * wrapper, helper / error text and the 20px checkbox.
 * ===================================================================== */
.sf-field {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-2xs);
	align-items: stretch;
}

.sf-field__label {
	display: block;
	margin: 0;
	color: var(--sf-color-heading);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-button);
	line-height: var(--sf-leading-label);
}

.sf-field__input,
.sf-field__textarea,
.sf-field__select {
	width: 100%;
}

.sf-field__helper,
.sf-field__error {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-field__error {
	color: var(--sf-color-danger);
}

.sf-field--error .sf-field__input,
.sf-field--error .sf-field__textarea,
.sf-field--error .sf-field__select {
	border-color: var(--sf-color-danger);
}

.sf-field--disabled {
	opacity: 0.4;
}

.sf-checkbox {
	display: flex;
	align-items: flex-start;
	gap: var(--sf-space-xs);
}

.sf-checkbox__input {
	appearance: none;
	flex: none;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	padding: 0;
	background-color: var(--sf-color-surface);
	border: var(--sf-border-width) solid var(--sf-color-border-strong);
	border-radius: var(--sf-radius-xs);
	cursor: pointer;
	transition:
		background-color var(--sf-duration-fast) var(--sf-ease-standard),
		border-color var(--sf-duration-fast) var(--sf-ease-standard);
}

/* Figma Icon/check at 16px; stroke follows the on-action colour. */
.sf-checkbox__input:checked {
	background-color: var(--sf-color-action);
	border-color: var(--sf-color-action);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 1rem;
}

.sf-inverse .sf-checkbox__input:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c273b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

.sf-checkbox__input:focus-visible {
	outline: 2px solid transparent;
	box-shadow:
		0 0 0 var(--sf-focus-ring-width) var(--sf-color-bg),
		0 0 0 calc(var(--sf-focus-ring-width) * 2) var(--sf-color-focus);
}

.sf-checkbox__input:disabled {
	cursor: not-allowed;
	opacity: 0.4;
}

.sf-checkbox__label {
	flex: 1 1 0;
	min-width: 0;
	min-height: 1.5rem;
	margin: 0;
	color: var(--sf-color-text);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-regular);
	letter-spacing: 0;
	line-height: var(--sf-leading-small);
	cursor: pointer;
}

/* =======================================================================
 * Section Heading — Figma 269:534. Eyebrow + H2 (Literata 44) + intro
 * (17, muted) + text link. Stacked by default; `--split` puts the heading
 * block left and intro + link right from 1024px; `--center` centres.
 * ===================================================================== */
.sf-section-heading {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
}

.sf-section-heading__intro,
.sf-section-heading__aside {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	min-width: 0;
}

.sf-section-heading--center,
.sf-section-heading--center .sf-section-heading__intro {
	align-items: center;
	text-align: center;
}

.sf-section-heading__heading {
	max-width: 35rem;
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-4xl);
	font-weight: var(--sf-font-weight-regular);
	letter-spacing: var(--sf-tracking-h2);
	line-height: var(--sf-leading-h2);
}

.sf-section-heading__text {
	max-width: 40rem;
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

.sf-section-heading__cta {
	display: flex;
}

/* Split: the same 12 columns as the page grid — heading block cols 1–6,
   intro + link cols 8–12 (flush with the right content edge). */
@media (min-width: 64em) {
	.sf-section-heading--split {
		display: grid;
		grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
		column-gap: var(--sf-col-gap);
		align-items: end;
	}

	.sf-section-heading--split .sf-section-heading__intro {
		grid-column: 1 / span 6;
	}

	.sf-section-heading--split .sf-section-heading__aside {
		grid-column: 8 / -1;
	}
}

/* =======================================================================
 * Page intro — breadcrumb, eyebrow, H1, intro text.
 * ===================================================================== */
.sf-page-intro {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
}

.sf-page-intro__heading {
	max-width: 16em;
	margin: 0;
}

.sf-page-intro__text {
	max-width: var(--sf-measure);
	margin: 0;
	color: var(--sf-color-text-muted);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	line-height: var(--sf-leading-body);
}

/* =======================================================================
 * Layout helpers (no PHP part) — section wrapper, split, grid.
 * ===================================================================== */
.sf-section {
	padding-block: var(--sf-space-2xl);
	padding-inline: var(--sf-page-gutter);
}

.sf-section--compact {
	padding-block: var(--sf-space-xl);
}

.sf-section--light {
	background: var(--sf-color-surface);
}

.sf-section--editorial {
	background: var(--sf-color-surface-muted);
}

.sf-section--dark {
	background: var(--sf-color-bg);
	color: var(--sf-color-text);
}

.sf-split {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-lg);
}

@media (min-width: 48em) {
	.sf-split {
		flex-direction: row;
		align-items: flex-start;
	}

	.sf-split__col {
		flex: 1 1 50%;
		min-width: 0;
	}

	.sf-split--40-60 .sf-split__col:first-child {
		flex-basis: 40%;
	}

	.sf-split--40-60 .sf-split__col:last-child {
		flex-basis: 60%;
	}

	.sf-split--60-40 .sf-split__col:first-child {
		flex-basis: 60%;
	}

	.sf-split--60-40 .sf-split__col:last-child {
		flex-basis: 40%;
	}
}

.sf-grid {
	display: grid;
	gap: var(--sf-space-md);
	grid-template-columns: 1fr;
}

@media (min-width: 40em) {
	.sf-grid--2 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64em) {
	.sf-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.sf-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* =======================================================================
 * Article Card — Figma 270:536. No box: grouping by gap and type.
 *   Article            3:2 image on the muted surface, category eyebrow
 *                      + date, H4 title, excerpt, text link.
 *   Media publication  (`.sf-card--publication`) no image, top border,
 *                      outlet name + date, external arrow-up-right link.
 * ===================================================================== */
.sf-card {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	min-width: 0;
}

.sf-card__media {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	background: var(--sf-color-surface-muted);
}

.sf-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-card__body {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	width: 100%;
}

.sf-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sf-space-xs);
	width: 100%;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
}

.sf-card__category {
	margin: 0;
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-eyebrow);
	line-height: var(--sf-leading-nav);
	text-transform: uppercase;
}

.sf-card__category a {
	color: inherit;
	text-decoration: none;
}

.sf-card__category a:hover,
.sf-card__category a:focus-visible {
	color: var(--sf-color-heading);
}

.sf-card__date {
	line-height: var(--sf-leading-meta);
}

.sf-card__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-card__title a {
	color: inherit;
	text-decoration: none;
}

.sf-card__title a:hover,
.sf-card__title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-card__excerpt {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-card .sf-meta-list {
	font-size: var(--sf-text-xs);
}

.sf-card--publication {
	padding-top: var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-card--featured .sf-card__title {
	font-size: var(--sf-text-2xl);
	line-height: var(--sf-leading-h3);
}

/* =======================================================================
 * Podcast Row & Featured — Figma 271:542.
 *   Row       index (32px), title (Literata SemiBold 20) + meta, date,
 *             44px play circle; top border.
 *   Featured  240px accent cover art, "Τελευταίο επεισόδιο · N", H3,
 *             meta, primary button + text link.
 * ===================================================================== */
.sf-card-row {
	position: relative;
	display: flex;
	align-items: center;
	gap: var(--sf-space-md);
	padding-block: var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-card-row__index {
	flex: none;
	width: 2rem;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-card-row__body {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	min-width: 0;
}

.sf-card-row__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-semibold);
	line-height: var(--sf-leading-h5);
}

.sf-card-row__title a {
	color: inherit;
	text-decoration: none;
}

/* The whole row is the target of the title link (stretched link). */
.sf-card-row__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.sf-card-row__title a:hover,
.sf-card-row__title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-card-row__meta,
.sf-card-row__date {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-card-row__date {
	flex: none;
	white-space: nowrap;
}

.sf-card-row__play {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border: var(--sf-border-width) solid var(--sf-color-border-emphasis);
	border-radius: var(--sf-radius-full);
	color: var(--sf-color-heading);
	transition:
		background-color var(--sf-duration-fast) var(--sf-ease-standard),
		color var(--sf-duration-fast) var(--sf-ease-standard);
}

.sf-card-row__play .sf-icon {
	width: 1.125rem;
	height: 1.125rem;
}

.sf-card-row:hover .sf-card-row__play,
.sf-card-row:focus-within .sf-card-row__play {
	background: var(--sf-color-action);
	color: var(--sf-color-on-action);
}

.sf-card-row:has(a:focus-visible) {
	outline: var(--sf-focus-ring-width) solid var(--sf-color-focus);
	outline-offset: var(--sf-focus-ring-offset);
}

@media (max-width: 47.99em) {
	.sf-card-row {
		gap: var(--sf-space-sm);
	}

	.sf-card-row__date {
		display: none;
	}
}

.sf-podcast-featured {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-md);
	align-items: flex-start;
}

.sf-podcast-featured__cover {
	flex: none;
	width: 100%;
	max-width: 15rem;
	aspect-ratio: 1;
	overflow: hidden;
	background: var(--sf-color-accent);
}

.sf-podcast-featured__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-podcast-featured__body {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	min-width: 0;
}

.sf-podcast-featured__title {
	margin: 0;
	font-size: var(--sf-text-2xl);
	line-height: var(--sf-leading-h3);
}

.sf-podcast-featured__meta,
.sf-podcast-featured__date {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-podcast-featured__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-sm) var(--sf-space-md);
	align-items: center;
}

@media (min-width: 48em) {
	.sf-podcast-featured {
		flex-direction: row;
		align-items: center;
		gap: var(--sf-space-lg);
	}
}

/* =======================================================================
 * Book Card — Figma 272:543. The 2:3 cover (Shadow/Raised) leads; the
 * surrounding system stays neutral so the cover colours carry.
 *   Feature  cover + eyebrow, H1, lead, meta, price, button + text link.
 *   Compact  280×420 cover, eyebrow, H4, meta, price, text link.
 * ===================================================================== */
.sf-book-card {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	min-width: 0;
}

.sf-book-card__cover {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 22.5rem;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--sf-color-surface-muted);
	box-shadow: var(--sf-shadow-raised);
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	text-align: center;
}

.sf-book-card__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-book-card__body {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	min-width: 0;
}

.sf-book-card__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-weight: var(--sf-font-weight-medium);
}

.sf-book-card__title a {
	color: inherit;
	text-decoration: none;
}

.sf-book-card__title a:hover,
.sf-book-card__title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-book-card__lead {
	max-width: 37.5rem;
	margin: 0;
	color: var(--sf-color-text);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	line-height: var(--sf-leading-body);
}

.sf-book-card__meta {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-book-card__price {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	white-space: nowrap;
}

.sf-book-card__purchase {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-sm) var(--sf-space-md);
	align-items: center;
}

.sf-book-card--feature .sf-book-card__body {
	gap: 1.25rem;
}

.sf-book-card--feature .sf-book-card__title {
	font-size: var(--sf-text-5xl);
	font-weight: var(--sf-font-weight-regular);
	letter-spacing: var(--sf-tracking-h1);
	line-height: var(--sf-leading-h1);
}

.sf-book-card--feature .sf-book-card__price {
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-book-card--compact {
	max-width: 17.5rem;
}

.sf-book-card--compact .sf-book-card__cover {
	max-width: 17.5rem;
	margin-bottom: var(--sf-space-2xs);
}

.sf-book-card--compact .sf-book-card__title {
	font-size: var(--sf-text-xl);
	line-height: var(--sf-leading-h4);
}

.sf-book-card--compact .sf-book-card__price {
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-semibold);
	line-height: var(--sf-leading-h5);
}

@media (min-width: 64em) {
	.sf-book-card--feature {
		flex-direction: row;
		align-items: center;
		gap: var(--sf-space-3xl);
	}

	.sf-book-card--feature .sf-book-card__cover {
		width: 22.5rem;
	}
}

/* =======================================================================
 * Pull Quote — Figma 272:559. Literata Italic; Greek « » marks (set in the
 * text, never decorative glyphs).
 *   Large   centred 36px, 48px rule, attribution below.
 *   Medium  24px with a 2px emphasis rule on the left.
 * ===================================================================== */
.sf-quote {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-md);
	align-items: center;
	max-width: 55rem;
	margin: 0 auto;
	padding: 0;
	border: 0;
	text-align: center;
}

.sf-quote__text {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-3xl);
	font-style: italic;
	font-weight: var(--sf-font-weight-regular);
	line-height: var(--sf-leading-quote-lg);
	text-wrap: balance;
}

.sf-quote__rule {
	width: 3rem;
	height: 1px;
	border: 0;
	background: var(--sf-color-border);
}

.sf-quote__attribution {
	display: flex;
	flex-direction: column;
	gap: 2px;
	align-items: inherit;
	font-style: normal;
}

.sf-quote__name {
	color: var(--sf-color-heading);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-button);
	line-height: var(--sf-leading-label);
}

.sf-quote__role {
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-quote--medium,
.sf-quote--pull {
	align-items: flex-start;
	gap: var(--sf-space-sm);
	max-width: 40rem;
	margin: 0;
	padding-left: var(--sf-space-md);
	border-left: 2px solid var(--sf-color-border-emphasis);
	text-align: left;
}

.sf-quote--medium .sf-quote__text,
.sf-quote--pull .sf-quote__text {
	font-size: var(--sf-text-xl);
	line-height: var(--sf-leading-quote-md);
	text-wrap: pretty;
}

/* =======================================================================
 * Newsletter — Figma 272:564. Muted surface block: copy left, input +
 * button + separate (never pre-checked) consent right.
 * ===================================================================== */
.sf-newsletter {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-lg);
	padding: var(--sf-space-xl) var(--sf-space-md);
	background: var(--sf-color-surface-muted);
}

.sf-newsletter__copy,
.sf-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	min-width: 0;
}

.sf-newsletter__heading {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
}

.sf-newsletter__text {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

.sf-newsletter__row {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
}

.sf-newsletter__row .sf-field {
	flex: 1 1 auto;
	min-width: 0;
}

.sf-newsletter__row .sf-button {
	justify-content: center;
}

@media (min-width: 40em) {
	.sf-newsletter__row {
		flex-direction: row;
		align-items: flex-end;
	}

	.sf-newsletter__row .sf-button {
		flex: none;
	}
}

@media (min-width: 64em) {
	.sf-newsletter {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		padding: var(--sf-space-xl) var(--sf-space-2xl);
	}

	.sf-newsletter__copy,
	.sf-newsletter__form {
		flex: 0 1 30rem;
	}
}

/* =======================================================================
 * Editorial blocks — philosophy, feature statement.
 * ===================================================================== */
.sf-philosophy {
	display: grid;
	gap: var(--sf-space-lg);
	grid-template-columns: 1fr;
}

@media (min-width: 48em) {
	.sf-philosophy {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--sf-space-xl);
	}
}

.sf-philosophy__item {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
}

.sf-philosophy__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
}

.sf-philosophy__divider {
	width: 2rem;
	height: 1px;
	background: var(--sf-color-heading);
}

.sf-philosophy__text {
	margin: 0;
	color: var(--sf-color-text);
	line-height: var(--sf-leading-body);
}

.sf-philosophy__keywords {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-eyebrow);
	text-transform: uppercase;
}

.sf-feature-statement {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	max-width: 50rem;
	padding: var(--sf-space-xl) 0;
}

.sf-feature-statement__heading {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-4xl);
	font-weight: var(--sf-font-weight-regular);
	letter-spacing: var(--sf-tracking-h2);
	line-height: var(--sf-leading-h2);
}

.sf-feature-statement__text {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-base);
	line-height: var(--sf-leading-body);
}

/* =======================================================================
 * Commerce blocks — book purchase, order preview, checkout trust.
 * Neutral surfaces, 1px borders, no shadows other than the cover's.
 * ===================================================================== */
.sf-book-purchase {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-lg);
	padding: var(--sf-space-md);
	background: var(--sf-color-surface);
	border: var(--sf-border-width) solid var(--sf-color-border);
}

@media (min-width: 40em) {
	.sf-book-purchase {
		flex-direction: row;
		align-items: flex-start;
		padding: var(--sf-space-lg);
	}
}

.sf-book-purchase__cover {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 12.5rem;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--sf-color-surface-muted);
	box-shadow: var(--sf-shadow-raised);
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
}

.sf-book-purchase__cover img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-book-purchase__details {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	min-width: 0;
}

.sf-book-purchase__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
}

.sf-book-purchase__subtitle {
	margin: 0;
	color: var(--sf-color-text-muted);
}

.sf-book-purchase__divider {
	width: 100%;
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--sf-color-border);
}

.sf-book-purchase__price {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-book-purchase__facts {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-3xs);
	margin: 0;
	padding: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
	list-style: none;
}

.sf-book-purchase__note {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-order-preview {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	max-width: 30rem;
	padding: var(--sf-space-md);
	background: var(--sf-color-surface);
	border: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-order-preview__heading {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-lg);
	font-weight: var(--sf-font-weight-semibold);
	line-height: var(--sf-leading-h5);
}

.sf-order-preview__item {
	display: flex;
	gap: var(--sf-space-sm);
	align-items: center;
}

.sf-order-preview__thumb {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	aspect-ratio: 2 / 3;
	overflow: hidden;
	background: var(--sf-color-surface-muted);
}

.sf-order-preview__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sf-order-preview__item-title {
	margin: 0;
	color: var(--sf-color-heading);
	font-weight: var(--sf-font-weight-medium);
}

.sf-order-preview__item-qty {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
}

.sf-order-preview__divider {
	width: 100%;
	height: 1px;
	margin: 0;
	border: 0;
	background: var(--sf-color-border);
}

.sf-order-preview__total {
	display: flex;
	justify-content: space-between;
	margin: 0;
}

.sf-order-preview__total dt,
.sf-order-preview__total dd {
	margin: 0;
	color: var(--sf-color-heading);
	font-weight: var(--sf-font-weight-medium);
}

.sf-order-preview__total dd {
	font-family: var(--sf-font-serif);
}

.sf-checkout-trust {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-sm) var(--sf-space-md);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-checkout-trust__item {
	display: inline-flex;
	gap: var(--sf-space-2xs);
	align-items: center;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
}

.sf-checkout-trust__icon {
	width: 1.25rem;
	height: 1.25rem;
	color: var(--sf-color-icon);
}

/* =======================================================================
 * Contact form — uses the shared field / checkbox / button components.
 * ===================================================================== */
.sf-contact-form {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	max-width: 40rem;
	padding: var(--sf-space-md);
	background: var(--sf-color-surface);
	border: var(--sf-border-width) solid var(--sf-color-border);
}

@media (min-width: 48em) {
	.sf-contact-form {
		padding: var(--sf-space-lg);
	}
}

.sf-contact-form form {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-md);
}

.sf-contact-form form button[type="submit"] {
	align-self: flex-start;
}

.sf-contact-form__heading {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
}

/* =======================================================================
 * Feedback — empty state, search result, pagination, skeleton.
 * ===================================================================== */
.sf-empty-state {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-sm);
	align-items: flex-start;
	max-width: 36rem;
	padding-block: var(--sf-space-xl);
}

.sf-empty-state__icon {
	width: 2rem;
	height: 2rem;
	color: var(--sf-color-icon);
}

.sf-empty-state__heading {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-2xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h3);
}

.sf-empty-state__message {
	margin: 0;
	color: var(--sf-color-text-muted);
	line-height: var(--sf-leading-body);
}

.sf-empty-state__cta {
	margin-top: var(--sf-space-2xs);
}

.sf-search-result {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-2xs);
	padding-block: var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-search-result__title {
	margin: 0;
	color: var(--sf-color-heading);
	font-family: var(--sf-font-serif);
	font-size: var(--sf-text-xl);
	font-weight: var(--sf-font-weight-medium);
	line-height: var(--sf-leading-h4);
}

.sf-search-result__title a {
	color: inherit;
	text-decoration: none;
}

.sf-search-result__title a:hover,
.sf-search-result__title a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-search-result__url {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
	line-height: var(--sf-leading-meta);
	word-break: break-all;
}

.sf-search-result__excerpt {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-sm);
	line-height: var(--sf-leading-small);
}

.sf-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-sm);
	align-items: center;
	justify-content: space-between;
	padding-top: var(--sf-space-md);
	border-top: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-pagination__prev,
.sf-pagination__next {
	display: inline-flex;
	gap: var(--sf-space-2xs);
	align-items: center;
	min-height: 2.75rem;
	color: var(--sf-color-link);
	font-size: var(--sf-text-sm);
	font-weight: var(--sf-font-weight-medium);
	letter-spacing: var(--sf-tracking-button);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

.sf-pagination__prev:hover,
.sf-pagination__next:hover {
	text-decoration-color: transparent;
}

.sf-pagination__prev[aria-disabled="true"],
.sf-pagination__next[aria-disabled="true"] {
	opacity: 0.4;
	pointer-events: none;
	text-decoration: none;
}

.sf-pagination__pages {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sf-space-3xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.sf-pagination__page {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding-inline: var(--sf-space-2xs);
	border: var(--sf-border-width) solid transparent;
	border-radius: var(--sf-radius-xs);
	color: var(--sf-color-heading);
	font-size: var(--sf-text-sm);
	text-decoration: none;
}

.sf-pagination__page:hover,
.sf-pagination__page:focus-visible {
	background: var(--sf-color-surface-muted);
	border-color: var(--sf-color-border-emphasis);
}

.sf-pagination__page[aria-current="page"] {
	background: var(--sf-color-action);
	border-color: var(--sf-color-action);
	color: var(--sf-color-on-action);
}

.sf-pagination__status {
	margin: 0;
	color: var(--sf-color-text-muted);
	font-size: var(--sf-text-xs);
}

.sf-pagination__load-more {
	margin-inline: auto;
}

.sf-skeleton {
	display: flex;
	flex-direction: column;
	gap: var(--sf-space-xs);
	max-width: 22.5rem;
}

.sf-skeleton__line,
.sf-skeleton__title,
.sf-skeleton__image {
	display: block;
	background: var(--sf-color-surface-muted);
	border-radius: var(--sf-radius-xs);
}

.sf-skeleton__title {
	width: 70%;
	height: 1.5rem;
}

.sf-skeleton__line {
	width: 100%;
	height: 1rem;
}

.sf-skeleton__line--short {
	width: 55%;
}

.sf-skeleton__image {
	width: 100%;
	aspect-ratio: 3 / 2;
}

@media (prefers-reduced-motion: no-preference) {
	.sf-skeleton__line,
	.sf-skeleton__title,
	.sf-skeleton__image {
		animation: sf-skeleton-pulse 1.6s var(--sf-ease-standard) infinite;
	}

	@keyframes sf-skeleton-pulse {
		0%,
		100% {
			opacity: 1;
		}

		50% {
			opacity: 0.55;
		}
	}
}

.sf-pagination__icon--prev {
	transform: scaleX(-1);
}

/* =======================================================================
 * Inner-page shell — pages, archives, posts page, search, single.
 * (No dedicated Figma frames: composed from Foundations — the shared
 * `.sf-shell` (1280 content, fixed gutters) and the 12-column grid — plus
 * the Page Intro, Article Card, Podcast Row, Pagination and Empty State
 * components.) `.sf-page__container` is `.sf-shell` in the markup.
 * ===================================================================== */
.sf-page {
	padding-block: var(--sf-space-xl) var(--sf-space-3xl);
}

.sf-page__header {
	margin-bottom: var(--sf-space-xl);
}

.sf-page__header .sf-page-intro__heading {
	max-width: 20em;
}

/* 12-column body: reading content takes 8 columns from the desktop breakpoint. */
.sf-page__body {
	display: grid;
	grid-template-columns: repeat(var(--sf-columns), minmax(0, 1fr));
	column-gap: var(--sf-col-gap);
	row-gap: var(--sf-space-md);
}

.sf-page__body > * {
	grid-column: 1 / -1;
	min-width: 0;
}

@media (min-width: 64rem) {
	.sf-page__body > * {
		grid-column: 1 / span 8;
	}
}

.sf-page__content > * + * {
	margin-top: var(--sf-space-sm);
}

.sf-page__content img,
.sf-page__content video,
.sf-page__content iframe {
	max-width: 100%;
	height: auto;
}

.sf-page__figure {
	margin: 0;
}

.sf-page__figure img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 32rem;
	object-fit: cover;
	border-radius: var(--sf-radius-xs);
}

/* Lists: article / publication / event cards 3-up (2-up tablet, 1-up mobile). */
.sf-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	column-gap: var(--sf-col-gap);
	row-gap: var(--sf-space-xl);
}

@media (min-width: 40em) {
	.sf-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64rem) {
	.sf-card-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Podcast episodes: a row list closed by a bottom rule. */
.sf-card-list {
	border-bottom: var(--sf-border-width) solid var(--sf-color-border);
}

.sf-page__list > .sf-card-grid,
.sf-page__list > .sf-card-list {
	margin-bottom: var(--sf-space-xl);
}

.sf-page__list .search-form {
	max-width: 36rem;
}
