/* Atlasserie theme: global type, navigation, section rhythm, footer. Block styles live in the Atlasserie Atlas plugin. */

:root {
	--atl-gutter: clamp(14px, 2.6vw, 32px);
	--atl-nav-h: 52px;
}
body {
	background: var(--wp--preset--color--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "cv11", "ss01";
}
:where(h1, h2, h3, h4) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }
img { height: auto; }
::selection { background: color-mix(in srgb, var(--wp--preset--color--highlight) 22%, transparent); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--wp--preset--color--highlight) 70%, transparent); outline-offset: 3px; border-radius: 4px; }

/* ---------------------------------------------------------------- navigation: translucent glass bar */
header.wp-block-template-part { position: sticky; top: var(--wp-admin--admin-bar--height, 0); z-index: 50; }
.atl-masthead {
	background: color-mix(in srgb, var(--wp--preset--color--paper) 72%, transparent);
	-webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent);
}
.atl-masthead__row { min-height: var(--atl-nav-h); gap: 8px 28px; padding-block: 0 !important; }
.atl-wordmark a { display: inline-flex; align-items: center; gap: 8px; color: var(--wp--preset--color--ink); font-weight: 600; }
.atl-wordmark a::before {
	content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
	-webkit-mask: url("../rose.svg") center / contain no-repeat; mask: url("../rose.svg") center / contain no-repeat;
}
.atl-nav .wp-block-navigation-item__content { color: color-mix(in srgb, var(--wp--preset--color--ink) 82%, transparent); padding: 6px 0; text-decoration: none; transition: color .2s; }
.atl-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--ink); text-decoration: none; }
.atl-nav .wp-block-navigation__submenu-container { border: 0 !important; border-radius: 18px; padding: 10px !important; min-width: 260px !important; background: color-mix(in srgb, var(--wp--preset--color--paper) 92%, transparent) !important; -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .3), 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--ink) 8%, transparent); }
.atl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: 9px 12px; border-radius: 10px; font-size: .9375rem; }
.atl-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--paper-deep); }
.atl-search { margin-left: auto; min-width: 200px; }
.atl-search .wp-block-search__input {
	border: 0; border-radius: 980px; padding: 8px 14px 8px 34px; font: inherit; font-size: .875rem; color: var(--wp--preset--color--ink);
	background: var(--wp--preset--color--paper-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E6E73' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") 12px center / 15px no-repeat;
}
.atl-search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.atl-search-big .wp-block-search__input { border: 0; border-radius: 980px; padding: 16px 22px; font-size: 1.25rem; background: var(--wp--preset--color--paper-deep); color: var(--wp--preset--color--ink); }
.atl-search-big .wp-block-search__button { border-radius: 980px; margin-left: 10px; }

/* ---------------------------------------------------------------- sections */
.atl-section { padding-block: clamp(44px, 6vw, 84px) !important; }
.atl-section--grey { background: var(--wp--preset--color--paper-deep); --atl-card-bg: var(--wp--preset--color--land); }
.atl-section--tight { padding-top: 0 !important; }
main > .atl-section:first-child { padding-top: clamp(32px, 4.5vw, 64px) !important; }
.atl-section:not(.atl-section--grey):not(.atl-section--dark) + .atl-section:not(.atl-section--grey):not(.atl-section--dark) { padding-top: 0 !important; }
.atl-section--dark { background: #000; color: #F5F5F7; --wp--preset--color--ink: #F5F5F7; --wp--preset--color--ink-soft: #A1A1A6; --wp--preset--color--paper-deep: #1D1D1F; --wp--preset--color--land: #1D1D1F; }
.atl-section-head { text-align: center; max-width: 820px; margin-inline: auto !important; margin-bottom: clamp(22px, 3vw, 40px) !important; }
.atl-section-head .atl-eyebrow, .atl-eyebrow { display: block; margin: 0 0 10px; font-size: 1.0625rem; font-weight: 600; color: var(--wp--preset--color--highlight); letter-spacing: -0.01em; }
.atl-section-head h2 { margin: 0; }
.atl-section-head p { margin: 16px auto 0; max-width: 640px; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.45; color: var(--wp--preset--color--ink-soft); }
.atl-lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.45; color: var(--wp--preset--color--ink-soft); }
.atl-muted { color: var(--wp--preset--color--ink-soft); }
.is-style-ruled { padding-top: 0; }
.is-style-plate { border-radius: 28px; overflow: hidden; }
.wp-block-image.is-style-plate img { display: block; }

/* call-to-action panel */
.atl-cta { position: relative; isolation: isolate; overflow: hidden; border-radius: 32px; background: #000; color: #F5F5F7; text-align: center; }
.atl-cta > :not(.atl-pattern-layer) { position: relative; z-index: 1; }
.atl-cta .atl-pattern-layer { color: #fff; opacity: .08; }
.atl-cta h2 { color: #F5F5F7; margin-inline: auto; max-width: 16ch; }
.atl-cta .atl-lede { color: #A1A1A6; margin-inline: auto; max-width: 44ch; }
.atl-cta .wp-block-buttons { justify-content: center; }
.atl-cta .is-style-outline .wp-block-button__link { color: #2997FF; border: 0; background: transparent; }
.atl-cta .is-style-outline .wp-block-button__link:hover { text-decoration: underline; }
.wp-block-button.is-style-outline .wp-block-button__link { border: 0; background: transparent; color: var(--wp--preset--color--link); padding-inline: 8px; }

/* pattern bands */
.atl-band { position: relative; isolation: isolate; height: clamp(40px, 6vw, 64px); margin-block: 0 !important; color: var(--wp--preset--color--ink); }
.atl-band .atl-pattern-layer { position: absolute; inset: 0; opacity: .07; -webkit-mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }

/* prose + posts */
.atl-prose { font-size: 1.1875rem; line-height: 1.6; }
.atl-prose h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 2.2em; }
.atl-prose > p:first-of-type { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.4; font-weight: 500; letter-spacing: -0.015em; color: var(--wp--preset--color--ink); }
.atl-post-card { border-radius: 20px; overflow: hidden; background: var(--wp--preset--color--paper-deep); padding-bottom: 20px; }
.atl-post-card > :not(.wp-block-post-featured-image) { padding-inline: 20px; }

/* ---------------------------------------------------------------- footer */
footer.wp-block-template-part { margin-top: 0; }
.atl-colophon { background: var(--wp--preset--color--paper-deep); color: var(--wp--preset--color--ink-soft); font-size: .8125rem; }
.atl-colophon a { color: var(--wp--preset--color--ink-soft); }
.atl-colophon a:hover { color: var(--wp--preset--color--ink); }
.atl-colophon .wp-block-site-title { font-size: 1.25rem !important; }
.atl-colophon .wp-block-site-title a { color: var(--wp--preset--color--ink); }
.atl-colophon p[style*="font-weight:700"] { color: var(--wp--preset--color--ink); font-weight: 600 !important; margin-bottom: 8px; }
.atl-colophon__legal { border-top: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent); }
.atl-colophon .atl-vol-list { columns: 2; column-gap: 24px; }
.atl-colophon ul.wp-block-list { list-style: none; padding: 0; }
.atl-colophon ul.wp-block-list li { padding: 4px 0; }

@media (max-width: 900px) {
	.atl-search { order: 3; flex-basis: 100%; margin: 0 0 10px; }
}
@media print { body { background: #fff !important; } }
