/* Appearance controls apply only when a published or preview design opts into a value. */
body:not([data-theme="dark"])[data-design-light-primary] { --primary: var(--design-light-primary); }
body[data-theme="dark"][data-design-dark-primary] { --primary: var(--design-dark-primary); }
body:not([data-theme="dark"])[data-design-light-secondary] { --design-secondary: var(--design-light-secondary); }
body[data-theme="dark"][data-design-dark-secondary] { --design-secondary: var(--design-dark-secondary); }
body:not([data-theme="dark"])[data-design-light-accent] { --accent: var(--design-light-accent); }
body[data-theme="dark"][data-design-dark-accent] { --accent: var(--design-dark-accent); }
body:not([data-theme="dark"])[data-design-light-background] { --bg-color: var(--design-light-background); }
body[data-theme="dark"][data-design-dark-background] { --bg-color: var(--design-dark-background); }
body:not([data-theme="dark"])[data-design-light-surface] { --sidebar-bg: var(--design-light-surface); }
body[data-theme="dark"][data-design-dark-surface] { --sidebar-bg: var(--design-dark-surface); }
body:not([data-theme="dark"])[data-design-light-surface] { --white: var(--design-light-surface); --header-bg: var(--design-light-surface); }
body[data-theme="dark"][data-design-dark-surface] { --white: var(--design-dark-surface); --header-bg: var(--design-dark-surface); }
body:not([data-theme="dark"])[data-design-light-card] { --design-card: var(--design-light-card); }
body[data-theme="dark"][data-design-dark-card] { --design-card: var(--design-dark-card); }
body:not([data-theme="dark"])[data-design-light-text] { --text-color: var(--design-light-text); }
body[data-theme="dark"][data-design-dark-text] { --text-color: var(--design-dark-text); }
body:not([data-theme="dark"])[data-design-light-muted] { --design-muted: var(--design-light-muted); }
body[data-theme="dark"][data-design-dark-muted] { --design-muted: var(--design-dark-muted); }
body:not([data-theme="dark"])[data-design-light-heading] { --design-heading: var(--design-light-heading); }
body[data-theme="dark"][data-design-dark-heading] { --design-heading: var(--design-dark-heading); }
body:not([data-theme="dark"])[data-design-light-button] { --btn-bg: var(--design-light-button); }
body[data-theme="dark"][data-design-dark-button] { --btn-bg: var(--design-dark-button); }
body:not([data-theme="dark"])[data-design-light-button-text] { --btn-text: var(--design-light-button-text); }
body[data-theme="dark"][data-design-dark-button-text] { --btn-text: var(--design-dark-button-text); }
body:not([data-theme="dark"])[data-design-light-link] { --design-link: var(--design-light-link); }
body[data-theme="dark"][data-design-dark-link] { --design-link: var(--design-dark-link); }
body:not([data-theme="dark"])[data-design-light-heart] { --heart-color: var(--design-light-heart); }
body[data-theme="dark"][data-design-dark-heart] { --heart-color: var(--design-dark-heart); }
body:not([data-theme="dark"])[data-design-light-border] { --border-color: var(--design-light-border); }
body[data-theme="dark"][data-design-dark-border] { --border-color: var(--design-dark-border); }
body[data-theme="dark"][data-amoled] {
  --bg-color: #000;
  --header-bg: #000;
  --sidebar-bg: #000;
  --white: #0e0b11;
  --design-card: #0e0b11;
  --card-shadow: transparent;
}
.design-logo { inline-size: clamp(1.6rem, 4vw, 2.5rem); block-size: clamp(1.6rem, 4vw, 2.5rem); object-fit: contain; }
.logo span { overflow-wrap: anywhere; }
.design-home-text, .design-footer-text { white-space: pre-line; overflow-wrap: anywhere; }
.design-site-subtitle, .design-home-intro, .design-site-description { margin: .6rem auto; max-width: 48rem; }
.design-site-subtitle { font-weight: 700; }
.design-home-intro, .design-site-description { text-align: start; }
.design-bio-standalone { max-width: 850px; margin: 2.5rem auto; padding: 0 1rem; text-align: center; }
.design-bio-title { margin-block-end: 1rem; }
.design-contact-link { display: inline-block; margin: .8rem .45rem 0; color: inherit; }
.design-footer-nav { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-block-end: 1.25rem; }
.design-footer-nav a { color: inherit; overflow-wrap: anywhere; }
[data-home-section][data-variant="list"] :is(.services-grid,#home-categories) { display: grid; grid-template-columns: minmax(0, 1fr); }
[data-home-section="categories"][data-variant="grid"] #home-categories { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(10rem,100%),1fr)); }
[data-home-section][data-variant="compact"] :is(.services-grid,#home-categories) { gap: .55rem; }
[data-home-section][data-variant="compact"] :is(.service-card,.home-category) { padding: .65rem .9rem; }
[data-home-section="bio"][data-variant="list"] .bio-text { text-align: start; }
[data-home-section="bio"][data-variant="compact"] .author-photo-container { max-inline-size: 110px; max-block-size: 110px; margin-inline: auto; }
body[data-design-light-card]:not([data-theme="dark"]) :is(.content-box,.service-card,.bio-text),
body[data-design-dark-card][data-theme="dark"] :is(.content-box,.service-card,.bio-text) { background-color: var(--design-card); }
body[data-design-light-muted]:not([data-theme="dark"]) :is(.post-summary,.post-meta,.reaction-status,.page-header p,.service-card p),
body[data-design-dark-muted][data-theme="dark"] :is(.post-summary,.post-meta,.reaction-status,.page-header p,.service-card p) { color: var(--design-muted); }
body:has([data-home-section]) .design-site-subtitle { color: var(--design-secondary, var(--primary)); }
[data-page] .content-box::before { background: linear-gradient(to bottom, var(--primary), var(--design-secondary, var(--accent))); }
body[data-design-light-heading]:not([data-theme="dark"]) :is(h1,h2,h3,h4,.post-title a),
body[data-design-dark-heading][data-theme="dark"] :is(h1,h2,h3,h4,.post-title a) { color: var(--design-heading); }
body[data-design-light-link]:not([data-theme="dark"]) :is(.text-body a,.post-title a,.home-category,.service-card a,.sidebar a:not(:hover)),
body[data-design-dark-link][data-theme="dark"] :is(.text-body a,.post-title a,.home-category,.service-card a,.sidebar a:not(:hover)) { color: var(--design-link); }
body[data-design-light-button]:not([data-theme="dark"]) :is(.btn,.like-btn:not(.liked)),
body[data-design-dark-button][data-theme="dark"] :is(.btn,.like-btn:not(.liked)) { background: var(--btn-bg); color: var(--btn-text); }
body[data-design-light-button-text]:not([data-theme="dark"]) .btn,
body[data-design-dark-button-text][data-theme="dark"] .btn { color: var(--btn-text); }
body[data-design-font], body[data-design-font] .text-body { font-family: var(--appearance-font); }
body[data-design-secondary-font] :is(.sidebar a,.theme-btn,.btn,.post-meta,.post-subtitle,.reaction-status,figcaption,.design-site-subtitle) { font-family: var(--appearance-secondary-font); }
body[data-design-heading-font] :is(h1,h2,h3,h4,h5,h6,.logo) { font-family: var(--appearance-heading-font); }
body[data-design-article-body-font] .text-body { font-family: var(--appearance-article-body-font); }
body[data-design-post-title-font] :is(.post-title,[data-post-title],#post-heading,#preview-heading) { font-family: var(--appearance-post-title-font); }
body[data-design-article-heading-font] .text-body :is(h1,h2,h3,h4,h5,h6) { font-family: var(--appearance-article-heading-font); }
body[data-design-hero-title-font] #author-name { font-family: var(--appearance-hero-title-font); }
body[data-design-section-title-font] :is(.page-header h1:not(#post-heading,#preview-heading),.section-title,.home-category,[data-section-title],#contact h2) { font-family: var(--appearance-section-title-font); }
body[data-design-menu-font] .sidebar :is(a,.sidebar-header,.theme-btn) { font-family: var(--appearance-menu-font); }
[data-design-body-size="compact"] :is(.text-body,.bio-text,.design-home-text) { font-size: 1.07rem; }
[data-design-body-size="medium"] :is(.text-body,.bio-text,.design-home-text) { font-size: 1.28rem; }
[data-design-body-size="large"] :is(.text-body,.bio-text,.design-home-text) { font-size: clamp(1.28rem,2.4vw,1.62rem); }
[data-design-heading-size="small"] :is(.page-header h1,.hero h1) { font-size: clamp(1.65rem,5vw,2.65rem); }
[data-design-heading-size="large"] :is(.page-header h1,.hero h1) { font-size: clamp(2.1rem,7vw,4.5rem); }
[data-design-heading-size="small"] :is(.content-box h2,.section-title) { font-size: clamp(1.25rem,4vw,1.65rem); }
[data-design-heading-size="large"] :is(.content-box h2,.section-title) { font-size: clamp(1.75rem,5vw,2.8rem); }
[data-design-line-height="compact"] :is(.text-body,.bio-text,.design-home-text) { line-height: 1.65; }
[data-design-line-height="relaxed"] :is(.text-body,.bio-text,.design-home-text) { line-height: 2.45; }
[data-design-paragraph-spacing="compact"] .text-body :is(p,ul,ol,blockquote) { margin-block-end: .55em; }
[data-design-paragraph-spacing="generous"] .text-body :is(p,ul,ol,blockquote) { margin-block-end: 1.55em; }
[data-design-weight="regular"] :is(.text-body,.bio-text,.design-home-text) { font-weight: 400; }
[data-design-weight="bold"] :is(.text-body,.bio-text,.design-home-text) { font-weight: 700; }
[data-design-width="narrow"] #posts { max-width: 670px; }
[data-design-width="wide"] #posts { max-width: 1100px; }
[data-design-alignment="start"] :is(.text-body,.bio-text,.design-home-text) { text-align: start; }
[data-design-alignment="center"] :is(.text-body,.bio-text,.design-home-text) { text-align: center; }
[data-design-alignment="justify"] :is(.text-body,.bio-text,.design-home-text) { text-align: justify; }
[data-design-card-radius="square"] :is(.content-box,.service-card,.bio-text) { border-radius: 0; }
[data-design-card-radius="rounded"] :is(.content-box,.service-card,.bio-text) { border-radius: 1.65rem; }
[data-design-card-borders="off"] :is(.content-box,.service-card,.bio-text) { border-color: transparent; }
[data-design-card-borders="on"] :is(.content-box,.service-card,.bio-text) { border: 2px solid var(--border-color); }
[data-design-card-shadows="off"] :is(.content-box,.service-card,.bio-text) { box-shadow: none; }
[data-design-card-shadows="soft"] :is(.content-box,.service-card,.bio-text) { box-shadow: 0 4px 14px var(--card-shadow); }
[data-design-card-shadows="strong"] :is(.content-box,.service-card,.bio-text) { box-shadow: 0 14px 28px var(--card-shadow); }
[data-design-button-shape="square"] :is(.btn,.icon-btn,.menu-btn,.theme-btn,.public-share button) { border-radius: .15rem; }
[data-design-button-shape="pill"] :is(.btn,.icon-btn,.menu-btn,.theme-btn,.public-share button) { border-radius: 99rem; }
[data-design-button-size="compact"] :is(.btn,.icon-btn,.menu-btn,.theme-btn,.public-share button) { min-height: 44px; padding: .35rem .6rem; }
[data-design-button-size="large"] :is(.btn,.icon-btn,.menu-btn,.theme-btn,.public-share button) { min-height: 52px; padding: .72rem 1rem; }
[data-design-card-spacing="compact"] :is(.content-box,.service-card) { padding: 1rem; }
[data-design-card-spacing="spacious"] :is(.content-box,.service-card) { padding: clamp(1.45rem,4vw,3.25rem); }
[data-design-grid-spacing="compact"] :is(.services-grid,#home-categories) { gap: .65rem; }
[data-design-grid-spacing="spacious"] :is(.services-grid,#home-categories) { gap: 2rem; }
[data-design-section-spacing="compact"] :is([data-home-section]:not([data-home-section="bio"]),.page-header) { margin-block: 1.25rem; }
[data-design-section-spacing="spacious"] :is([data-home-section]:not([data-home-section="bio"]),.page-header) { margin-block: clamp(2rem,6vw,6rem); }
[data-design-image-ratio="square"] :is(.post-cover,.author-photo) { aspect-ratio: 1; object-fit: cover; }
[data-design-image-ratio="landscape"] :is(.post-cover,.author-photo) { aspect-ratio: 16 / 9; object-fit: cover; }
[data-design-image-ratio="portrait"] :is(.post-cover,.author-photo) { aspect-ratio: 3 / 4; object-fit: cover; }
[data-design-image-ratio] .post-cover { inline-size: min(100%, 36rem); }
[data-design-image-ratio] .author-photo { block-size: auto; }
[data-design-reading-layout="plain"] .content-box { background: transparent; box-shadow: none; border: 0; }
[data-design-reading-layout="plain"] .content-box::before { display: none; }
[data-design-reading-layout="manuscript"] .content-box { border-block: 3px double var(--accent); }
[data-design-header="flat"] header { box-shadow: none; border-block-end-width: 1px; }
[data-design-header="centered"] header { display: grid; grid-template-columns: 1fr auto 1fr; gap: .35rem; }
[data-design-header="centered"] header .logo { grid-column: 2; max-inline-size: 46vw; }
[data-design-header="centered"] header .header-icons { grid-column: 3; justify-self: end; }
[data-design-footer="quiet"] footer { color: var(--text-color); background: var(--white); border-block-start: 1px solid var(--border-color); }
[data-design-footer="quiet"] .footer-btn { color: var(--text-color); border: 1px solid var(--border-color); }
[data-design-footer="band"] footer { color: var(--btn-text); background: var(--btn-bg); }
[data-design-footer="band"] .footer-btn { color: inherit; border: 1px solid currentColor; }
body[data-amoled] :is(header, .hero, .contact-section, footer) { background: #000; }
[data-design-navigation="compact"] .sidebar a { min-height: 44px; padding: .32rem 1rem; }
[data-design-navigation="minimal"] .sidebar a { border-block-end: 0; min-height: 44px; }
body[data-design-heart="outline"] .like-btn.liked .fa-heart { font-weight: 400; }
body[data-design-effect-heart="off"] .like-btn.celebrating .fa-heart,
body[data-design-effect-heart="off"] .reaction-burst { animation: none; }
body[data-design-effect-scroll="off"] .reveal { transform: none; }
body[data-design-effect-scroll="off"] :is(*, *::before, *::after) { scroll-behavior: auto; }
body[data-design-effect-fade="off"] .reveal { opacity: 1; }
body[data-design-intensity="soft"] .reveal:not(.active) { transform: translateY(12px); }
body[data-design-intensity="strong"] .reveal:not(.active) { transform: translateY(60px); }
body[data-design-effect-scroll="off"][data-design-intensity] .reveal { transform: none; }
body[data-design-intensity="soft"] .reveal { transition-duration: .42s; }
body[data-design-intensity="strong"] .reveal { transition-duration: 1.25s; }
body[data-design-effect-transitions="off"] :is(.content-box,.service-card,header,.sidebar,footer,.logo,.btn,.icon-btn,.menu-btn) { transition: none; }
body[data-design-effect-transitions="off"] :is(.content-box,.service-card):hover { transform: none; }
body[data-design-effect-transitions="on"] :is(.page-header,[data-home-section="hero"]) { animation: design-page-in .4s ease-out; }
@keyframes design-page-in { from { opacity: .65; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body[data-page] .reveal { opacity: 1 !important; transform: none !important; }
}
.logo:has(.design-logo), .logo:has(span) { max-inline-size: 69%; }
.logo span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.38; }
.design-category-posts { padding-inline-start: 1.3em; text-align: start; }
[data-home-section="hero"][data-variant="compact"], [data-home-section="contact"][data-variant="compact"] { padding-block: 1.6rem; }
[data-home-section^="intro"][data-variant="compact"] { max-inline-size: 45rem; }
[data-home-section="bio"][data-variant="grid"] { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15rem),1fr)); align-items: center; gap: 1rem; }
[data-home-section="bio"][data-variant="grid"] .design-bio-title { grid-column: 1 / -1; }
#bio, #services, #contact { scroll-margin-block-start: 90px; }
