/* Website presentation choices are owned by author_theme, never editor chrome. */
.website-public { margin:0; background:var(--author-background-color); color:var(--author-text-color); font-family:var(--author-font-family); }
.website-public :is(h1,h2,h3) { color:var(--author-heading-color); font-family:inherit; line-height:1.2; }
.website-site { --site-gap:2rem; --site-pad:3rem; max-width:1600px; margin:auto; overflow-wrap:anywhere; }
.website-site[data-spacing=compact] { --site-gap:1rem; --site-pad:1.5rem; }
.website-site[data-spacing=spacious] { --site-gap:3rem; --site-pad:4rem; }
.website-site * { box-sizing:border-box; }
.website-site a { color:var(--author-link-color); }
.website-site[data-links=underline] a:not(.website-action) { text-decoration:underline; text-underline-offset:.2em; }
.website-site[data-links=plain] a { text-decoration:none; }
.website-site a:focus-visible { outline:3px solid var(--author-link-color); outline-offset:4px; }
.website-navigation { display:flex; align-items:center; justify-content:space-between; gap:var(--site-gap); padding:1.5rem var(--site-pad); background:var(--author-section-bg); border-bottom:1px solid var(--author-border-color); }
.website-navigation nav,.website-section-menu { display:flex; gap:1.5rem; flex-wrap:wrap; align-items:center; }
.website-name { font-size:1.3rem; letter-spacing:.12em; text-transform:uppercase; }
.website-sticky { position:sticky; top:0; z-index:5; }
.website-section-menu { padding:1rem var(--site-pad); }
.website-composition { display:grid; grid-template-columns:minmax(0,1fr); gap:var(--site-gap); }
.website-section { padding:var(--site-pad); background:var(--author-section-bg); scroll-margin-top:6rem; min-width:0; }
.website-section h2 { font-size:clamp(1.5rem,3vw,2.5rem); margin:0 0 1rem; }
.website-section h3 { font-size:1.4rem; margin:0 0 .75rem; }
.website-section p { line-height:1.7; margin:0 0 1rem; }
.website-prose { white-space:pre-wrap; line-height:1.7; }
.website-kicker { font-size:.8rem; text-transform:uppercase; letter-spacing:.15em; }
.website-hero { position:relative; display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); align-items:center; gap:var(--site-gap); min-height:34rem; isolation:isolate; }
.website-hero-background { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
.website-hero:has(.website-hero-background)::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.45)); z-index:-1; }
.website-hero:has(.website-hero-background) { color:white; }
.website-hero:has(.website-hero-background) h1 { color:white; }
.website-hero h1 { font-size:clamp(2.5rem,5vw,5rem); margin:.5rem 0 1.5rem; }
.website-hero-copy { max-width:40rem; }
.website-featured-cover { display:block; width:min(100%,22rem); justify-self:center; box-shadow:0 1rem 2.5rem rgba(0,0,0,.25); }
.website-featured-cover img { display:block; width:100%; max-height:32rem; object-fit:contain; }
.website-actions { display:flex; flex-wrap:wrap; gap:1rem; margin-top:1.5rem; }
.website-action { display:inline-block; padding:.8rem 1.2rem; background:var(--author-primary-color); color:var(--author-on-primary)!important; border:1px solid var(--author-primary-color); border-radius:.25rem; text-decoration:none!important; font-weight:600; }
.website-action-secondary { background:var(--author-section-bg); color:var(--author-link-color)!important; }
.website-about { display:grid; grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:var(--site-gap); }
.website-about-copy { display:flex; align-items:start; gap:var(--site-gap); }
.website-portrait { width:32%; max-width:15rem; max-height:24rem; object-fit:cover; aspect-ratio:3/4; }
.website-featured-summary { border-left:1px solid var(--author-border-color); padding-left:var(--site-gap); }
div.website-books { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr)); gap:var(--site-gap); }
.website-book,.website-post { display:flex; align-items:start; gap:1.5rem; }
.website-book>a,.website-post>a { flex:0 0 30%; }
.website-book img,.website-post img { width:100%; max-height:20rem; object-fit:contain; }
.website-book>div,.website-post>div { flex:1; min-width:0; }
.website-post+.website-post { margin-top:var(--site-gap); }
.website-event { display:flex; gap:var(--site-gap); margin-bottom:var(--site-gap); }
.website-event time { min-width:7rem; color:var(--author-secondary-text-color); }
.website-image { width:100%; max-height:35rem; object-fit:cover; }
.website-preview-guidance { margin:0; padding:.75rem 1rem; border-left:4px solid var(--author-primary-color); border-radius:.375rem; background:color-mix(in srgb, var(--author-primary-color) 8%, transparent); color:inherit; font-size:.95rem; }
.website-preview-guidance::before { content:"Only you see this · "; font-weight:700; font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; color:var(--author-primary-color); }
.website-site[data-layout=single_column] .website-composition { max-width:60rem; margin:auto; }
.website-site[data-layout=single_column] .website-about { grid-template-columns:1fr; }
.website-site[data-layout=sidebar] .website-composition:has(.website-sidebar-profile) { grid-template-columns:minmax(0,2fr) minmax(0,1fr); align-items:start; }
.website-site[data-layout=sidebar] .website-section { grid-column:1; }
.website-site[data-layout=sidebar] .website-sidebar-profile { grid-column:2; grid-row:1 / span var(--website-section-count); position:sticky; top:1rem; grid-template-columns:1fr; }
.website-site[data-layout=sidebar] .website-sidebar-profile .website-about-copy { flex-direction:column; }
.website-site[data-layout=sidebar] .website-sidebar-profile .website-portrait { width:100%; max-width:12rem; }
.website-site[data-layout=sidebar] .website-sidebar-profile .website-featured-summary { border-left:0; border-top:1px solid var(--author-border-color); padding:var(--site-gap) 0 0; }
.website-site[data-layout=sidebar] .website-hero { grid-template-columns:1fr; min-height:0; }
.website-site[data-layout=hero] .website-hero { min-height:42rem; }
.website-site[data-layout=masonry] .website-composition { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.website-site[data-layout=masonry] :is(.website-hero,.website-about) { grid-column:1/-1; }
.website-site[data-layout=tabs] .website-section-menu { border-bottom:2px solid var(--author-primary-color); position:sticky; top:0; background:var(--author-section-bg); z-index:4; }
.website-site[data-layout=split] .website-composition { grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:start; }
.website-site[data-layout=split] .website-section { grid-column:2; }
.website-site[data-layout=split] .website-section:first-child { grid-column:1; grid-row:1 / span var(--website-section-count); position:sticky; top:1rem; }
.website-site[data-layout=split] :is(.website-hero,.website-about) { grid-template-columns:1fr; }
.website-site[data-layout=split] .website-about-copy { flex-direction:column; }
.website-site[data-layout=split] .website-featured-summary { border-left:0; border-top:1px solid var(--author-border-color); padding:var(--site-gap) 0 0; }
.website-site[data-layout=timeline] .website-composition { max-width:65rem; margin:auto; padding-left:2rem; border-left:2px solid var(--author-primary-color); }
.website-site[data-layout=timeline] .website-section { position:relative; }
.website-site[data-layout=timeline] .website-section::after { content:""; position:absolute; width:.8rem; height:.8rem; border-radius:50%; background:var(--author-primary-color); left:-2.45rem; top:2rem; }
.website-site[data-layout=slideout] .website-section-menu { position:sticky; top:0; background:var(--author-section-bg); border-left:.4rem solid var(--author-primary-color); z-index:4; }
.website-site[data-layout=carousel] .website-composition { position:relative; display:flex; overflow:auto; scroll-snap-type:x proximity; }
.website-site[data-layout=carousel] .website-section { flex:0 0 90%; scroll-snap-align:start; }
@media(max-width:700px) {
 .website-site { --site-pad:1.25rem!important; --site-gap:1.25rem!important; }
 .website-navigation { flex-direction:column; align-items:start; }
 .website-navigation nav { gap:.75rem; }
 .website-hero,.website-about,.website-site[data-layout] .website-composition { grid-template-columns:1fr; }
 .website-site[data-layout] .website-section,.website-site[data-layout] .website-section:first-child,.website-site[data-layout=sidebar] .website-sidebar-profile { grid-column:auto; grid-row:auto; }
 .website-site[data-layout=split] .website-section:first-child,.website-site[data-layout=sidebar] .website-sidebar-profile { position:relative; top:auto; }
 .website-site[data-layout=sidebar] .website-composition:has(.website-sidebar-profile) { grid-template-columns:1fr; }
 .website-hero { min-height:0!important; }
 .website-featured-cover { max-width:14rem; }
 .website-about-copy { flex-direction:column; }
 .website-portrait { width:10rem; }
 .website-featured-summary { border-left:0; border-top:1px solid var(--author-border-color); padding:1.5rem 0 0; }
 .website-event { flex-direction:column; gap:.5rem; }
}
@media(prefers-reduced-motion:reduce) { html, .website-site, .website-site * { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
/* website-frame-e: reserved image space (E9), crops (E2), draft label (E8). */
:where(.website-site) img { height:auto; max-width:100%; }
.website-crop { display:block; overflow:hidden; }
.website-crop > img { display:block; width:100%; height:100%; object-fit:cover; }
.website-crop[data-role=portrait] { aspect-ratio:4/5; }
.website-crop[data-role=banner] { aspect-ratio:3/1; }
.website-crop[data-role=cover] { aspect-ratio:2/3; }
.website-hero-background.website-crop { aspect-ratio:auto; }
.website-draft-label { position:sticky; top:0; z-index:20; margin:0; padding:.5rem 1rem; background:#1f2933; color:#fff; font:600 .9rem/1.4 system-ui, sans-serif; text-align:center; }
.website-section[hidden] { display:none!important; }
.website-section-menu [role=tab], .website-site[data-layout=tabs] .website-section-menu a { padding:.7rem; border-bottom:3px solid transparent; }
.website-section-menu [aria-selected=true] { border-color:var(--author-primary-color); font-weight:bold; }
.website-slideout { position:sticky; top:0; z-index:6; background:var(--author-section-bg); width:max-content; max-width:100%; box-shadow:0 .4rem 1rem rgba(0,0,0,.12); }
.website-slideout summary { padding:1rem 2rem; cursor:pointer; }
.website-slideout-backdrop,.website-slideout-close { display:none; }
.website-site[data-enhanced=true] .website-slideout[open] .website-slideout-backdrop { display:block; position:fixed; inset:0; width:100%; height:100%; border:0; background:rgba(0,0,0,.25); cursor:pointer; }
.website-site[data-enhanced=true] .website-slideout[open] .website-slideout-panel { position:fixed; inset:0 auto 0 0; width:min(22rem,85vw); background:var(--author-section-bg); border-right:1px solid var(--author-border-color); overflow:auto; padding:1.5rem; box-shadow:0 0 2rem rgba(0,0,0,.15); }
.website-site[data-enhanced=true] .website-slideout-close { display:block; }
.website-slideout[open] .website-section-menu { display:flex; flex-direction:column; align-items:start; position:static; border:0; padding:1.5rem 0; }
.website-slideout-close,.website-carousel-controls button { padding:.6rem 1rem; background:var(--author-primary-color); color:var(--author-on-primary); border:1px solid var(--author-border-color); border-radius:.25rem; cursor:pointer; font:inherit; }
.website-carousel-controls { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; padding:1rem var(--site-pad); }
.website-carousel-controls[hidden] { display:none; }
.website-carousel-controls button:disabled { opacity:.5; cursor:default; }
.website-site[data-layout=carousel] .website-composition { align-items:start; }
.website-site[data-layout=carousel] .website-section { flex-basis:100%; min-width:0; }
.website-prose>p:last-child { margin-bottom:0; }

.website-site[data-layout=masonry] .website-composition { display:block; columns:2; column-gap:var(--site-gap); }
.website-site[data-layout=masonry] .website-section { break-inside:avoid; margin-bottom:var(--site-gap); }
.website-site[data-layout=masonry] :is(.website-hero,.website-about) { column-span:all; }
@media(max-width:700px) { .website-site[data-layout=masonry] .website-composition { columns:1; } }
/* Shared recommendation markup also needs complete styling in the script-free
   working preview. Its appearance must not depend on runtime utility CSS. */
.website-recommendations .website-books { grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
.website-site .recommendation-card { min-width:0; display:flex; flex-direction:column; border:1px solid var(--author-border-color); border-radius:.5rem; overflow:hidden; background:var(--author-section-bg); color:var(--author-text-color); }
.website-site .recommendation-card>a { display:block; aspect-ratio:2/3; overflow:hidden; }
.website-site .recommendation-card img { width:100%; height:100%; object-fit:cover; }
.website-site .recommendation-card>div { padding:.75rem; flex:1; }
.website-site .recommendation-card h3 { font-size:1rem; line-height:1.4; }
.website-site .recommendation-card p { font-size:.875rem; color:var(--author-secondary-text-color); }
.website-form fieldset { border:0; margin:0; padding:0; display:grid; gap:.75rem; max-width:36rem; }
.website-form input[type=text], .website-form input[type=email], .website-form textarea { width:100%; padding:.6rem .7rem; border:1px solid var(--author-border-color); border-radius:.25rem; font:inherit; background:var(--author-section-bg); color:inherit; }
.website-form label { font-weight:600; }
.website-form label input[type=checkbox] { margin-right:.4rem; }
.website-field-error, .website-form-alert { display:block; font-weight:600; border-left:3px solid var(--author-primary-color); padding-left:.5rem; }
.website-form-note { font-size:.9rem; }
.website-form-unavailable, .website-form-result { border:1px solid var(--author-border-color); padding:1rem; border-radius:.25rem; }
.website-site .visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
/* Recommendation cards without the Tailwind runtime (website-frame-e E9). */
.website-site .recommendation-card { display:flex; flex-direction:column; height:100%; overflow:hidden; border:1px solid var(--author-border-color); background:var(--author-section-bg); border-radius:.5rem; box-shadow:0 1px 2px rgba(0,0,0,.06); transition:box-shadow .2s; }
.website-site .recommendation-card:hover { box-shadow:0 4px 10px rgba(0,0,0,.1); }
.website-site .recommendation-card .aspect-\[2\/3\] { display:block; position:relative; aspect-ratio:2/3; overflow:hidden; }
.website-site .recommendation-card .aspect-\[2\/3\] img { width:100%; height:100%; object-fit:cover; transition:transform .3s; }
.website-site .recommendation-card .group:hover img { transform:scale(1.05); }
.website-site .recommendation-card .p-3 { display:flex; flex-direction:column; flex-grow:1; padding:.75rem; }
.website-site .recommendation-card .flex-grow { flex-grow:1; }
.website-site .recommendation-card .font-semibold { font-weight:600; font-size:.95rem; line-height:1.25; margin-bottom:.25rem; }
.website-site .recommendation-card .text-xs { font-size:.75rem; color:var(--author-secondary-text-color); margin-bottom:.5rem; }
.website-site .recommendation-card .mt-auto { margin-top:auto; padding-top:.5rem; text-align:center; border-top:1px solid var(--author-border-color); margin-bottom:0; }
.website-site .recommendation-card a { color:var(--author-heading-color); }
.website-site .recommendation-card a:hover { color:var(--author-primary-color); }
/* Paint the enhanced state first so tabs and the carousel do not shift on load (website-frame-e E9). */
.website-js .website-site[data-layout=tabs]:not([data-enhanced]) .website-composition > .website-section:not(:first-child) { display:none; }
.website-js .website-site[data-layout=carousel]:not([data-enhanced]) .website-carousel-controls[hidden] { display:flex; visibility:hidden; }
.website-js .website-site[data-layout=tabs]:not([data-enhanced]) .website-section-menu a:first-child { border-color:var(--author-primary-color); font-weight:bold; }
