/* 08 ยท Sea chart + log line: an Admiralty chart above, a ship's log in story time below. */ @import "@fontsource/cormorant-garamond/latin-400.css"; @import "@fontsource/cormorant-garamond/latin-500.css"; @import "@fontsource/cormorant-garamond/latin-600.css"; @import "@fontsource/cormorant-garamond/latin-400-italic.css"; @import "@fontsource/cormorant-garamond/latin-500-italic.css"; @import "@fontsource/inter/400.css"; @import "@fontsource/inter/500.css"; :root { color-scheme: light; --water: #dfe9e6; --shoal: #c9dcd8; --shoal-deep: #b5cfcc; --land: #e8d8a8; --ink: #1e2c3b; --ink-soft: #4d5b69; --ink-faint: #8794a0; --course: #a3195b; --paper: #fbfbf7; --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif; --sans: "Inter", system-ui, sans-serif; --log-h: 268px; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--serif); overflow: hidden; } button { font: inherit; color: inherit; } :focus-visible { outline: 2px solid var(--course); outline-offset: 2px; } #app { flex: 1; min-height: 0; display: grid; grid-template-rows: 56px minmax(0, 1fr) var(--log-h); } /* ------------------------------------------------------------------ title bar */ .bar { display: flex; align-items: baseline; justify-content: space-between; gap: 2rem; padding: 0 28px; border-bottom: 1.5px solid var(--ink); background: var(--paper); } .bar__title { margin: 0; align-self: center; font-weight: 500; font-size: 28px; letter-spacing: 0.01em; } .bar__hint { margin: 0; align-self: center; font-style: italic; font-size: 17px; color: var(--ink-soft); } /* ------------------------------------------------------------------ chart */ .chart { position: relative; overflow: hidden; background: var(--water); } .chart__svg { display: block; width: 100%; height: 100%; } .sea { fill: var(--water); } .grat line { stroke: var(--ink); stroke-opacity: 0.08; stroke-width: 1; vector-effect: non-scaling-stroke; } .sound { font: italic 400 11px var(--serif); fill: var(--ink-faint); text-anchor: middle; } .hatch { stroke: #b49a5c; stroke-width: 1.2; } .shoal-1, .shoal-2, .shoal-3 { fill: none; stroke-linejoin: round; } .shoal-1 { stroke: var(--shoal); } .shoal-2 { stroke: var(--shoal-deep); } .shoal-3 { stroke: #9fbfbd; } .land { fill: var(--land); stroke: var(--ink); stroke-width: 1.3; } .land-hatch { fill: url(#hatch); opacity: 0.35; pointer-events: none; } .names text { pointer-events: none; } .place { font: 500 17px var(--serif); fill: var(--ink); letter-spacing: 0.06em; } .place--big { font-size: 30px; letter-spacing: 0.14em; } .place--small { font-size: 13px; } .place-sub { font: italic 400 13px var(--serif); fill: var(--ink-soft); } .sea-area { font: italic 400 30px var(--serif); fill: #3e6378; letter-spacing: 0.12em; } .rose__ring { fill: none; stroke: var(--course); stroke-width: 1; } .rose__ring--in { stroke-opacity: 0.5; } .rose__tick { stroke: var(--course); stroke-width: 0.8; } .rose__star { fill: var(--paper); stroke: var(--course); stroke-width: 1; } .rose__north { fill: var(--course); } .rose__n { font: 600 16px var(--serif); fill: var(--course); } .leg { fill: none; stroke-linecap: round; } .leg--plan { stroke: var(--course); stroke-width: 2; stroke-dasharray: 9 7; opacity: 0.55; } .leg--sailed { stroke: var(--course); stroke-width: 3; } .crossing { font: italic 500 17px var(--serif); fill: var(--course); } .mleg { fill: none; stroke: var(--c); stroke-width: 9; stroke-linecap: round; opacity: 0.85; } .mleg--skip { stroke-width: 4; stroke-dasharray: 1 9; opacity: 1; } .has-motif .leg--sailed, .has-motif .leg--plan { opacity: 0.18; } .has-motif .crossing { opacity: 0.45; } .port { cursor: pointer; outline: none; } .port__ring { fill: none; stroke: transparent; stroke-width: 3; } .port__dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2; } .port__num { font: 500 12px var(--sans); fill: var(--ink); text-anchor: middle; pointer-events: none; } .port__label { font: 600 19px var(--serif); fill: var(--ink); paint-order: stroke; stroke: var(--water); stroke-width: 5px; stroke-linejoin: round; } .port:hover .port__dot, .port:focus-visible .port__dot { fill: #fff3d6; } .port:focus-visible .port__ring { stroke: var(--course); stroke-dasharray: 3 3; } .port.is-selected .port__dot { fill: var(--course); stroke: var(--course); } .port.is-selected .port__num { fill: var(--paper); } .port.is-motif .port__ring { stroke: var(--c); } .port.is-dim { opacity: 0.38; } .ship__hull { fill: var(--ink); } .ship__sail { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; } .probe { fill: none; stroke: var(--course); stroke-width: 2.5; stroke-dasharray: 4 4; } /* ------------------------------------------------------------------ detail panel */ .panel { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 380px; overflow: auto; padding: 22px 24px 24px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 rgb(30 44 59 / 0.12); font-family: var(--serif); } .panel[hidden] { display: none; } .panel__close { float: right; padding: 4px 10px; border: 1px solid var(--ink-faint); background: none; font: 400 12px var(--sans); cursor: pointer; } .panel__kicker { margin: 0; font-style: italic; font-size: 16px; color: var(--ink-soft); } .panel__title { margin: 4px 0 6px; font-weight: 500; font-size: 36px; line-height: 1.05; } .panel__when { margin: 0 0 4px; font-size: 18px; } .panel__ody { margin: 0 0 16px; font-size: 16px; } .panel__ody a { color: var(--course); } .panel__none { color: var(--ink-faint); font-style: italic; } .parts { list-style: none; margin: 0 0 16px; padding: 0; border-top: 1px solid rgb(30 44 59 / 0.2); } .parts li { display: grid; grid-template-columns: 70px 1fr; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid rgb(30 44 59 / 0.2); } .parts__name { font: 500 12px var(--sans); color: var(--ink-soft); padding-top: 3px; } .parts__who { font-size: 18px; } .chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px; } .chip { padding: 1px 8px 2px; border: 1px solid var(--c); border-radius: 10px; background: none; color: var(--c); font: 400 12px var(--sans); cursor: pointer; } .chip.is-on { background: var(--c); color: var(--paper); } .panel .audio-slot { margin-bottom: 12px; font: 400 13px var(--sans); color: var(--ink-soft); border-radius: 0; } .panel .video-card { border-radius: 0; font: 400 13px var(--sans); color: var(--ink); } /* ------------------------------------------------------------------ log line */ .log { overflow-x: auto; overflow-y: hidden; background: var(--paper); border-top: 1.5px solid var(--ink); scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent; } .log__track { display: flex; width: max-content; height: 100%; } .log__legend { position: sticky; left: 0; z-index: 3; flex: 0 0 200px; padding: 0 14px 0 24px; padding-top: 109px; background: linear-gradient(90deg, var(--paper) 88%, rgb(251 251 247 / 0)); } .legend__head { margin: 0 0 7px; font: italic 400 14px var(--serif); color: var(--ink-soft); } .legend__btn { display: flex; align-items: center; gap: 8px; width: 100%; height: 16px; padding: 0; border: 0; background: none; font: 400 11.5px var(--sans); color: var(--ink); text-align: left; cursor: pointer; white-space: nowrap; } .legend__sw { width: 22px; height: 3px; background: var(--c); box-shadow: 0 0 0 1px var(--ink); flex: none; } .legend__btn[aria-pressed="true"] { font-weight: 500; color: var(--c); } .legend__btn[aria-pressed="true"] .legend__sw { height: 6px; } .legend__btn.is-faded { opacity: 0.4; } .legend__btn:hover { color: var(--c); } .log__body { position: relative; flex: none; height: 100%; cursor: ew-resize; } .log__svg { position: absolute; top: 0; left: 0; overflow: visible; } .bracket { fill: none; stroke: var(--ink); stroke-width: 1; } .bracket__name { font: italic 500 15px var(--serif); fill: var(--ink); } .axis { fill: none; stroke: var(--ink); stroke-width: 1.5; } .axis--sea { stroke: var(--course); stroke-width: 1.5; } .axis--fade { stroke-dasharray: 2 5; } .gap-label { font: italic 500 17px var(--serif); fill: var(--course); text-anchor: middle; } .year-tick { stroke: var(--course); stroke-width: 1; stroke-dasharray: 2 3; stroke-opacity: 0.6; } .year-label { font: 500 11px var(--sans); fill: var(--course); } .stop { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; } .lane__case { stroke: var(--ink); stroke-width: 4; stroke-opacity: 0.7; } .lane__line { stroke: var(--c); stroke-width: 2.4; } .box { fill: var(--paper); stroke: var(--ink); stroke-width: 1; } .box--on { fill: var(--c); } .lane { transition: opacity 0.2s; } .lane.is-faded { opacity: 0.14; } .entry { position: absolute; bottom: calc(100% - 84px); transform: translateX(-50%); width: 140px; padding: 0; border: 0; background: none; text-align: center; cursor: pointer; line-height: 1; } .entry__num { display: block; font: 400 10.5px var(--sans); color: var(--ink-faint); margin-bottom: 3px; } .entry__title { font-weight: 600; font-size: 18px; line-height: 1.02; } .entry:hover .entry__title { color: var(--course); } .entry.is-selected .entry__title { color: var(--course); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; } .entry.is-dim { opacity: 0.35; } .entry__when { position: absolute; top: 101px; transform: translateX(-50%); width: 140px; font-style: italic; font-size: 13px; line-height: 1.05; color: var(--ink-soft); text-align: center; pointer-events: none; } .cursor { position: absolute; top: 26px; bottom: 6px; width: 0; border-left: 1.5px solid var(--course); pointer-events: none; z-index: 2; } .cursor[hidden] { display: none; } .cursor__read { position: absolute; top: -2px; left: 6px; padding: 1px 6px; background: var(--course); color: var(--paper); font: 500 11px var(--sans); white-space: nowrap; } /* ------------------------------------------------------------------ credits */ .fan-credits { flex: none; padding: 10px 28px; border-top: 1px solid rgb(30 44 59 / 0.2); background: var(--paper); font-style: italic; font-size: 13.5px; opacity: 1; color: var(--ink-soft); text-align: left; } /* ================================================================== in-3D overlay state */ body.is-overlay { background: radial-gradient(ellipse 70% 50% at 50% 115%, rgb(120 160 170 / 0.35), transparent 70%), linear-gradient(180deg, #0f2231 0%, #183748 55%, #0d1c28 100%); align-items: center; justify-content: center; } body.is-overlay::before { content: ""; position: fixed; inset: 0; background: rgb(5 12 20 / 0.45); pointer-events: none; } .is-overlay #app { position: relative; flex: none; width: 1180px; height: 740px; margin-bottom: 40px; grid-template-rows: 46px minmax(0, 1fr) var(--log-h); border: 1.5px solid #e8d8a8; box-shadow: 0 30px 80px rgb(0 0 0 / 0.55); } .is-overlay .bar { background: var(--ink); color: var(--paper); border-bottom: 0; } .is-overlay .bar__here { margin: 0; align-self: center; font-size: 19px; display: flex; align-items: center; gap: 6px; } .is-overlay .bar__here strong { font-weight: 600; color: #f3c9dd; } .bar__pin { width: 9px; height: 9px; border-radius: 50%; background: #e5579a; box-shadow: 0 0 0 4px rgb(229 87 154 / 0.3); margin-right: 4px; } .is-overlay .bar__hint { color: #b9c4cc; font-size: 15px; } .is-overlay .fan-credits { position: fixed; left: 0; right: 0; bottom: 0; background: rgb(5 12 20 / 0.6); border-top: 1px solid rgb(232 216 168 / 0.25); color: #e6e1d2; text-align: center; z-index: 10; } .pop { position: absolute; z-index: 4; transform: translate(30px, -50%); min-width: 200px; padding: 10px 14px 12px; background: var(--paper); border: 1.5px solid var(--ink); box-shadow: 4px 4px 0 rgb(30 44 59 / 0.18); text-align: center; } .pop[hidden] { display: none; } .pop::after { content: ""; position: absolute; left: -8px; top: 50%; width: 12px; height: 12px; background: var(--paper); border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: translateY(-50%) rotate(45deg); } .pop p { margin: 0; } .pop__num { font: 400 11px var(--sans); color: var(--ink-faint); } .pop__title { font-weight: 600; font-size: 22px; } .pop__when { font-style: italic; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px !important; } .pop__sail { padding: 5px 16px; border: 0; background: var(--course); color: var(--paper); font: 500 13px var(--sans); cursor: pointer; } .pop__sail:disabled { background: var(--ink-faint); cursor: default; } @media (prefers-reduced-motion: reduce) { .lane { transition: none; } }