/*
Theme Name: Three Karens
Theme URI: https://threekarens.com
Author: Three Karens
Description: Custom block theme for the Three Karens podcast: homepage sections, an Episodes section in the dashboard, Karen Court, live shows and merch.
Version: 1.0.1
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: three-karens
*/

/* ---------- Basics ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.tk-display { font-family: var(--wp--preset--font-family--display); font-weight: 400; text-transform: uppercase; }
.tk-section { padding-top: 72px; padding-bottom: 72px; }
.tk-section--tight { padding-top: 0; padding-bottom: 80px; }
.tk-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; margin: 0; }
.tk-lead { font-size: 19px; max-width: 720px; }

/* ---------- Header ---------- */
.tk-header { padding-top: 18px; padding-bottom: 18px; }
.tk-header > .wp-block-group { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }
.tk-wordmark { font-family: var(--wp--preset--font-family--display); font-size: 30px; letter-spacing: 1px; line-height: 1; margin: 0; }
.tk-wordmark a { color: #FFFFFF; text-decoration: none; }
.tk-nav { font-size: 15px; font-weight: 600; }
.tk-nav a { color: var(--wp--preset--color--cream) !important; text-decoration: none; }
.tk-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--navy); }
.tk-header .wp-block-button__link { padding: 12px 22px; font-size: 15px; }

/* ---------- Hero ---------- */
.tk-hero { padding-top: 56px; padding-bottom: 110px; }
.tk-hero .wp-block-columns { gap: 56px; align-items: center; }
.tk-badge { display: inline-block; width: fit-content; background: var(--wp--preset--color--pink); color: #FFFFFF; font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 8px 14px; border-radius: 4px; margin: 0 0 18px; }
.tk-hero h1 { margin: 0; }
.tk-hero-text { font-size: 20px; line-height: 1.55; max-width: 560px; margin-top: 28px; }
.tk-listen { font-size: 14px; font-weight: 600; margin-top: 30px; }
.tk-listen a { color: #FFFFFF; margin-left: 18px; }
.tk-btn-outline .wp-block-button__link { background: transparent !important; border: 2px solid var(--wp--preset--color--gold); color: var(--wp--preset--color--gold) !important; padding: 13px 26px; }
.tk-btn-outline-navy .wp-block-button__link { background: transparent !important; border: 2px solid var(--wp--preset--color--navy); color: var(--wp--preset--color--navy) !important; padding: 12px 22px; }

.tk-hosts { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px !important; align-items: end; }
.tk-host { border-radius: 18px; overflow: hidden; padding: 0 !important; margin: 0 !important; }
.tk-host .wp-block-image { margin: 0; }
.tk-host .wp-block-image img { width: 100%; height: 280px; object-fit: cover; object-position: center 30%; display: block; }
.tk-host--tall .wp-block-image img { height: 340px; }
.tk-host--mid .wp-block-image img { height: 300px; }
.tk-host-name { font-family: var(--wp--preset--font-family--display); font-size: 34px; line-height: 1.1; margin: 14px 18px 0; }
.tk-host-role { font-size: 13px; font-weight: 700; margin: 0 18px 18px; }

/* ---------- Latest episode ---------- */
.tk-latest { margin-top: -56px !important; position: relative; z-index: 1; }
.tk-latest-card { background: #FFFFFF; border-radius: 22px; box-shadow: 0 18px 50px rgba(30, 34, 64, 0.15); overflow: hidden; gap: 0 !important; margin: 0 !important; }
.tk-latest-card > .wp-block-column:first-child { background: var(--wp--preset--color--navy-light); min-height: 280px; position: relative; }
/* Pink play button on the episode picture (shows on top of the thumbnail, or on navy when there is none) */
.tk-latest-card > .wp-block-column:first-child::after { content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--wp--preset--color--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='%23fff'/%3E%3C/svg%3E") 54% 50% / 30px no-repeat; box-shadow: 0 10px 30px rgba(0,0,0,.3); pointer-events: none; }
.tk-latest-card .wp-block-post-featured-image { margin: 0; height: 100%; }
.tk-latest-card .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; }
.tk-latest-card > .wp-block-column:last-child { padding: 40px 44px; }
.tk-latest-card .wp-block-post-title { font-family: var(--wp--preset--font-family--display); font-weight: 400; text-transform: uppercase; font-size: 46px; line-height: 1.05; margin: 10px 0 0; }
.tk-latest-card .wp-block-post-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.tk-latest-card .wp-block-post-excerpt { color: var(--wp--preset--color--ink-soft); }
.tk-latest-card .wp-block-post-date { color: var(--wp--preset--color--pink-dark); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.tk-read-more, a.wp-block-read-more { display: inline-block; background: var(--wp--preset--color--navy); color: #FFFFFF !important; text-decoration: none; font-weight: 700; font-size: 15px; padding: 14px 24px; border-radius: 999px; margin-top: 10px; }

/* ---------- Episode cards ---------- */
.tk-card { background: #FFFFFF; border: 1px solid #EAE3DA; border-radius: 16px; padding: 24px !important; height: 100%; }
.tk-card .wp-block-post-date { color: var(--wp--preset--color--pink-dark); font-size: 13px; font-weight: 800; }
.tk-card .wp-block-post-title { font-size: 21px; line-height: 1.3; margin: 6px 0 0; }
.tk-card .wp-block-post-title a { color: var(--wp--preset--color--navy); text-decoration: none; }
.tk-card .wp-block-post-excerpt { color: var(--wp--preset--color--ink-soft); font-size: 15px; line-height: 1.55; }
.tk-card .wp-block-post-excerpt__more-text { display: none; }
.tk-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; }
.tk-section-head h2 { margin: 0; }

/* ---------- Meet the Karens ---------- */
.tk-group-photo img { width: 100%; height: 520px; object-fit: cover; object-position: center 35%; border-radius: 22px; }
.tk-bio { background: #FFFFFF; border: 1px solid #EAE3DA; border-radius: 20px; overflow: hidden; padding: 0 !important; }
.tk-bio .wp-block-image { margin: 0; }
.tk-bio .wp-block-image img { width: 100%; height: 300px; object-fit: cover; object-position: center 25%; display: block; }
.tk-bio--pink .wp-block-image img { border-bottom: 6px solid var(--wp--preset--color--pink); }
.tk-bio--teal .wp-block-image img { border-bottom: 6px solid var(--wp--preset--color--teal); }
.tk-bio--gold .wp-block-image img { border-bottom: 6px solid var(--wp--preset--color--gold); }
.tk-bio-body { padding: 26px !important; }
.tk-bio-body h3 { font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: 36px; margin: 0; }
.tk-role { font-weight: 800; margin: 4px 0 0; }
.tk-quote { font-style: italic; font-size: 15px; }

/* ---------- Karen Court ---------- */
.tk-court { padding-top: 88px; padding-bottom: 88px; }
.tk-court .wp-block-columns { gap: 56px; }
.tk-court h2 { font-size: clamp(44px, 6vw, 72px); line-height: 1; }
.tk-stamps { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }
.tk-stamp { display: inline-block; font-family: var(--wp--preset--font-family--display); font-size: 30px; padding: 8px 20px; border-radius: 8px; border: 3px solid; margin: 0; }
.tk-stamp--justified { border-color: var(--wp--preset--color--teal); color: #6FD3C8; transform: rotate(-4deg); }
.tk-stamp--full { border-color: var(--wp--preset--color--pink); color: #FF7FA6; transform: rotate(3deg); }
.tk-form-card { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--navy); border-radius: 20px; padding: 34px !important; }
.tk-form-card h3 { margin-top: 0; font-size: 24px; }
.tk-form-card input, .tk-form-card textarea, .tk-form-card select { font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid #CFC7BC; border-radius: 10px; background: #FFFFFF; width: 100%; }
.tk-form-card button, .tk-form-card input[type="submit"] { background: var(--wp--preset--color--pink-dark); color: #FFFFFF; border: 0; border-radius: 999px; padding: 15px 26px; font-weight: 800; cursor: pointer; width: auto; }
.tk-form-placeholder { border: 2px dashed #CFC7BC; border-radius: 12px; padding: 18px; font-size: 15px; color: var(--wp--preset--color--ink-soft); }

/* ---------- Segments ---------- */
.tk-seg { background: #FFFFFF; border-radius: 14px; padding: 24px !important; border-top: 6px solid var(--wp--preset--color--navy); height: 100%; }
.tk-seg--gold { border-top-color: var(--wp--preset--color--gold); }
.tk-seg--pink { border-top-color: var(--wp--preset--color--pink); }
.tk-seg--teal { border-top-color: var(--wp--preset--color--teal); }
.tk-seg h3 { margin: 0; font-size: 20px; }
.tk-seg p { color: var(--wp--preset--color--ink-soft); font-size: 15px; line-height: 1.55; }

/* ---------- Live + Shop ---------- */
.tk-live, .tk-shop { border-radius: 22px; padding: 40px !important; height: 100%; }
.tk-shop { background: #FFFFFF; border: 1px solid #EAE3DA; }
.tk-live h2, .tk-shop h2 { margin-top: 0; }
.tk-show { background: #FFFFFF; color: var(--wp--preset--color--navy); border-radius: 12px; padding: 16px 18px !important; display: flex !important; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px !important; }
.tk-show p { margin: 0; }
.tk-show-date { font-weight: 800; }
.tk-show .wp-block-button__link { background: var(--wp--preset--color--navy) !important; padding: 12px 20px; font-size: 14px; }
.tk-merch { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; }
.tk-merch .wp-block-image { margin: 0; }
.tk-merch .wp-block-image img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.tk-merch-item p { margin: 0; }
.tk-merch-name { font-weight: 700; margin-top: 10px !important; }
.tk-price { font-size: 14px; color: var(--wp--preset--color--ink-soft); }

/* ---------- Newsletter ---------- */
.tk-newsletter { border-radius: 22px; padding: 44px !important; }
.tk-newsletter h2 { margin: 0; }

/* ---------- Footer ---------- */
.tk-footer { padding-top: 56px; padding-bottom: 40px; }
.tk-footer a { color: var(--wp--preset--color--lavender); }
.tk-footer-cols { display: flex !important; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.tk-footer-links { display: flex !important; flex-wrap: wrap; gap: 48px; font-size: 15px; }
.tk-footer-links p { margin: 0 0 10px; }
.tk-footer-bottom { border-top: 1px solid #343A66; margin-top: 40px !important; padding-top: 24px; display: flex !important; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; color: #B9B3C9; }
.tk-footer-bottom p { margin: 0; }
.tk-footer-bottom a { color: #FFFFFF; }

/* ---------- Spacing fixes found in WordPress testing ---------- */
/* No cream strip between the header, the page and the footer */
.wp-site-blocks { min-height: 100vh; display: flex; flex-direction: column; }
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group:not(.tk-header):not(.tk-footer) { flex: 1 0 auto; }
/* Grid and row children must line up at the top */
.tk-merch > *, .tk-footer-cols > *, .tk-footer-links > *, .tk-footer-bottom > * { margin-block-start: 0 !important; }

/* ---------- Single episode / pages ---------- */
.tk-single { padding-top: 56px; padding-bottom: 80px; max-width: 860px; margin-left: auto; margin-right: auto; }
.tk-single .wp-block-post-title { font-family: var(--wp--preset--font-family--display); font-weight: 400; text-transform: uppercase; font-size: clamp(40px, 6vw, 64px); line-height: 1.02; }
.tk-single .wp-block-post-featured-image img { border-radius: 20px; }
.tk-archive .wp-block-post-template { gap: 20px; }

/* ---------- Phones ---------- */
@media (max-width: 781px) {
	.tk-hosts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tk-host .wp-block-image img, .tk-host--tall .wp-block-image img, .tk-host--mid .wp-block-image img { height: 180px; }
	.tk-host-name { font-size: 22px; margin: 10px 10px 0; }
	.tk-host-role { margin: 0 10px 12px; font-size: 11px; }
	.tk-latest-card > .wp-block-column:last-child { padding: 28px 24px; }
	.tk-latest-card .wp-block-post-title { font-size: 34px; }
	.tk-group-photo img { height: 300px; }
	.tk-live, .tk-shop, .tk-newsletter, .tk-form-card { padding: 26px !important; }
	.tk-listen a { margin-left: 10px; }
	/* Keep the logo, menu button and Watch now on one row */
	.tk-header > .wp-block-group { flex-wrap: nowrap !important; gap: 10px !important; }
	.tk-header > .wp-block-group > .wp-block-group { flex-wrap: nowrap !important; gap: 10px !important; }
	.tk-wordmark { font-size: 24px; white-space: nowrap; }
	.tk-header .wp-block-button__link { padding: 9px 16px; font-size: 14px; white-space: nowrap; }
	.tk-hero { padding-top: 36px; }
}

/* Recent episodes grid: 4 across on desktop, fewer on smaller screens */
.tk-recent .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; gap: 20px; }
.tk-archive .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }
.tk-card .wp-block-post-featured-image img { border-radius: 10px; }

/* Phone menu: breathing room inside the open menu */
.tk-header .wp-block-navigation__responsive-container.is-menu-open { padding: 24px 6% !important; }
.tk-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 22px; }
