/*
Theme Name: Ashley Kadence
Theme URI: https://www.tropicocrochet.com/
Description: TropiCrochet custom child theme for Kadence.
Author: Ash
Version: 1.0.0
Template: kadence
Text Domain: ashley-kadence
*/

:root {
	--tc-stone: #e1dcd8;
	--tc-paper: #f8f7f4;
	--tc-white: #ffffff;
	--tc-teal: #3f5c58;
	--tc-teal-dark: #304744;
	--tc-coral: #d07454;
	--tc-coral-dark: #af6147;
	--tc-brown: #634334;
	--tc-turquoise: #269282;
	--tc-gold: #e0b858;
	--tc-ink: #2f302e;
	--tc-muted: #696864;
	--tc-border: #bcaea3;
	--tc-serif: Georgia, "Times New Roman", serif;
	--tc-body-size: 1.05rem;
	--tc-body-line-height: 1.75;
	--tc-heading-line-height: 1.12;
	--tc-content-width: 1280px;
	--tc-reading-width: 760px;
	--tc-section-padding: clamp(4rem, 8vw, 8rem);
	--tc-side-padding: clamp(1.25rem, 5vw, 4rem);
	--tc-radius-small: 4px;
	--tc-radius-medium: 18px;
	--tc-transition: 180ms ease;
}

html { scroll-behavior: smooth; }

body {
	background: var(--tc-paper);
	color: var(--tc-ink);
	font-family: var(--tc-serif);
	font-size: var(--tc-body-size);
	line-height: var(--tc-body-line-height);
	-webkit-font-smoothing: antialiased;
}

::selection { background: var(--tc-gold); color: var(--tc-ink); }

h1, h2, h3, h4, h5, h6 {
	color: var(--tc-ink);
	font-family: var(--tc-serif);
	line-height: var(--tc-heading-line-height);
}

h1, h2 { font-style: italic; font-weight: 700; letter-spacing: -0.02em; }
h3, h4 { font-weight: 600; }
p { margin-bottom: 1.4em; }

a { color: var(--tc-teal); transition: color var(--tc-transition), opacity var(--tc-transition); }
a:hover { color: var(--tc-coral); }

.site-header,
.site-header .site-main-header-wrap { background: transparent; }
.site-header a { color: var(--tc-ink); font-family: var(--tc-serif); }
.main-navigation .primary-menu-container > ul > li > a {
	font-family: var(--tc-serif);
	font-size: 1rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}
.main-navigation .primary-menu-container > ul > li > a:hover { color: var(--tc-coral); }

.entry-content > *,
.wp-block-group__inner-container > * {
	max-width: var(--tc-content-width);
	margin-left: auto;
	margin-right: auto;
}
.entry-content > p,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote { max-width: var(--tc-reading-width); }

.tc-section {
	padding: var(--tc-section-padding) var(--tc-side-padding);
}
.tc-section-stone { background: var(--tc-stone); }
.tc-section-paper { background: var(--tc-paper); }
.tc-section-teal { background: var(--tc-teal); color: #fff; }
.tc-section-teal h1,
.tc-section-teal h2,
.tc-section-teal h3,
.tc-section-teal h4,
.tc-section-teal p { color: #fff; }

.tc-hero { position: relative; overflow: hidden; }
.tc-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(248, 247, 244, 0.56) 0%, rgba(248, 247, 244, 0.50) 55%, rgba(248, 247, 244, 0.44) 100%);
	pointer-events: none;
}

/* The scrim is the cover block's last child, so it painted over the hero type
   as well as the photograph. Lifting the content above it is what the old
   .tc-hero-content rule was reaching for but never matched. */
.tc-hero > .wp-block-cover__inner-container { position: relative; z-index: 1; }
.tc-hero-kicker { color: var(--tc-ink); font-size: clamp(1.125rem, 1.8vw, 1.5rem); max-width: 46ch; font-style: italic; }
.tc-hero-title { color: var(--tc-ink); font-size: clamp(2.75rem, 5.2vw, 5.25rem); font-style: italic; font-weight: 700; line-height: .98; }
/* Hero geometry: scoped so it outranks the global heading margin. */
.tc-hero .tc-hero-title { margin-top: clamp(1.75rem, 3.2vw, 3rem); }

.tc-display-title { font-size: clamp(2.5rem, 5vw, 5rem); font-style: italic; font-weight: 700; line-height: 1; }
.tc-section-title { font-size: clamp(2rem, 4vw, 3.8rem); font-style: italic; font-weight: 700; }
.tc-coral-heading { color: var(--tc-teal); }
.tc-teal-heading { color: var(--tc-teal); }

.tc-specimen { background: var(--tc-stone); }
.tc-specimen-image { width: 100%; height: 100%; object-fit: cover; }
.tc-specimen-details { padding: clamp(2rem, 5vw, 5rem); }
.tc-specimen-label { color: var(--tc-ink); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.tc-specimen-number { color: var(--tc-brown); font-size: .85rem; letter-spacing: .06em; }
.tc-specimen-description { max-width: 650px; }

button, .button, .wp-block-button__link, .kb-button, input[type="submit"] {
	border: 0;
	border-radius: 18px;
	background: var(--tc-coral-dark);
	color: #fff;
	font-family: var(--tc-serif);
	font-size: 1rem;
	font-weight: 700;
	padding: .9rem 1.75rem;
	text-decoration: none;
	transition: background-color var(--tc-transition), transform var(--tc-transition);
}
button:hover, .button:hover, .wp-block-button__link:hover, .kb-button:hover, input[type="submit"]:hover {
	background: #8d4f39;
	color: #fff;
	transform: translateY(-1px);
}
.tc-button-brown .wp-block-button__link { background: var(--tc-brown); }
.tc-button-brown .wp-block-button__link:hover { background: #4d3326; }
.tc-button-gold .wp-block-button__link { background: var(--tc-gold); color: var(--tc-ink); }
.tc-button-gold .wp-block-button__link:hover { background: #d2a945; color: var(--tc-ink); }

.tc-exhibit { background: var(--tc-paper); }
.tc-exhibit-intro { max-width: 850px; margin: 0 auto; text-align: center; }
.tc-exhibit-intro p { font-style: italic; }
.tc-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 5rem); }
.tc-product-card { text-align: center; }
.tc-product-card img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 250ms ease; }
.tc-product-card:hover img { transform: translateY(-4px); }
.tc-product-title { font-size: clamp(1.25rem, 2vw, 1.7rem); font-weight: 400; }
.tc-product-description { max-width: 420px; margin: 0 auto; }

.tc-archive { background: var(--tc-stone); }
.tc-archive-card { background: var(--tc-paper); border: 1px solid var(--tc-border); padding: clamp(2rem, 4vw, 4rem); }
.tc-archive-title { color: var(--tc-coral); font-size: clamp(2rem, 4vw, 4rem); font-style: italic; }
.tc-archive-meta { color: var(--tc-muted); font-size: .85rem; letter-spacing: .07em; text-transform: uppercase; }
.tc-archive-optin { background: #f1e8de; border: 1px solid #9c765b; border-radius: 12px; padding: clamp(1.5rem, 4vw, 3rem); text-align: center; }
.tc-archive-optin h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.tc-archive-optin input[type="email"] { width: 100%; }

.tc-journal { background: var(--tc-teal); color: #fff; }
.tc-journal h1, .tc-journal h2, .tc-journal h3, .tc-journal h4, .tc-journal p, .tc-journal a { color: #fff; }
.tc-journal a:hover { color: var(--tc-gold); }
.tc-journal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 6rem); }
.tc-journal-label { font-size: .9rem; letter-spacing: .08em; }
.tc-journal-title { font-size: clamp(1.5rem, 2.5vw, 2.1rem); font-weight: 400; }
.tc-more-entries { margin-top: 3rem; text-align: center; }

.tc-collections { background: var(--tc-paper); }
.tc-collection-card { background: var(--tc-stone); padding: clamp(2rem, 4vw, 4rem); text-align: center; }
.tc-collection-card h3 { font-style: italic; font-weight: 600; }
.tc-collection-card p { max-width: 520px; margin: 0 auto; }

.tc-newsletter { background: var(--tc-teal); color: #fff; }
.tc-newsletter h2, .tc-newsletter p { color: #fff; }
.tc-newsletter-form { background: var(--tc-turquoise); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.tc-newsletter-form input { background: #fff; border: 0; border-radius: 5px; color: var(--tc-ink); }
.tc-newsletter-form .wp-block-button__link { background: var(--tc-gold); color: var(--tc-ink); border-radius: 4px; }
.tc-newsletter-form .wp-block-button__link:hover { background: #d2a945; color: var(--tc-ink); }
.tc-newsletter-image img { border-radius: 25% 25% 25% 25% / 20% 20% 20% 20%; }

.site-footer { background: var(--tc-stone); color: var(--tc-ink); }
.site-footer a { color: var(--tc-ink); }
.site-footer a:hover { color: var(--tc-coral); }
.tc-footer-brand { font-size: clamp(1.7rem, 3vw, 2.5rem); font-style: italic; font-weight: 700; }

input, textarea, select {
	background: #fff;
	border: 1px solid #cfc6bd;
	border-radius: 5px;
	color: var(--tc-ink);
	font-family: var(--tc-serif);
	font-size: 1rem;
	padding: .75rem .9rem;
}
input:focus, textarea:focus, select:focus {
	border-color: var(--tc-teal);
	box-shadow: 0 0 0 2px rgba(63, 92, 88, .12);
	outline: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product { background: transparent; text-align: center; }
.woocommerce ul.products li.product img,
.woocommerce-page ul.products li.product img { transition: transform 250ms ease; }
.woocommerce ul.products li.product:hover img,
.woocommerce-page ul.products li.product:hover img { transform: translateY(-4px); }
.woocommerce-loop-product__title { color: var(--tc-ink); font-family: var(--tc-serif); font-weight: 400; }
.woocommerce ul.products li.product .price { color: var(--tc-ink); font-family: var(--tc-serif); }

:focus-visible { outline: 2px solid var(--tc-coral); outline-offset: 3px; }

@media (max-width: 1024px) {
	.tc-product-grid { gap: 2rem; }
	.tc-journal-grid { gap: 2rem; }
}

@media (max-width: 767px) {
	:root { --tc-body-size: 1rem; --tc-section-padding: 3.5rem; --tc-side-padding: 1.25rem; }
	body { line-height: 1.65; }
	h1 { font-size: clamp(2.3rem, 10vw, 3.4rem); }
	h2 { font-size: clamp(2rem, 9vw, 3rem); }
	.tc-hero-title { font-size: clamp(2.4rem, 9.6vw, 3.5rem); }
	.tc-product-grid { grid-template-columns: 1fr; gap: 3rem; }
	.tc-journal-grid { grid-template-columns: 1fr; gap: 2.5rem; }
	.tc-collection-card { padding: 2.5rem 1.5rem; }
	.tc-newsletter-form { padding: 1.25rem; }
	.tc-specimen-details { padding: 2rem 1.25rem; }
}

@media (max-width: 480px) {
	.tc-section { padding-left: 1rem; padding-right: 1rem; }
	.tc-display-title { font-size: 2.5rem; }
	.tc-archive-title { font-size: 2.2rem; }
}


/* Collection reads as the way in: full ink weight plus a hairline rule. */
.main-navigation .primary-menu-container > ul > li > a[href$="/shop/"] {
	color: var(--tc-ink);
	border-bottom: 1px solid var(--tc-border);
	padding-bottom: 2px;
}
.main-navigation .primary-menu-container > ul > li > a[href$="/shop/"]:hover,
.main-navigation .primary-menu-container > ul > li > a[href$="/shop/"]:focus-visible {
	border-bottom-color: var(--tc-coral-dark);
}


/* Homepage only: header sits closer to the hero. Halves the global
   content-area top margin at each of the theme's own breakpoints;
   left as-is on every other page. */
body.home .content-area { margin-top: 2.5rem; }
@media all and (max-width: 1024px) { body.home .content-area { margin-top: 1.5rem; } }
@media all and (max-width: 767px) { body.home .content-area { margin-top: 1rem; } }