/* ==========================================================================
   StylePilot – design system
   ========================================================================== */
:root {
	--sp-bg: #F6F3EE; --sp-surface: #FFFFFF; --sp-surface-2: #EFEAE2; --sp-ink: #1E1F22; --sp-muted: #6B6359;
	--sp-line: #E3DCD0; --sp-navy: #1C2B45; --sp-accent: #775940; --sp-sand: #D9CBB4; --sp-good: #2F6B4F; --sp-warn: #A0502E;
	--sp-radius: 14px; --sp-max: 1240px;
	--sp-font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
	--sp-font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--sp-shadow: 0 1px 2px rgba(28,43,69,.05), 0 12px 32px -12px rgba(28,43,69,.16);
	color-scheme: light;
}
[data-scheme="dark"] {
	--sp-bg: #121316; --sp-surface: #1B1D21; --sp-surface-2: #24272C; --sp-ink: #ECE8E1; --sp-muted: #A79F94;
	--sp-line: #30333A; --sp-navy: #8FA8D4; --sp-accent: #C9A47E; --sp-sand: #4A4134; --sp-good: #7CC09E; --sp-warn: #E08C68;
	--sp-shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
	color-scheme: dark;
}
[data-scheme="dark"] .spt-btn--primary, [data-scheme="dark"] .sp-btn--primary, [data-scheme="dark"] .spt-chip.is-active, [data-scheme="dark"] .spt-tab[aria-selected="true"], [data-scheme="dark"] .spt-pill { color: #121316; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body { margin: 0; background: var(--sp-bg); color: var(--sp-ink); font-family: var(--sp-font-sans); font-size: 17px; line-height: 1.6; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--sp-navy); text-underline-offset: 3px; }
a:hover { color: var(--sp-accent); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--sp-font-serif); font-weight: 500; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--sp-accent); outline-offset: 3px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.sp-skip { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--sp-ink); color: var(--sp-bg); padding: 10px 16px; border-radius: 8px; }
.sp-skip:focus { top: 12px; }
.sp-container { width: 100%; max-width: var(--sp-max); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.sp-container--narrow { max-width: 820px; }
.sp-center { text-align: center; }
.sp-main { outline: none; }

/* buttons */
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .96rem; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .15s; white-space: nowrap; }
.sp-btn:hover { transform: translateY(-1px); }
.sp-btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.02rem; }
.sp-btn--primary { background: var(--sp-navy); color: #fff; }
.sp-btn--primary:hover { color: #fff; background: color-mix(in srgb, var(--sp-navy) 82%, #000); }
[data-scheme="dark"] .sp-btn--primary:hover { color: #121316; background: color-mix(in srgb, var(--sp-navy) 85%, #fff); }
.sp-btn--ghost { background: transparent; color: var(--sp-ink); border-color: color-mix(in srgb, var(--sp-ink) 25%, transparent); }
.sp-btn--ghost:hover { color: var(--sp-ink); border-color: var(--sp-ink); }
.sp-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sp-line); background: var(--sp-surface); color: var(--sp-ink); cursor: pointer; padding: 0; }
.sp-icon-btn svg { width: 20px; height: 20px; }
.sp-i-moon { display: none; }
[data-scheme="dark"] .sp-i-sun { display: none; } [data-scheme="dark"] .sp-i-moon { display: block; }
.sp-eyebrow { font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: var(--sp-accent); margin: 0 0 12px; }

/* header */
.sp-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--sp-bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.sp-header.is-scrolled { border-bottom-color: var(--sp-line); box-shadow: 0 6px 24px -18px rgba(0,0,0,.4); }
.sp-header__inner { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.sp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sp-ink); flex: none; }
.sp-brand:hover { color: var(--sp-ink); }
.sp-brand__mark { width: 38px; height: 38px; color: var(--sp-navy); }
.sp-brand__logo { max-height: 44px; width: auto; }
.sp-brand__text { display: grid; line-height: 1.1; }
.sp-brand__text strong { font-family: var(--sp-font-serif); font-size: 1.32rem; font-weight: 600; letter-spacing: -.01em; }
.sp-brand__text small { font-size: .7rem; color: var(--sp-muted); letter-spacing: .06em; }
.sp-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.sp-nav__list { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.sp-nav a { display: block; padding: 8px 11px; border-radius: 999px; color: var(--sp-ink); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.sp-nav a:hover, .sp-nav a.is-current { background: var(--sp-surface-2); color: var(--sp-ink); }
.sp-nav__more { position: relative; }
.sp-nav__more > summary { white-space: nowrap; list-style: none; cursor: pointer; padding: 8px 11px; border-radius: 999px; font-size: .9rem; font-weight: 500; }
.sp-nav__more > summary::-webkit-details-marker { display: none; }
.sp-nav__more > summary::after { content: " ▾"; font-size: .7em; }
.sp-nav__more > ul { position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: 8px; background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); width: 300px; max-height: 70vh; overflow: auto; }
.sp-nav__more > ul a { border-radius: 8px; white-space: normal; }
.sp-header__actions { display: flex; align-items: center; gap: 8px; }
.sp-menu-toggle { display: none; }
@media (max-width: 1360px) { .sp-nav__list a { padding: 8px 8px; font-size: .86rem; } .sp-brand__text small { display: none; } }
@media (max-width: 1240px) {
	.sp-menu-toggle { display: inline-grid; }
	.sp-nav { position: fixed; inset: 72px 0 auto 0; margin: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; background: var(--sp-bg); border-bottom: 1px solid var(--sp-line); padding: 12px clamp(18px, 4vw, 40px) 20px; max-height: calc(100vh - 72px); overflow-y: auto; box-shadow: var(--sp-shadow); }
	.sp-nav.is-open { display: flex; }
	.sp-nav__list { flex-direction: column; }
	.sp-nav a { padding: 12px 10px; font-size: 1rem; border-radius: 10px; }
	.sp-nav__more { border-top: 1px solid var(--sp-line); margin-top: 8px; padding-top: 8px; }
	.sp-nav__more > summary { padding: 12px 10px; font-size: 1rem; }
	.sp-nav__more > ul { position: static; width: auto; box-shadow: none; border: 0; padding: 0 0 0 8px; max-height: none; background: transparent; }
	.sp-header__actions { margin-left: auto; }
}
@media (max-width: 520px) { .sp-header__cta { display: none; } .sp-brand__text small { display: none; } }

/* hero */
.sp-hero { position: relative; padding: clamp(32px, 6vw, 80px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.sp-hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; background: radial-gradient(closest-side, color-mix(in srgb, var(--sp-sand) 55%, transparent), transparent); z-index: -1; }
.sp-hero__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sp-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); } }
.sp-hero h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -.025em; margin-bottom: 22px; max-width: 13ch; }
.sp-hero__lede { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--sp-muted); max-width: 40ch; margin-bottom: 30px; }
.sp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.sp-hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 22px 0 0; margin: 0; border-top: 1px solid var(--sp-line); font-size: .92rem; color: var(--sp-muted); }
.sp-hero__facts strong { color: var(--sp-ink); font-family: var(--sp-font-serif); font-size: 1.25rem; font-weight: 600; margin-right: 4px; }
.sp-hero__art { position: relative; }
.sp-hero__svg, .sp-hero__img { width: 100%; max-width: 560px; display: block; margin: 0 auto; }
.sp-hero__img { border-radius: 260px 260px var(--sp-radius) var(--sp-radius); aspect-ratio: 1; object-fit: cover; }
.sp-art-arch { fill: var(--sp-surface-2); } .sp-art-sun { fill: var(--sp-sand); } .sp-art-card { fill: var(--sp-surface); } .sp-art-line { fill: var(--sp-line); } .sp-art-hole { fill: var(--sp-bg); }
.sp-hero__svg > g { transform-box: fill-box; }
@media (prefers-reduced-motion: no-preference) { .sp-hero__svg > g { animation: sp-float 7s ease-in-out infinite alternate; } .sp-hero__svg > g:nth-of-type(2n) { animation-delay: -3s; } }
@keyframes sp-float { to { translate: 0 -6px; } }
.sp-toolindex { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 10px; margin-top: clamp(32px, 5vw, 56px); }
.sp-toolcard { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-height: 58px; background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: 12px; text-decoration: none; color: var(--sp-ink); font-size: .88rem; font-weight: 600; line-height: 1.25; transition: border-color .2s, transform .2s, box-shadow .2s; }
.sp-toolcard:hover { color: var(--sp-ink); border-color: var(--sp-navy); transform: translateY(-2px); box-shadow: var(--sp-shadow); }
.sp-toolcard__icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--sp-surface-2); color: var(--sp-accent); font-size: 1rem; }
@media (max-width: 560px) { .sp-toolindex { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-toolcard { font-size: .82rem; padding: 10px; } }

/* sections */
.sp-section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.sp-section--alt { background: color-mix(in srgb, var(--sp-surface-2) 55%, var(--sp-bg)); }
.sp-section--feature { background: var(--sp-navy); color: #F6F3EE; }
[data-scheme="dark"] .sp-section--feature { background: #18233a; }
.sp-section--feature .sp-section__head h2, .sp-section--feature .sp-section__intro { color: #F6F3EE; }
.sp-section--feature .sp-eyebrow { color: #D9CBB4; }
.sp-section--feature .spt-how, .sp-section--feature .spt-how summary { color: #e7e1d7; }
.sp-section--feature .spt-tool { --sp-ink: #1E1F22; --sp-muted: #6B6359; --sp-surface: #fff; --sp-surface-2: #EFEAE2; --sp-bg: #F6F3EE; --sp-line: #E3DCD0; --sp-navy: #1C2B45; --sp-accent: #775940; --sp-good: #2F6B4F; --sp-warn: #A0502E; }
.sp-section--feature .spt-tool .spt-btn--primary, .sp-section--feature .spt-tool .spt-chip.is-active, .sp-section--feature .spt-tool .spt-pill { color: #fff; }
.sp-section--feature .spt-saved h4, .sp-section--feature .spt-capsule-out > .spt-fineprint, .sp-section--feature .spt-capsule-col h4, .sp-section--feature .spt-matrix-wrap > h4, .sp-section--feature .spt-matrix-wrap > .spt-fineprint, .sp-section--feature .spt-saved > .spt-btn--link { color: #F6F3EE; }
.sp-section--feature .spt-matrix-wrap, .sp-section--feature .spt-capsule-grid { color: #F6F3EE; }
.sp-section--feature .spt-matrix th { color: #F6F3EE; }
.sp-section--feature .spt-capsule-out > .spt-actions .spt-btn--ghost { color: #F6F3EE; border-color: rgba(246,243,238,.4); }
.sp-section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.sp-section__head h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.06; letter-spacing: -.02em; margin-bottom: 14px; }
.sp-section__intro { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--sp-muted); margin: 0; max-width: 62ch; }

/* explainer blocks */
.sp-explainer { margin-top: clamp(36px, 5vw, 56px); }
.sp-explainer__title { font-family: var(--sp-font-serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 18px; }
.sp-cards-5, .sp-cards-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.sp-mini { background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 20px; }
.sp-mini h3, .sp-mini h4 { font-size: 1.04rem; font-family: var(--sp-font-sans); font-weight: 700; margin-bottom: 8px; letter-spacing: 0; }
.sp-mini p { font-size: .95rem; line-height: 1.6; margin: 0; color: color-mix(in srgb, var(--sp-ink) 85%, var(--sp-muted)); }
.sp-mini__sw { display: block; height: 10px; border-radius: 99px; margin-bottom: 14px; }
.sp-disclaimer { font-size: .88rem; color: var(--sp-muted); margin-top: 16px; max-width: 80ch; }
.sp-style-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.sp-style-card { background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 20px; }
.sp-style-card h4 { font-family: var(--sp-font-serif); font-weight: 500; font-size: 1.3rem; margin: 12px 0 6px; }
.sp-style-card p { font-size: .93rem; color: color-mix(in srgb, var(--sp-ink) 85%, var(--sp-muted)); margin-bottom: 10px; }
.sp-style-card summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--sp-navy); }
.sp-style-card ul { font-size: .9rem; padding-left: 1.1em; margin: 8px 0 0; }
.sp-style-card__pal { display: flex; }
.sp-style-card__pal span { width: 26px; height: 26px; border-radius: 50%; margin-right: -6px; box-shadow: 0 0 0 2px var(--sp-surface); }

/* pages */
.sp-page { padding: clamp(40px, 6vw, 80px) 0; }
.sp-page__head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.sp-crumbs { font-size: .86rem; color: var(--sp-muted); margin-bottom: 18px; }
.sp-crumbs a { color: var(--sp-muted); }
.sp-prose { font-size: 1.04rem; line-height: 1.75; }
.sp-prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.sp-prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.sp-prose ul, .sp-prose ol { padding-left: 1.3em; }
.sp-page__updated { color: var(--sp-muted); font-size: .88rem; margin-top: 2em; }
.sp-post-list { display: grid; gap: 18px; }
.sp-post-card { background: var(--sp-surface); border: 1px solid var(--sp-line); border-radius: var(--sp-radius); padding: 22px; }
.sp-post-card h2 { font-size: 1.4rem; }
.sp-admin-note { margin: 20px 0; padding: 14px 18px; border-radius: 12px; background: #fff4d6; color: #5a4300; border: 1px solid #f0d37a; }

/* footer */
.sp-footer { background: #15171B; color: #CFC8BC; padding: clamp(48px, 6vw, 80px) 0 28px; font-size: .94rem; }
.sp-footer a { color: #ECE6DC; text-decoration: none; }
.sp-footer a:hover { color: #D9CBB4; text-decoration: underline; }
.sp-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
@media (min-width: 960px) { .sp-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.sp-footer__name { font-family: var(--sp-font-serif); font-size: 1.6rem; color: #fff; margin-bottom: 10px; }
.sp-footer__h { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: #9b9284; font-weight: 700; }
.sp-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sp-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid #2a2d33; font-size: .84rem; color: #9b9284; }
.sp-footer__bottom p { margin: 0; }

/* WordPress core */
.alignwide { max-width: min(1100px, 100%); margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--sp-radius); }
.wp-caption-text, figcaption { font-size: .86rem; color: var(--sp-muted); }

@media print {
	.sp-header, .sp-footer, .sp-toolindex, .spt-actions, .spt-ad { display: none !important; }
	body { background: #fff; color: #000; }
}

@media (min-width: 1100px) { .sp-cards-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .sp-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
