/* SeeHere — one stylesheet, no build step.
   Every colour lives in :root; the canvas reads its colours from here too. */

@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/AtkinsonHyperlegibleNext-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("../fonts/AtkinsonHyperlegibleMono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; src: url("../fonts/AtkinsonHyperlegibleMono-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/* Built from the Ismano 2026 palette, deepened for a screen that is on all
   day in a lived-in room: a near-black navy ground, the land one step up,
   aircraft in Mist rising to Cream with altitude. Orange is kept for the one
   thing you chose to look at -- the selected flight and its route. */
:root {
  --ground: #0b1726;          /* navy, deepened */
  --land: #10223a;
  --state-line: #1c3554;
  --coast-line: #2a4a6e;
  --plane-low: #6f7f93;       /* Mist, dimmed: low and slow */
  --plane-high: #f4f0e7;      /* Cream: cruising */
  --plane-ground: #4b5d74;
  --live: #f7941d;            /* Orange: the selected flight only */
  --text: #f4f0e7;            /* Cream */
  --muted: #9aa4b1;           /* Mist */
  --faint: #5e6a7a;           /* Slate */
  --panel: rgba(11, 23, 38, .86);
  --panel-line: rgba(244, 240, 231, .12);
  --font: "Atkinson Hyperlegible Next", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ground); color: var(--text);
  font-family: var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }

/* Chrome fades away when nobody is touching it: this is a picture first. */
.chrome { position: fixed; z-index: 2; transition: opacity 1.2s ease; }
body.idle .chrome { opacity: 0; pointer-events: none; }
body.idle .status { opacity: .55; }

.title { top: max(20px, env(safe-area-inset-top)); left: max(24px, env(safe-area-inset-left));
  display: flex; flex-direction: column; gap: 2px; pointer-events: none; }
.title-name { font-size: 16px; font-weight: 600; letter-spacing: .02em; }   /* as written: SeeHere, not SEEHERE */
.title-view { font-size: 13px; color: var(--muted); }

.views { top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); text-align: right; }
.views-toggle { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--panel-line);
  background: var(--panel); color: var(--muted); display: inline-grid; place-items: center; cursor: pointer; }
.views-toggle:hover, .views-toggle[aria-expanded="true"] { color: var(--text); }
.views-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.views-list { list-style: none; margin: 8px 0 0; padding: 6px; min-width: 180px; text-align: left;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 12px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.views-item { display: block; padding: 10px 12px; border-radius: 8px; font-size: 15px; color: var(--text); text-decoration: none; }
a.views-item:hover { background: var(--panel-line); }
.views-item.is-current { color: var(--text); font-weight: 600; }
.views-item.is-current::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 3px;
  background: var(--text); margin: 0 8px 2px 0; }
.views-item.is-soon { color: var(--faint); }
.views-item em { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; }

.status { right: max(24px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; pointer-events: none; }

/* The card for a tapped flight. */
.card { position: fixed; z-index: 3; left: max(20px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom));
  width: min(340px, calc(100vw - 40px)); padding: 18px 20px 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--panel-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.card-close { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border: 0; border-radius: 18px;
  background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.card-close:hover { color: var(--text); }
.card-flight { display: flex; flex-direction: column; gap: 2px; padding-right: 32px; }
.card-flight [data-f="flight"] { font-family: var(--mono); font-weight: 600; font-size: 22px; letter-spacing: .02em; color: var(--live); }
.card-airline { font-size: 14px; color: var(--muted); }
.card-route { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; margin-top: 16px; }
.card-route .end { display: flex; flex-direction: column; min-width: 0; }
.card-route .end.to { text-align: right; }
.card-route b { font-family: var(--mono); font-weight: 600; font-size: 26px; line-height: 1; }
.card-route span { font-size: 12px; color: var(--muted); margin-top: 4px; max-width: 120px; }
.leg { padding-top: 12px; }
.leg-bar { display: block; height: 2px; background: var(--panel-line); border-radius: 1px; position: relative; }
.leg-done { display: block; position: absolute; inset: 0 auto 0 0; background: var(--live); border-radius: 1px; width: 0; transition: width .6s ease; }
.leg-done::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 4px; background: var(--live); }
.card-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.card-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.card-stats div { min-width: 0; }
.card-stats dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.card-stats dd { margin: 2px 0 0; font-family: var(--mono); font-size: 15px; white-space: nowrap; }
.card-craft { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.card-photo { margin: 14px 0 0; }
.card-photo img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; background: var(--land); }
.card-photo figcaption { margin-top: 6px; font-size: 11px; color: var(--faint); }

@media (max-width: 600px) {
  .card { left: 12px; right: 12px; width: auto; bottom: 12px; }
  .card-photo img { aspect-ratio: 5 / 2; }
  .title { left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } .chrome { transition: none; } }
