/* Maison Phyleas — encre, or patiné, cabinet d’exploration. */
@media screen{
  :root{color-scheme:dark;--ink:#dbbd83;--text:#eee7d9;--muted:#adb2aa;--line:#303c38;--paper:#0a1113;--white:#142023;--red:#d28c77;--sage:#17352e;--gold:#c9a66b;--surface:#131e21;--surface-raised:#1a282b;--gold-soft:#a68c61;--gold-line:#75624455}
  html{background:var(--paper)}
  body{background:radial-gradient(ellipse at 84% 0,#1b302a45,transparent 48%),var(--paper);color:var(--text)}
  ::selection{background:#b8955b66;color:#fff5dd}
  a{color:#dfc58e}button{color:var(--text)}
  :is(button,a,input,textarea,select):focus-visible{outline-color:#ecd099;outline-width:2px;outline-offset:4px}
  .skip{background:#cfb17a;color:#0c1819}
  .sidebar{background:linear-gradient(165deg,#0c191b,#091012 80%);border-right:1px solid #71604346;color:#c1c6bc;padding-top:35px}
  .brand{color:#e5cc98;letter-spacing:2.8px;padding-bottom:36px}
  .brand small{color:#a6ac9f;letter-spacing:1.6px;font-size:9px}
  .seal{color:#efd8a5;background:#6b3027;border:1px solid #ba8c54;outline-color:#99744466;transform:rotate(-3deg);font-size:26px}
  .side-caption{color:#939c90;letter-spacing:1.5px}
  nav button{color:#bbc2b8;border-radius:2px;min-height:49px}
  nav button>svg{color:#b89e6b;stroke-width:1.4}
  nav button:hover{color:#f2e4c6;background:#b28d4410}
  nav button.active{background:linear-gradient(90deg,#b68e3d22,#b68e3d07);color:#f3dfb4;box-shadow:inset 2px 0 #d2b16b}
  nav button.active svg{color:#e2c385}
  nav .nav-count{color:#acb29d;font-size:12px}
  .side-bottom{padding-top:28px}.side-line{width:48px;background:linear-gradient(90deg,#b4955f,#b4955f00)}
  .side-bottom p{color:#d5c39e;font-size:25px}.side-link{color:#acb6aa}.private-label{color:#a6a78c;letter-spacing:1.5px}
  .topbar{background:#0b1517e8;border-color:#85704533;height:78px}
  .breadcrumb{color:#a3ad9b;letter-spacing:1.4px}.breadcrumb span{color:#6d765f}.breadcrumb strong{color:#e1d5bb;font-size:14px}
  .save-state{color:#b3c5af}.save-state.error{color:#e3a58b}
  .sharing-bar{background:#10221fe0;color:#bdc9b6;border-color:#69734b44;padding-top:15px;padding-bottom:15px}
  .sharing-copy strong{color:#d4dbbd;font-size:14px;font-weight:500}.sharing-copy span{color:#9eaF9d;font-size:12px}
  .sharing-bar.connection-error{background:#35241e;border-color:#a86e4a70}.sharing-bar.connection-error .sharing-copy strong{color:#f0bd9b}
  main{padding-top:30px;padding-bottom:46px}footer{color:#9eaa9b;border-color:#86704433;font-size:11px}
  .eyebrow{color:#c0a471;letter-spacing:2px;font-weight:500;font-size:12px}
  .hero{background:#0c1919;border:1px solid #a5884859;border-radius:3px;min-height:340px;padding:36px 38px 34px;margin-bottom:32px;isolation:isolate;box-shadow:0 24px 60px #00000021}
  .hero:before{content:'';position:absolute;inset:8px;border:1px solid #a78a4930;pointer-events:none;z-index:2}
  .hero-art{width:100%;height:100%;object-position:center;opacity:.95;mix-blend-mode:normal;filter:none;z-index:-2}
  .hero:after{background:linear-gradient(90deg,#0b1717f7 0%,#0b1717e0 29%,#0b171780 52%,#0b171714 76%),linear-gradient(0deg,#071214bd,transparent 50%);z-index:-1}
  .hero-copy{max-width:600px}.hero h1{font-size:clamp(42px,3.7vw,59px);font-weight:400;line-height:1.02;letter-spacing:-1px;color:#f1e7d0;margin:16px 0 18px}
  .hero h1 em{font-weight:400;color:#e1c58e}.hero p{max-width:460px;color:#c2c7b6;font-size:16px;line-height:1.65}
  .hero-copy .eyebrow{font-size:11px;letter-spacing:2px;color:#d0b77d}
  .hero-signature{display:flex;align-items:center;gap:13px;margin-top:26px;color:#c5ad7d;font-size:11px;letter-spacing:1.4px;text-transform:uppercase;line-height:1.5;flex-wrap:wrap}
  .hero-signature:before{content:'';display:block;width:24px;height:1px;background:#c9a66b;flex-shrink:0}.hero-signature i{width:3px;height:3px;background:#b77554;transform:rotate(45deg)}
  .hero-mark{right:30px;bottom:28px;color:#edd5a0;gap:2px}.hero-mark strong{font-size:42px;font-weight:400;line-height:1}.hero-mark small{font-size:10px;letter-spacing:1.5px}
  .hero-calligraphy{position:absolute;right:23%;top:20px;display:flex;gap:0;opacity:.48;z-index:1;pointer-events:none}
  .hero-calligraphy span{width:64px;height:76px;background:linear-gradient(140deg,#e8d3a2,#b7975c);mask-size:contain;mask-position:center;mask-repeat:no-repeat}
  .hero-calligraphy .xi{mask-image:url('assets/ink/home-xi.webp')}.hero-calligraphy .xing{mask-image:url('assets/ink/home-xing.webp')}
  .section-heading{margin-top:28px;margin-bottom:17px}.section-heading h2{color:#e8d5ab;font-size:31px;font-weight:400}
  .section-heading p{color:#a5aea2;line-height:1.6}.text-link{color:#dac18c;border-color:#a78b516b;font-weight:400}
  .text-link:hover{color:#f2deb0;border-color:#d7bb7e}
  .category-grid{gap:13px}.category-tile{background:linear-gradient(125deg,#182629,#111c1e);border-color:#4b534039;border-radius:3px;min-height:116px;padding:21px 18px;gap:15px;box-shadow:0 4px 12px #0000000d;position:relative}
  .category-tile:after{content:'';position:absolute;top:8px;right:8px;width:11px;height:11px;border-top:1px solid #b18e503e;border-right:1px solid #b18e503e}
  .category-tile:hover{border-color:#a489535f;background:linear-gradient(125deg,#1b2e2e,#162327);box-shadow:0 10px 25px #0002;transform:translateY(-2px)}
  .category-icon{background:radial-gradient(circle at 50% 0,#b49a5f17,#b49a5f08);color:#d1b57a;border:1px solid #b295542e;border-radius:50%;width:45px;height:45px}
  .category-icon svg{stroke-width:1.35}.category-tile h3{color:#e9e0cd;font-size:16px;font-weight:500}.category-tile p{color:#a7b0a4;font-size:12px;line-height:1.5}
  .category-tile .tile-count{color:#c0a774;font-size:29px}
  .route-strip{gap:12px}.stage-tile{background:#121f21;border-color:#77734d3a;border-radius:3px}.stage-tile:hover{border-color:#bd9f5e91;background:#19292a}
  .stage-cover{height:112px;background:#243630}.stage-cover img{filter:saturate(.78) brightness(.83);transition:filter .2s}.stage-tile:hover img{filter:saturate(.95) brightness(.95)}
  .stage-cover:after{background:linear-gradient(0deg,#071516ed,transparent 85%)}.stage-word{color:#ead4a4;bottom:11px;left:13px;font-size:10px;letter-spacing:1px}
  .stage-text{padding:15px 13px 12px}.stage-text h3{color:#ead7b1;font-size:28px;font-weight:400}.stage-text p{color:#aab7a6;margin-top:6px}
  .stage-stats{color:#a7b19d;border-color:#8e805037;margin-top:12px;padding-top:11px;font-size:12px;flex-wrap:wrap}
  .stage-ink{position:absolute;right:8px;top:8px;width:46px;height:52px;z-index:1;pointer-events:none;background:#eed8a1c9;mask-image:var(--stage-ink);mask-size:contain;mask-repeat:no-repeat;mask-position:center}
  .work-card{background:#131f22;border-color:#41504b8c;border-radius:3px;box-shadow:0 5px 18px #00000015}.work-card:hover{border-color:#a48e5c8c;box-shadow:0 14px 28px #00000028;transform:translateY(-2px)}
  .card-media{background:#1c302d;color:#cfb67f}.card-media img{filter:saturate(.87) brightness(.9)}.work-card:hover .card-media img{filter:saturate(1) brightness(1)}
  .card-media.no-photo{background:radial-gradient(ellipse at center,#2b3b32 0,#182a26 50%,#152023 100%);color:#d5ba7c}
  .card-media.no-photo:before{border-color:#b39d6459;opacity:.6;box-shadow:0 0 0 10px #b39d6406,0 0 0 32px #b39d6404}.card-media.no-photo svg{opacity:.86;stroke-width:1.2}
  .media-label{color:#b4bcaa;opacity:1;letter-spacing:1.4px;font-size:11px}
  .card-content{padding:20px}.card-meta{color:#b3bcae;line-height:1.5}.work-card h3{color:#eadcc0;font-weight:400;font-size:29px;line-height:1.08}
  .work-card .excerpt{color:#b9c1b5;font-size:16px}.card-foot{color:#a8b49f;border-color:#83916c30;line-height:1.5}.card-foot .notes-flag{color:#d6b97e}
  .status{background:#26372e;color:#c1c8ae;border:1px solid #83916c29;font-size:14px;padding:4px 7px;border-radius:2px}
  .status.retained{background:#1e4033;color:#c3dab7;border-color:#658b5c59}.status.precise{background:#493d25;color:#ecd49c;border-color:#bc9b4b45}.status.discard{background:#422a27;color:#e8afa0;border-color:#ac6d5259}
  .note-panel{background:radial-gradient(ellipse at top right,#52502d33,transparent 70%),#142123;border-color:#9a845843;border-radius:3px;padding:28px}.note-panel .quote{color:#e8d1a1;font-size:31px;font-weight:400}.note-panel p{color:#b3bcad;font-size:16px}.note-panel .eyebrow{color:#c4ad77}
  .page-heading{border-bottom:1px solid #a08c492a;padding-bottom:25px;margin-bottom:22px}.page-heading h1{color:#ead6a9;font-weight:400;font-size:50px;line-height:1.06;margin-top:12px}.page-heading p{color:#b5bdae;font-size:16px}
  .heading-icon{border-color:#a38f5c66;color:#d6b777}
  .button{font-size:14px;border-radius:2px;min-height:43px;font-weight:500;transition:background .15s,border-color .15s,color .15s}
  .button.primary{background:linear-gradient(115deg,#d3b276,#bb985d);color:#102024;border:1px solid #e1c48b;box-shadow:inset 0 1px #ffefc840}
  .button.primary:hover{background:#e5c88d;border-color:#f4dfa8;color:#091719}
  .button.light{background:#18272a;color:#e0cea6;border-color:#8e815251}.button.light:hover{background:#233432;border-color:#c5a469a6}
  .button.quiet{color:#b7c0ae;background:transparent}.button.quiet:hover{color:#e8d5a8;background:#bc9d5a0c}
  .button.danger{background:#462c27;color:#ebbcad;border:1px solid #a06a525e}.button.danger:hover{background:#603b30}
  .icon-button{background:#132326f2;border-color:#a994614f;color:#dfc58c}.icon-button:hover{background:#233535;border-color:#c6a66e}
  .tools-menu{background:#152427;border-color:#6f714a80;box-shadow:0 16px 45px #0008;border-radius:3px}.tools-menu button{background:#152427;color:#d8d6c4}.tools-menu button:hover{background:#233731;color:#f0dcae}
  .search svg{color:#b6a575}.search input{background:#111e20;border-color:#6d79594f;color:#e7e5d5;font-size:14px;min-height:46px}.search input::placeholder{color:#a7b0a0;opacity:1}
  .filter-select,select{background:#142225 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23c9b47c'/%3E%3C/svg%3E") right 12px center/10px no-repeat;border-color:#7e855b55;color:#d9decc;font-size:14px;border-radius:2px;min-height:46px}
  option{background:#142225;color:#eee5cf}.filter-summary{color:#aeb7a5}.reset-filters{color:#dfaa87;font-size:14px}.tabs-row{border-color:#7e795045;gap:7px}.tab{color:#b3bcab;font-size:14px;border-radius:2px;padding:9px 12px}.tab:hover{color:#f0dba5;background:#a68d480f}.tab.active{color:#eed59e;background:#9b814d25;border-color:#a98e5359}.tab-count{color:inherit;opacity:.8!important}
  .empty{background:radial-gradient(ellipse at 50% 0,#b8a65309,transparent 70%),#111e20;border-color:#85926066;border-radius:3px}.empty h2{color:#e4d1a7}.empty p{color:#b5bfae}.selection-badge{background:#263b2c;color:#d9d6ad}
  .destination-banner{background:#152326;border-color:#a88e5047;border-radius:3px}.destination-banner h2{color:#e8d1a0}.destination-banner p{color:#b9c3b1}.destination-banner img{filter:saturate(.92) brightness(.92)}
  .timeline:before{background:linear-gradient(#b1945e80,#66754599)}.timeline-dot{background:#102020;color:#ddc184;border-color:#a68c525c;box-shadow:0 0 0 6px #0a1113}.timeline-title h2{color:#e5cf9f}.timeline-title h2 span,.timeline-title p{color:#aeb79e}.timeline-intro p{color:#b4bea9}.add-happening{color:#dec38a;font-size:14px}.add-happening:hover{color:#ffdf9a}.subheading h2{color:#e8d2a1}
  dialog{background:#131f22;color:#e4e4d3;border-color:#b39a5a66;border-radius:4px;box-shadow:0 24px 100px #0009}dialog::backdrop{background:#03090bd9;backdrop-filter:blur(5px)}
  .detail-media{background:radial-gradient(ellipse,#2b3d31,#152326);color:#c5ab72}.detail-media>img{filter:none}.detail-credit{color:#ebe1c7;background:#081315e3;font-size:12px;line-height:1.5}.detail-credit a{color:#e9cf95}
  .detail-body h2{color:#ecd7ac;font-size:42px;font-weight:400}.detail-summary{color:#d9ddcc;font-size:17px;line-height:1.75}.detail-text{color:#bfc7b7;font-size:16px}.detail-subtitle{color:#b1bea8;font-size:13px}.detail-body .eyebrow{color:#bca874}
  .detail-top .button{flex-shrink:0}.detail-media.document-media{background:#faf8f0}.document-media .detail-credit{background:#0b1718f0}.source-links{font-size:14px}.source-links a{color:#d8bf83}.note-area,.dialog-actions,.stage-form{border-color:#8994633d}.note-area label{color:#d5d9c1;font-size:14px}.note-area textarea{background:#0d1a1c;border-color:#727f585c;color:#eee6cd;font-size:16px}.note-area textarea::placeholder{color:#9da995}.note-actions small{color:#aeb9a2}
  .field label{color:#d2d9bd;font-size:14px}.field input,.field textarea,.field select{background-color:#0d1b1d;border-color:#7c87595c;color:#eee6d0;font-size:16px}.field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23c9b47c'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:10px;padding-right:32px}.field input::placeholder,.field textarea::placeholder{color:#a3ad98}.field small{color:#adb79d;font-size:12px}.photo-upload{background:#1c2c27!important;color:#d9cfab!important;border-color:#a4935e80!important;font-size:14px}
  .clear-image{color:#dfae88;font-size:14px}.stage-manager-row{border-color:#a38b5052;background:#152629}.stage-manager-row small{color:#b5c0a3}.stage-form h3{color:#e4cf9e}.info-box{background:#1c302a;color:#d5ddc3;border-color:#a99a5352;border-radius:3px;font-size:14px}.info-box strong{color:#e0cd96}.small-dialog h2{color:#e6cfa0}.small-dialog>p{color:#bdc8b1;font-size:16px}.muted{color:#adb9a2}
  .error-panel{background:#3b2822;color:#f0c7aa;border-color:#ac785a8c}.error-panel h1{font-family:var(--serif);color:#efd2a1;font-weight:400;font-size:36px}.loading{color:#d6bf87}.toast{background:#dcc08b;color:#142322;border:1px solid #ebd6a8;font-weight:500;box-shadow:0 14px 40px #0006}.storage-note{color:#a3b096;font-size:12px;line-height:1.65}.update-credit{color:#c2b58e}
  @media(min-width:1600px){.hero{min-height:370px}.category-tile{min-height:172px;padding:22px}.category-tile .tile-count{top:23px;right:19px}.hero h1{font-size:64px}}
  @media(max-width:1150px){.hero{min-height:350px;padding:30px}.hero h1{font-size:48px}.hero-copy{max-width:530px}.hero p{max-width:390px}.hero-calligraphy{right:20px;top:20px}.hero-calligraphy span{width:48px;height:60px}.category-tile{gap:12px;padding:18px 15px}.category-icon{height:38px;width:38px}.category-tile h3{font-size:15px}.category-tile .tile-count{font-size:25px}.hero-mark{display:flex;right:25px;bottom:24px}.hero-mark strong{font-size:34px}.hero-mark small{font-size:9px}.stage-cover{height:110px}.note-panel{display:none}}
  @media(max-width:760px){.sidebar{box-shadow:none}.sidebar.open{box-shadow:0 0 0 100vw #0009}.topbar{height:66px}.top-actions .button{font-size:13px}.sharing-bar{padding:13px 18px;gap:12px}.sharing-copy strong{font-size:13px;line-height:1.5}.sharing-copy span{font-size:12px;line-height:1.5}.sharing-actions{gap:6px}.sharing-actions .button{font-size:12px;min-height:34px;padding:7px 11px}.sharing-actions #editor-name{padding-left:0}.hero{padding:29px 23px 26px;min-height:420px;margin-bottom:26px;align-items:start}.hero:before{inset:6px}.hero-art{width:100%;opacity:.82;object-position:72% center}.hero:after{background:linear-gradient(90deg,#0b1717e8 0,#0b1717bc 45%,#0b171745 100%),linear-gradient(0deg,#071214c4,transparent 60%)}.hero-copy{position:relative;max-width:310px}.hero-copy .eyebrow{font-size:10px;letter-spacing:1.4px;max-width:240px}.hero h1{font-size:44px;line-height:1.04;margin-top:22px;max-width:310px}.hero p{font-size:16px;max-width:285px;color:#d1d2bb}.hero-signature{font-size:10px;letter-spacing:1px;gap:9px;margin-top:24px;max-width:270px}.hero-calligraphy{right:15px;top:17px;opacity:.4;display:none}.hero-mark{right:21px;bottom:19px;color:#e5cc94}.hero-mark strong{font-size:29px}.hero-mark small{font-size:9px}.section-heading h2{font-size:29px;line-height:1.1}.section-heading{align-items:end;gap:10px}.section-heading .text-link{font-size:13px}.section-heading p{font-size:12px}.category-tile{min-height:150px;padding:17px 15px;gap:12px}.category-tile h3{font-size:15px}.category-tile p{font-size:12px}.category-icon{height:34px;width:34px}.category-tile .tile-count{right:16px;top:18px;font-size:28px}.stage-text h3{font-size:29px}.stage-text p{font-size:12px}.stage-stats{font-size:12px}.page-heading h1{font-size:43px}.page-heading p{font-size:16px}.page-actions{margin-top:18px}.work-card h3{font-size:31px}.card-content{padding:19px}.work-card .excerpt{font-size:16px}.button,.filter-select,.tab,.text-link{font-size:14px}.detail-body h2{font-size:37px}.detail-summary{font-size:17px}.detail-text{font-size:16px}.detail-top .button{font-size:13px;padding:9px 12px}.detail-credit{font-size:11px}.dialog-actions .button{font-size:14px}.dialog-actions{align-items:start;flex-wrap:wrap}.dialog-actions .page-actions{margin-top:0}.note-actions .button{font-size:14px}.destination-banner .destination-copy{padding:23px}.timeline-dot{box-shadow:0 0 0 5px #0a1113}.timeline-title h2{font-size:31px}.timeline-title p{font-size:12px}.tools-menu{min-width:230px}footer{font-size:10px}}
  @media(max-width:370px){.hero{min-height:445px}.hero h1{font-size:39px}.hero-signature{max-width:230px}.hero-mark{display:none}.section-heading{flex-wrap:wrap}.category-tile h3{font-size:14px}.sharing-actions{flex-wrap:wrap}}
}
