/*
Theme Name: Leaving with Laura
Theme URI: https://graceffa.com
Author: Rail Bridge Creative
Author URI: https://railbridgecreative.co
Description: A simple, clean, modern travel and family blog theme built for Leaving with Laura. Full site editing block theme with a rotating story hero, card-based archives, related-post suggestions, and RSS subscription.
Requires at least: 6.5
Tested up to: 6.7
Requires PHP: 7.4
Version: 1.5.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leaving-with-laura
Tags: blog, entertainment, food-and-drink, travel, two-columns, block-patterns, custom-colors, custom-menu, editor-style, featured-images, full-site-editing, rss

This theme, like WordPress, is licensed under the GPL.
Use it to make something great, as free software should be used.
*/

a:where(:not(.wp-element-button)) {
    color: var(--wp--preset--color--harbor);
    text-decoration: underline;
	transition: all 0.4s ease;
}

:root :where(a:where(:not(.wp-element-button)):hover) {
    color: var(--wp--preset--color--harbor-dark);
}

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

.lwl-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding-block: 0.875rem;
	padding: 2rem 1.25rem;
	background-color: var(--wp--preset--color--off-white, #FAFAFA);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--fog, #D9D5CC) 70%, transparent);
	transition: padding 200ms ease, box-shadow 200ms ease;
}

.admin-bar .lwl-header {
	top: 32px;
}

.lwl-header__inner {
	gap: clamp(1rem, 4vw, 2.5rem);
}

.lwl-header__end {
	gap: clamp(0.75rem, 2.5vw, 1.75rem);
}

/* --- Brand ---------------------------------------------------------------- */

.lwl-brand {
	gap: 0.75rem;
	text-decoration: none;
}

.lwl-brand__logo img {
	display: block;
	width: 56px;
	height: auto;
}

.lwl-brand__text {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.lwl-brand__title,
.lwl-brand__title a,
.lwl-brand__title a:visited {
	font-family: var(--wp--preset--font-family--fraunces, "Fraunces", Georgia, serif);
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	font-weight: 600;
	font-variation-settings: "SOFT" 30, "WONK" 1;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0;
	color: var(--wp--preset--color--ink, #23303B);
	text-decoration: none;
	transition: color 0.4s ease;
}

/* Hovering the logo OR the title shifts the title color */
.lwl-brand:hover .lwl-brand__title,
.lwl-brand:hover .lwl-brand__title a,
.lwl-brand:focus-within .lwl-brand__title,
.lwl-brand:focus-within .lwl-brand__title a {
	color: var(--wp--preset--color--terracotta, #D9704E);
}

/* --- Navigation ----------------------------------------------------------- */

.lwl-nav {
	font-family: var(--wp--preset--font-family--inter, "Inter", system-ui, sans-serif);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.01em;
    text-transform: uppercase;
	gap: clamp(1rem, 2vw, 1.75rem);
}

.lwl-nav .wp-block-navigation-item__content {
	position: relative;
	padding-block: 0.25rem;
	color: var(--wp--preset--color--ink, #23303B);
	text-decoration: none;
}

/* Understated underline that draws in on hover */
.lwl-nav .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: var(--wp--preset--color--terracotta, #D9704E);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 260ms ease;
}

.lwl-nav .wp-block-navigation-item__content:hover::after,
.lwl-nav .wp-block-navigation-item__content:focus-visible::after,
.lwl-nav .current-menu-item > .wp-block-navigation-item__content::after,
.lwl-nav .current-menu-ancestor > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
	transform-origin: left center;
}

/* Hide "Home" while the visitor is already on the front page */
body.home .lwl-nav .wp-block-home-link,
body.blog .lwl-nav .wp-block-home-link {
	display: none;
}

/* Trips submenu */
.lwl-nav .wp-block-navigation__submenu-container {
	min-width: 12rem;
	padding-block: 0.5rem;
	background-color: var(--wp--preset--color--paper, #FBF7F0);
	border: 1px solid var(--wp--preset--color--fog, #D9D5CC);
	border-radius: 10px;
	box-shadow: 0 12px 32px -12px rgba(35, 48, 59, 0.28);
	overflow: hidden;
    transition: all 0.4s ease;
}

.lwl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.5rem 1rem;
	width: 100%;
}

.lwl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after {
	display: none;
}

.lwl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	background-color: color-mix(in srgb, var(--wp--preset--color--gold, #C6A15B) 18%, transparent);
	color: var(--wp--preset--color--ink, #23303B);
    transition: all 0.4s ease;
}

/* --- Social --------------------------------------------------------------- */

.lwl-social.wp-block-social-links {
	gap: 0.5rem;
	margin: 0;
	padding-left: clamp(0.5rem, 2vw, 1.25rem);
	border-left: 1px solid var(--wp--preset--color--fog, #D9D5CC);
}

.lwl-social .wp-social-link {
	transition: transform 200ms ease, color 200ms ease;
}

.lwl-social .wp-social-link:hover {
	transform: translateY(-2px);
}

/* --- Mobile overlay ------------------------------------------------------- */

@media (max-width: 781px) {

	.lwl-header {
		padding: 1.25rem;
	}

	.lwl-header__end {
		flex-wrap: nowrap;
		gap: 0.5rem;
	}

	.lwl-social.wp-block-social-links {
		flex-wrap: nowrap;
		gap: 0.15rem;
		padding-left: 0.5rem;
	}

	.lwl-social .wp-social-link {
		width: 1.75rem;
		height: 1.75rem;
	}

	.lwl-brand__logo img {
		width: 44px;
	}

	.lwl-brand__tagline {
		display: none;
	}

	.lwl-social.wp-block-social-links {
		border-left: none;
		padding-left: 0;
	}

    .lwl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		align-items: flex-start;
		gap: 1.5rem;
        width: 100%;
	}

	.lwl-nav .wp-block-navigation__responsive-container.is-menu-open {
		background-color: var(--wp--preset--color--paper, #FBF7F0);
		padding: 1.5rem;
	}

	.lwl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-family: var(--wp--preset--font-family--inter, "Inter", system-ui, sans-serif);
		font-size: 1.5rem;
		font-weight: 500;
        text-transform: none;
        letter-spacing: 0;
	}

	.lwl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child .wp-block-navigation__submenu-container {
	    min-width: 12rem;
        padding: 1rem;
        margin-top: 1rem;
	    background-color: var(--wp--preset--color--paper, #FBF7F0);
	    border: 1px solid var(--wp--preset--color--fog, #D9D5CC);
	    border-radius: 10px;
	    box-shadow: 0 12px 32px -12px rgba(35, 48, 59, 0.28);
	    overflow: hidden;
	}

    .lwl-nav .wp-block-navigation .has-child .wp-block-navigation__submenu-container>.wp-block-navigation-item>.wp-block-navigation-item__content {
        width: fit-content;
    }
}

@media (prefers-reduced-motion: reduce) {
	.lwl-header,
	.lwl-brand__title a,
	.lwl-brand__logo img,
	.lwl-nav .wp-block-navigation-item__content::after,
	.lwl-social .wp-social-link {
		transition: none;
	}
}

/* -----------------------------------------------------------------------
   Site footer
   ----------------------------------------------------------------------- */

.lwl-footer {
	padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem clamp(1.75rem, 4vw, 2.5rem);
	margin-top: 3rem;
	background-color: var(--wp--preset--color--fog);
}

.lwl-footer__inner {
	align-items: flex-start;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.lwl-footer__brand {
	max-width: 32rem;
	gap: 1rem;
}

.lwl-footer__brand-row {
	align-items: center;
}

.lwl-site-title,
.lwl-site-title a {
	font-family: var(--wp--preset--font-family--fraunces, "Fraunces", Georgia, serif);
	font-size: clamp(1.25rem, 2.4vw, 1.625rem);
	font-weight: 600;
	font-variation-settings: "SOFT" 30, "WONK" 1;
	line-height: 1.1;
	letter-spacing: -0.015em;
	margin: 0;
	color: var(--wp--preset--color--ink, #23303B);
	text-decoration: none;
	transition: color 0.4s ease;
}

.lwl-footer__bio {
	margin: 0;
	line-height: 1.6;
	opacity: 0.8;
}

.lwl-footer a {
	color: var(--wp--preset--color--harbor);
	text-decoration: none;
	transition: color 0.4s ease;
}

.lwl-footer a:hover {
	color: var(--wp--preset--color--terracotta);
}

.lwl-footer .wp-block-navigation a {
	text-decoration: none;
	font-size: var(--wp--preset--font-size--meta);
}

.lwl-footer__meta {
	font-size: var(--wp--preset--font-size--meta);
	opacity: 0.6;
	margin-top: 0.5rem;
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.lwl-home-row {
	align-items: flex-start;
}

.lwl-explore-col .lwl-cat-cards__grid {
	grid-template-columns: 1fr;
	gap: 1rem;
}

.lwl-explore-col .lwl-cat-card {
	position: relative;
	flex-direction: row;
	align-items: stretch;
	aspect-ratio: auto;
	height: 6.5rem;
	background: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--fog);
	border-radius: 3px;
	transition: border-color 0.4s ease;
}

.lwl-explore-col .lwl-cat-card:hover {
	border-color: var(--wp--preset--color--terracotta);
}

.lwl-explore-col .lwl-cat-card__media {
	position: relative;
	inset: auto;
	flex: 0 0 6.5rem;
}

.lwl-explore-col .lwl-cat-card__scrim {
	display: none;
}

.lwl-explore-col .lwl-cat-card__label {
	position: static;
	z-index: auto;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 0 1rem;
	color: var(--wp--preset--color--ink);
}

.lwl-explore-col .lwl-cat-card__count {
	color: var(--wp--preset--color--ink);
	opacity: 0.55;
}

/* ==========================================================================
   Posts page — card list
   ========================================================================== */

.lwl-post-list {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.lwl-post-card {
	position: relative;
	align-items: stretch;
	background-color: var(--wp--preset--color--paper);
	border: 1px solid var(--wp--preset--color--fog);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.4s ease;
}

.lwl-post-card:hover,
.lwl-post-card:focus-within {
	border-color: var(--wp--preset--color--terracotta);
}

.lwl-post-card__media {
	flex: 0 0 clamp(10rem, 22vw, 16rem);
	aspect-ratio: 4 / 3;
	margin: 0;
	overflow: hidden;
	background-color: var(--wp--preset--color--fog);
}

.lwl-post-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.4s ease;
}

.lwl-post-card:hover .lwl-post-card__media img,
.lwl-post-card:focus-within .lwl-post-card__media img {
	transform: scale(1.03);
}

.lwl-post-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	min-width: 0;
}

.lwl-post-card__eyebrow {
	font-size: var(--wp--preset--font-size--meta);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.lwl-post-card__eyebrow a {
	position: relative;
	display: inline-block;
	color: var(--wp--preset--color--terracotta);
	text-decoration: none;
	transition: color 0.4s ease;
}

.lwl-post-card__eyebrow a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 100%;
	height: 2px;
	background-color: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform 260ms ease;
}

.lwl-post-card__eyebrow a:hover {
	color: var(--wp--preset--color--harbor);
}

.lwl-post-card__eyebrow a:hover::after,
.lwl-post-card__eyebrow a:focus-visible::after {
	transform: scaleX(1);
	transform-origin: left center;
}

.lwl-post-card__title {
	margin: 0;
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.3;
}

.lwl-post-card__title a {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	transition: color 0.4s ease;
}

.lwl-post-card:hover .lwl-post-card__title a,
.lwl-post-card:focus-within .lwl-post-card__title a {
	color: var(--wp--preset--color--terracotta);
}

.lwl-post-card__date {
	font-size: var(--wp--preset--font-size--meta);
	color: var(--wp--preset--color--ink);
	opacity: 0.6;
}

@media (max-width: 600px) {
	.lwl-post-card {
		flex-direction: column;
	}

	.lwl-post-card__media {
		flex-basis: auto;
		aspect-ratio: 16 / 9;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lwl-post-card,
	.lwl-post-card__media img,
	.lwl-post-card__title a {
		transition: none;
	}
}

.lwl-author-bio {
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	margin-top: 3rem;
	padding-top: 3rem;
	border-top: 1px solid var(--wp--preset--color--fog);
}

.lwl-author-bio__photo img {
	display: block;
	width: 100px;
	height: 100%;
	object-fit: cover;
}

.lwl-author-bio__text {
	margin: 0;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--ink);
	line-height: 1.6;
	max-width: 60ch;
}