/*
Theme Name: Meridian
Theme URI: https://lattimorehyman.com
Author: Lattimore Hyman & Associates
Description: A private-office block theme in white, paper and ink, with Cormorant Garamond headlines and Manrope text. Ships full-page patterns for Lattimore Hyman & Associates, Evan Lattimore and Mark Hyman, Ed.D.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meridian
Tags: full-site-editing, block-patterns, custom-logo, editor-style, one-column
*/

:root {
	--lh-ink: #141414;
	--lh-text: #2A2A2A;
	--lh-muted: #4A4A4A;
	--lh-taupe: #6E6253;
	--lh-taupe-light: #B8AF9F;
	--lh-stone: #EFECE6;
	--lh-paper: #F8F6F2;
	--lh-line: #ECEAE5;
	--lh-rule: #DDD8CE;
	--lh-serif: "Cormorant Garamond", Georgia, serif;
	--lh-sans: Manrope, "Helvetica Neue", Arial, sans-serif;
	--lh-gutter: clamp(20px, 4vw, 48px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "liga" 0, "calt" 0, "dlig" 0; font-variant-ligatures: none; }
[id] { scroll-margin-top: 110px; }
:where(a, button, .wp-element-button):focus-visible { outline: 1px solid var(--lh-ink); outline-offset: 4px; }
::selection { background: var(--lh-stone); color: var(--lh-ink); }
.wp-site-blocks > * + * { margin-block-start: 0; }
em { font-style: italic; }

/* ---------- Structure ---------- */
.lh-wrap { max-width: 1360px; margin-inline: auto !important; padding-inline: var(--lh-gutter); box-sizing: border-box; }
.lh-section { padding-block: clamp(88px, 10vw, 144px); margin: 0 !important; }
.lh-section.lh-paper { background: var(--lh-paper); }
.lh-section:not(.lh-paper) + .lh-section:not(.lh-paper) { padding-top: 0; }
.lh-section.lh-top { padding-block: clamp(64px, 9vw, 128px) clamp(80px, 9vw, 136px); }

.lh-wrap > *, .lh-hero > *, .lh-hero-text > *, .lh-head > *, .lh-head-title > *, .lh-rows > *, .lh-row > *,
.lh-steps > *, .lh-step > *, .lh-cards > *, .lh-card > *, .lh-card-meta > *, .lh-center > *, .lh-split > *,
.lh-split-text > *, .lh-contacts > *, .lh-contact > *, .lh-panel > *, .lh-prose > *, .lh-list > *, .lh-list-row > *,
.lh-header-inner > *, .lh-header-nav > *, .lh-utility-inner > *, .lh-footer-inner > *, .lh-footer-base > *, .lh-copyright > * {
	margin-block: 0 !important;
}

/* ---------- Type ---------- */
.lh-label {
	display: flex; align-items: center; gap: 16px;
	font-size: 11px !important; font-weight: 600; letter-spacing: 0.3em; line-height: 1.6; text-transform: uppercase;
	color: var(--lh-taupe);
}
.lh-label::before { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; }
.lh-center .lh-label { justify-content: center; }
.lh-center .lh-label::after { content: ""; flex: 0 0 48px; height: 1px; background: currentColor; }

.lh-display { font-family: var(--lh-serif); font-weight: 300 !important; font-size: clamp(56px, 7.6vw, 124px) !important; line-height: 0.96 !important; letter-spacing: -0.02em; color: var(--lh-ink); }
.lh-section h2 { font-family: var(--lh-serif); font-weight: 300; font-size: clamp(44px, 5vw, 76px); line-height: 1.02; color: var(--lh-ink); }
.lh-lead { font-size: 19px !important; line-height: 1.7; color: var(--lh-muted); max-width: 560px; }
.lh-intro { color: var(--lh-muted); max-width: 440px; }
.lh-italic { font-family: var(--lh-serif); font-style: italic; font-size: 21px !important; line-height: 1.5; color: var(--lh-muted); }
.lh-statement { font-family: var(--lh-serif); font-weight: 300; font-size: clamp(30px, 3.4vw, 48px) !important; line-height: 1.3; color: var(--lh-ink); text-align: center; max-width: 1000px; margin-inline: auto !important; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background-color 0.35s ease, color 0.35s ease; }
.lh-actions { gap: 20px 44px !important; align-items: center; }
.wp-block-button.is-style-text-link .wp-block-button__link {
	background: none !important; color: var(--lh-ink) !important; border: 0; border-bottom: 1px solid var(--lh-ink);
	padding: 0 0 6px !important; border-radius: 0;
}
.wp-block-button.is-style-text-link .wp-block-button__link:hover { color: var(--lh-taupe) !important; border-color: var(--lh-taupe); }
.lh-more a { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--lh-ink); padding-bottom: 6px; }
.lh-more a:hover { color: var(--lh-taupe); border-color: var(--lh-taupe); }

/* ---------- Ornament ---------- */
hr.wp-block-separator.is-style-ornament {
	border: 0 !important; width: 152px !important; max-width: 152px; height: 8px; position: relative; overflow: visible; opacity: 1;
	margin-inline: auto !important; background:
		linear-gradient(var(--lh-taupe-light), var(--lh-taupe-light)) left center / 64px 1px no-repeat,
		linear-gradient(var(--lh-taupe-light), var(--lh-taupe-light)) right center / 64px 1px no-repeat;
}
hr.wp-block-separator.is-style-ornament::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px;
	border: 1px solid var(--lh-taupe); transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Hero ---------- */
.lh-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 72px 112px; }
.lh-hero-text { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.lh-hero > .wp-block-image { flex: 0 1 440px; min-width: 280px; max-width: 460px; }

/* ---------- Framed image ---------- */
.wp-block-image.is-style-framed { position: relative; margin: 0 20px 20px 0 !important; }
.wp-block-image.is-style-framed::before { content: ""; position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px; border: 1px solid #D9D4CA; pointer-events: none; }
.wp-block-image.is-style-framed img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.wp-block-image.is-style-framed { margin-bottom: 72px !important; }
.wp-block-image.is-style-framed figcaption { position: absolute; top: 100%; left: 0; right: 0; margin: 36px 0 0; font-family: var(--lh-serif); font-style: italic; font-size: 18px; color: var(--lh-taupe); text-align: left; }
.lh-book.wp-block-image.is-style-framed img { aspect-ratio: 2 / 3; }

/* ---------- Section heads ---------- */
.lh-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 80px; margin-bottom: 64px !important; }
.lh-head-title { display: flex; flex-direction: column; gap: 22px; }
.lh-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.lh-center .lh-intro { max-width: 700px; }
.lh-wrap > .lh-center + .lh-steps, .lh-wrap > .lh-center + .lh-rows, .lh-wrap > .lh-center + .lh-cards { margin-top: 80px !important; }

/* ---------- Rows (practice, timeline) ---------- */
.lh-rows { border-top: 1px solid var(--lh-ink); }
.lh-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.35fr); gap: 6px 32px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--lh-line); transition: padding-left 0.4s ease; }
.lh-row:hover { padding-left: 14px; }
.lh-row.lh-row-year { grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1.35fr); }
.lh-num { font-family: var(--lh-serif); font-style: italic; font-size: 22px !important; color: var(--lh-taupe); }
.lh-row-year .lh-num { font-size: 24px !important; }
.lh-row h3 { font-family: var(--lh-serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 34px) !important; line-height: 1.15; color: var(--lh-ink); }
.lh-row .lh-italic { line-height: 1.45; }
.lh-meta { display: block; margin-top: 6px; font-family: var(--lh-sans); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lh-taupe); }

/* ---------- Steps ---------- */
.lh-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lh-step { padding: 0 32px; border-left: 1px solid var(--lh-rule); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.lh-step:first-child { border-left: 0; padding-left: 0; }
.lh-step:last-child { padding-right: 0; }
.lh-roman { font-family: var(--lh-serif); font-weight: 300; font-size: 64px !important; line-height: 1; color: var(--lh-taupe-light); }
.lh-step h3 { font-family: var(--lh-serif); font-weight: 400; font-size: 30px !important; line-height: 1.15; color: var(--lh-ink); }
.lh-step .lh-italic { font-size: 20px !important; max-width: 250px; }

/* ---------- Cards ---------- */
.lh-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 64px; }
.lh-card { display: flex; flex-direction: column; gap: 26px; }
.lh-card .wp-block-image { margin: 0; }
.lh-card .wp-block-image img { width: 100%; height: auto; aspect-ratio: 5 / 6; object-fit: cover; display: block; }
.lh-card-meta { border-top: 1px solid var(--lh-ink); padding-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.lh-card-meta h3 { font-family: var(--lh-serif); font-weight: 400; font-size: 40px !important; line-height: 1.08; color: var(--lh-ink); }
.lh-role { font-size: 11px !important; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lh-taupe); }
.lh-panel { background: var(--lh-paper); border-top: 1px solid var(--lh-ink); padding: 48px 44px; display: flex; flex-direction: column; gap: 16px; }
.lh-paper .lh-panel { background: #FFFFFF; }
.lh-panel h3 { font-family: var(--lh-serif); font-weight: 400; font-size: 34px !important; line-height: 1.15; color: var(--lh-ink); }

/* ---------- Quote ---------- */
.wp-block-quote.lh-quote { border: 0; padding: 0; margin: 0 auto !important; max-width: 860px; }
.wp-block-quote.lh-quote p { font-family: var(--lh-serif); font-style: italic; font-weight: 300; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.3; color: var(--lh-ink); }
.wp-block-quote.lh-quote cite { display: block; margin-top: 22px; font-family: var(--lh-sans); font-style: normal; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lh-taupe); }

/* ---------- Split, prose, contacts, lists ---------- */
.lh-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 64px 112px; }
.lh-split-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.lh-split > :last-child { flex: 999 1 520px; min-width: 0; }
.lh-split.lh-split-center { align-items: center; }
.lh-split > .wp-block-image { flex: 0 1 380px; min-width: 260px; max-width: 400px; }
.lh-prose { display: flex; flex-direction: column; gap: 22px; }
.lh-contacts { display: flex; flex-direction: column; border-top: 1px solid var(--lh-ink); }
.lh-contact { padding: 22px 0; border-bottom: 1px solid var(--lh-line); display: flex; flex-direction: column; gap: 4px; }
.lh-contact .lh-role { margin: 0; }
.lh-contact a { font-family: var(--lh-serif); font-size: 26px; text-decoration: none; }
.lh-list { border-top: 1px solid var(--lh-ink); }
.lh-list-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--lh-line); }
.lh-list-row > :first-child { font-family: var(--lh-serif); font-size: 23px !important; font-weight: 500; color: var(--lh-ink); }
.lh-list-row > :last-child { font-size: 14px !important; color: var(--lh-taupe); }

/* ---------- Gallery ---------- */
.wp-block-gallery.lh-gallery { gap: 18px !important; }
.wp-block-gallery.lh-gallery .wp-block-image { overflow: hidden; }
.wp-block-gallery.lh-gallery .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.9s ease; }
.wp-block-gallery.lh-gallery .wp-block-image:hover img { transform: scale(1.03); }
.wp-block-gallery.lh-gallery figcaption { background: linear-gradient(to top, rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0)) !important; font-family: var(--lh-serif); font-style: italic; font-size: 19px !important; padding: 44px 20px 16px !important; text-align: left !important; }

/* ---------- Header ---------- */
.wp-site-blocks > header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: #FFFFFF; }
.lh-utility { border-bottom: 1px solid var(--lh-line); font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--lh-taupe); }
.lh-utility-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-block: 12px; }
.lh-utility-inner p, .lh-utility .wp-block-site-tagline { font-size: 11px !important; }
.lh-header { border-bottom: 1px solid var(--lh-line); background: #FFFFFF; }
.lh-header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 22px; }
.lh-header-inner .wp-block-site-logo img { height: auto; max-height: 52px; width: auto; }
.lh-header-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 44px; }
.lh-nav { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
.lh-nav .wp-block-navigation-item__content { text-decoration: none; padding-bottom: 5px; background-image: linear-gradient(var(--lh-ink), var(--lh-ink)); background-size: 0 1px; background-repeat: no-repeat; background-position: 50% 100%; transition: background-size 0.35s ease; }
.lh-nav .wp-block-navigation-item__content:hover { background-size: 100% 1px; color: var(--lh-ink); }
.lh-nav .wp-block-navigation__container { gap: 12px 40px; }
.lh-header-nav .wp-block-button__link { padding: 14px 22px; }

/* ---------- Footer ---------- */
.lh-footer { background: var(--lh-paper); border-top: 1px solid var(--lh-line); padding-block: 88px 40px; }
.lh-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.lh-footer-inner .wp-block-site-logo img { height: auto; max-height: 60px; width: auto; }
.lh-footer .wp-block-site-tagline { font-family: var(--lh-serif); font-style: italic; font-size: 22px; color: var(--lh-taupe); text-align: center; }
.lh-footer-base { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-top: 24px; border-top: 1px solid #E2DED6; font-size: 12px; color: var(--lh-taupe); }
.lh-footer-base p { font-size: 12px !important; }
.lh-copyright { display: flex; flex-wrap: wrap; gap: 0 6px; }
.lh-copyright .wp-block-site-title { font-family: var(--lh-sans); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.lh-copyright .wp-block-site-title a { text-decoration: none; color: inherit; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
	.lh-row, .lh-row.lh-row-year { grid-template-columns: 1fr; }
	.lh-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
	.lh-step:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 600px) {
	.lh-steps { grid-template-columns: 1fr; }
	.lh-step { border-left: 0; padding: 0; }
	.lh-panel { padding: 36px 28px; }
}

/* ---------- Inner pages ---------- */
.lh-page-head { display: flex; flex-direction: column; gap: 32px; max-width: 1040px; }
.lh-page-head > * { margin-block: 0 !important; }
.lh-page-title { font-size: clamp(52px, 6.6vw, 108px) !important; }
.lh-page-head .lh-lead { max-width: 680px; }
.lh-section#top + .lh-section:not(.lh-paper) { padding-top: clamp(88px, 10vw, 144px); }
.lh-prose > .lh-role { margin-bottom: -8px !important; }

/* ---------- Insights (posts) ---------- */
.lh-posts .wp-block-post-template { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 56px 40px; list-style: none; padding: 0; margin: 0; }
.lh-posts .wp-block-post { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--lh-ink); padding-top: 22px; }
.lh-posts .wp-block-post > * { margin-block: 0 !important; }
.lh-posts .wp-block-post-featured-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.lh-posts .wp-block-post-title { font-family: var(--lh-serif); font-weight: 400; font-size: 32px; line-height: 1.15; }
.lh-posts .wp-block-post-title a { text-decoration: none; }
.lh-posts .wp-block-post-excerpt { color: var(--lh-muted); }
.lh-posts .wp-block-post-date { font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--lh-taupe); }
.lh-posts .wp-block-query-pagination { margin-top: 64px; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; }
