/* Roadmap (owner note 53): the tram line on Lantern Moon. One screen; four lantern stops in the art; a small pixel
   departure board lights up beside the chosen stop. */
:root { --ink: #F1EAF7; --dim: #CBC2DD; --faint: #9A91B3; --gold: #FFC867; --lamp: 255 214 140; --board: #17122a; }
body.roadmap { margin: 0; color: var(--ink); background: #0d0a1c; }

.bar { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(18px, 3vw, 48px); }
.bar .wordmark { font-family: var(--pixel); font-size: 18px; letter-spacing: .08em; color: var(--ink); text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.bar-links { display: flex; align-items: center; gap: 22px; }
.bar .back { font-family: var(--tiny); font-size: 12px; letter-spacing: .06em; color: var(--ink); text-decoration: none; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.bar .get { font-family: var(--tiny); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: #1F1915;
  background: var(--gold); padding: 9px 13px; border-radius: 8px; white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.line { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; }
.view { position: absolute; inset: 0; overflow: hidden; }
.world { position: absolute; inset: 0; }
.shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(42% 46% at 40% 18%, rgba(8, 6, 20, .62), rgba(8, 6, 20, 0) 100%), linear-gradient(to bottom, rgba(8, 6, 20, .45), rgba(8, 6, 20, 0) 16%); }

/* The intro, in the dark sky between the colony and the planet */
.intro { position: absolute; z-index: 5; left: 33vw; top: max(78px, 9vh); width: min(380px, 30vw); }
.kicker { margin: 0 0 6px; font-family: var(--tiny); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
h1 { margin: 0 0 8px; font-family: var(--pixel); font-weight: 500; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.04; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.lede { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--dim); text-shadow: 0 1px 8px rgba(0, 0, 0, .8); }
.lede a { color: var(--ink); text-underline-offset: 3px; }

/* Owner note 54: the lanterns, route and headlight are pixel art drawn at the art's resolution on #fx, laid exactly over
   the world. The stop buttons are hit areas over the lanterns with a small painted name plate. --s = one art pixel. */
.fx { position: absolute; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
.markers { position: absolute; inset: 0; pointer-events: none; }
.stop { position: absolute; width: calc(var(--s, 4px) * 9); height: calc(var(--s, 4px) * 16); transform: translate(-50%, -100%); pointer-events: auto;
  border: 0; padding: 0; background: none; cursor: pointer; }
.stop .nm { position: absolute; left: 50%; top: calc(100% + var(--s, 4px) * 2); transform: translateX(-50%); white-space: nowrap;
  font-family: var(--tiny); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #e9dcc0; padding: 3px 6px 2px;
  background: #1b2440; box-shadow: 0 0 0 var(--s, 4px) #120e22, inset 0 0 0 1px rgba(233, 220, 192, .35); transition: background .3s, color .3s; }
.stop:hover .nm { color: #fff6e0; }
.stop[aria-selected="true"] .nm { background: #e9dcc0; color: #1b2440; }
.stop.here .nm::before { content: "● "; color: #ff8a7a; }

/* The tram sign: an enamel plate with a pixel border and stepped corners, hung from two chains, pointing at its stop */
.board { position: absolute; z-index: 6; width: min(360px, 34vw); padding: 15px 17px 12px; color: #e9dcc0;
  background: linear-gradient(#1f2a4a, #18203b); --b: max(3px, calc(var(--s, 4px) * .75));
  box-shadow: inset 0 0 0 var(--b) #e9dcc0, inset 0 0 0 calc(var(--b) * 2) #121a33, 0 18px 40px rgba(0, 0, 0, .55);
  clip-path: polygon(var(--b) 0, calc(100% - var(--b)) 0, calc(100% - var(--b)) var(--b), 100% var(--b), 100% calc(100% - var(--b)), calc(100% - var(--b)) calc(100% - var(--b)),
    calc(100% - var(--b)) 100%, var(--b) 100%, var(--b) calc(100% - var(--b)), 0 calc(100% - var(--b)), 0 var(--b), var(--b) var(--b));
  opacity: 0; transform: translateY(-8px); transform-origin: 50% 0; transition: opacity .35s, transform .5s cubic-bezier(.3, 1.5, .5, 1); }
.board.on { opacity: 1; transform: none; }
.board .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 8px; margin-bottom: 9px; border-bottom: 2px dotted rgba(233, 220, 192, .4); }
.board .head b { font-family: var(--pixel); font-weight: 400; font-size: 20px; color: #ffd68c; }
.board .head span { font-family: var(--tiny); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(233, 220, 192, .65); }
.board ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 10px 1fr; gap: 0 8px; }
.board li::before { content: ""; width: 5px; height: 5px; margin-top: 6px; background: #ffd68c; }
.board li b { display: block; font-family: var(--tiny); font-weight: 400; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #fff6e0; }
.board li .d { display: block; font-size: 12.5px; line-height: 1.36; color: rgba(233, 220, 192, .78); }
/* split-flap: each letter flips down into place, row by row */
.board li b i { display: inline-block; font-style: normal; }
.board.on li b i { animation: flap .32s calc(var(--row) * 70ms + var(--d)) both steps(4); }
.board.on li .d { animation: rise .45s calc(var(--row) * 70ms + 200ms) both; }
@keyframes flap { from { transform: perspective(60px) rotateX(-90deg); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(3px); } }
.board .ideas { margin: 10px 0 0; font-size: 12.5px; color: rgba(233, 220, 192, .78); }
.board .ideas a { color: #ffd68c; text-underline-offset: 3px; }
.board .nav { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 2px dotted rgba(233, 220, 192, .4); }
.board .nav button { border: 0; background: none; color: rgba(233, 220, 192, .65); cursor: pointer; font-family: var(--tiny); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; padding: 2px 0; }
.board .nav button:hover { color: #fff6e0; }

.stops { display: none; }
.fine { position: absolute; z-index: 5; left: clamp(18px, 3vw, 48px); bottom: 10px; margin: 0; font-size: 11px; color: var(--faint); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.draft { opacity: .8; }

@media (max-width: 900px) {
  .bar .back .lbl { display: none; }
  .line { height: auto; min-height: 0; overflow: visible; }
  .view { position: relative; inset: auto; height: 62vw; }
  .shade { background: linear-gradient(to bottom, rgba(8, 6, 20, .5), rgba(8, 6, 20, 0) 30%, rgba(8, 6, 20, 0) 75%, #0d0a1c 100%); }
  .stop, .fx { display: none; }
  .intro { position: static; width: auto; padding: 16px 18px 4px; }
  .stops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 18px 0; }
  .stops button { border: 0; padding: 9px 4px; background: rgba(255, 255, 255, .06); color: var(--dim); cursor: pointer; font-family: var(--tiny); font-size: 11px;
    letter-spacing: .06em; text-transform: uppercase; box-shadow: inset 0 0 0 1px rgba(255, 214, 140, .2); }
  .stops button[aria-selected="true"] { background: var(--gold); color: #1F1915; }
  .board { position: static; width: auto; margin: 12px 18px 0; }
  .fine { position: static; padding: 14px 18px 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Owner note 65: the newsletter ticket at "You are here" */
.board .news { margin: 12px 0 0; padding: 10px 11px 9px; background: #e9dcc0; color: #1b2440; box-shadow: inset 0 0 0 2px #1b2440, 0 0 0 2px #e9dcc0;
  clip-path: polygon(0 0, 100% 0, 100% 40%, calc(100% - 6px) 50%, 100% 60%, 100% 100%, 0 100%, 0 60%, 6px 50%, 0 40%); }
.board .news-h { margin: 0 0 7px; font-family: var(--tiny); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
.board .news-h .ticket { color: #b23a2e; }
.board .news-row { display: flex; gap: 6px; }
.board .news input { flex: 1; min-width: 0; padding: 7px 8px; border: 0; background: #fff8e8; color: #1b2440; font: 14px var(--body); box-shadow: inset 0 0 0 1px rgba(27, 36, 64, .45); }
.board .news input:focus { outline: 2px solid #b23a2e; outline-offset: 1px; }
.board .news button { border: 0; cursor: pointer; padding: 7px 11px; background: #1b2440; color: #ffd68c; font-family: var(--tiny); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.board .news button:hover { background: #2a3863; }
.board .news-small { margin: 6px 0 0; font-size: 11.5px; line-height: 1.35; color: #3a4466; }
.board .news-small a { color: #b23a2e; }
.board .news-msg { margin: 4px 0 0; font-size: 12px; font-weight: 600; color: #1b2440; }
.board .news-msg:empty { display: none; }

/* Without JavaScript (and for search engines): the line's stops as a plain, readable page (#line-text). */
html:not(.js) .line { height: auto; min-height: 0; overflow: visible; }
html:not(.js) .intro { position: relative; left: auto; top: auto; width: auto; max-width: 680px; padding: 96px clamp(18px, 4vw, 48px) 0; }
.page-text { max-width: 680px; padding: 0 clamp(18px, 4vw, 48px) 48px; color: #e9dcc0; }
.page-text h2 { margin: 26px 0 8px; font-family: var(--pixel); font-weight: 500; font-size: 22px; color: #ffc867; }
.page-text ul { margin: 0; padding-left: 18px; }
.page-text li { margin: 0 0 6px; font-size: 15px; line-height: 1.45; }
