/*
Theme Name: Tolon
Theme URI: tolonsolutions.ai
Author: Jessica Tolon
Author URI: tolonsolutions.ai
Description: The Tolon Solutions child theme — a personal brand and fractional CMO site for Jessica Tolon. Built on Ollie. Signal-first positioning, editorial design system: warm cream canvas, pure-black type, Manrope display, Lato body, Playfair Display italic accent. All design tokens live in theme.json; all custom CSS lives here.
Template: ollie
Version: 0.1.4
Requires at least: 6.5
Requires PHP: 7.3
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tolon
*/

/* ----------------------------------------------------------------------------
   Tolon child theme — custom CSS

   Design tokens (color, type, spacing, layout width) are defined in theme.json
   and should be edited there first. This file holds only what theme.json cannot
   express: utility classes and bespoke layout/treatment rules for our patterns.

   No inline styles in templates. Everything visual lands here or in theme.json.
   Mobile-first. Test at 375px, 768px, 1280px.
---------------------------------------------------------------------------- */


/* Cream canvas
   ----------------------------------------------------------------------------
   The background is the warm cream gradient — never a flat color. The gradient
   itself is defined once in theme.json (gradient slug: cream-canvas) and only
   referenced here, so theme.json stays the single source of truth. Fixed
   attachment keeps it reading like paper/natural light as the page scrolls. */

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--wp--preset--color--base);
	background-image: var(--wp--preset--gradient--cream-canvas);
	background-attachment: fixed;
	min-height: 100vh;
}


/* Eyebrow labels
   ----------------------------------------------------------------------------
   Small sentence-case labels with wide letter-spacing. NOT all-caps. Apply
   `.eyebrow` to a paragraph/heading set to the eyebrow font size. */

.eyebrow {
	font-size: var(--wp--preset--font-size--eyebrow);
	letter-spacing: 0.2em;
	font-weight: 700;
	text-transform: none;
	color: var(--wp--preset--color--main);
}


/* Italic editorial accent
   ----------------------------------------------------------------------------
   Fraunces italic — one moment per page, typically a single word in a headline.
   Apply `.accent-italic` to the span that should turn editorial. */

.accent-italic {
	font-family: var(--wp--preset--font-family--accent);
	font-style: italic;
	font-weight: 400;
	letter-spacing: 0;
}


/* Inverse moments
   ----------------------------------------------------------------------------
   Glossier-style full-bleed black sections with cream typography. Used one or
   two times per page max, for emphasis. Apply `.is-inverse` to the wrapping
   group/section block of any pattern that should flip to the dark treatment.
   Colors reference the same palette tokens defined in theme.json. */

.is-inverse {
	background-color: #000000;
	color: #F3F1F0;
}

.is-inverse a,
.is-inverse h1,
.is-inverse h2,
.is-inverse h3,
.is-inverse h4,
.is-inverse p {
	color: inherit;
}


/* ============================================================================
   Homepage layout
   ----------------------------------------------------------------------------
   The front-page template (templates/front-page.html) supplies semantic block
   containers carrying these classes; every visual rule lives here and pulls
   from theme.json tokens. No inline styles in the template.
   ============================================================================ */

/* Top bar — full-bleed, but inset with the SAME side padding as every section
   (theme.json root padding), so "Tolon." lines up with the section content's
   left edge rather than the viewport edge. flex space-between then carries the
   nav out to the matching right edge. */
.tolon-topbar {
	padding-block: 1.75rem;
	padding-inline: clamp(1.5rem, 6vw, 7.5rem);
}

.tolon-mark {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.03em;
	margin: 0;
}

/* Hero — full-bleed image + frosted liquid-glass panel */
.tolon-hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	overflow: hidden;
	padding-inline: clamp(1.5rem, 6vw, 7.5rem);
	background: #000 url("assets/images/hero-liquid-glass.jpg") center / cover no-repeat;
}

.tolon-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.08) 48%, rgba(0, 0, 0, 0) 100%);
}

.tolon-glass {
	position: relative;
	z-index: 1;
	max-width: 680px;
	background: rgba(18, 16, 15, 0.28);
	-webkit-backdrop-filter: blur(20px) saturate(125%);
	backdrop-filter: blur(20px) saturate(125%);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-top-color: rgba(255, 255, 255, 0.3);
	border-radius: 28px;
	padding: clamp(2rem, 4vw, 3rem);
	color: var(--wp--preset--color--base);
}

.tolon-glass h1 {
	color: var(--wp--preset--color--base);
	font-size: clamp(2.1rem, 4.2vw, 3.4rem);
	line-height: 1.05;
	margin: 0;
	text-wrap: balance;
}

.tolon-glass p {
	color: #e9e4db;
	max-width: 42ch;
	margin: 1.25rem 0 0;
}

.tolon-glass .wp-block-buttons {
	margin-top: 1.75rem;
}

/* Section scaffold */
.tolon-section {
	padding-block: clamp(4rem, 10vw, 9rem);
	scroll-margin-top: 1.5rem;
}

/* Left-align ALL section content to one column edge (overrides WordPress
   constrained-layout, which was centering narrow blocks and letting long
   headlines overflow). Everything shares the same left edge; headlines cap so
   they wrap instead of running off the right. */
.tolon-section.tolon-section > * {
	max-width: 1120px !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	overflow-wrap: break-word;
}

.tolon-section.tolon-section > .lede {
	max-width: 60ch !important;
}

.tolon-section .lede,
.is-inverse .lede {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	max-width: 60ch;
	margin-top: 2rem;
	margin-inline: 0;
	line-height: 1.65;
}

.tolon-snap {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	line-height: 1.15;
	letter-spacing: -0.02em;
	margin-top: 2.5rem;
}

/* Section 03 — "What you get": full-bleed photo behind a dark overlay, with the
   three outcome boxes rendered as frosted glass. Mirrors the hero's glass panel
   so the two dark moments read as a set. */
.tolon-feature {
	position: relative;
	overflow: hidden;
	background: #000 url("assets/images/feature-flower.jpg") center / cover no-repeat;
}

.tolon-feature::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.7) 100%);
}

/* Lift the section's own content above the overlay and flip its type to cream. */
.tolon-feature.tolon-section > * {
	position: relative;
	z-index: 1;
}

.tolon-feature .eyebrow,
.tolon-feature h2 {
	color: var(--wp--preset--color--base);
}

/* Outcome cards */
.tolon-cards {
	margin-top: 3.5rem;
	gap: 1rem;
}

.tolon-cell {
	background: rgba(255, 255, 255, 0.5);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 20px;
	padding: 2.5rem 2rem;
}

/* Inside the photo section the cards turn to frosted glass (hero panel match). */
.tolon-feature .tolon-cell {
	background: rgba(18, 16, 15, 0.32);
	-webkit-backdrop-filter: blur(20px) saturate(125%);
	backdrop-filter: blur(20px) saturate(125%);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-top-color: rgba(255, 255, 255, 0.3);
}

.tolon-cell h3 {
	font-size: 1.6rem;
	line-height: 1.15;
	margin: 0 0 0.75rem;
	text-wrap: balance;
}

.tolon-cell p {
	font-size: 1.02rem;
	margin: 0;
	text-wrap: pretty;
}

.tolon-feature .tolon-cell h3,
.tolon-feature .tolon-cell p {
	color: var(--wp--preset--color--base);
}

/* Mega wordmark */
.tolon-mega-sec {
	overflow: hidden;
	padding-block: clamp(2rem, 5vw, 4rem);
}

.tolon-mega {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(5rem, 26vw, 18rem);
	line-height: 0.85;
	letter-spacing: -0.05em;
	margin: 0;
}

/* Buttons on dark surfaces flip to cream-on-black */
.tolon-glass .wp-block-button__link,
.is-inverse .wp-block-button__link {
	background-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--main);
}

/* Footer */
.tolon-footer {
	border-top: 1px solid rgba(0, 0, 0, 0.12);
	padding-block: 3rem;
}

.tolon-footer .tolon-mark {
	font-size: 2rem;
}

.tolon-footer small {
	color: var(--wp--preset--color--secondary);
	font-size: 0.85rem;
}

/* Nav links */
.tolon-nav {
	gap: 1.5rem;
}

.tolon-navlinks {
	margin: 0;
}

.tolon-navlinks a {
	color: var(--wp--preset--color--main);
	text-decoration: none;
	font-size: 0.95rem;
	margin-left: 2rem;
}

.tolon-navlinks a:first-child {
	margin-left: 0;
}

@media (max-width: 680px) {
	.tolon-navlinks { display: none; }
}

/* Section 04 — "How": service cards in a responsive grid. Each card carries a
   name + a one-line descriptor and a soft shadow to lift it off the cream. */
.tolon-caps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-top: 3rem;
}

@media (min-width: 600px) {
	.tolon-caps { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 960px) {
	.tolon-caps { grid-template-columns: 1fr 1fr 1fr; }
}

.tolon-svc-card {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	padding: 1.75rem 1.5rem;
	background: var(--wp--preset--color--white);
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 18px 40px -24px rgba(0, 0, 0, 0.35);
}

.tolon-svc-name {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: 1.15rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--wp--preset--color--main);
	text-wrap: balance;
}

.tolon-svc-desc {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #555;
	text-wrap: pretty;
}

/* About — bio block (portrait placeholder + text + LinkedIn link) */
.tolon-bio {
	margin-top: 3rem;
}

.tolon-bio-photo {
	aspect-ratio: 4 / 5;
	border-radius: 20px;
	overflow: hidden;
	background: var(--wp--preset--color--cream-warm) url("assets/images/jessica-portrait.jpg") center / cover no-repeat;
}

.tolon-bio-text {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	line-height: 1.7;
}

/* Emphasized bio line — display family, medium weight, set apart */
.tolon-bio-emphasis {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: clamp(1.15rem, 2vw, 1.45rem);
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 1.75rem 0;
	color: var(--wp--preset--color--main);
}

.tolon-bio-closer {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #555;
}

.tolon-bio-link {
	margin-top: 1.25rem;
}

.tolon-bio-link a {
	color: var(--wp--preset--color--main);
	font-weight: 400;
	font-size: 0.95rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Proof metrics — hairline rows only (no boxes, no vertical borders, no fills).
   Service tag leads (prominent); metric + descriptor support beneath. */
.tolon-metrics {
	display: grid;
	grid-template-columns: 1fr;
	margin-top: 3rem;
}

@media (min-width: 600px) {
	.tolon-metrics { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

@media (min-width: 960px) {
	.tolon-metrics { grid-template-columns: 1fr 1fr 1fr; column-gap: 3.5rem; }
}

.tolon-metric-row {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1.6rem 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

/* Service tag — now the prominent, scannable line */
.tolon-metric-tag {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.2;
	color: var(--wp--preset--color--main);
}

/* Metric — secondary supporting line */
.tolon-metric {
	font-size: 1.1rem;
	line-height: 1.35;
	color: var(--wp--preset--color--main);
}

/* Descriptor — smallest, muted */
.tolon-metric-desc {
	font-size: 0.9rem;
	line-height: 1.5;
	color: #777;
}
