/* jaredluegers.com: what theme.json cannot express. Tokens follow the LIMESTONE brand. */

:root { --jl-gold: #8A7B45; --jl-rest: #B9B3A6; --jl-hair: #E4DDCD; }
.is-style-dark { --jl-gold: #E4CC8E; --jl-rest: #787065; --jl-hair: #787065; }

/* Type details */
body { font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, .wp-block-quote p { text-wrap: balance; }
p, li { text-wrap: pretty; }
time, .wp-block-post-date, .is-style-label, .jl-num { font-variant-numeric: lining-nums tabular-nums; }
.is-style-label { font-size: var(--wp--preset--font-size--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; line-height: 1.4; }
.has-display-font-size { line-height: 1 !important; letter-spacing: -0.025em; font-weight: 500; }
.jl-muted { color: #B9AD98; }
.jl-taupe { color: #787065; }
::selection { background: #E4CC8E; color: #141312; }

/* Links: ink text, quiet underline, gold on hover */
a { text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: var(--jl-rest);
	transition: text-decoration-color .15s ease, text-decoration-thickness .15s ease; }
a:hover { text-decoration-color: var(--jl-gold); text-decoration-thickness: 2px; }
.wp-block-site-title a, .wp-block-navigation a { text-decoration: none; }
.wp-block-navigation .wp-block-navigation-item__content:hover,
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation [aria-current="page"] {
	text-decoration: underline; text-decoration-color: var(--jl-gold); text-decoration-thickness: 1px; text-underline-offset: 6px; }

/* Focus */
:focus-visible { outline: 2px solid var(--jl-gold); outline-offset: 3px; border-radius: 0; }

/* Gold rule, once per page */
.wp-block-separator.is-style-gold-rule { width: 48px; max-width: 48px; height: 0; border: 0; border-top: 3px solid var(--jl-gold);
	margin-left: 0; margin-right: auto; opacity: 1; background: none; }
.jl-footer-base { border-top: 1px solid var(--jl-hair); padding-top: var(--wp--preset--spacing--40); }

/* Rail: 4/8 split; right column keeps the reading measure */
.is-style-rail { margin-top: 0; }
.is-style-rail > .wp-block-column > * { margin-top: 0; }
.is-style-rail > .wp-block-column > * + * { margin-top: var(--wp--preset--spacing--30); }
@media (min-width: 782px) {
	.jl-sticky { position: sticky; top: 2rem; align-self: flex-start; }
	.jl-hero > .wp-block-column:first-child { order: 2; }
}

/* Index rows: hairline above, whole row clickable */
.is-style-index-row { padding-top: var(--wp--preset--spacing--40) !important; padding-bottom: var(--wp--preset--spacing--40) !important; position: relative; border-top: 1px solid var(--jl-hair); transition: border-color .15s ease; }
.is-style-index-row > * { margin-top: 0; }
.is-style-index-row > * + * { margin-top: var(--wp--preset--spacing--20); }
.is-style-index-row h3 a { text-decoration: none; }
.is-style-index-row h3 a::before { content: ""; position: absolute; inset: 0; }
.is-style-index-row:hover { border-top-color: #333333; }
.is-style-index-row:hover h3 a { text-decoration: underline; text-decoration-color: var(--jl-gold); text-decoration-thickness: 2px; }
.is-style-index-row p a { position: relative; z-index: 1; }
.jl-rows > .is-style-index-row:last-child { border-bottom: 1px solid var(--jl-hair); }

/* Philosophy beliefs */
.jl-belief { border-top: 1px solid var(--jl-hair); padding-top: var(--wp--preset--spacing--50); }

/* Kobe quote on dark: hung opening mark */
.is-style-dark .wp-block-quote { border: 0; padding: 0; margin-left: 0; }
.is-style-dark .wp-block-quote p { font-size: var(--wp--preset--font-size--quote); line-height: 1.3; letter-spacing: -0.01em; text-indent: -0.42em; hanging-punctuation: first; }
.is-style-dark .wp-block-quote cite { display: block; margin-top: var(--wp--preset--spacing--30); font-size: var(--wp--preset--font-size--label);
	font-style: normal; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: #B9AD98; }

/* Details (bios) */
.wp-block-details summary { cursor: pointer; font-size: var(--wp--preset--font-size--row-title); font-weight: 600; letter-spacing: -0.01em; }
.wp-block-details { border-top: 1px solid var(--jl-hair); padding-top: var(--wp--preset--spacing--40); }

/* Contact page height */
.jl-contact { min-height: 60vh; }

/* Work: type tabs and photo tiles */
.jl-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; border-bottom: 1px solid var(--jl-hair); padding-bottom: var(--wp--preset--spacing--30);
	font-size: var(--wp--preset--font-size--label); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; }
.jl-tabs a { text-decoration: none; padding: 0.5rem 0; }
.jl-tabs a:hover,
.post-type-archive-jetpack-portfolio .jl-tab-all,
.term-organizations .jl-tab-organizations,
.term-events .jl-tab-events,
.term-projects .jl-tab-projects,
.term-press .jl-tab-press { text-decoration: underline; text-decoration-color: var(--jl-gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.jl-work .wp-block-post-template { gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40); }
.jl-work .wp-block-post-template > li > * { margin-top: 0; }
.jl-work .wp-block-post-featured-image { margin-bottom: var(--wp--preset--spacing--30); }
.jl-work .wp-block-post-title { font-size: var(--wp--preset--font-size--body); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.jl-work .wp-block-post-title a { text-decoration: none; }
.jl-work li:hover .wp-block-post-title a { text-decoration: underline; text-decoration-color: var(--jl-gold); text-decoration-thickness: 2px; }
.jl-work .wp-block-post-date { margin-top: var(--wp--preset--spacing--20); color: #787065; }
.jl-back a { text-decoration: none; }
.jl-back a::before { content: "\2190\2009"; }

/* Older Work entries: keep photos and galleries inside the column */
.wp-block-post-content img { max-width: 100%; height: auto; }
.tiled-gallery__item img { width: 100%; height: auto; }

/* Menu: collapse to "Menu" below 960px (core collapses only below 600px) */
@media (min-width: 600px) and (max-width: 959px) {
	.jl-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
	.jl-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
}
/* Mobile menu overlay: dark, large, left-aligned */
.jl-nav .wp-block-navigation__responsive-container.is-menu-open { background: #141312 !important; color: #F5F2EA !important; padding: var(--wp--preset--spacing--50) clamp(1.5rem, 0.5714rem + 3.8095vw, 4rem); }
.jl-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start; }
.jl-nav .is-menu-open .wp-block-navigation__container { align-items: flex-start; gap: 0; width: 100%; }
.jl-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-bottom: 1px solid #787065; }
.jl-nav .is-menu-open .wp-block-navigation-item__content { font-size: var(--wp--preset--font-size--section-title); font-weight: 500; padding: 0.75rem 0 !important; color: #F5F2EA; }
.jl-nav .wp-block-navigation__responsive-container-open, .jl-nav .wp-block-navigation__responsive-container-close { font-size: var(--wp--preset--font-size--small); font-weight: 500; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Home hero on dark */
.jl-hero-dark .has-display-font-size { color: #F5F2EA; }
.jl-hero-dark .jl-role { color: #F5F2EA; }
.jl-hero-dark p[style*="italic"] { color: #B9AD98; }
.home header .is-style-dark, .jl-hero-dark { margin-top: 0 !important; }
.home .wp-site-blocks > header + main { margin-top: 0; }

/* Portrait: offset gold hairline frame behind the photo */
.jl-headshot { position: relative; isolation: isolate; margin-right: 18px !important; margin-bottom: 18px !important; }
.jl-headshot::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid #E4CC8E; z-index: -1; pointer-events: none; }
.jl-headshot img { display: block; position: relative; box-shadow: none; border-radius: 0; }
:not(.is-style-dark) > * .jl-headshot::before { border-color: var(--jl-gold); }
@media (max-width: 781px) {
	.jl-headshot { float: none !important; margin: 0 12px 12px 0 !important; }
	.jl-headshot::before { inset: 12px -12px -12px 12px; }
}

/* Home: header sits on the night photo */
.home .wp-site-blocks { position: relative; }
.home .wp-site-blocks > header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.home .wp-site-blocks > header .is-style-dark { background: transparent !important; }
.home .wp-site-blocks > header + main { margin-top: 0 !important; }
.jl-home-cover { margin-top: 0 !important; }
.jl-home-cover .wp-block-cover__inner-container { width: 100%; max-width: 80rem; margin: 0 auto; }
.jl-home-cover .has-display-font-size, .jl-home-cover .jl-role { color: #F5F2EA; }
.jl-home-cover p[style*="italic"] { color: #B9AD98; }
.jl-home-cover .wp-block-separator.is-style-gold-rule { border-top-color: #E4CC8E; }
.jl-home-cover .jl-hero-copy { max-width: 56rem; }
.jl-home-cover .jl-hero-copy .jl-role { max-width: 34rem; }
@media (min-width: 782px) { .jl-home-cover .has-display-font-size { white-space: nowrap; } }
/* Portrait on a light ground: the frame takes gold-on-light */
.jl-portrait { position: relative; isolation: isolate; margin: 0 18px 18px 0 !important; }
.jl-portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid #8A7B45; z-index: -1; pointer-events: none; }
.jl-portrait img { display: block; width: 100%; height: auto; }
@media (max-width: 781px) {
	.jl-portrait { max-width: 70%; margin: 0 12px 12px 0 !important; }
	.jl-portrait::before { inset: 12px -12px -12px 12px; }
}

/* QA pass 1 */
/* Sections meet edge to edge: no default block gap between full-width grounds */
.wp-site-blocks > main, .wp-site-blocks > footer { margin-block-start: 0 !important; }
.wp-block-post-content > .alignfull, .wp-block-post-content > .wp-block-cover.alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
main.wp-block-group > .wp-block-post-content { margin-block-start: 0 !important; }
.jl-role { text-wrap: balance; }

/* Bios: a plain plus/minus in Archivo instead of the browser triangle */
.wp-block-details summary { list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-weight: 400; color: #8A7B45; }
.wp-block-details[open] summary::after { content: "2"; }
.wp-block-details > p:first-of-type { margin-top: var(--wp--preset--spacing--30); }

/* Work: three even columns of 3:2 tiles */
.jl-work .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
@media (max-width: 1023px) { .jl-work .wp-block-post-template.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 599px) { .jl-work .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; } }
.jl-work .wp-block-post-featured-image, .jl-work .wp-block-post-featured-image a { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.jl-work .wp-block-post-featured-image img { width: 100% !important; height: 100% !important; object-fit: cover; }

/* Older Work entries: Jetpack tiled galleries laid out without depending on Jetpack's stylesheet */
.tiled-gallery__gallery { display: flex; flex-direction: column; gap: 6px; }
.tiled-gallery__row { display: flex; gap: 6px; }
.tiled-gallery__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tiled-gallery__item { margin: 0; }
.tiled-gallery__item img { display: block; width: 100%; height: auto; }

/* About: the Speedway photo as a cinematic strip, focused on the speaker */
.jl-forum img { object-position: 50% 22%; }
.jl-links p { margin: 0 0 0.5rem; }

/* Phone menu: left-aligned like the rest of the page */
.jl-nav .wp-block-navigation__responsive-container.is-menu-open { --navigation-layout-justification-setting: flex-start; --navigation-layout-justify: flex-start; --navigation-layout-align: flex-start; }
.jl-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.jl-nav .is-menu-open .wp-block-navigation__container,
.jl-nav .is-menu-open .wp-block-navigation-item { align-items: flex-start !important; justify-content: flex-start !important; text-align: left; }
.jl-nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: var(--wp--preset--spacing--60); }

/* Work entries: featured image as the entry's banner */
.jl-entry-image { margin-top: var(--wp--preset--spacing--40) !important; margin-bottom: var(--wp--preset--spacing--40) !important; }
.jl-entry-image img { width: 100%; height: 100%; object-fit: cover; }

/* Header and hero run edge to edge: name at the left margin, menu at the right */
.wp-site-blocks > header .alignwide, .wp-site-blocks > footer .alignwide { max-width: none !important; }
.jl-home-cover .wp-block-cover__inner-container { max-width: none !important; }
.wp-block-site-title { font-size: 1.1875rem !important; }
.wp-block-navigation .wp-block-navigation-item__content { font-size: 1.0625rem; letter-spacing: 0.005em; }
.wp-block-navigation__container { gap: 2rem !important; }
/* Hero: show the whole photograph on desktop; keep enough height for the words on a phone */
.jl-home-cover { min-height: 0 !important; }
@media (max-width: 781px) { .jl-home-cover { aspect-ratio: auto !important; min-height: 88vh !important; } }

/* Footer mark: JL limestone block beside the name */
.jl-footer-id { gap: var(--wp--preset--spacing--40); }
.jl-footer-mark { display: block; width: 84px; height: auto; flex: none; }
@media (max-width: 600px) { .jl-footer-mark { width: 64px; } }
