/* Midnight travel journal: a quiet atlas around warm, readable paper. */
:root{color-scheme:dark;--bg:#101b25;--paper:#e9e3d6;--ink:#eee9df;--muted:#a6b4bd;--line:#30434f;--green:#d5b780;--soft:#20323f;--orange:#d5b780;--gold:#d5b780;--paper-ink:#343b38}
html,body,body.journal-locked{background:#101b25;background-image:none;color:var(--ink)}
body{font-weight:400}
button,a,input,select,textarea{outline-color:var(--gold)}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
button:disabled{cursor:not-allowed}
.primary,.nav-enter{background:var(--gold);color:#17232a;border:1px solid #e0c694;box-shadow:none;font-weight:600;border-radius:7px}
.primary:hover,.nav-enter:hover{background:#e4c997;box-shadow:none}
.secondary{background:#20313d;color:#e9e4d8;border:1px solid #415563;border-radius:7px}
.secondary:hover{background:#2c4150}
.text-button,.hero-preview{color:#d4bc91}
.icon-button,.modal-close{color:inherit}
.sidebar{width:200px;padding:28px 18px 22px;background:#14222d;border-right:1px solid #30404b}
.brand{color:#eee9df;margin-left:8px;letter-spacing:1px}.brand-mark{color:var(--gold)}.brand small{color:#a4b0b6}
.nav-label{color:#a5b1b9}.nav-item{color:#bdc7cd;border-radius:7px}
.nav-item:hover{background:#1c303e}.nav-item.active{background:#243745;color:#faf4e8;font-weight:500}
.nav-item.active:before{content:'';position:absolute;left:-1px;top:10px;bottom:10px;width:3px;background:var(--gold);border-radius:3px}
.nav-dot{display:none}.sidebar-quote{border-color:#30404b}.sidebar-quote p{color:#c4c8c5}.sidebar-quote>span{color:#99a9b2}
.sidebar-bottom button{color:#b8c6cc}.sidebar-bottom button:hover{color:#f0d4a0}
.local-label{color:#a6b7bd}.local-label>span{background:#bfa879}
.profile{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:16px 0;border-top:1px solid #30404b;margin-top:12px}
.profile strong{display:block;color:#f1e7d5;font-size:14px}.profile small{display:block;color:#a3b5c0;margin-top:3px;font-size:11px}
.profile:hover .person-avatar{border-color:var(--gold)}
main{position:relative;margin-left:200px;max-width:1800px;padding-inline:clamp(25px,3.6vw,58px)}
.topbar{height:72px;border-color:var(--line)}.breadcrumb,.today{color:#aebdc5}.breadcrumb strong{color:#d5dedf}
.page-intro{padding:22px 0 8px}.page-intro .eyebrow{display:none}.page-intro h1{color:#f1eadf;font-size:clamp(30px,3.2vw,46px);letter-spacing:-.025em;line-height:1.4;margin:0 0 8px}
.title-love{color:#e2d4bd}.title-love:after{display:none}.page-intro p{color:#aeb9bf}
.eyebrow:before,.eyebrow>span{background:#c2a97c}.couple-ribbon{color:#b8c6cd;gap:11px;margin-bottom:15px}
.sync-status{color:#a3beb4}.sync-status[data-state=error]{color:#e9ad92}
.stats{gap:28px;padding:8px 0;border-top:0;border-bottom:1px solid #30434f}.stats strong{font-size:24px;color:#e7d5b8}.stats small{color:#aab9c2}
.section-title h2{color:#eee7da;font-size:23px}.section-title .text-button{color:#adbbc3}
.explore-toolbar{margin-top:22px}.search-box{background:#142630;border-color:#3a505f;border-radius:7px}
.search-box input[type=search]{color:#e4e7e4;background:transparent}.search-box input::placeholder{color:#9aabb5}
.search-box kbd{background:#21343e;color:#b6c2c8}.search-world,.year-filter select{background:#192d39;color:#c6d2d7;border:1px solid #3a505f;border-radius:7px}
.globe-layout{grid-template-columns:minmax(0,1.95fr) minmax(285px,1fr);gap:22px}
.continuous-map-stage.globe-stage,.continuous-map-stage.experience-map{background:#07111a;border:1px solid #344854;border-radius:12px;box-shadow:none;overflow:hidden}
.globe-stage{min-height:540px}.continuous-map-stage .globe-stage-top,.continuous-map-stage.has-space .globe-stage-top{color:#a8bdc9;font-size:11px}
.continuous-map-stage .globe-stage-top .icon-button,.continuous-map-stage.has-space .globe-stage-top .icon-button{background:#192c38;color:#cfdae0;border:1px solid #405461}
.continuous-map-stage .globe-stage-top .live-dot{background:#bfa578;box-shadow:0 0 0 4px #c6ad7c0d}
.continuous-map-stage .boundary-legend,.continuous-map-stage.has-space .boundary-legend{color:#b8cad2;background:#13232fd9;border-color:#365060;border-radius:6px;font-size:10px}
.continuous-map-stage .boundary-legend i{border-color:#b7c3c6;border-top-width:1px}
.continuous-map-stage .maplibregl-ctrl-group,.continuous-map-stage.has-space .maplibregl-ctrl-group{background:#182b38f5;border:1px solid #40515e;box-shadow:none;backdrop-filter:none;border-radius:7px}
.continuous-map-stage .maplibregl-ctrl-group button,.continuous-map-stage .map-home{color:#dae1e1}
.continuous-map-stage .maplibregl-ctrl-group button:hover{background:#304551}
.continuous-map-stage .maplibregl-ctrl-icon{filter:invert(1);opacity:.85}
.continuous-map-stage .maplibregl-ctrl-scale,.continuous-map-stage.has-space .maplibregl-ctrl-scale{color:#c5d1d5;background:#10202bd9;border-color:#8a9da7}
.continuous-map-stage .maplibregl-ctrl-attrib,.continuous-map-stage.has-space .maplibregl-ctrl-attrib{background:#162630da;color:#aabcc6}
.continuous-map-stage .maplibregl-ctrl-attrib a{color:#b7c5cb}.continuous-map-stage .maplibregl-ctrl-attrib-button{filter:invert(.8)}
.pin-heart,.pin-heart:after{background:#819aa7}.journal-map-pin.is-selected .pin-heart,.journal-map-pin.is-selected .pin-heart:after{background:#c0a473}
.pin-heart{border-color:#f0e7d6;color:#10212d;box-shadow:0 2px 6px #0006}.pin-label{background:#e6dfce;color:#303e41;border-color:#d7c9af}
.memory-card,.experience-detail{--ink:#35413e;--muted:#626a63;--line:#cfc9b9;--paper:#eee8db;--soft:#e6dfd0;color:var(--ink);background:#e9e3d6;border:1px solid #cfc6b4;border-radius:10px;padding:24px;box-shadow:none}
.memory-card{position:relative;overflow:hidden;padding:20px}.memory-card:before{content:'';position:absolute;right:20px;top:0;width:15px;height:36px;background:#aa8c60;clip-path:polygon(0 0,100% 0,100% 100%,50% 80%,0 100%);opacity:.8;pointer-events:none}
.memory-kicker{display:block;color:#777364;font:12px/1.5 var(--ui);letter-spacing:.08em;margin:2px 0 16px}
.journal-preview .memory-photo{height:210px;border:5px solid #f4efe4;border-radius:1px;background:#d8d2c6}
.journal-preview .photo-count{background:#182a339e;color:#f4ead7;border-radius:3px}
.memory-content{padding:16px 0 0}.memory-location{margin:0;align-items:center}.memory-location h3{color:#303d38;font:500 28px/1.4 var(--serif);margin:0}.memory-location>span{color:#777767}
.memory-date{color:#6a7067;margin:6px 0 0}.memory-title{color:#3b433b;font:500 17px/1.6 var(--serif);margin:12px 0 6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.memory-note{font:19px/1.65 var(--hand);color:#4f564a;height:63px;max-height:63px;overflow:hidden;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.memory-authors{display:flex;gap:14px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid #c9c2af;margin:4px 0 0}
.memory-authors>span{display:flex;gap:7px;align-items:center;color:#6b5d44;font-size:12px}.memory-authors .person-avatar{width:25px;height:25px;font-size:11px}
.memory-bottom{display:flex;align-items:flex-end;gap:0;margin:6px 0 0;padding:0;border:0}.memory-bottom .tag{display:none}
.memory-bottom .text-button{color:#665334;margin-left:auto;font-size:13px}.cover-hint{display:none}
.empty-journal{padding:22px 0;min-height:450px;background:none}.empty-journal .empty-symbol{color:#8c7956;border-color:#c7bea8}
.empty-journal h3{color:#3c443a;font-size:30px}.empty-journal p,.empty-journal>span:last-child{color:#687061}.empty-journal .primary{background:#263c48;color:#f2eadb;border-color:#263c48;font-weight:400}
.recent-section{margin-top:28px}.recent-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.trip-card{display:flex;background:none;border:0;border-radius:0;gap:14px;text-align:left;align-items:center;box-shadow:none;padding:0}
.trip-card:hover{transform:none;box-shadow:none;background:#172934}.trip-thumb{width:42%;height:116px;flex-shrink:0;border-radius:4px}
.trip-thumb>span{font-size:10px}.trip-info{padding:8px 0;min-width:0}.trip-info>div{align-items:flex-start}.trip-info strong{color:#e6dfd2;font:500 19px/1.6 var(--serif)}
.trip-info strong small{display:block;color:#98aeb9;font:11px/1.7 var(--ui);margin:0}.trip-info p{font-size:12px;color:#aab9c3;line-height:1.8}.trip-arrow{display:none}
.recent-grid>.empty{grid-column:1/-1;border:1px dashed #344854;background:none;color:#b9c6cb;border-radius:7px}
.timeline-year{color:#e4cda5}.timeline-entry{background:#1b2d38;border-color:#334956;color:#e5e5dd}.timeline-entry h3{color:#e9e0cd}.timeline-entry p,.timeline-entry small{color:#b5c2c9}
.album-item{background:#192e39;border:1px solid #344854}.album-item>div{background:#192e39;color:#e8e1d3}.album-item small{color:#abbec9}
.compact-backup{border-color:#30434f;color:#aebdc3}main>footer{color:#98acb8;border-color:#30434f}main>footer i{color:#c8ad79}
/* Warm paper remains inside the notebook and writing forms. */
#notebook-dialog{--notebook-paper:#f2ecdf;--notebook-rule:#a59b7d33;--notebook-sage:#71654f;--ink:#3d443b;color:#e9e4d8}
#notebook-dialog::backdrop,dialog::backdrop{background:#040c14cc;backdrop-filter:blur(6px)}
.notebook-book{background:#233745;box-shadow:0 3px 0 #15232c,0 18px 50px #0005}
.notebook-page,.notebook-leaf{color:#3d443b}.notebook-entry-title{color:#394336}.notebook-note{color:#4f5547}
.notebook-author-badge{display:inline-flex;align-items:center;gap:7px;background:transparent;border:0;padding:0;color:#6c5e43}
.notebook-author-badge .person-avatar{width:27px;height:27px;font-size:12px}.notebook-ribbon{background:#ac8d67}
.notebook-cover{background:#263d4b!important;color:#eee4cc!important}.notebook-cover:before{border-color:#bba57c55}
.notebook-footer{color:#d0d7d7}.notebook-page-button{background:#142630;border-color:#637581;color:#e9dfcc}
.notebook-page-button:hover:enabled{background:#304654}.notebook-key-hint{color:#aebec7}
.auth-dialog,.entry-dialog,.location-dialog,.confirm-dialog{--ink:#34423b;--muted:#626d64;--line:#cfc7b6;--soft:#e3ddcf;color:var(--ink);background:#eee8dc;border:1px solid #c9c0ad;border-radius:10px}
.auth-icon{color:#354c53}.auth-icon>span{color:#a78b58}.auth-dialog .modal-close,.entry-dialog .icon-button,.location-dialog .icon-button{color:#56635a}
#gate-form input,.entry-dialog input,.entry-dialog textarea,.location-search input{background:#faf5eb;color:#303d35;border-color:#c6c5b5;box-shadow:none;color-scheme:light}
#gate-form input::placeholder,.entry-dialog input::placeholder,.entry-dialog textarea::placeholder,.location-search input::placeholder{color:#818578}
.entry-dialog .secondary,.location-dialog .secondary,.auth-dialog .secondary{background:#e5dfd1;color:#3e5149;border-color:#bdbda9}
.entry-dialog .text-button,.location-dialog .text-button,.auth-dialog .text-button{color:#6e5839}.entry-author{color:#5e644c}
.photo-upload{background:#e7e2d5;border-color:#bfc0ad;color:#5a695c}.photo-upload strong{color:#465c50}.photo-upload small{color:#748071}
.location-result{background:#e4e1d5;border-color:#cbc9b8;color:#384b41}.location-result:hover{background:#d9dfd3}.location-result small{color:#667364}
.coordinate-details{background:#e5e2d6;border-color:#c5c6b4}.entry-dialog .dialog-footer{border-color:#ccc6b6}
.gate-error,.form-error{color:#ad4e3c}.storage-notice,.migration-banner{background:#263a46;border-color:#506371;color:#e8d9b9}
#toast{background:#e2d1ad;color:#1a2e38;border:1px solid #d1ba91;box-shadow:0 6px 24px #0003}
.lightbox{background:#07111a}.lightbox::backdrop{background:#030911ec}
/* The public cover and interactive preview share the same visual language. */
#journal-gate{color:#eee7da}.landing-nav{border-color:#30434f}.wordmark,.wordmark-symbol{color:#e7c995}.wordmark small{color:#9eaeb7}
.hero-copy h1{color:#f3e9d8}.hero-copy h1>span,.hero-copy h1 em{color:#d7bb87}.hero-description,.hero-assurance{color:#acbcc7}
.hero-note{--ink:#414b3c;--muted:#706d5b;background:#ece4d4;border-color:#cbbf9f;box-shadow:0 8px 28px #0003}.hero-note .note-tabs i{color:#746047}.hero-note-label{color:#a4b3b9}
.chapter-strip{border-color:#344955}.chapter-strip strong{color:#e3dbc9}.chapter-strip small{color:#a4b6bf}.chapter-number{color:#c6ad7c}
.landing-story h2{color:#eadfca}.landing-story h2>span{color:#d2b57e}.landing-story p{color:#b1bec5}.landing-footer{border-color:#30434f;color:#a4b6bf}
.experience-dialog{background:#13212c;color:#eee7db;border:1px solid #40515d}.experience-heading .modal-close{color:#cdd8da}.experience-heading h2{color:#eee4d0}
.experience-description,.experience-description>span{color:#acbdc7}.experience-layout{grid-template-columns:1.55fr 1fr;gap:22px}.experience-map{height:480px}
.destination-tabs{background:#ded8c9;border-color:#c9c0ad}.destination-tabs button{color:#776e59}.destination-tabs button[aria-pressed=true]{background:#f7f0e3;color:#473b27;box-shadow:none}
.preview-story-meta h3{color:#394639}.preview-story-meta span,.preview-authors,.experience-tip{color:#6c7365}.preview-story-note{color:#505c48}
/* Real member portraits: identical source in navigation, shared status and pages. */
.person-avatar{width:38px;height:38px;flex:0 0 auto;position:relative;display:inline-grid;place-items:center;overflow:hidden;border-radius:50%;border:1px solid #a89475;background:#314754;color:#f1dfbf;font:17px/1 var(--ui);vertical-align:middle}
.person-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.person-avatar-large{width:100%;height:100%;border:0;font-size:88px}
.paired-avatars{display:inline-flex;align-items:center;padding:0 5px 0 0;min-height:44px;border-radius:25px}.paired-avatars .person-avatar{width:36px;height:36px}.paired-avatars .person-avatar+.person-avatar{margin-left:-8px;background:#675c4d}
.profile-dialog{width:min(460px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:27px;background:#182935;color:#ebe4d6;border:1px solid #48606d;border-radius:14px;box-shadow:0 24px 80px #0007}
.profile-dialog .profile-actions{flex-direction:row;align-items:center}
.profile-dialog .dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.profile-dialog h2{font:500 26px/1.5 var(--serif);margin:8px 0}.profile-dialog .eyebrow{font-size:10px;color:#c6ae83}.profile-dialog .icon-button{font-size:26px;line-height:1;color:#bfcdd4}
.profile-description{font-size:13px;color:#b0c1ca;line-height:1.8;margin:4px 0 20px}.profile-identity{display:flex;align-items:center;gap:10px;margin-bottom:20px}.profile-identity strong{display:block;font-size:15px}.profile-identity small{display:block;color:#9eafb9;font-size:11px}
.avatar-crop-area{width:224px;height:224px;margin:auto;border-radius:50%;overflow:hidden;position:relative;border:2px solid #c6ad7c;background:#223c4b}
#avatar-crop{width:100%;height:100%;display:block;touch-action:none;cursor:grab}#avatar-crop:active{cursor:grabbing}
#avatar-placeholder{position:absolute;inset:0;pointer-events:none}.crop-hint{text-align:center;color:#b0c1ca;font-size:12px;line-height:1.7;margin:14px 0}
.avatar-upload-actions{display:flex;justify-content:center;gap:16px;align-items:center;margin:14px 0}.avatar-file-label{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:10px 20px;overflow:hidden;cursor:pointer}
.avatar-file-label:focus-within{outline:2px solid var(--gold);outline-offset:3px}.avatar-file-label input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.profile-dialog .text-button{color:#c9b48d}.crop-range{display:flex;align-items:center;gap:12px;font-size:12px;color:#bbcbd2;min-height:40px}.crop-range input{flex:1;min-width:0;accent-color:var(--gold);cursor:pointer}.crop-range output{width:42px;text-align:right;font-size:11px}
.crop-details summary{font-size:12px;color:#abbfc9;cursor:pointer;padding:6px 0}.profile-file-note{text-align:center;font-size:11px;color:#93a9b5;margin:16px 0}.profile-dialog .form-error{font-size:13px;line-height:1.7;color:#ffb4a2}.profile-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #3b505d;padding-top:18px;margin-top:14px}.profile-actions button{padding:10px 20px;min-height:44px}.profile-actions .primary{min-width:118px}
@media(min-width:1500px){.globe-stage{min-height:590px}.journal-preview .memory-photo{height:275px}}
@media(min-width:1101px){.page-intro{padding-right:250px}.couple-ribbon{position:absolute;right:clamp(25px,3.6vw,58px);top:114px;width:245px;justify-content:flex-end;gap:10px;margin:0;flex-wrap:wrap}.couple-ribbon #couple-members{max-width:160px;font-size:12px;line-height:1.7}.couple-ribbon .sync-status{width:100%;font-size:11px;text-align:right;margin:0}}
@media(max-width:1150px) and (min-width:681px){.sidebar{width:178px;padding-inline:15px}main{margin-left:178px;padding-inline:24px}.globe-layout{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr);gap:18px}.memory-card{padding:18px}.recent-grid{gap:14px}.trip-card{gap:10px}.trip-thumb{height:100px}}
@media(max-width:900px) and (min-width:681px){.sidebar{width:78px;padding-inline:11px}main{margin-left:78px}.sidebar .profile{justify-content:center}.sidebar .profile>span:last-child{display:none}.nav-item.active:before{left:-5px}.experience-layout{grid-template-columns:1.2fr 1fr}.experience-detail{padding:18px}.recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){
 .sidebar{height:68px;width:100%;padding:0 18px;border-right:0;border-bottom:1px solid #35434e;background:#14222df5}.brand-mark{color:#d7b985}.nav-item.active{background:#2a3d49}.nav-item.active:before{display:none}main{margin-left:0;padding:68px 18px 0}
 .topbar{height:64px}.topbar .breadcrumb{font-size:11px}.page-intro{padding-top:22px}.page-intro h1{font-size:30px;line-height:1.5}.page-intro p{font-size:13px}.page-intro .eyebrow{font-size:8px;letter-spacing:.08em}
 .couple-ribbon{font-size:12px;gap:9px;flex-wrap:wrap}.sync-status{width:100%;margin-left:0;font-size:11px}.stats{gap:20px}.stats strong{font-size:23px}.stats small{font-size:11px}
 .explore-toolbar{margin:23px 0 14px}.filters{gap:7px}.search-box{background:#162a35}.search-world{font-size:12px;padding:0 10px}.year-filter select{font-size:11px;width:82px}.search-box input[type=search]{font-size:16px}
 .globe-layout{display:flex;gap:20px}.globe-stage{min-height:430px}.continuous-map-stage .globe-stage-top{left:14px;font-size:10px}.continuous-map-stage .globe-canvas{inset:50px 0 0}
 .memory-card{padding:20px;border:1px solid #cfc6b4;border-radius:10px}.empty-journal{padding:10px 0;min-height:260px}.empty-journal h3{font-size:28px}.journal-preview .memory-photo{height:220px}.memory-kicker{margin-bottom:18px}.memory-note{font-size:19px}.memory-content{padding-top:18px}
 .recent-grid{display:flex;flex-direction:column;gap:20px}.trip-card{gap:18px}.trip-thumb{width:36%;height:105px}.trip-info strong{font-size:20px}.trip-info p{font-size:12px}.recent-section{margin-top:28px}
 .experience-dialog{padding:20px;width:calc(100vw - 22px);border-radius:12px}.experience-layout{display:flex;flex-direction:column}.experience-map{height:380px}.experience-detail{padding:20px}.preview-story-photo{height:170px}
 .profile-dialog{padding:23px 20px}.profile-dialog h2{font-size:24px}.avatar-crop-area{width:200px;height:200px}.profile-description{font-size:12px}.profile-actions{position:sticky;bottom:-23px;background:#182935;padding-bottom:12px}
 .hero-note{background:#eee5d5}.chapter-strip{border-color:#344955}.auth-dialog,.entry-dialog,.location-dialog{border-radius:9px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.primary:hover,.trip-card:hover{transform:none}}
