/*
Theme Name: Futurecast
Theme URI: https://example.com/futurecast
Author: Futurecast demo
Description: An editorial full-site-editing block theme for solutions journalism about technology, science and progress. Bold Archivo headlines, JetBrains Mono labels, dark video sections and a curated "voices" grid. Ships with section styles, block style variations, two global style variations, 20+ patterns and a one-click demo content importer (Appearance → Futurecast Demo).
Requires at least: 7.0
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: futurecast
Tags: blog, news, one-column, three-columns, four-columns, block-patterns, block-styles, custom-colors, editor-style, full-site-editing, style-variations, template-editing, translation-ready, wide-blocks
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { height: auto; }
::selection { background: var(--wp--preset--color--misty-rose); color: var(--wp--preset--color--contrast); }
mark { padding: 0 .15em; color: inherit; }

/* ---------- Wordmark asterisk ---------- */
.wp-block-site-title a { position: relative; display: inline-block; color: inherit; }
.fc-header .wp-block-site-title { color: var(--wp--preset--color--contrast); }
.wp-block-site-title a::after {
	content: "";
	position: absolute;
	top: -.02em;
	right: -.62em;
	width: .5em;
	height: .5em;
	background: currentColor;
	-webkit-mask: url("assets/images/asterisk.svg") center / contain no-repeat;
	mask: url("assets/images/asterisk.svg") center / contain no-repeat;
}
.wp-block-site-title.is-style-wordmark { padding-right: .7em; }
.fc-header .wp-block-site-title { padding-right: .7em; }

/* ---------- Header ---------- */
.fc-header { border-bottom: 1px solid var(--wp--preset--color--line); }
.fc-header--masthead { border-bottom: 0; }
.fc-header .wp-block-navigation__responsive-container-open svg,
.fc-header .wp-block-search__button svg { width: 20px; height: 20px; }
.fc-header .wp-block-search__button { background: transparent; color: currentColor; padding: 0; border: 0; }
.wp-block-navigation__responsive-container.is-menu-open {
	padding: var(--wp--preset--spacing--60) clamp(1rem, 5vw, 2.5rem);
	background: var(--wp--preset--color--contrast) !important;
	color: var(--wp--preset--color--base) !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	gap: .5rem;
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 600;
	letter-spacing: -.02em;
}

/* ---------- Slash section titles  "/ The Interview" ---------- */
.is-style-slash-title { display: flex; align-items: flex-end; gap: .1em; }
.is-style-slash-title::before {
	content: "";
	flex: 0 0 .55em;
	height: 1.25em;
	margin-bottom: -.12em;
	background: linear-gradient(to top left, transparent calc(50% - .6px), currentColor calc(50% - .6px), currentColor calc(50% + .6px), transparent calc(50% + .6px));
}

/* ---------- Hand-drawn circle ---------- */
.is-style-circled { position: relative; display: inline-block; isolation: isolate; padding: .2em .35em; }
.is-style-circled::before {
	content: "";
	position: absolute;
	inset: -.45em -.6em -.35em -.9em;
	z-index: -1;
	background: url("assets/images/circle.svg") center / 100% 100% no-repeat;
	pointer-events: none;
}

/* ---------- Video duration  ▶ 15:08 ---------- */
.is-style-duration { display: flex; align-items: center; gap: .4em; margin-block-start: .4rem !important; }
.is-style-duration::before {
	content: "";
	flex: 0 0 1.1em;
	height: 1.1em;
	background: currentColor;
	-webkit-mask: url("assets/images/play.svg") center / contain no-repeat;
	mask: url("assets/images/play.svg") center / contain no-repeat;
}
.is-style-duration:empty { display: none; }

/* ---------- Cards ---------- */
.wp-block-post-featured-image { overflow: hidden; }
.wp-block-post-featured-image img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.wp-block-post-featured-image a:hover img { transform: scale(1.035); }
.wp-block-post-title a:hover { text-decoration-thickness: 1px; text-underline-offset: .12em; }
.fc-card .wp-block-post-excerpt__excerpt { margin: 0; }
.fc-card .wp-block-post-excerpt__more-text { display: none; }
.wp-block-post-terms__separator { opacity: .6; }
.wp-block-post-terms__prefix { color: var(--wp--preset--color--muted); }

/* Latest list in the hero sidebar */
.fc-latest-list .wp-block-post-template > li + li { border-top: 1px solid var(--wp--preset--color--line); padding-top: var(--wp--preset--spacing--20); }
.fc-latest-list .wp-block-post-featured-image { flex-shrink: 0; }

/* Numbered "most read" list */
.fc-numbered .wp-block-post-template { counter-reset: fc-rank; }
.fc-numbered .wp-block-post-template > li { counter-increment: fc-rank; display: grid; grid-template-columns: 2.5rem 1fr; gap: .75rem; align-items: start; }
.fc-numbered .wp-block-post-template > li::before {
	content: counter(fc-rank, decimal-leading-zero);
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--primary);
	padding-top: .2rem;
}

/* Tabs: Latest / Popular */
.fc-tabs { display: flex; gap: 1.25rem; align-items: center; }
.fc-tabs button {
	font: inherit;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 500;
	letter-spacing: -.02em;
	color: var(--wp--preset--color--muted);
	background: none;
	border: 0;
	padding: .2em .35em;
	cursor: pointer;
	position: relative;
	isolation: isolate;
}
.fc-tabs button[aria-selected="true"] { color: var(--wp--preset--color--contrast); }
.fc-tabs button[aria-selected="true"]::before {
	content: "";
	position: absolute;
	inset: -.45em -.6em -.35em -.9em;
	z-index: -1;
	background: url("assets/images/circle.svg") center / 100% 100% no-repeat;
}
.fc-tabpanel[hidden] { display: none !important; }

/* Mono list bullets */
.is-style-mono-list { list-style: none; padding-left: 0; }
.is-style-mono-list li { padding: .5rem 0; border-top: 1px solid var(--wp--preset--color--line); }
.is-style-mono-list li::before { content: "→ "; color: var(--wp--preset--color--primary); }

/* Hairline button arrow */
.wp-block-button.is-style-hairline .wp-block-button__link::after { content: " →"; }
.wp-block-button.is-style-hairline .wp-block-button__link:hover { background: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); text-decoration: none; }
.is-style-section-dark .wp-block-button.is-style-hairline .wp-block-button__link:hover { background: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }

/* Arrow link paragraph */
.fc-arrow-link a::after { content: "  →"; transition: margin .2s; }
.fc-arrow-link a:hover::after { margin-left: .25em; }

/* Newsletter inline form */
.fc-subscribe { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 34rem; }
.fc-subscribe input[type="email"] {
	flex: 1 1 14rem;
	font: inherit;
	padding: .75rem 1rem;
	border: 1px solid currentColor;
	border-radius: var(--wp--custom--radius--md);
	background: transparent;
	color: inherit;
}
.fc-subscribe button {
	font: inherit;
	font-weight: 600;
	padding: .75rem 1.5rem;
	border: 0;
	border-radius: var(--wp--custom--radius--md);
	background: var(--wp--preset--color--primary);
	color: #fff;
	cursor: pointer;
}
.fc-subscribe button:hover { background: var(--wp--preset--color--midnight-blue); }

/* Single post */
.fc-dek { max-width: 46rem; }
.wp-block-post-content > p:first-of-type::first-letter {
	float: left;
	font-size: 4.2em;
	line-height: .82;
	font-weight: 800;
	padding: .06em .08em 0 0;
	color: var(--wp--preset--color--contrast);
}
.wp-block-post-content .wp-block-pullquote p { margin: 0; }

/* Section intros */
.fc-intro { max-width: 36rem; }

/* Footer */
.fc-footer-list { list-style: none; padding: 0; margin: 0; }
.fc-footer-list li { padding: .3rem 0; }
.fc-footer a { color: inherit; }

/* Small screens */
@media (max-width: 781px) {
	.fc-hide-mobile { display: none !important; }
	.is-style-circled::before, .fc-tabs button[aria-selected="true"]::before { inset: -.3em -.4em -.25em -.5em; }
}

/* Keep cover content on the site grid */
.wp-block-cover.alignfull.has-custom-content-position.has-custom-content-position > .wp-block-cover__inner-container { width: 100%; }
.wp-block-cover > .wp-block-cover__inner-container > .alignwide { width: 100%; max-width: var(--wp--style--global--wide-size); margin-inline: auto; }
