/* FORGED CALM theme: extra styling on top of theme.json.
   Colours come from theme.json (--wp--preset--color--*). Terracotta is for buttons, one hero word and thin rules,
   never for small text (it fails WCAG contrast on cream and pale sage). */

:root {
	--fc-green: var(--wp--preset--color--green);
	--fc-green-2: var(--wp--preset--color--green-2);
	--fc-cream: var(--wp--preset--color--cream);
	--fc-orange: var(--wp--preset--color--orange);
	--fc-sage: var(--wp--preset--color--sage);
	--fc-pale: var(--wp--preset--color--pale);
	--fc-soft: var(--wp--preset--color--soft);
	--fc-gutter: var(--wp--custom--gutter);
}

*, *::before, *::after { box-sizing: border-box; }
body { overflow-x: hidden; }
img { height: auto; }

/* ---------- focus (visible on every background) ---------- */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--fc-focus, var(--fc-green));
	outline-offset: 3px;
	border-radius: 2px;
}
.has-green-background-color, .has-green-2-background-color { --fc-focus: var(--fc-cream); }
.has-cream-background-color, .has-pale-background-color { --fc-focus: var(--fc-green); }

/* ---------- bands ---------- */
.fc-band { padding-top: clamp(2.5rem, 7vw, 6rem); padding-bottom: clamp(2.5rem, 7vw, 6rem); }
.fc-band--tight { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.fc-band > * + * { margin-block-start: 1.25rem; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-site-blocks { padding-left: 0; padding-right: 0; }
.fc-main { min-height: 40vh; }

/* ---------- labels, chips ---------- */
.fc-label, .fc-field--kicker {
	font-weight: 700; font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase;
	color: var(--fc-soft); margin: 0;
}
.has-green-background-color .fc-label, .has-green-background-color .fc-field--kicker { color: var(--fc-sage); }
.fc-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.fc-chips li { font-weight: 700; font-size: 0.9375rem; border: 2px solid currentColor; padding: 0.3rem 0.9rem; line-height: 1.3; }
.fc-chip { display: inline-block; font-weight: 800; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.4rem 0.9rem; background: var(--fc-sage); color: var(--fc-green); }
.fc-chip--coming_soon { background: var(--fc-pale); border: 2px solid var(--fc-green); }
.fc-chip--archived { background: transparent; border: 2px solid var(--fc-soft); color: var(--fc-soft); }
.fc-small { font-size: 0.9375rem; color: var(--fc-soft); }
.has-green-background-color .fc-small { color: var(--fc-sage); }
.fc-notice { font-weight: 600; }
.fc-admin-note { font-size: 0.875rem; border: 2px dashed var(--fc-soft); background: var(--fc-cream); color: var(--fc-green); padding: 0.6rem 0.8rem; margin-top: 0.8rem; }
.fc-admin-note a { color: inherit; }

/* ---------- header ---------- */
.fc-header { padding-top: 0; padding-bottom: 0; }
.fc-header__inner { min-height: 72px; gap: 1rem; }
.fc-lockup { gap: 0; }
.fc-lockup .wp-block-site-title, .fc-lockup p { margin: 0; }
.fc-lockup .wp-block-site-title { font-weight: 700; font-size: 0.6875rem; letter-spacing: 0.3em; line-height: 1.3; }
.fc-lockup .wp-block-site-title a { text-decoration: none; color: var(--fc-sage); display: inline-block; min-height: 24px; padding-top: 0.55rem; padding-bottom: 0.1rem; box-sizing: border-box; }
.fc-lockup__name { font-weight: 800; font-size: 1.375rem; line-height: 1.15; padding-bottom: 0.5rem; }
.fc-nav .wp-block-navigation-item__content { padding: 0.75rem 0.15rem; min-height: 44px; display: inline-flex; align-items: center; }
.fc-nav .wp-block-navigation-item__content { text-decoration: none; }
.fc-nav .wp-block-navigation-item__content:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; color: inherit; }
.fc-nav .wp-block-navigation__responsive-container-open { min-height: 44px; font-weight: 700; border: 2px solid var(--fc-cream); padding: 0.55rem 1.1rem; background: transparent; color: var(--fc-cream); cursor: pointer; }
.fc-nav .wp-block-navigation__responsive-container-open:hover { background: var(--fc-cream); color: var(--fc-green); }
.fc-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--fc-green); color: var(--fc-cream); padding: 1.5rem var(--fc-gutter); }
.fc-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.25rem; padding: 0.9rem 0; }
.fc-nav .wp-block-navigation__responsive-container-close { color: var(--fc-cream); }

/* ---------- headings and lead ---------- */
.fc-lead { font-size: var(--wp--preset--font-size--medium); line-height: 1.55; }
.fc-hero .fc-lead { max-width: 34em; }
.fc-subtitle, .fc-field--subtitle { font-weight: 600; font-size: 1.1875rem; line-height: 1.4; color: var(--fc-soft); margin: 0; }
.fc-intro, .fc-field--short_description { font-weight: 600; font-size: 1.1875rem; line-height: 1.45; margin: 0; }
.fc-field--series, .fc-field--format_details, .fc-field--associated_book { font-size: 0.9375rem; color: var(--fc-soft); margin: 0; }
.fc-field--series a, .fc-field--associated_book a { color: inherit; }

/* ---------- buttons ---------- */
.wp-block-button__link, .fc-button { display: inline-flex; align-items: center; justify-content: center; text-align: center; min-height: 56px; border: 2px solid transparent; text-decoration: none; cursor: pointer; }
.fc-hero .wp-block-button__link { font-size: 1.2rem; }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: inherit; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--fc-cream); color: var(--fc-green); border-color: var(--fc-cream); }
.has-cream-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-pale-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--fc-green); color: var(--fc-cream); border-color: var(--fc-green); }
.fc-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0.5rem 0 0; padding: 0; }
.fc-button { background: var(--fc-green); color: var(--fc-cream); font-weight: 700; font-size: 1.1rem; padding: 0.8rem 1.4rem; line-height: 1.2; }
.fc-button:hover { background: var(--fc-soft); color: var(--fc-cream); }
.has-green-background-color .fc-button { background: var(--fc-cream); color: var(--fc-green); }
.has-green-background-color .fc-button:hover { background: var(--fc-sage); color: var(--fc-green); }
.fc-button--outline { background: transparent; color: var(--fc-green); border-color: var(--fc-green); }
.fc-button--outline:hover { background: var(--fc-green); color: var(--fc-cream); }
.fc-buy { margin-top: 1rem; }
.fc-link { font-weight: 700; text-decoration: none; border-bottom: 3px solid currentColor; padding: 0.5rem 0; display: inline-block; }
.fc-link:hover { border-bottom-color: var(--fc-orange); color: inherit; }

/* ---------- hero ---------- */
.fc-hero { padding-top: 0; }
.fc-hero__cols { gap: 1.5rem; align-items: center; margin: 0; }
.fc-hero .wp-block-image { margin: 0; }
.fc-hero .wp-block-image img { width: 100%; aspect-ratio: 4/3; max-height: clamp(220px, 40svh, 340px); object-fit: cover; object-position: 50% 25%; }
.fc-hero .wp-block-heading { font-size: clamp(2.125rem, 8.6vw, 4.5rem); }
.fc-hero .fc-accent, .fc-accent { color: var(--fc-orange); background: transparent; }
.fc-hero__copy .wp-block-buttons { margin-top: 1.5rem; }
.fc-hero__copy .wp-block-button { flex: 1 1 100%; }
.fc-hero__copy .wp-block-button__link { width: 100%; }
@media (min-width: 480px) { .fc-hero__copy .wp-block-button { flex: 0 0 auto; } .fc-hero__copy .wp-block-button__link { width: auto; } }
@media (min-width: 782px) {
	.fc-hero { padding-top: 1.5rem; }
	.fc-hero__cols { gap: 3.5rem; }
	.fc-hero__portrait { order: 2; flex-basis: 41.6% !important; position: relative; }
	.fc-hero__copy { order: 1; flex-basis: 58.4% !important; }
	.fc-hero .wp-block-image img { aspect-ratio: 4/5; max-height: none; object-position: 50% 20%; }
	.fc-hero__portrait::after { content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem; border: 2px solid var(--fc-sage); z-index: -1; pointer-events: none; }
}

/* ---------- catalogue cards ---------- */
.fc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 2.5rem 2rem; }
@media (min-width: 640px) { .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .fc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fc-catalogue--books .fc-grid { grid-template-columns: 1fr; }
@media (min-width: 640px) { .fc-catalogue--books .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fc-card { display: flex; flex-direction: column; gap: 1rem; margin: 0; }
@media (min-width: 640px) { .fc-catalogue--books .fc-card { flex-direction: row; align-items: flex-start; } .fc-catalogue--books .fc-card__cover { flex: 0 0 38%; } }
.fc-card__cover { display: block; }
.fc-card__cover img { width: 100%; max-width: 280px; display: block; box-shadow: 8px 8px 0 var(--fc-pale); }
.fc-card__body { display: flex; flex-direction: column; gap: 0.5rem; }
.fc-card__body > * { margin: 0; }
.fc-card__title { font-size: 1.5rem; line-height: 1.15; font-weight: 900; }
.fc-card__title a { text-decoration: none; }
.fc-card__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.fc-card__subtitle { font-weight: 600; color: var(--fc-soft); }
.fc-card__price { font-weight: 700; }
.fc-card__desc { font-size: 1rem; }
.fc-empty { font-weight: 600; padding: 1.25rem 0; }
.fc-related__title, .fc-articles__title { margin-bottom: 1.5rem; }

/* ---------- single book / resource / product ---------- */
.fc-single__cols { gap: 2rem; align-items: flex-start; }
.fc-single__cols .wp-block-post-featured-image { margin: 0; }
.fc-single__cols .wp-block-post-featured-image img { box-shadow: 10px 10px 0 var(--fc-pale); max-width: 100%; height: auto; }
.fc-single__copy > * { margin-block: 0; }
.fc-single__copy > * + * { margin-block-start: 1rem; }
.fc-single__copy .wp-block-post-title { font-size: clamp(1.65rem, 6.4vw, 2.9rem); line-height: 1.1; }
.fc-single__copy .wp-block-post-title { overflow-wrap: break-word; }
@media (min-width: 782px) { .fc-single__cover { flex-basis: 28% !important; } .fc-single__copy { flex-basis: 72% !important; } .fc-single__cols { gap: 4rem; } }

/* ---------- Forge Score panels ---------- */
.fc-status-panel { border-left: 6px solid var(--fc-orange); background: var(--fc-green-2); padding: 1.1rem 1.25rem; }
.fc-status-panel p { margin: 0; }
.fc-status-panel p + p { margin-top: 0.6rem; }
.fc-status-main { font-weight: 800; font-size: 1.25rem; line-height: 1.3; }
.fc-forces { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 480px) { .fc-forces { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fc-forces { grid-template-columns: repeat(5, 1fr); } }
.fc-forces li { background: var(--fc-green-2); border-top: 4px solid var(--fc-sage); padding: 1rem 1.1rem; display: grid; gap: 0.25rem; align-content: start; }
.fc-forces strong { font-weight: 900; font-size: 1.375rem; }
.fc-forces .fc-role { font-weight: 700; font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fc-sage); }
.fc-forge-copy .wp-block-list { padding-left: 1.25rem; }

/* ---------- about ---------- */
.fc-about__cols { gap: 1.5rem; align-items: center; }
.fc-about__portrait img { width: 100%; height: auto; }
.fc-about-round img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; object-position: 50% 28%; }
@media (min-width: 782px) { .fc-about-round img { width: 100%; height: auto; border-radius: 0; aspect-ratio: 4/5; } .fc-about__cols { gap: 4.5rem; } }

/* ---------- newsletter ---------- */
.fc-newsletter__cols { gap: 2rem; align-items: flex-start; }
.fc-newsletter-card { background: var(--fc-pale); color: var(--fc-green); padding: 1.4rem 1.25rem; }
@media (min-width: 782px) { .fc-newsletter-card { padding: 1.75rem; } .fc-newsletter__cols { gap: 4.5rem; } }
.fc-newsletter-card > * + * { margin-top: 1rem; }
.fc-newsletter__frame { display: block; width: 100%; min-height: 200px; background: #fff; }

/* ---------- query (articles) ---------- */
.fc-query .wp-block-post-template { gap: 2.5rem 2rem; }
.fc-query .wp-block-post-title { font-size: 1.5rem; }
.fc-query .wp-block-post-title a { text-decoration: none; }
.fc-query .wp-block-post-date { font-size: 0.875rem; color: var(--fc-soft); }
.wp-block-query-pagination { gap: 1rem; margin-top: 2rem; }

/* ---------- footer ---------- */
.fc-footer { padding-top: 2.75rem; padding-bottom: 1.75rem; }
.fc-footer .fc-lockup .wp-block-site-title a { padding-top: 0; padding-bottom: 0.4rem; }
.fc-footer .wp-block-navigation-item__content { padding: 0.35rem 0; text-decoration: none; }
.fc-footer .wp-block-navigation-item__content:hover { text-decoration: underline; }
.fc-footer .fc-label { margin-bottom: 0.4rem; }
.fc-footer .wp-block-navigation__container { gap: 0; }
.fc-copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--fc-soft); font-size: 0.875rem; color: var(--fc-sage); }

/* ---------- misc ---------- */
.fc-title-band { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.fc-title-band .wp-block-post-title, .fc-title-band h1 { margin: 0; font-size: clamp(2rem, 7vw, 3.5rem); }
.fc-prose { padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2.5rem, 7vw, 5rem); }
.fc-prose > .alignwide { margin-top: 2rem; }
.wp-block-post-content > *:first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .fc-header, .fc-footer, .fc-nav { display: none; } }

/* Orange buttons: darker ink so the label passes 4.5:1 (the brand orange itself is unchanged). */
.wp-block-button__link.has-orange-background-color, .wp-block-button .has-orange-background-color { color: #0b2219 !important; }
