/* Common ink, stock and printing marks for the atlas and its reading room. */
body {
  --cel-ink:#2e3045; --cel-stock:#fffaf0; --cel-mint:#a6d9cc; --cel-coral:#df7666; --cel-edge:#626473;
  --cel-dots:radial-gradient(#836e5c26 .7px,transparent .9px);
  --cel-shadow:3px 4px 0 #403d512b;
  --cel-title:"Arial Black","Microsoft YaHei","PingFang SC",system-ui,sans-serif;
  background-color:#faf7ef;color:var(--cel-ink);
  background-image:linear-gradient(119deg,transparent 72%,#d8ecdf4a 72%,transparent 88%),var(--cel-dots);
  background-size:auto,6px 6px;
}
body:not(.page-home) .mast,.page-orbit .mast {
  border-bottom:1px solid #b6aa99;background:#fffaf0;
  box-shadow:0 3px 0 #eae2d1;
}
body .site-footer {background:#f5f0e4;border-color:#c0b6a6;color:#514f5a;}
body .mast .wordmark {
  display:inline-flex;align-items:center;gap:7px;min-height:44px;
  color:#454850;font:italic 600 17px/1 Georgia,"Times New Roman",serif;letter-spacing:-.025em;
}
.mast-mark {display:block;width:30px;height:30px;flex:none;}
body .rail-brand img {width:34px;height:34px;filter:none;}
body .footer-brand img {width:22px;height:22px;}
@media(min-width:761px){
  body:not(.page-home):not(.page-orbit) .mast-mark {display:none;}
}
@media(max-width:760px){
  .mast-mark {width:26px;height:26px;}
  body .mast .wordmark {font-size:16px;gap:5px;}
  body .menu-trigger .icon {width:19px;height:19px;}
}
body .lang-current,.page-orbit .lang-current {border-radius:2px;background:#d5e9da;color:#253e44;}
body:not(.page-orbit):not(.page-home) .rail {background:#faf6eb;border-color:#b6aa99;}
body .rail-link[aria-current] {color:#293f48;background:#c5e4d8;}
body .rail-brand {background:#eee5d1;}
@media(min-width:761px){
 .page-orbit .rail-link[aria-current] {background:linear-gradient(175deg,transparent 57%,#c5e4d8 58%,#c5e4d8 84%,transparent 85%);box-shadow:none;color:#203e47;}
}
body :focus-visible {outline-color:#c04739;outline-offset:3px;}
.atlas-wrap {padding-top:clamp(24px,2.6vw,45px);}
.celestial h1,.preview-copy h2,.terrain-index h2,.recent-atlas h2,.reading-head h1,.archive h1,.about-page h1,.missing h1 {
  font-family:var(--cel-title);font-weight:900;letter-spacing:-.055em;color:var(--cel-ink);
}
.celestial .edition,.kicker {color:#3b655f;font-weight:750;}
.celestial .edition {letter-spacing:.14em;}
.system-spread {
  grid-template-columns:minmax(0,2.9fr) minmax(215px,1fr);gap:clamp(12px,1.5vw,25px);
  background:transparent;border:0;align-items:stretch;
}
.orbit-sheet,.globe-sheet,.terrain-sheet,.world-preview,.world-info,.region-list a {
  background-color:var(--cel-stock);border:1px solid var(--cel-edge);box-shadow:var(--cel-shadow);
}
.orbit-sheet {padding:7px 7px 0;display:flex;justify-content:flex-start;background-image:none;}
.night-stage {
  isolation:isolate;position:relative;display:grid;align-items:center;flex:1;min-width:0;
  background:#343562 url("../svg/observatory-sky.svg?v=survey-desk-1") center/cover no-repeat;
  clip-path:polygon(0 12px,12px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%);
}
.sky-title {position:absolute;top:clamp(16px,2.4vw,44px);left:clamp(15px,2.5vw,46px);z-index:2;pointer-events:none;}
.sky-title .edition,.preview-family,.kicker {
  width:fit-content;background:#b1ded0;clip-path:polygon(4px 0,100% 0,calc(100% - 3px) 47%,100% 100%,0 100%,3px 52%,0 40%);
  color:#2d4d54;font-size:11px;line-height:1.45;padding:3px 11px;letter-spacing:.115em;
}
.sky-title h1 {
  font-size:clamp(47px,5.75vw,93px);line-height:1.13;margin:3px 0 0;color:#fff7e6;
  -webkit-text-stroke:clamp(2px,.35vw,5px) #29233e;paint-order:stroke fill;
  text-shadow:3px 4px #29233e,5px 6px #d77877;transform:skew(-5deg) rotate(-2deg);transform-origin:left bottom;
}
.sky-title::after {content:"";display:block;margin-top:6px;width:68%;height:4px;background:#eebc94;clip-path:polygon(0 80%,94% 0,100% 40%,11% 100%);}
.sky-projection {width:100%;position:relative;padding:clamp(24px,3.1vw,55px) 1.5% clamp(14px,1.8vw,33px);}
.sky-scope {pointer-events:none;position:absolute;left:0;bottom:0;width:clamp(94px,15.7vw,248px);height:auto;filter:drop-shadow(1px 2px 0 #222346);z-index:2;}
.orbit-grid {stroke:#c8cbea;stroke-width:1;opacity:.72;}
.orbit-grid>path {stroke:#9b9bc6;opacity:.44;}
.orbit-grid .earth-orbit {stroke:#a9f6e6;stroke-width:1.65;}
.moon-orbit {stroke:#fbebce;}.belt-grit {stroke:#f2cfab;opacity:.65;}
.orrery .planet-label {font-weight:750;fill:#fff8e9;stroke:#333052;stroke-width:3.5px;}
.orrery a:is(:hover,:focus-visible) .orbit-hit {fill:#fff5;stroke:#ffdf91;stroke-width:1.8;}
.orrery a:focus-visible {outline:none;}
.orbit-sheet figcaption {color:#50505f;min-height:38px;padding:4px 8px;font-size:11px;}
.orbit-sheet .chart-key {color:inherit;font-size:inherit;gap:5px;}
.legend-orbit {border-color:#647d82;}.legend-belt {background:radial-gradient(#8e745f 1px,transparent 1.5px) 0 0/5px 5px;}
.world-preview {
  position:relative;isolation:isolate;padding:clamp(17px,1.8vw,30px);background-color:#faf1dc;
  background-image:linear-gradient(144deg,transparent 60%,#ede0bf66 60%,transparent 85%),var(--cel-dots);
  background-size:auto,5px 5px;border-width:1px 1px 3px;
}
.world-preview::before,.world-info::before,.water-window::after {content:"";position:absolute;width:52px;height:15px;top:-6px;right:9%;transform:rotate(5deg);background:repeating-linear-gradient(115deg,#96c8b5 0 5px,#a4d2bd 5px 7px);clip-path:polygon(2% 0,100% 4%,96% 22%,100% 40%,96% 65%,99% 99%,0 96%,3% 64%,0 44%,4% 20%);pointer-events:none;}
.preview-family {align-self:flex-start;background-color:#f2ca88;color:#574c42;}
.specimen {margin:6px 0;background:none;}
.specimen::before {inset:0;height:auto;background:url("../svg/cel-dial.svg?v=engravings-1") center/contain no-repeat;}
.specimen::after {display:none;}
.specimen img {width:72%;max-width:242px;filter:drop-shadow(2px 3px 0 #524f6e66);}
.preview-copy h2 {font-size:clamp(32px,4vw,63px);line-height:1.1;}
.preview-copy p {color:#58545b;}
.preview-open,.solid-link,.action,.detail-open {border:1px solid #3f4b55;background:#354e58;color:#fffaed;box-shadow:2px 3px 0 #97afa3;border-radius:2px;padding:8px 12px;}
.world-preview:hover .preview-open,.solid-link:hover {background:#3f6469;color:white;}

.body-strip {margin:17px 0 0;padding:4px 3px;border-block:1px dashed #b1a58e;color:var(--cel-ink);}
.body-strip a {border-right:1px dotted #b8ac95;font-weight:650;}.body-strip a:last-child{border:0;}
.body-strip a:hover,.next-worlds a:hover {background:#e1ecdb;}
.terrain-index {margin-top:clamp(33px,3.4vw,56px);}
.terrain-index header {align-items:center;}.terrain-index header::after {content:"";height:1px;flex:1;background:repeating-linear-gradient(90deg,#aeb2a5 0 4px,transparent 4px 7px);order:1;}
.terrain-index header>span {order:2;}
.terrain-index h2 {font-size:clamp(26px,2.6vw,42px);text-shadow:2px 2px #b4dbca;}
.region-list a {position:relative;padding:6px 6px 10px;gap:8px 4px;background-image:var(--cel-dots);background-size:6px 6px;}
.region-list a::before {content:"";position:absolute;top:-3px;right:13px;width:10px;height:23px;border:1.5px solid #667683;border-radius:6px;transform:rotate(14deg);box-shadow:inset 1px 0 #fffaee,1px 1px #fff9;pointer-events:none;}
.region-list img {border-bottom:2px solid #a6bcb5;aspect-ratio:2.12;filter:saturate(1.17) contrast(1.04);}
.region-label {padding-left:5px;}.region-label strong {color:var(--cel-ink);}
.region-list a:hover {border-color:#42796d;box-shadow:3px 4px #b5cdbf;}
.world-spread {background:none;border:none;gap:clamp(13px,1.35vw,24px);}
.globe-sheet {padding:clamp(12px,1.5vw,28px);background:#353768 url("../svg/observatory-sky.svg?v=survey-desk-1") center/cover;}
.globe-sheet .sheet-top,.globe-sheet .sheet-top strong {color:#fff6dc;}
.sphere-window::before {display:none;}.sphere-window {background:radial-gradient(ellipse at center,#c0d4ef22,transparent 62%);}
.world-toolbar,.terrain-tools,.section-tools button,.relief-toggle {border:1px solid var(--cel-edge);border-radius:3px;background:#fff7e6;color:#424455;box-shadow:2px 2px 0 #5255693b;}
.world-info {position:relative;background:#fcf5e5;}
.world-info dl {border-top:1px dashed #ab9d88;}.world-info dl div {border-bottom:1px dotted #bcb09b;}
.study-entry img,.reading-inset,.water-window,.missing-plate {border:4px solid #fff8eb;outline:1px solid #938a82;box-shadow:var(--cel-shadow);}
.landing-pin span,.terrain-pin {background:#fff7df;color:#303848;border:1px solid #686478;box-shadow:2px 2px #3e516844;}
.terrain-sheet {border-top:4px solid #64867d;}.terrain-sheet figcaption {background:#fff8e8;}
.terrain-plane img {filter:saturate(1.12) contrast(1.025);}
.terrain-pin[aria-pressed=true],.relief-toggle[aria-pressed=true] {background:#335866;color:white;}
.relief-stage {background-color:#e4eee2;}
.atlas-crumb {color:#4d6263;}.atlas-crumb a {text-decoration:underline;text-decoration-color:#9aaea1;text-underline-offset:4px;}
.next-worlds [aria-current] {background:#d2e7d9;}
/* Field guides and reading pages use the same paper as the celestial plates. */
.archive,.about-page,.missing,.reading {color:var(--cel-ink);}
.empty-basin {background:var(--cel-stock);border:1px solid var(--cel-edge);border-radius:0;box-shadow:var(--cel-shadow);}
.empty-night {grid-area:1/2;position:relative;min-height:230px;background:#363665 url("../svg/observatory-sky.svg?v=survey-desk-1") center/cover;overflow:hidden;margin:6px;}
.empty-night img {position:absolute;width:auto;height:84%;left:7%;bottom:0;}
.empty-basin .basin-copy {grid-area:1/1;}
.water-window {position:relative;background:#fff8eb;}.water-window figcaption {background:#fff8eb;color:#3f555c;}
.reading-head {border-bottom:2px solid #a0ac9b;}
.contents,.archive-filters select,.search-field {background:#fffaf0;border-color:#b0a899;}
.contents summary,.reading-meta,.site-facts dt {color:#47665f;}
.reading-progress {accent-color:#d27462;}
.record,.site-facts div {border-color:#c0baaa;}
.missing-plate,.reading-inset {border-radius:0;}
/* Harbour controls stay at the edges of the working map. */
.atlas .chart-index,.atlas .map-sheet,.atlas .overview,.atlas .chart-zoom,.atlas .layer-trigger,.page-home .wordmark,.page-home .languages,.page-home .rail {
  border-color:#687477;background-color:#fffaed;border-radius:3px;box-shadow:2px 3px 0 #283e512e;
}
.atlas .sheet-heading,.atlas .chart-index summary,.atlas .overview-head {background:linear-gradient(112deg,#e1eee0 65%,#c6dfd3 65%,#e1eee0);color:#374b53;}
.atlas .chart-index summary,.atlas .chart-index:not([open]) summary {border-radius:2px;}
.atlas .catalog-tabs,.atlas .index-body,.atlas .layer-scroll {background-color:#fff8e9;}
.atlas .catalog-tabs button[aria-pressed=true],.atlas .preset-map[aria-pressed=true] {color:#293e47;background:#b8daca;box-shadow:1px 2px 0 #81998a;}
.atlas .station b,.atlas .survey-point>.icon {border-color:#4d6270;filter:drop-shadow(1px 2px 0 #fbf7e3);}
.atlas .pin-caption {background:#fff8e7;color:#384653;}
@media(max-width:760px){
 .atlas-wrap {padding:20px 11px 28px;}.system-spread,.world-spread {grid-template-columns:minmax(0,1fr);gap:12px;}
 .sky-projection {padding:55px 1% 19px;}.sky-title {top:12px;left:14px;}.sky-title h1 {font-size:40px;}
 .sky-title .edition {font-size:10px;padding:1px 8px;}.sky-title::after {margin-top:3px;}
 .sky-scope {width:clamp(75px,24%,115px);}
 .orbit-sheet {padding:4px 4px 0;}.orbit-sheet figcaption {min-height:36px;padding:4px;font-size:10px;gap:7px;}
 .orbit-sheet .chart-key {display:flex;align-items:center;}.orbit-sheet figcaption>span:last-child {max-width:52%;}
 .world-preview {padding:8px 12px;grid-template-columns:63px 1fr auto;gap:0 10px;}
 .world-preview::before {width:32px;height:10px;right:18%;}.specimen {margin:0;min-height:62px;}.specimen img {width:80%;}
 .preview-family {font-size:10px;line-height:1.2;padding:2px 6px;}.preview-copy h2 {font-size:26px;}
 .preview-open {font-size:12px;padding:7px 9px;}
 .body-strip {margin-top:14px;}.body-strip a:nth-child(5){border-right:0;}
 .region-list a:first-child img {aspect-ratio:2.8;}
 .terrain-index header {gap:8px;}.terrain-index h2 {font-size:26px;}
 .empty-night {grid-area:2/1;min-height:167px;}
 .world-toolbar button,.section-tools button,.relief-toggle {min-height:44px;}
 .atlas .map-sheet {border-radius:3px;}
}
@media(max-width:360px){.sky-title h1{font-size:34px;}.preview-open{padding:6px;}.sky-projection{padding-top:58px;}}

/* A narrow film rebate sits outside the touch surface. */
.orbit-sheet {
  padding-top:15px;background-color:#fff4da;
  background-image:repeating-linear-gradient(90deg,#655d64 0 8px,transparent 8px 26px);
  background-repeat:repeat-x;background-position:12px 5px;background-size:auto 3px;
}
.orbit-sheet::after {content:"";width:27px;height:12px;position:absolute;right:6%;top:-6px;transform:rotate(-6deg);background:repeating-linear-gradient(108deg,#abceba 0 4px,#c8dbc3 4px 6px);pointer-events:none;}
body.page-orbit {background-color:#faf8f0;background-image:linear-gradient(127deg,transparent 77%,#d9e9d94d 77%,transparent 90%),radial-gradient(#76695719 .65px,transparent .78px);background-size:auto,7px 7px;}
body:not(.page-orbit) {--cel-dots:radial-gradient(#836e5c1a .65px,transparent .85px);}
.body-strip a[data-previewing] {background:linear-gradient(160deg,#d5e6d8 0 76%,#e7eddf 76%);box-shadow:inset 0 -2px #5b7e77;}
.world-preview {border-bottom-width:3px;}
.region-list a {border-bottom-width:2px;}
.world-info .edition,.terrain-page .edition {display:inline-block;color:#3f625f;background:#d4e8d8;padding:2px 9px;transform:rotate(-1deg);}
.terrain-page .atlas-heading h1,.world-info h1 {text-shadow:2px 3px #c9dcca;}
.relief-orbit {background:#fff5e0;border-color:#949888;border-radius:3px;}
.water-window img,.missing-plate img {width:100%;height:auto;object-fit:cover;border-radius:0;}
.water-window .inset-chart {height:auto;display:block;aspect-ratio:2.19;background:#b6dcd5;}
.water-window figcaption {margin:0;padding:9px;}
.atlas .layer-option input:checked+.switch-track {background:#397775;border-color:#355b62;}
.atlas .map-presets button[aria-pressed=true] {border-color:#547471;box-shadow:inset 0 -2px #5a827c;}
.atlas .preset-map {object-fit:cover;}
.atlas .layer-legend {background:#f8f3e6;}
@media(max-width:760px){.orbit-sheet {padding-top:11px;background-position:10px 3px;}.orbit-sheet::after{width:24px;height:9px;top:-4px;}}

.water-window .inset-chart {border-radius:0;clip-path:polygon(0 9px,9px 0,100% 0,100% calc(100% - 9px),calc(100% - 9px) 100%,0 100%);box-shadow:none;border:0;}
@media(min-width:761px){:lang(en) .sky-title h1 {font-size:clamp(38px,4.15vw,70px);}}

/* Printed covers and loose photographic plates on the observatory desk. */
body,body.page-orbit {
  --album-paper:#fff4d8;--album-ink:#3d3b49;--album-cut:#fff9e8;--album-shadow:#705966;--album-red:#a94248;
  --fibres:url("../svg/paper-speck.svg");--tooth:radial-gradient(circle at 3px 0,transparent 2.3px,#000 2.7px) 0 0/8px 100%;
  background-color:#f8f1df;
  background-image:var(--fibres),url("../svg/journal-desk.svg");
  background-size:160px 160px,100% auto;background-position:top center;background-repeat:repeat,repeat-y;
}
.journal-emblem {width:31px;height:31px;display:inline-block;flex:none;vertical-align:middle;overflow:visible;filter:drop-shadow(1px 0 #fff3d6) drop-shadow(-1px 0 #fff3d6) drop-shadow(0 -1px #fff3d6) drop-shadow(1px 2px #705a61);}
body:not(.page-home) .mast,.page-orbit .mast,.site-footer,body .site-footer {
  background-color:#fff8e8;background-image:var(--fibres);background-size:160px;border-color:#b0a48d;
}
@media(min-width:761px){
 .page-orbit .rail-nav {gap:6px;}
 .page-orbit .rail-link {padding:2px 14px 5px 10px;gap:6px;min-height:36px;align-self:center;isolation:isolate;color:#464450;}
 .page-orbit .rail-link[aria-current] {background:none;}
 .page-orbit .rail-link[aria-current]::before,.page-orbit .rail-link:hover::before {
  content:"";display:block;position:absolute;inset:6px 0 2px;width:auto;z-index:-1;
  background:linear-gradient(173deg,transparent 64%,#dbac5a 65%),var(--fibres),#f3cf82;
  clip-path:polygon(3% 0,100% 2%,98% 30%,100% 50%,97% 85%,92% 100%,0 96%,2% 57%,0 31%);
 }
}
body:not(.page-orbit):not(.page-home) .rail,.page-home .rail {background-color:#faf2da;background-image:var(--fibres);}
.rail-link .journal-emblem {width:32px;height:32px;}
.page-home .rail-link .journal-emblem {width:26px;height:26px;}
body .lang-current,.page-orbit .lang-current {background:linear-gradient(135deg,#d4e7d8 72%,#b1d1bf 72%);box-shadow:1px 2px #8d9f90;border-radius:1px;}
.preview-open,.solid-link,.action,.atlas .detail-open,.primary {
  color:#fff8e6;border:2px solid #fff3d4;outline:1px solid #975659;
  background:linear-gradient(139deg,transparent 65%,#d86d6266 65% 76%,transparent 76% 80%,#e6816d55 80%),var(--fibres),#9f4149;
  background-size:auto,144px,auto;box-shadow:2px 3px #803e46;border-radius:1px;font-weight:750;
}
.world-preview:hover .preview-open,.solid-link:hover,.action:hover {background-color:#893943;color:#fff8e6;}
.world-toolbar .journal-emblem,.terrain-tools .journal-emblem,.relief-orbit .journal-emblem,.atlas .chart-zoom .journal-emblem {width:25px;height:25px;}
.atlas .layer-trigger .journal-emblem,.relief-toggle .journal-emblem,.sheet-sign .journal-emblem,.find-place .journal-emblem {width:22px;height:22px;}
@media(max-width:760px){body,body.page-orbit{background-size:160px 160px,850px auto;}}
