@charset "UTF-8";

:root {
  --station-paper: #f5efe2;
  --station-ink: #332c25;
  --station-quiet: #786c5e;
  --station-rule: #c8b99b;
  --station-night: #142434;
  --station-gold: #d4b16e;
}
body:not([data-view="reading"]) {
  background: radial-gradient(ellipse at 80% 0, #fffdf6 0, transparent 58%),
    repeating-linear-gradient(112deg, transparent 0 138px, #7e623503 139px 140px), var(--station-paper);
}
.wrap { width: min(1160px, calc(100% - 96px)); }
.header { height: 104px; margin-bottom: 0; gap: 34px; }
.brand > span { font: 400 31px/1 var(--hand); letter-spacing: .06em; white-space: nowrap; }
.header nav { gap: 27px; }
.header nav a { padding-block: 35px; font-size: 15px; }
.header-actions { gap: 20px; }
.header-actions .primary-button { min-height: 43px; padding: 10px 19px; font-size: 14px; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
.station-page { padding-top: 52px; padding-bottom: 80px; min-height: 65vh; }
.station-hero { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: 70px; padding: 12px 0 77px; }
.station-date { color: var(--station-quiet); font-size: 13px; margin: 0 0 28px; letter-spacing: .09em; }
.hero-words h1 { margin: 0; color: var(--station-ink); font: 400 clamp(42px, 4.5vw, 62px)/1.55 var(--hand); letter-spacing: .02em; }
.hero-description { margin: 17px 0 29px; color: var(--station-quiet); font: 16px/1.8 var(--serif); }
.hero-actions { display: flex; align-items: center; gap: 26px; }
.hero-actions .primary-button { padding: 12px 24px; }
.quiet-link { color: var(--text); font-size: 14px; }
.quiet-link span { margin-left: 9px; }
.hero-photo { position: relative; margin: 0; padding: 12px 12px 0; background: #fffcf3; transform: rotate(1.5deg); box-shadow: 0 3px 6px #5f473714, 0 22px 28px -20px #5b402859; }
.hero-photo::before { content: ""; position: absolute; width: 105px; height: 26px; top: -11px; left: calc(50% - 52px); background: #c9b28250; transform: rotate(-5deg); z-index: 1; backdrop-filter: blur(2px); }
.hero-photo > img { width: 100%; height: 322px; object-fit: cover; }
.hero-photo figcaption { display: flex; justify-content: space-between; align-items: center; min-height: 55px; gap: 20px; padding: 7px 7px 8px 12px; color: #786a58; font: 14px/1.5 var(--hand); }
.station-seal { color: var(--seal); border: 1px solid var(--seal); outline: 1px solid var(--seal); outline-offset: -4px; padding: 0 5px; font: 25px/31px var(--hand); transform: rotate(-5deg); }
.station-columns { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 68px; }
.station-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 23px; }
.station-section-heading h2 { margin: 0; color: var(--station-ink); font: 400 25px/1.5 var(--hand); }
.timeline-filters { display: flex; gap: 16px; }
.timeline-filters button { position: relative; padding: 6px 0; background: none; font-size: 13px; color: var(--station-quiet); }
.timeline-filters button[aria-pressed="true"] { color: var(--seal); }
.timeline-filters button[aria-pressed="true"]::after { content: ""; height: 1px; background: currentColor; position: absolute; bottom: 0; left: 0; right: 0; }
.timeline-row { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 20px; border-top: 1px solid var(--line); padding: 26px 0; }
.timeline-date { display: flex; flex-direction: column; gap: 6px; color: var(--station-quiet); font-size: 11px; }
.timeline-date time { color: var(--station-ink); font: 18px/1.5 Georgia, var(--serif); }
.timeline-title { display: block; padding: 0; text-align: left; background: none; font: 400 21px/1.5 var(--hand); overflow-wrap: anywhere; }
.timeline-copy > p { margin: 10px 0; font: 15px/1.9 var(--serif); color: var(--text); white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.timeline-copy > .timeline-quote { font-family: var(--hand); font-size: 19px; }
.timeline-source { color: var(--station-quiet); font-size: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.snapshot-label { color: #8e7550; }
.timeline-photo { padding: 0; background: none; align-self: start; }
.timeline-photo img { width: 83px; height: 83px; object-fit: cover; border: 3px solid #fffaf0; box-shadow: 0 3px 7px #593a1f15; }
.timeline-cover img { width: 51px; height: 73px; object-fit: cover; border: 0; }
.timeline-more { display: block; margin: 10px auto 0; }
.station-book { border-top: 1px solid var(--station-rule); padding-top: 23px; }
#station-latest-book { display: flex; align-items: flex-start; gap: 21px; padding-top: 3px; }
.home-book-cover { flex-shrink: 0; padding: 0; background: none; transform: rotate(-3deg); }
.home-book-cover img { width: 77px; height: 112px; object-fit: cover; box-shadow: 3px 5px 9px #51391f35; }
#station-latest-book h3 { margin: 0 0 4px; font: 400 22px/1.5 var(--hand); }
.home-book-author { margin: 0; color: var(--station-quiet); font-size: 12px; }
#station-latest-book blockquote { margin: 16px 0 13px; font: 18px/1.9 var(--hand); color: var(--text); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
#station-latest-book .text-button { margin-top: 10px; font-size: 12px; }
.empty-book { display: grid; place-items: center; width: 77px; height: 112px; flex-shrink: 0; background: #6e7964; color: #eee7d5; box-shadow: inset 5px 0 #58644f, 3px 5px 8px #51391f22; font: 20px var(--hand); writing-mode: vertical-rl; letter-spacing: 7px; }
#station-latest-book > div > p:not(.home-book-author) { margin-top: 13px; color: var(--station-quiet); font-size: 14px; }
.planet-door { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; margin-top: 37px; min-height: 150px; padding: 25px; background: radial-gradient(ellipse at 0 100%, #2e4554 0, transparent 80%), var(--station-night); color: #eed9b6; }
.planet-door::after, .planet-landscape::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 7% 12%, #ffeda2 0 1px, transparent 1.5px), radial-gradient(circle at 82% 31%, #fff9 0 1px, transparent 1.5px), radial-gradient(circle at 64% 83%, #ffffff60 0 1px, transparent 1.5px), radial-gradient(circle at 92% 68%, #ffffff60 0 1px, transparent 1.5px); }
.planet-orb { display: block; position: relative; flex-shrink: 0; width: 78px; height: 78px; border-radius: 50%; border: 1px solid #99b9bb66; background: radial-gradient(ellipse at 34% 30%, #78948366, transparent 45%), repeating-radial-gradient(ellipse at 50% 50%, transparent 0 12px, #b7c9ba20 12px 13px, transparent 13px 19px), linear-gradient(115deg, #527684, #2b4d62 45%, #122f43); box-shadow: inset -12px -4px 18px #071b2755, 0 0 25px #9bc6c00b; }
.planet-orb::after { content: ""; position: absolute; width: 6px; height: 6px; top: 30%; right: 28%; background: #ffe1a1; border-radius: 50%; box-shadow: 0 0 8px 2px #f4c780aa; }
.planet-door-text { display: flex; flex-direction: column; gap: 8px; }
.planet-door-text strong { font: 400 24px/1.5 var(--hand); }
.planet-door-text > span { font-size: 12px; color: #b7c4c9; }
.planet-door > span:last-child { margin-left: auto; }
.station-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 8px 0 40px; }
.station-page-heading h1, .reading-heading h1 { margin: 0; font: 400 40px/1.5 var(--hand); }
.station-page-heading p { margin: 9px 0 0; color: var(--station-quiet); font-size: 14px; }
.footprint-intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; border-bottom: 1px solid var(--line); padding: 0 0 40px; margin-bottom: 40px; }
.planet-landscape { position: relative; overflow: hidden; min-height: 260px; display: grid; place-items: center; background: radial-gradient(ellipse at 60% 60%, #304b58, #101e2d 76%); }
.planet-landscape .planet-orb { width: 158px; height: 158px; z-index: 1; }
.orbit { position: absolute; width: 290px; height: 100px; border: 1px solid #dec18744; border-radius: 50%; transform: rotate(-25deg); }
.orbit-two { transform: rotate(35deg); width: 260px; height: 160px; border-color: #c9d3cd22; }
.footprint-intro h2 { margin: 0 0 15px; font: 400 27px/1.5 var(--hand); }
.footprint-intro p { max-width: 30em; color: var(--text); font-size: 15px; }
.connection-note { margin: 17px 0 0; font-size: 12px !important; color: var(--station-quiet) !important; }
.station-cities { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 48px; }
.station-city { padding-top: 20px; border-top: 1px solid var(--line); min-width: 0; }
.city-name { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; }
.city-name h3 { margin: 0; font: 27px/1.6 var(--hand); }
.city-name > span { color: var(--station-quiet); font-size: 12px; }
.city-place-list { margin-top: 15px; }
.city-place-list button { display: flex; gap: 13px; align-items: center; background: none; width: 100%; text-align: left; padding: 12px 0; border-bottom: 1px solid #b2986a22; font-size: 14px; }
.city-place-list button > span:nth-child(2) { overflow-wrap: anywhere; }
.city-place-list time { margin-left: auto; color: var(--station-quiet); font-size: 12px; white-space: nowrap; }
.place-pin { width: 9px; height: 9px; flex-shrink: 0; border-radius: 50%; background: #e0a542; border: 2px solid #724525; outline: 2px solid #fff9; }
.city-no-places { color: var(--station-quiet); font-size: 14px; }
.station-journal-list { columns: 2; gap: 32px; }
.journal-sheet { break-inside: avoid; margin: 0 0 32px; border-bottom: 1px solid var(--line); background: #fffcf55c; }
.journal-image { display: block; padding: 0; width: 100%; background: none; }
.journal-image img { width: 100%; height: auto; max-height: 420px; object-fit: cover; }
.journal-sheet-copy { padding: 26px 27px 29px; }
.journal-date { display: flex; justify-content: space-between; color: var(--station-quiet); font-size: 12px; gap: 18px; }
.journal-sheet h2 { margin: 20px 0 12px; font: 400 28px/1.5 var(--hand); }
.journal-sheet h2 button { text-align: left; background: none; padding: 0; font: inherit; }
.journal-sheet p { font: 17px/2 var(--serif); white-space: pre-line; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.journal-location { font-size: 12px; color: var(--station-quiet); }
.reading-heading { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 36px; margin-bottom: 30px; }
.reading-heading > div:first-child { display: flex; gap: 22px; align-items: baseline; }
.reading-heading > div > span { font-size: 13px; color: var(--muted); }
.reading-tabs { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.reading-tabs a[aria-current="page"], .reading-tabs .nav-active { color: var(--seal); }
.reading-tabs .outline-button { padding: 9px 14px; font-size: 14px; }
.local-status { color: var(--station-quiet); font-size: 12px; }
.footer { margin-top: 0; padding-bottom: 28px; }
.footer-brand { font-family: var(--hand); font-size: 23px; }
.footer-actions { flex-wrap: wrap; }
.station-empty { padding: 38px 0; color: var(--station-quiet); font: 17px/1.8 var(--serif); }
.station-empty p { margin-top: 0; }
.station-storage-error { padding: 18px; color: #8e2a1f; border: 1px solid currentColor; background: #ffefdb; }
.capture-dialog { width: min(650px, calc(100% - 28px)); padding: 28px 35px; background-image: linear-gradient(#f9f1e6e6,#f9f1e6e6), var(--paper-grain); }
.capture-dialog .dialog-heading { margin-bottom: 21px; }
.capture-kinds { display: flex; gap: 22px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.capture-kinds button { padding: 4px 0; font-size: 14px; background: none; color: var(--text); }
.capture-kinds button[aria-pressed="true"] { color: var(--seal); box-shadow: 0 1px currentColor; }
#capture-form input:not([type=file]), #capture-form textarea, #capture-form select,
#station-search-input, #station-link-place { display: block; width: 100%; max-width: 100%; color: var(--ink); border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 0; background: transparent; }
#capture-form .capture-title { padding: 20px 0 12px; font: 25px/1.5 var(--hand); border-bottom: 0; }
#capture-form textarea { resize: vertical; min-height: 180px; max-height: 45vh; border-bottom: 0; font: 21px/1.9 var(--hand); }
#capture-form input::placeholder, #capture-form textarea::placeholder { color: #95816e; }
.capture-photo-actions { display: flex; align-items: center; gap: 20px; padding: 10px 0 20px; }
.capture-photo-actions label { cursor: pointer; font-size: 13px; }
.capture-photo-actions .outline-button { padding: 7px 12px; }
.capture-photo-preview { position: relative; margin-bottom: 20px; }
.capture-photo-preview img { width: auto; max-width: 100%; max-height: 230px; object-fit: contain; }
.capture-photo-preview button { margin-top: 8px; font-size: 12px; }
.capture-meta { display: grid; grid-template-columns: 1fr 1.6fr; gap: 26px; }
.capture-meta > label, .capture-relations > label { font-size: 13px; color: var(--text); }
.capture-relations { margin: 23px 0 16px; }
.capture-relations summary { cursor: pointer; font-size: 13px; color: var(--text); }
.capture-relations > label { display: block; margin-top: 18px; }
.capture-local-note { color: var(--station-quiet); font-size: 12px; margin: 22px 0; }
.capture-dialog .form-bottom { padding-top: 20px; gap: 15px; }
#capture-status { font-size: 12px; color: var(--text); }
.station-story-dialog { width: min(790px, calc(100% - 28px)); background-image: linear-gradient(#f8f0e3ed,#f8f0e3ed), var(--paper-grain); padding: 28px 38px 38px; }
.station-story-dialog .dialog-heading > span { font-size: 13px; color: var(--muted); }
.story-meta { margin-top: 22px; font-size: 12px; color: var(--muted); }
.station-story-dialog h1 { font: 400 36px/1.5 var(--hand); margin: 21px 0 12px; overflow-wrap: anywhere; }
.story-location { font-size: 14px; color: var(--text); margin-bottom: 24px; }
.story-image { max-height: 560px; object-fit: contain; margin: 30px auto; }
.story-body { white-space: pre-wrap; font: 20px/2.1 var(--serif); overflow-wrap: anywhere; }
.story-actions { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.story-actions > span { font-size: 12px; color: var(--muted); }
.story-relations, .station-reading-links { margin-top: 35px; padding-top: 23px; border-top: 1px solid var(--line); }
.story-relations h2, .station-reading-links h2 { margin: 0 0 13px; font: 400 23px/1.6 var(--hand); }
.station-reading-links .station-section-heading h2 { margin: 0; }
.relation-link { display: block; text-align: left; width: 100%; padding: 13px 0; background: none; font: 18px/1.7 var(--hand); border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.station-link-dialog { width: min(520px, calc(100% - 28px)); }
.station-link-dialog label { font-size: 14px; }
#station-link-status { font-size: 13px; color: var(--text); }
#station-search-input { padding-inline: 5px; font-size: 19px; margin-bottom: 20px; }
.station-search-hit { display: flex; align-items: flex-start; gap: 24px; width: 100%; text-align: left; background: none; padding: 20px 0; border-bottom: 1px solid var(--line); }
.search-kind { font-size: 12px; color: var(--muted); min-width: 48px; padding-top: 3px; }
.station-search-hit strong { display: block; font: 400 23px/1.5 var(--hand); overflow-wrap: anywhere; }
.station-search-hit small { display: block; margin-top: 8px; color: var(--text); font: 14px/1.7 var(--serif); overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
  .station-hero { animation: station-arrive .6s ease both; }
  @keyframes station-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .header { gap: 22px; }
  .header nav { gap: 20px; }
  .header-actions { gap: 14px; }
  .station-hero { gap: 35px; }
  .hero-photo > img { height: 285px; }
  .station-columns { gap: 38px; grid-template-columns: 1.5fr 1fr; }
  .timeline-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; }
  .timeline-filters { gap: 12px; }
  .timeline-photo:not(.timeline-cover) img { width: 66px; height: 78px; }
  .planet-door { padding: 21px; gap: 15px; }
  .planet-door .planet-orb { width: 58px; height: 58px; }
  .planet-door-text strong { font-size: 22px; }
  .reading-heading > div:first-child { gap: 12px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header { height: auto; min-height: 118px; flex-wrap: wrap; gap: 0; align-content: center; padding-top: 19px; padding-bottom: 0; }
  .brand { order: 0; }
  .brand > span { font-size: 28px; }
  .header-actions { order: 1; }
  .header-actions .primary-button { padding: 8px 13px; min-height: 40px; }
  .header-actions .icon-button { width: 30px; height: 36px; }
  .header nav { order: 2; width: 100%; justify-content: space-between; gap: 0; padding: 9px 5px 0; }
  .header nav a { display: block; padding: 14px 10px; font-size: 14px; }
  .station-page { padding-top: 29px; padding-bottom: 45px; }
  .station-hero { grid-template-columns: 1fr; padding-top: 0; padding-bottom: 45px; gap: 31px; }
  .station-date { font-size: 12px; margin-bottom: 13px; }
  .hero-words h1 { font-size: 43px; line-height: 1.43; }
  .hero-description { margin: 14px 0 20px; font-size: 15px; }
  .hero-actions { gap: 24px; }
  .hero-actions .primary-button { padding: 9px 19px; }
  .hero-photo { margin: 4px 5px 0; transform: rotate(1deg); }
  .hero-photo > img { height: 235px; }
  .hero-photo figcaption { min-height: 45px; font-size: 13px; }
  .station-seal { font-size: 21px; line-height: 27px; }
  .station-columns { grid-template-columns: 1fr; gap: 36px; }
  .station-section-heading { margin-bottom: 20px; }
  .station-section-heading h2 { font-size: 24px; }
  .timeline-filters { gap: 14px; }
  .timeline-row { gap: 13px; grid-template-columns: 46px minmax(0, 1fr) auto; padding-block: 23px; }
  .timeline-title { font-size: 22px; }
  .timeline-photo:not(.timeline-cover) img { width: 65px; height: 78px; }
  .station-aside { display: grid; grid-template-columns: 1fr; gap: 25px; }
  .planet-door { margin-top: 0; min-height: 125px; }
  .planet-door .planet-orb { width: 70px; height: 70px; }
  .station-page-heading { align-items: flex-start; flex-wrap: wrap; gap: 20px; margin-top: 0; margin-bottom: 29px; }
  .station-page-heading h1 { font-size: 34px; }
  .station-page-heading .primary-button { font-size: 14px; padding: 10px 15px; }
  .footprint-intro { grid-template-columns: 1fr; gap: 25px; padding-bottom: 29px; margin-bottom: 30px; }
  .planet-landscape { min-height: 230px; }
  .footprint-intro h2 { font-size: 26px; }
  .station-cities { grid-template-columns: 1fr; gap: 27px; }
  .station-journal-list { columns: 1; }
  .journal-sheet-copy { padding: 22px 21px 25px; }
  .reading-heading { margin-top: 24px; margin-bottom: 25px; flex-wrap: wrap; gap: 20px; }
  .reading-heading h1 { font-size: 34px; }
  .reading-heading > div:first-child { justify-content: space-between; width: 100%; }
  .reading-tabs { gap: 24px; width: 100%; justify-content: space-between; }
  .reading-tabs .outline-button { padding: 8px 12px; }
  .footer { align-items: flex-start; gap: 20px; padding-bottom: 25px; }
  .footer-actions { justify-content: flex-end; gap: 8px 20px; }
  .local-status { flex-basis: 100%; text-align: right; font-size: 11px; }
  .capture-dialog { padding: 23px 22px; }
  .capture-meta { gap: 17px; grid-template-columns: .9fr 1.2fr; }
  .capture-dialog .form-bottom { align-items: flex-end; }
  #capture-status { max-width: 50%; }
  .station-story-dialog { padding: 23px 24px 28px; }
  .station-story-dialog h1 { font-size: 30px; }
  .story-body { font-size: 19px; }
  .station-search-hit { gap: 14px; }
}
.cloud-login {
  max-width: 430px;
}

.cloud-login form,
.cloud-login label {
  display: grid;
  gap: 12px;
}

.cloud-login label[hidden] {
  display: none;
}

.cloud-login input {
  width: 100%;
}
