/*
Theme Name:   Tasmanian Mushroom Festival
Theme URI:    https://tasmanianmushroomfestival.com.au
Author:       John Jarvis
Description:  Block theme for the Tasmanian Mushroom Festival. Full-bleed imagery, Merriweather headings, Geist body, monospace labels, square edges, hairline rules and generous space. Colours, type and spacing live in theme.json; this file holds the components.
Version:      0.3.5
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.1
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  tmf
*/

/* =========================================================================
   Base
   ========================================================================= */

:root {
	--tmf-gutter: clamp(1.25rem, 4.5vw, 4.5rem);
	--tmf-header-h: 6.5rem;
	--tmf-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--tmf-mono: var(--wp--preset--font-family--mono);
	--tmf-serif: var(--wp--preset--font-family--heading);
}

html { scroll-behavior: smooth; }
/* No gap between header, main and footer: the header floats over the hero, so a gap shows as a dark strip. */
.wp-site-blocks > * { margin-block-start: 0; }
body { -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
:focus-visible { outline: 1px solid var(--wp--preset--color--accent); outline-offset: 4px; }
h1, h2, h3, h4 { overflow-wrap: normal; hyphens: manual; text-wrap: balance; }

.wp-site-blocks *,
.wp-site-blocks *::before,
.wp-site-blocks *::after,
.tmf-lightbox,
.tmf-lightbox * { border-radius: 0 !important; }

/* Monospace micro-label */
.tmf-mono,
.tmf-eyebrow,
.tmf-card__date,
.tmf-card__price,
.tmf-featured__meta,
.tmf-featured__price,
.tmf-meta dt,
.tmf-next__label,
.tmf-next__date,
.tmf-chip,
.tmf-sponsor__label,
.tmf-footer h3,
.tmf-footer__bottom,
.tmf-form label,
.tmf-events__note,
.tmf-gallery-meta {
	font-family: var(--tmf-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.5;
}
.tmf-eyebrow { color: var(--wp--preset--color--accent); margin: 0; }

.tmf-lead {
	font-family: var(--tmf-serif);
	font-size: var(--wp--preset--font-size--large);
	font-weight: 400;
	line-height: 1.45;
	max-width: 34ch;
}

/* Sections */
.tmf-section { padding-block: var(--wp--preset--spacing--60); }
.tmf-section + .tmf-section { padding-top: 0; }
.tmf-section__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 2rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--wp--preset--color--line);
	margin-bottom: clamp(3rem, 5vw, 4.5rem);
}
.tmf-section__head h2 { margin: 0; }
.tmf-section__head .wp-block-buttons { margin: 0; }

/* Bands: full-width blocks of colour that break up the dark */
.tmf-band { padding-block: var(--wp--preset--spacing--60) !important; margin-block: 0 !important; }
.tmf-band--paper { background: var(--wp--preset--color--paper); color: var(--wp--preset--color--ink); }
.tmf-band--paper h1, .tmf-band--paper h2, .tmf-band--paper h3, .tmf-band--paper .tmf-lead { color: var(--wp--preset--color--ink); }
.tmf-band--paper p { color: var(--wp--preset--color--ink); }
.tmf-band--paper .tmf-eyebrow { color: var(--wp--preset--color--accent-strong); }
.tmf-band--paper a { color: var(--wp--preset--color--ink); }
.tmf-band--paper a:hover { color: var(--wp--preset--color--accent-strong); }

/* =========================================================================
   Buttons, links, chips
   ========================================================================= */

.tmf-button,
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.75em;
	padding: 1.05em 1.6em;
	font-family: var(--tmf-mono);
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none;
	line-height: 1;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--accent);
	transition: background-color 0.2s var(--tmf-ease), color 0.2s var(--tmf-ease), border-color 0.2s var(--tmf-ease);
}
.tmf-button:hover,
.wp-block-button__link:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.wp-block-button.is-style-outline .wp-block-button__link,
.tmf-button--ghost {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	border-color: rgba(244, 241, 234, 0.4);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.tmf-button--ghost:hover {
	background: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
}
.tmf-button--small { padding: 0.9em 1.25em; }
.tmf-band--paper .wp-block-button.is-style-outline .wp-block-button__link,
.tmf-band--paper .tmf-button--ghost { color: var(--wp--preset--color--ink); border-color: rgba(21, 20, 15, 0.35); }

.tmf-arrow::after { content: "\2192"; display: inline-block; margin-left: 0.5em; transition: transform 0.2s var(--tmf-ease); }
.tmf-arrow:hover::after { transform: translateX(0.25em); }
a.tmf-arrow:not(.wp-block-button__link):not(.tmf-button) { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 0.15em; font-size: var(--wp--preset--font-size--small); font-weight: 500; letter-spacing: 0.02em; }

.tmf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tmf-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.6em 0.85em;
	line-height: 1;
	border: 1px solid var(--wp--preset--color--line-strong);
	background: transparent;
	color: var(--wp--preset--color--muted);
	text-decoration: none;
	cursor: pointer;
	transition: all 0.15s var(--tmf-ease);
}
.tmf-chip:hover { color: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); }
.tmf-chip.is-active { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.tmf-filters { margin: 2.5rem 0 3.5rem; }

/* =========================================================================
   Header
   ========================================================================= */

.tmf-header {
	position: absolute;
	inset: 0 0 auto 0;
	z-index: 50;
	padding-block: 1.75rem;
	background: linear-gradient(to bottom, rgba(12, 12, 11, 0.6), rgba(12, 12, 11, 0));
}
/* Logged in: sit below the WordPress admin bar instead of under it */
.admin-bar .tmf-header { top: var(--wp-admin--admin-bar--height, 0px); }
.tmf-header .wp-block-site-logo img { width: clamp(170px, 22vw, 270px); height: auto; }
.tmf-nav a {
	font-family: var(--tmf-serif);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
	transition: color 0.15s var(--tmf-ease);
}
.tmf-nav a:hover,
.tmf-nav .current-menu-item > a { color: var(--wp--preset--color--accent); }
.tmf-nav .wp-block-navigation__responsive-container-open,
.tmf-nav .wp-block-navigation__responsive-container-close { color: var(--wp--preset--color--contrast); }
.tmf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--base);
	padding: 6rem var(--tmf-gutter) 3rem;
}
.tmf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 0.75rem; }
.tmf-nav .wp-block-navigation__responsive-container.is-menu-open a {
	font-size: clamp(1.6rem, 6vw, 2.4rem);
	letter-spacing: 0;
	text-transform: none;
	text-shadow: none;
	line-height: 1.2;
}

/* The seven serif links need about 1100px; below that use the overlay menu
   (core only switches at 600px). */
.tmf-nav .wp-block-navigation-item__label { white-space: nowrap; }
@media (min-width: 600px) and (max-width: 1099.98px) {
	.tmf-nav .wp-block-navigation__responsive-container-open { display: flex !important; }
	.tmf-nav .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
	.tmf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { display: flex !important; }
}

/* =========================================================================
   Heroes and page heads
   ========================================================================= */

.tmf-hero,
.tmf-page-hero {
	margin-top: 0 !important;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-content: stretch !important;
	position: relative;
	padding: 0 var(--wp--style--root--padding-right, var(--tmf-gutter)) 0 var(--wp--style--root--padding-left, var(--tmf-gutter)) !important;
}
.tmf-hero { min-height: 100svh !important; align-items: center; }
.tmf-page-hero { min-height: 60svh !important; align-items: end; }
.tmf-hero .wp-block-cover__background {
	background: linear-gradient(to bottom, rgba(12, 12, 11, 0.5) 0%, rgba(12, 12, 11, 0.25) 35%, rgba(12, 12, 11, 0.3) 65%, rgba(12, 12, 11, 0.92) 100%) !important;
	opacity: 1 !important;
}
.tmf-page-hero .wp-block-cover__background {
	background: linear-gradient(to top, rgba(12, 12, 11, 0.96) 0%, rgba(12, 12, 11, 0.35) 50%, rgba(12, 12, 11, 0.5) 100%) !important;
	opacity: 1 !important;
}
.tmf-hero .wp-block-cover__inner-container,
.tmf-page-hero .wp-block-cover__inner-container {
	width: 100% !important;
	max-width: var(--wp--style--global--wide-size);
	margin-inline: auto !important;
	padding-top: calc(var(--tmf-header-h) + 1rem);
	padding-bottom: var(--wp--preset--spacing--50);
}

/* Centred hero, as on the original site */
.tmf-hero--centered .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding-bottom: calc(var(--wp--preset--spacing--50) + 2rem);
}
.tmf-hero--centered .wp-block-cover__inner-container > * { margin: 0; }
.tmf-hero__logo img { width: clamp(220px, 30vw, 430px); filter: drop-shadow(0 6px 28px rgba(0, 0, 0, 0.45)); margin-inline: auto; }
.tmf-hero--centered .tmf-festival-dates {
	font-family: var(--tmf-serif);
	font-weight: 400;
	font-size: clamp(2.6rem, 6vw, 5.25rem);
	letter-spacing: -0.01em;
	line-height: 1.05;
	margin: clamp(1.5rem, 3vw, 2.5rem) 0 0.6em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.tmf-hero--centered .tmf-hero__tagline {
	font-family: var(--tmf-serif);
	font-size: clamp(1.1rem, 2vw, 1.7rem);
	line-height: 1.4;
	max-width: 40ch;
	margin: 0 auto clamp(2rem, 4vw, 3rem);
	text-shadow: 0 1px 16px rgba(0, 0, 0, 0.4);
}
.tmf-hero--centered::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 2rem;
	width: 1px;
	height: 3.5rem;
	background: linear-gradient(to bottom, rgba(244, 241, 234, 0), rgba(244, 241, 234, 0.8));
}

.tmf-page-hero .wp-block-post-title,
.tmf-page-hero h1 {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.05;
	margin: 0.3em 0 0;
	max-width: 18ch;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.tmf-page-hero .wp-block-post-terms { margin: 0; }
.tmf-page-hero .wp-block-post-terms a { text-decoration: none; color: var(--wp--preset--color--accent); }
.tmf-page-hero .wp-block-post-terms .wp-block-post-terms__separator { color: var(--wp--preset--color--muted); }

.tmf-page-head { padding-top: calc(var(--tmf-header-h) + var(--wp--preset--spacing--50)); }
.tmf-page-head h1,
.tmf-page-head .wp-block-post-title { margin: 0.4em 0 0; }
.tmf-page-head .tmf-lead { margin-top: 1.5rem; color: var(--wp--preset--color--muted); }

.tmf-main { padding-block: var(--wp--preset--spacing--60); }
.tmf-main .wp-block-post-content > * + * { margin-top: 1.6em; }
.tmf-main .wp-block-post-content h2 { margin-top: 2.4em; }
.tmf-main .wp-block-post-content h3 { margin-top: 1.9em; }
.tmf-main .wp-block-post-content > :first-child { margin-top: 0; }
.tmf-main .wp-block-post-content p,
.tmf-main .wp-block-post-content li { font-size: var(--wp--preset--font-size--medium); line-height: 1.75; overflow-wrap: break-word; }
.tmf-main .wp-block-post-content a { color: var(--wp--preset--color--accent); }
.tmf-main .wp-block-post-content a:hover { color: var(--wp--preset--color--contrast); }
.tmf-main .wp-block-post-content ul { padding-left: 1.2em; }
.tmf-main .wp-block-post-content li + li { margin-top: 0.45em; }

/* =========================================================================
   Featured event
   ========================================================================= */

.tmf-featured { display: grid; gap: clamp(2.5rem, 5vw, 6rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .tmf-featured { grid-template-columns: 7fr 5fr; } }
.tmf-featured__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--wp--preset--color--surface); }
.tmf-featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--tmf-ease); }
.tmf-featured:hover .tmf-featured__media img { transform: scale(1.03); }
.tmf-featured__title { font-size: var(--wp--preset--font-size--x-large); margin: 0.6rem 0 1.25rem; }
.tmf-featured__title a { text-decoration: none; color: inherit; }
.tmf-featured__title a:hover { color: var(--wp--preset--color--accent); }
.tmf-featured__meta { color: var(--wp--preset--color--accent); margin: 0 0 1.5rem; }
.tmf-featured__excerpt { color: var(--wp--preset--color--muted); max-width: 46ch; margin: 0 0 2.25rem; line-height: 1.7; }
.tmf-featured__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.tmf-featured__price { margin-left: auto; color: var(--wp--preset--color--contrast); }

/* =========================================================================
   Event cards
   ========================================================================= */

.tmf-events__heading { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 2.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--wp--preset--color--line); }
.tmf-events__note { color: var(--wp--preset--color--muted); margin: 0 0 2.5rem; }
.tmf-events + .tmf-events { margin-top: var(--wp--preset--spacing--60); }

.tmf-grid { display: grid; grid-template-columns: 1fr; gap: clamp(3.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
@media (min-width: 640px) { .tmf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
	.tmf-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.tmf-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.tmf-grid--1 { grid-template-columns: 1fr; }
}

.tmf-card { display: flex; flex-direction: column; min-width: 0; }
.tmf-card__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--wp--preset--color--surface); margin-bottom: 1.25rem; }
.tmf-card__media img,
.tmf-card__placeholder { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.9s var(--tmf-ease), filter 0.4s var(--tmf-ease); }
.tmf-card:hover .tmf-card__media img { transform: scale(1.04); }
.tmf-card__body { display: flex; flex-direction: column; gap: 0.6rem; flex: 1; padding-top: 1.1rem; border-top: 1px solid var(--wp--preset--color--line); }
.tmf-card__date { margin: 0; color: var(--wp--preset--color--accent); display: flex; gap: 1.25em; flex-wrap: wrap; }
.tmf-card__time { color: var(--wp--preset--color--muted); }
.tmf-card__title { margin: 0.15rem 0 0; font-size: 1.25rem; line-height: 1.3; }
.tmf-card__title a { color: inherit; text-decoration: none; }
.tmf-card__title a:hover { color: var(--wp--preset--color--accent); }
.tmf-card__venue { margin: 0; color: var(--wp--preset--color--muted); font-size: var(--wp--preset--font-size--small); }
.tmf-card__foot { margin-top: auto; padding-top: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tmf-card__foot .tmf-chip { font-size: 0.62rem; padding: 0.4em 0.6em; }
.tmf-card__price { color: var(--wp--preset--color--contrast); white-space: nowrap; margin-left: auto; }
.tmf-card.is-past .tmf-card__media img { filter: saturate(0.7) brightness(0.8); }
.tmf-card.is-past:hover .tmf-card__media img { filter: none; }
.tmf-empty { color: var(--wp--preset--color--muted); padding: 2.5rem 0; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }

/* =========================================================================
   Single event
   ========================================================================= */

.tmf-event-layout { display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: 1fr; }
@media (min-width: 960px) { .tmf-event-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.tmf-meta { position: sticky; top: 2rem; border: 1px solid var(--wp--preset--color--line-strong); padding: 2rem; display: grid; gap: 1.5rem; background: var(--wp--preset--color--surface); }
.tmf-meta dl { margin: 0; display: grid; gap: 1.25rem; }
.tmf-meta dt { color: var(--wp--preset--color--accent); margin-bottom: 0.4rem; }
.tmf-meta dd { margin: 0; font-size: 1.05rem; line-height: 1.5; }
.tmf-meta__time { color: var(--wp--preset--color--muted); }
.tmf-meta__map { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--muted); }
.tmf-meta .tmf-button { justify-content: center; }
.tmf-meta__past { margin: 0; color: var(--wp--preset--color--muted); }
.tmf-next { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; align-items: baseline; padding: 1.75rem 0; margin: 0; border-top: 1px solid var(--wp--preset--color--line); border-bottom: 1px solid var(--wp--preset--color--line); }
.tmf-next__label { color: var(--wp--preset--color--accent); }
.tmf-next a { font-family: var(--tmf-serif); font-size: var(--wp--preset--font-size--large); font-weight: 700; text-decoration: none; }
.tmf-next a:hover { color: var(--wp--preset--color--accent); }
.tmf-next__date { color: var(--wp--preset--color--muted); }

/* =========================================================================
   Gallery
   ========================================================================= */

.tmf-gallery__grid { display: grid; gap: 1px; background: var(--wp--preset--color--line); border: 1px solid var(--wp--preset--color--line); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .tmf-gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .tmf-gallery__grid { grid-template-columns: repeat(4, 1fr); } }
/* Teaser of 8: always two full rows */
@media (min-width: 720px) { .tmf-gallery--teaser .tmf-gallery__grid { grid-template-columns: repeat(4, 1fr); } }
.tmf-gallery__item { margin: 0; position: relative; overflow: hidden; background: var(--wp--preset--color--surface); aspect-ratio: 1; }
.tmf-gallery__item[hidden] { display: none; }
.tmf-gallery__link { display: block; height: 100%; }
.tmf-gallery__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--tmf-ease); }
.tmf-gallery__item:hover img { transform: scale(1.04); }
.tmf-gallery__item figcaption {
	position: absolute; inset: auto 0 0 0;
	padding: 2.5rem 1rem 0.9rem;
	background: linear-gradient(to top, rgba(12, 12, 11, 0.92), rgba(12, 12, 11, 0));
	display: flex; flex-direction: column; gap: 0.15rem;
	font-size: 0.8rem; pointer-events: none;
	opacity: 0; transform: translateY(0.5rem);
	transition: opacity 0.3s var(--tmf-ease), transform 0.3s var(--tmf-ease);
}
.tmf-gallery__item:hover figcaption,
.tmf-gallery__item:focus-within figcaption { opacity: 1; transform: none; }
.tmf-gallery__title { font-weight: 500; }
.tmf-gallery__by { color: var(--wp--preset--color--muted); }
.tmf-gallery__award { color: var(--wp--preset--color--accent); }
.tmf-gallery__item.is-winner::before {
	content: "Winner"; position: absolute; top: 0.75rem; left: 0.75rem; z-index: 1;
	padding: 0.4em 0.7em; background: var(--wp--preset--color--accent); color: var(--wp--preset--color--base);
	font-family: var(--tmf-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
}
.tmf-gallery-meta { color: var(--wp--preset--color--muted); margin: 1rem 0 2rem; }

.tmf-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(12, 12, 11, 0.97); display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; padding: 1rem; }
.tmf-lightbox[hidden] { display: none; }
body.tmf-lightbox-open { overflow: hidden; }
.tmf-lightbox__figure { grid-column: 2; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; max-height: 100%; }
.tmf-lightbox__img { max-width: 100%; max-height: 74vh; object-fit: contain; }
.tmf-lightbox__caption { text-align: center; max-width: 60ch; display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.95rem; }
.tmf-lightbox__title { font-family: var(--tmf-serif); }
.tmf-lightbox__by { color: var(--wp--preset--color--muted); }
.tmf-lightbox__award { color: var(--wp--preset--color--accent); }
.tmf-lightbox__desc { margin: 0.5rem 0 0; color: var(--wp--preset--color--muted); font-size: 0.9rem; }
.tmf-lightbox__desc:empty, .tmf-lightbox__award:empty { display: none; }
.tmf-lightbox button { background: transparent; border: 0; color: var(--wp--preset--color--contrast); font-size: 2.25rem; line-height: 1; cursor: pointer; padding: 0.5rem; }
.tmf-lightbox__close { position: absolute; top: 0.75rem; right: 1rem; }
.tmf-lightbox__prev { grid-column: 1; }
.tmf-lightbox__next { grid-column: 3; }

/* =========================================================================
   Forms and newsletter
   ========================================================================= */

.tmf-form { display: grid; gap: 2rem; max-width: 640px; }
.tmf-form__row { display: grid; gap: 0.6rem; }
.tmf-form label { color: var(--wp--preset--color--muted); }
.tmf-form input,
.tmf-form textarea,
.tmf-newsletter input {
	width: 100%;
	padding: 0.9em 0;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--line-strong);
	background: transparent;
	color: var(--wp--preset--color--contrast);
	font: inherit;
	transition: border-color 0.2s var(--tmf-ease);
}
.tmf-form textarea { resize: vertical; min-height: 9rem; }
.tmf-form input:focus, .tmf-form textarea:focus, .tmf-newsletter input:focus { outline: none; border-bottom-color: var(--wp--preset--color--accent); }
.tmf-form input::placeholder, .tmf-newsletter input::placeholder { color: var(--wp--preset--color--muted); }
.tmf-form__honeypot { display: none !important; }
.tmf-form .tmf-button { justify-self: start; }
.tmf-form__sent { color: var(--wp--preset--color--accent); }
.tmf-notice { padding: 1.25rem; border: 1px dashed var(--wp--preset--color--accent); color: var(--wp--preset--color--muted); }

.tmf-newsletter__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tmf-newsletter__row { display: flex; gap: 1rem; align-items: flex-end; }
.tmf-newsletter input { flex: 1 1 200px; }
.tmf-newsletter .tmf-button { flex: 0 0 auto; }

.tmf-newsletter--strip {
	margin-block: 0 !important;
	padding: var(--wp--preset--spacing--60) var(--wp--style--root--padding-right, var(--tmf-gutter));
	padding-left: var(--wp--style--root--padding-left, var(--tmf-gutter));
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--base);
}
.tmf-newsletter__inner { max-width: var(--wp--style--global--wide-size); margin-inline: auto; display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .tmf-newsletter__inner { grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 8vw, 8rem); } }
.tmf-newsletter--strip .tmf-eyebrow { color: var(--wp--preset--color--base); opacity: 0.65; }
.tmf-newsletter--strip h2 { color: var(--wp--preset--color--base); font-size: var(--wp--preset--font-size--x-large); margin: 0.5em 0 0.45em; }
.tmf-newsletter--strip p { color: var(--wp--preset--color--base); opacity: 0.8; max-width: 42ch; margin: 0; }
.tmf-newsletter--strip input { color: var(--wp--preset--color--base); border-bottom-color: rgba(12, 12, 11, 0.45); font-size: 1.1rem; }
.tmf-newsletter--strip input::placeholder { color: rgba(12, 12, 11, 0.55); }
.tmf-newsletter--strip input:focus { border-bottom-color: var(--wp--preset--color--base); }
.tmf-newsletter--strip .tmf-button { background: var(--wp--preset--color--base); border-color: var(--wp--preset--color--base); color: var(--wp--preset--color--contrast); }
.tmf-newsletter--strip .tmf-button:hover { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }

/* =========================================================================
   Promo (photography competition)
   ========================================================================= */

.tmf-promo { background: var(--wp--preset--color--surface); margin-top: 0 !important; }
.tmf-promo .wp-block-media-text__media { min-height: clamp(320px, 48vw, 640px); }
.tmf-promo .wp-block-media-text__content { padding: clamp(3rem, 7vw, 7rem); }
.tmf-promo h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.1; margin: 0.5em 0 0.5em; text-wrap: pretty; }
.tmf-promo p { max-width: 38ch; color: var(--wp--preset--color--muted); }

/* =========================================================================
   Footer
   ========================================================================= */

.tmf-footer { border-top: 1px solid var(--wp--preset--color--line); padding-block: clamp(4rem, 8vw, 7rem) 2rem; margin-top: 0 !important; }
.tmf-footer h3 { color: var(--wp--preset--color--muted); margin: 0 0 1.25rem; font-family: var(--tmf-mono); font-weight: 500; }
.tmf-footer p { color: var(--wp--preset--color--muted); margin: 0 0 0.75rem; }
.tmf-footer p a { color: var(--wp--preset--color--contrast); }
.tmf-footer .wp-block-columns { gap: 3rem; }
.tmf-social { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; gap: 0.5rem; }
.tmf-social a { display: inline-flex; width: 2.75rem; height: 2.75rem; align-items: center; justify-content: center; border: 1px solid var(--wp--preset--color--line-strong); color: var(--wp--preset--color--contrast); transition: all 0.15s var(--tmf-ease); }
.tmf-social a:hover { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--base); }
.tmf-social svg { width: 1.1rem; height: 1.1rem; }
.tmf-sponsor__label { color: var(--wp--preset--color--muted); margin: 0 0 1.25rem; }
.tmf-sponsor img { max-width: 200px; }
.tmf-footer__bottom { margin-top: var(--wp--preset--spacing--50); padding-top: 1.25rem; border-top: 1px solid var(--wp--preset--color--line); color: var(--wp--preset--color--muted); text-transform: none; letter-spacing: 0.04em; }
.tmf-footer__bottom p { margin: 0; color: var(--wp--preset--color--muted); }
.tmf-copyright { margin: 0; }

/* =========================================================================
   Misc
   ========================================================================= */

.wp-block-post-featured-image img { width: 100%; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}
