/* Thomas Finch theme: layout details that theme.json can't express. */

:root {
	--tf-ink: var(--wp--preset--color--ink, #141414);
	--tf-red: var(--wp--preset--color--red, #C81F19);
	--tf-paper: var(--wp--preset--color--paper, #FBF8F2);
	--tf-line: var(--wp--preset--color--line, #E3DDD1);
	--tf-muted: var(--wp--preset--color--muted, #4A463F);
	--tf-caps: var(--wp--preset--font-family--caps, Cinzel, serif);
	--tf-display: var(--wp--preset--font-family--display, 'Cormorant Garamond', serif);
	--tf-section-y: clamp(64px, 8vw, 104px);
	--tf-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-10 -10 20 20'%3E%3Cpath d='M0,-10 Q1.3,-1.3 10,0 Q1.3,1.3 0,10 Q-1.3,1.3 -10,0 Q-1.3,-1.3 0,-10Z' fill='%23C81F19'/%3E%3C/svg%3E");
}

body { font-kerning: normal; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }

/* Sections sit flush against each other: no gaps between bands. */
.wp-site-blocks > * { margin-block-start: 0; }
.tf-main .wp-block-post-content > .alignfull,
.tf-main .entry-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.tf-main .wp-block-post-content > .alignfull.has-global-padding,
.tf-main .wp-block-post-content > .alignfull {
	padding-left: var(--wp--style--root--padding-left, clamp(20px, 4vw, 40px));
	padding-right: var(--wp--style--root--padding-right, clamp(20px, 4vw, 40px));
}
.tf-main--page { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 104px); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--tf-red);
	outline-offset: 3px;
}

/* ---------- Building blocks ---------- */

.tf-section { padding-top: var(--tf-section-y); padding-bottom: var(--tf-section-y); }
.tf-section--tight-top { padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(56px, 7vw, 88px); }
.tf-section--ruled { border-top: 1px solid var(--tf-line); }
.tf-section--ruled-bottom { border-bottom: 1px solid var(--tf-line); }

.wp-block-columns.tf-gap-wide { gap: clamp(40px, 6vw, 72px); }
.wp-block-columns { margin-bottom: 0; }

.tf-eyebrow {
	font-family: var(--tf-caps);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.22em;
	line-height: 1.5;
	text-transform: uppercase;
}
.tf-eyebrow--small { font-size: 12px; letter-spacing: 0.18em; }
.tf-eyebrow--quiet { color: #CFC8BB; letter-spacing: 0.16em; font-size: 12px; margin: 0; }
.tf-eyebrow a { text-underline-offset: 0.3em; text-decoration-thickness: 1px; }

.tf-lede { max-width: 34em; }

.tf-hero__title { letter-spacing: -0.01em; line-height: 0.98 !important; }
.tf-hero .wp-block-buttons, .tf-stack .wp-block-buttons { padding-top: 8px; }

/* Photos */
.tf-photo { margin: 0; }
.tf-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.tf-photo--top img { object-position: 50% 30%; }
.tf-photo--square img { aspect-ratio: 1 / 1; object-position: 40% 55%; }

/* Placeholders for film stills, production photos and the book cover.
   Replace them with an Image block when the pictures are ready. */
.tf-placeholder {
	background: var(--wp--preset--color--sand, #ECE6DA);
	color: #6B655B;
	text-align: center;
	padding: 24px;
	width: 100%;
	box-sizing: border-box;
}
.tf-placeholder .tf-eyebrow { font-size: 12px; letter-spacing: 0.16em; margin: 0; }
.tf-placeholder--dark { background: var(--wp--preset--color--charcoal, #2A2826); color: #CFC8BB; }
.tf-ratio-16-9 { aspect-ratio: 16 / 9; }
.tf-ratio-3-2 { aspect-ratio: 3 / 2; }

/* Red-star bullet list */
ul.tf-star-list { list-style: none; padding: 0; margin-left: 0; font-size: 17px; display: flex; flex-direction: column; gap: 10px; }
ul.tf-star-list li { position: relative; padding-left: 24px; }
ul.tf-star-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 12px;
	height: 12px;
	background: var(--tf-star) center / contain no-repeat;
}

/* Section heading row with a rule under it */
.tf-section-head { border-bottom: 1px solid currentColor; padding-bottom: 18px; margin-bottom: 48px; row-gap: 8px; }
.tf-section-head h2 { margin: 0; }
.tf-section-head p { margin: 0; }

/* Work cards */
.tf-card { gap: 14px; align-items: stretch !important; }
.tf-card > * { margin: 0 !important; }
.tf-card h3 { margin-top: 2px !important; }

/* Pull quote */
.tf-quote { text-align: center; }
.tf-quote::before {
	content: "";
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto 28px;
	background: var(--tf-star) center / contain no-repeat;
}
.tf-quote__text {
	font-family: var(--tf-display);
	font-style: italic;
	font-weight: 500;
	font-size: clamp(28px, 3.6vw, 40px);
	line-height: 1.2;
	max-width: 26em;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* Statistic tiles (English Enjoyed band and About page) */
.tf-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1px;
	background: #E4605A;
	border: 1px solid #E4605A;
}
.tf-stats > * { margin: 0 !important; }
.tf-stat { background: var(--tf-red); padding: clamp(22px, 3vw, 32px); gap: 4px; }
.tf-stat > * { margin: 0 !important; }
.tf-stat__num { font-family: var(--tf-display); font-weight: 600; font-size: clamp(40px, 4.5vw, 52px); line-height: 1; }

.tf-stats--three { grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--tf-line); border-color: var(--tf-line); margin-top: 12px !important; }
.tf-stats--three .tf-stat { background: var(--tf-paper); padding: 22px; }
.tf-stats--three .tf-stat__num { font-size: 40px; }
.tf-stats--three .tf-eyebrow { font-size: 11px; letter-spacing: 0.16em; }

.tf-ee .tf-on-red { color: #FFF3F1; }

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

.wp-block-button__link { transition: background-color 0.15s ease, color 0.15s ease; }
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link:not(:hover) {
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
	padding: 15px 25px;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--tf-ink);
	border-color: var(--tf-ink);
	color: #fff;
}
.has-ink-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.has-red-background-color .wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--tf-paper);
	border-color: var(--tf-paper);
	color: var(--tf-ink);
}
.has-ink-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
	background: var(--tf-paper);
	color: var(--tf-ink);
}
.tf-btn-paper > .wp-block-button__link { background: var(--tf-paper); color: var(--tf-ink); }
.tf-btn-paper > .wp-block-button__link:hover { background: var(--tf-ink); color: #fff; }

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

.tf-site-header { border-bottom: 1px solid var(--tf-line); padding-top: 22px; padding-bottom: 22px; background: var(--tf-paper); }
.tf-site-header__inner { gap: 24px; }
.tf-logo { margin: 0; flex-shrink: 0; }
.tf-logo a { display: block; line-height: 0; }
.tf-logo img { height: 44px; width: auto; display: block; }
.tf-logo--footer img { height: 34px; }

.tf-nav .wp-block-navigation__container { gap: 8px 32px; align-items: center; }
.tf-nav .wp-block-navigation-item__content { text-decoration: none; }
.tf-nav .wp-block-navigation-item__content:hover { color: var(--tf-red); }
.tf-nav .tf-nav-cta > .wp-block-navigation-item__content {
	background: var(--tf-ink);
	color: #fff;
	padding: 12px 20px;
}
.tf-nav .tf-nav-cta > .wp-block-navigation-item__content:hover { background: var(--tf-red); color: #fff; }
.tf-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--tf-red); }

/* Mobile menu */
.tf-nav .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--tf-paper);
	color: var(--tf-ink);
	padding: 24px clamp(20px, 4vw, 40px);
}
.tf-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 22px; font-size: 16px; }
.tf-nav .wp-block-navigation__responsive-container-open svg,
.tf-nav .wp-block-navigation__responsive-container-close svg { width: 30px; height: 30px; }

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

.tf-site-footer { padding-top: clamp(64px, 7vw, 88px); padding-bottom: 48px; }
.tf-footer-title { font-size: var(--wp--preset--font-size--xx-large) !important; margin-top: 0; }
.tf-footer-links { font-size: 20px; line-height: 1.9; }
.tf-footer-links a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
.tf-footer-links a:hover { color: var(--wp--preset--color--blush, #F0A49F); }
.tf-site-footer__base { border-top: 1px solid #3A3733; padding-top: 28px; margin-top: 56px !important; row-gap: 16px; }

/* ---------- Films page ---------- */

.tf-film-title { font-size: clamp(60px, 10vw, 104px) !important; line-height: 0.95 !important; margin: 0; }
.tf-stack--tight { gap: 14px; }
.tf-stack--tight > * { margin: 0 !important; }
.tf-section--tight-top .wp-block-embed { margin-top: 40px; }
.tf-section--tight-top .wp-block-embed iframe { width: 100%; }

.tf-laurels { gap: 28px 56px; margin-top: 40px !important; }
.tf-laurel { font-family: var(--tf-display); font-weight: 600; font-size: 26px; line-height: 1.25; margin: 0; }
.tf-laurel__label {
	display: block;
	font-family: var(--tf-caps);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--blush, #F0A49F);
	margin-bottom: 4px;
}

.tf-credits { border-top: 1px solid var(--tf-ink); }
.tf-credit { gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--tf-line); }
.tf-credit > * { margin: 0 !important; }
.tf-credit .tf-eyebrow { color: #6B655B; }

/* ---------- About page ---------- */

.tf-about-title { font-size: clamp(48px, 6.5vw, 76px) !important; line-height: 1 !important; }
.tf-monogram { margin-top: 20px !important; }
.tf-monogram img { width: 56px; height: auto; }

/* ---------- Contact form (Contact Form 7) ---------- */

.tf-form-card { padding: clamp(24px, 3.5vw, 36px); }
.tf-form-card .wpcf7 form { display: flex; flex-direction: column; gap: 18px; }
.tf-field { display: flex; flex-direction: column; gap: 6px; }
.tf-field label {
	font-family: var(--tf-caps);
	font-size: 12px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-weight: 500;
}
.tf-field .wpcf7-form-control-wrap { display: block; }
.tf-form-card input[type="text"],
.tf-form-card input[type="email"],
.tf-form-card select,
.tf-form-card textarea {
	font: inherit;
	color: var(--tf-ink);
	background: #fff;
	border: 1px solid #9C958A;
	border-radius: 0;
	padding: 14px 16px;
	width: 100%;
	box-sizing: border-box;
}
.tf-form-card select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, var(--tf-ink) 50%), linear-gradient(135deg, var(--tf-ink) 50%, transparent 50%);
	background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 44px;
}
.tf-form-card textarea { min-height: 150px; resize: vertical; }
.tf-form-card input[type="submit"] {
	align-self: flex-start;
	font-family: var(--tf-caps);
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	background: var(--tf-red);
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 16px 28px;
	cursor: pointer;
}
.tf-form-card input[type="submit"]:hover { background: var(--tf-ink); }
.tf-form-card .wpcf7-spinner { margin: 0 0 0 12px; }
.tf-form-card .wpcf7-not-valid-tip { color: var(--tf-red); font-size: 16px; margin-top: 4px; }
.tf-form-card .wpcf7 form .wpcf7-response-output { margin: 0; padding: 12px 16px; border-width: 1px; font-size: 17px; }

.tf-ee-note {
	display: none;
	background: var(--wp--preset--color--sand, #ECE6DA);
	border-left: 3px solid var(--tf-red);
	padding: 14px 16px;
	font-size: 17px;
	line-height: 1.5;
}
.tf-ee-note.is-visible { display: block; }

.tf-admin-note { background: #FFF3F1; color: var(--tf-ink); border-left: 3px solid var(--tf-red); padding: 14px 16px; font-size: 17px; margin: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 781px) {
	.tf-logo img { height: 34px; }
	.tf-section-head { margin-bottom: 32px; }
	.tf-stats--three { grid-template-columns: minmax(0, 1fr); }
	.tf-hero .tf-photo img { aspect-ratio: 4 / 4.2; }
}
