:root { --berry:#502447; --paper:#fcfafb; --lilac:#efe6ef; --hair:#ded4dc; --charcoal:#342c35; }
body { background:var(--paper); color:var(--charcoal); }
.nav { background:#fffdfd; border:0; border-bottom:1px solid var(--hair); box-shadow:none; }
.navin { height:69px; }
.brand,.nav .brand { color:var(--berry); }
.nav .brand svg { background:transparent; border:0; border-radius:0; padding:0; width:36px; }
.nav .button,.button,button.button { background:var(--berry); border-color:var(--berry); box-shadow:none; }
.wrap { width:min(1320px,92%); }
.folio-head { margin-top:22px; display:grid; grid-template-columns:1fr .95fr; min-height:200px; overflow:hidden; border-radius:6px; background:#ede3ee; }
.folio-head>div:first-child { align-self:center; padding:24px clamp(20px,3vw,56px); }
.folio-head h1,.lookbook-intro h1 { font:400 clamp(2.75rem,4.2vw,4.5rem)/.99 Georgia,"Times New Roman","Biodata Indic",serif; letter-spacing:-.052em; color:var(--berry); margin:0; }
.folio-head em,.lookbook-intro em { font-weight:400; color:#854c76; }
.folio-head p,.lookbook-intro p { max-width:410px; margin:12px 0 0; color:#554952; font-size:1.03rem; }
.folio-art { background:url('/assets/lilies-still.webp') 74% center / cover; }
.gallerybody { display:grid; grid-template-columns:minmax(150px,185px) minmax(0,1fr); gap:clamp(24px,3vw,46px); align-items:start; padding-top:25px; }
.gallerybody .filters { position:sticky; top:12px; padding-right:17px; border-right:1px solid var(--hair); border-radius:0; }
.filters h2,.catalog-results #count { margin:0 0 14px; font:500 1.15rem/1.35 system-ui,Arial,"Biodata Indic",sans-serif; color:var(--berry); }
.catalog-results #count { margin-bottom:15px; }
.style-tabs { display:grid; gap:1px; border-color:var(--hair); }
.style-tabs button { justify-content:flex-start; padding:6px 11px; background:transparent; border:0; border-radius:4px; min-height:34px; }
.style-tabs button:hover { background:#f3ebf3; }
.style-tabs button[aria-pressed=true] { color:var(--berry); background:#e9deea; font-weight:bold; }
.filter-options { align-items:stretch; gap:12px; }
.filter-options label { width:100%; }
.filter-options label:first-child { display:block; }
.filter-options select { width:100%; margin-top:4px; }
.catalog-results .cards,.studio-collection .cards { gap:24px 18px; }
.card { border:0; border-radius:0; background:transparent; box-shadow:none; }
.card .thumb { background:#eee8ed; border-radius:5px; height:clamp(235px,23vw,330px); padding:14px; }
.card.setting1 .thumb { background:#e6e4e8; }
.card.setting2 .thumb { background:#f1eae1; }
.card .thumb::before { display:none; }
.card .thumb img,.card .thumb:hover img,.card .thumb:focus-visible img { transform:none; height:100%; max-width:100%; object-fit:contain; box-shadow:0 3px 10px #38203925; }
.cardbody { padding:12px 0 3px; border:0; }
.cardbody h3 { margin:2px 0; color:#412b40; font-size:1.43rem; }
.cardbody p { font-size:.95rem; }
.cardbody .actions { border-color:var(--hair); }
.category { color:#784d70; }
.lookbook-home { display:grid; grid-template-columns:1fr 1fr; margin-top:22px; border:1px solid var(--hair); background:#f0e6f0; border-radius:6px; overflow:hidden; }
.lookbook-intro { padding:clamp(25px,4vw,60px); align-self:center; }
.lookbook-intro h1 { font-size:clamp(3rem,4.7vw,5rem); }
.home-links { display:flex; flex-wrap:wrap; align-items:center; gap:20px; margin-top:20px; }
.lookbook-demo { min-height:325px; display:grid; grid-template-columns:1fr; grid-template-rows:1fr auto; background:url('/assets/lilies-still.webp') center/cover; }
#proof-link { display:grid; place-items:center; padding:14px; }
#proof-image { width:auto; height:clamp(245px,21vw,325px); box-shadow:1px 4px 12px #26132355; }
.lookbook-picker { background:#fffaf9ed; padding:7px 14px; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:5px; }
.studio-collection { padding-top:28px; }
.maker-intro { background:#eee6f0; border-color:var(--hair); }
#pages img.sample-sheet { display:block; width:100%; height:auto; box-shadow:0 2px 9px #0002; }
footer { background:#412b40; }
@media(max-width:920px){ .gallerybody { grid-template-columns:145px minmax(0,1fr); gap:18px; }.catalog-results .cards { grid-template-columns:repeat(2,1fr); } }
@media(max-width:640px){
 .wrap{width:92%}.navin{height:auto}.folio-head{margin-top:12px; min-height:142px; grid-template-columns:minmax(0,1fr) 27%}.folio-head>div:first-child{padding:14px}.folio-head h1{font-size:2.05rem}.folio-head p{font-size:.93rem;line-height:1.3;margin-top:6px}.folio-art{background-position:86% center}
 .gallerybody{display:block;padding-top:17px}.gallerybody .filters{position:static;border:0;padding:0;margin-bottom:13px}.filters h2{font-size:1rem;margin-bottom:7px}.style-tabs{display:flex;gap:4px;flex-wrap:wrap;padding-bottom:7px}.style-tabs button{min-height:32px;padding:4px 9px}.filter-options{padding-top:7px;align-items:center}.filter-options label:first-child{display:flex}.filter-options label{width:auto}.filter-options select{width:77px;margin:0}.catalog-results #count{font-size:1rem;margin-bottom:8px}
 .catalog-results .cards,.studio-collection .cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 10px}.card .thumb{height:auto;aspect-ratio:210/297;padding:8px}.card .thumb img{width:100%;height:100%}.cardbody{padding:8px 0}.cardbody h3{font-size:1.1rem;line-height:1.15}.cardbody p{display:none}.cardbody .actions{gap:5px;justify-content:flex-start;padding-top:6px;margin-top:6px}.cardbody .actions a{font-size:.85rem}.cardbody .actions a+a{margin-left:auto}
 .lookbook-home{grid-template-columns:1fr;margin-top:12px}.lookbook-intro{padding:22px}.lookbook-intro h1{font-size:2.65rem}.lookbook-demo{min-height:0}#proof-image{height:175px}.lookbook-picker{padding:6px 9px}.home-links{margin-top:12px}
}
.form-field { min-width:0; margin:6px 0; }
.form-field label { margin:0 0 4px; }
.form-field input:not([hidden])+input,.form-field select+input:not([hidden]) { margin-top:6px; }
.form-field input[hidden] { display:none; }
.form-field .error:empty { display:none; }
#preview { min-width:0; }
.reading-tools { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.reading-tools label { margin:0; }
.reading-tools select { width:auto; }
#paging { display:inline-flex; align-items:center; gap:6px; }
#paging button { min-height:35px; padding:6px 8px; }
#sheetViewport { width:100%; overflow:auto; max-height:74vh; border:1px solid var(--hair); background:#ece6eb; }
#pages { min-width:100%; }
#pages canvas { display:block; width:100%; height:auto; margin:0; }

/* Shared navigation and catalogue */
.skip-link { position:absolute; left:12px; top:-70px; z-index:5; padding:9px 15px; background:white; color:var(--berry); }
.skip-link:focus { top:6px; }
.navin { justify-content:flex-start; }
.navin nav { margin-left:auto; }
.navin>.button { margin-left:8px; }
.route-0 .lookbook-home { margin-top:26px; }
.studio-collection .sectiontitle { align-items:baseline; }
.studio-collection .sectiontitle a { white-space:nowrap; }
.gallerybody { display:block; padding-top:32px; }
.catalog-heading h1,.interior>h1,.prose h1 { color:var(--berry); font-size:clamp(2.35rem,4vw,3.5rem); }
.catalog-heading h1 { margin:0; letter-spacing:-.05em; line-height:1.1; }
.catalog-heading p { margin:6px 0 19px; color:#655867; }
.gallerybody .catalog-toolbar { position:static; display:flex; align-items:center; flex-wrap:wrap; gap:14px 22px; padding:12px 0; margin-bottom:13px; border:0; border-block:1px solid var(--hair); }
.catalog-toolbar label { display:flex; align-items:center; gap:8px; margin:0; }
.catalog-toolbar select { width:auto; min-width:104px; min-height:37px; }
#resetFilters { margin-left:auto; min-height:34px; padding:4px 11px; }
.catalog-results #count { font-size:.95rem; margin-bottom:10px; }
.gallerybody .cards { grid-template-columns:repeat(4,minmax(0,1fr)); }
.examples article { display:grid; grid-template-columns:minmax(85px,.37fr) 1fr; gap:18px; align-items:center; background:#fff; border-color:var(--hair); }
.example-sheet { padding:10px; background:#f1eaf0; border-radius:4px; }
.example-sheet img { display:block; width:100%; height:auto; box-shadow:0 2px 6px #44304926; }
.examples article h2 { color:var(--berry); font-size:1.45rem; line-height:1.12; }
.examples article p { margin:9px 0; line-height:1.43; }
.example-person { color:#675766; font-size:.93rem; }
.prose { max-width:720px; }.prose h2 { font-size:1.4rem; margin-top:23px; }.prose p { line-height:1.6; color:#4f444e; }
#edit .appearance { margin-bottom:16px; }
#edit>label:first-child { margin-top:0; }
.editor .maker-intro { padding:0; border:0; background:transparent; }
.editor .maker-intro p { margin-top:8px; max-width:100%; }
#edit,#preview { border-color:var(--hair); }
#preview { background:#f0ebf0; }
@media(max-width:920px){.gallerybody .cards{grid-template-columns:repeat(3,minmax(0,1fr))}.examples article{grid-template-columns:85px 1fr;gap:12px}}
@media(max-width:640px){
 .navin { display:flex; flex-wrap:wrap; justify-content:space-between; min-height:55px; gap:6px 12px; }
 .navin .brand { max-width:185px; }
 .navin nav { order:0; width:auto; margin-left:auto; gap:12px; font-size:.94rem; }
 .navin>.button { margin:0; }
 .navin:has(>.button) nav { order:3; width:100%; justify-content:center; padding:2px 0; }
 .route-0 .lookbook-home{margin-top:14px}
 .gallerybody{padding-top:19px}.catalog-heading p{margin:5px 0 10px}
 .gallerybody .catalog-toolbar{gap:8px 12px;padding:9px 0}
 .catalog-toolbar label{width:auto;font-size:.91rem}
 .catalog-toolbar select{min-width:74px;max-width:128px;font-size:.94rem}
 .gallerybody .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .examples article { padding:14px; grid-template-columns:74px 1fr; }
 .studio-collection .sectiontitle{gap:3px 12px}
 .editor .tools{gap:7px}.editor .tools .button{margin-left:auto}
}

.document-settings {
 display:grid;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr);
 gap:0 14px;
}
.document-settings label { margin:0; }
.document-settings select { margin-top:4px; }
.field-help { margin:8px 0 12px; font-size:.94rem; color:#60545f; }
.draft-tools { display:inline-flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.editor .tools { margin:0 0 12px; justify-content:flex-end; background:var(--paper); }
#edit input,#edit select,#edit textarea { min-width:0; max-width:100%; }
#edit select { text-overflow:ellipsis; }
@media(min-width:841px){
 .draft-tools { float:left; margin:15px 0 12px; }
 .editor .tools { padding-top:15px; }
 .editorgrid { clear:both; }
}
@media(max-width:840px){
 .editor .tools { flex-wrap:nowrap; justify-content:space-between; padding:8px 0; border-bottom:1px solid var(--hair); }
 .editor .mobiletabs { display:flex; flex-wrap:nowrap; margin:0; gap:0; }
 .mobiletabs button { border-radius:0 6px 6px 0; }
 .mobiletabs button:first-child { border-radius:6px 0 0 6px; }
 .editor .tools button { padding:8px 12px; min-height:44px; }
 .editor #edit :is(select,input,textarea,summary) { scroll-margin-top:72px; }
 #edit select,#edit input:not([type=checkbox]),#edit textarea { font-size:1rem; }
 #edit summary { min-height:44px; align-content:center; }
 #edit details { padding:4px 0; }
}
@media(max-width:600px){
 #edit,#preview { padding:14px; }
 .document-settings { grid-template-columns:minmax(0,1fr); gap:10px; }
 #paging { flex-wrap:wrap; }
 .catalog-toolbar select { min-height:44px; }
 .cardbody .actions a { display:inline-flex; align-items:center; min-height:44px; }
}

.language-directory { list-style:none; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); gap:12px; padding:0; margin:24px 0 32px; }
.language-directory a { height:100%; display:grid; align-content:start; gap:4px; padding:14px 16px; border:1px solid var(--hair); border-radius:6px; background:white; text-decoration:none; }
.language-directory a:hover strong,.language-directory a:focus-visible strong { text-decoration:underline; }
.language-directory span { color:#60545f; }
