/* INCHIPALA: the page's own few things. The world is drawn in letters; what is here is set in type, and kept small:
   the mark, the way to the index, whatever has been opened, and the index itself (everything, on one page, to read). */
@font-face { font-family: Monari; src: url('/fonts/Monari.otf') format('opentype'); font-display: swap; }

:root {
  --i-ink: #0c0b0a;          /* the ground of the old site */
  --i-paper: #f3f1ec;        /* its type */
  --i-ash: #a8a39a;          /* its second voice */
  --i-line: rgba(243, 241, 236, .16);
  --i-ember: #ff8f45;        /* the bird's fire: only ever "fly there" */
  --i-type: "Helvetica Neue", Helvetica, Arial, sans-serif;   /* everything that is read */
  --i-mark: "Helvetica Neue", Helvetica, Arial, sans-serif;   /* headings: the same face, set heavier and closer */
  --i-logo: Monari, "Helvetica Neue", Helvetica, Arial, sans-serif;   /* the mark only: its letters are its own */
  --i-ease: cubic-bezier(.22, .9, .24, 1);
}

/* ── Icarus's own chrome, not wanted here ── */
body.inch #menuBtn, body.inch #menu, body.inch #status, body.inch #health, body.inch #newcomer, body.inch #heroVid,
body.inch #title > *, body.inch #friendAsk, body.inch #craftBtn, body.inch #waveBtn,
body.inch #areaBar, body.inch #bigTitle, body.inch #obj, body.inch #quest { display: none !important; }   /* (and the story's errands: there is no ferryman to find) */

#inch { position: fixed; inset: 0; z-index: 400; pointer-events: none; font-family: var(--i-type); color: var(--i-paper); -webkit-font-smoothing: antialiased; }
#inch button, #inch a { font: inherit; color: inherit; }
#inch button { appearance: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
#inch kbd { font: inherit; font-size: .78em; letter-spacing: .04em; opacity: .55; margin-left: .5em; }
#inch :focus-visible { outline: 1.5px solid var(--i-paper); outline-offset: 4px; border-radius: 2px; }

/* ── the mark: INCHI and PALA set one over the other, frosted, clear where the light falls (as on inchipala.com) ── */
.inch-logo { --ix: 50%; --iy: 50%; position: relative; display: block; width: 2.2em; height: 1em; font: 400 1em/1 var(--i-logo); letter-spacing: 0; color: var(--i-paper); user-select: none; -webkit-user-select: none; flex: none; }
.inch-logo > span { position: absolute; inset: 0; display: block; }
.inch-logo i { position: absolute; left: 50%; top: 0; height: 1em; transform: translateX(-50%); font-style: normal; white-space: nowrap; }
.inch-logo i + i { opacity: .88; }
.inch-logo .frost { filter: blur(.045em); opacity: .88; text-shadow: 0 0 .14em rgba(243, 241, 236, .35); }
.inch-logo .clear { text-shadow: 0 0 .01em var(--i-paper), 0 0 .15em rgba(243, 241, 236, .45);
  -webkit-mask-image: radial-gradient(circle 1.2em at var(--ix) var(--iy), #000 0%, transparent 70%); mask-image: radial-gradient(circle 1.2em at var(--ix) var(--iy), #000 0%, transparent 70%); }
#inchMark .inch-logo, .ix-top .inch-logo { font-size: 30px; }
/* in the corner it is small, so it is set solid: INCHI in front in the paper's own colour, PALA behind it in a solid grey.
   No frost, no glow, nothing of either word or of the sky showing through the other. */
#inchMark .inch-logo .frost { display: none; }
#inchMark .inch-logo .clear, .ix-top .inch-logo .clear { -webkit-mask-image: none; mask-image: none; text-shadow: none; }
#inchMark .inch-logo i, .ix-top .inch-logo i { opacity: 1; color: var(--i-paper); z-index: 2; }
#inchMark .inch-logo i + i, .ix-top .inch-logo i + i { opacity: 1; color: #8d887f; z-index: 1; }
#inchMark .inch-logo { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }

/* ── the bar: the mark, the compass, the ways in ── */
#inchBar { position: absolute; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; column-gap: 18px;
  padding: max(16px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); transition: opacity .5s var(--i-ease); }
#inchBar > * { pointer-events: auto; }
#inchMark { justify-self: start; padding: 2px 0; transition: opacity .3s var(--i-ease); }
#inchTools { justify-self: end; display: flex; gap: 22px; text-shadow: 0 0 14px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .5); }
#inchTools button { font-size: 14px; font-weight: 500; letter-spacing: .01em; padding: 7px 0; transition: opacity .3s var(--i-ease); }
#inchTools button:hover, #inchMark:hover { opacity: .72; }
#inchFormBtn { display: none; }
body.inch-flying #inchFormBtn { display: block; }
#inchTools button.lit, #inchCompass.lit { animation: inch-lit 1.6s var(--i-ease) infinite; }
@keyframes inch-lit { 0%, 100% { opacity: 1; filter: none; } 50% { opacity: .55; filter: drop-shadow(0 0 10px var(--i-paper)); } }
body.inch-watching #inchBar, body.inch-watching #inchWho, body.inch-watching #inchPlaying, body.inch-watching #inchLink { opacity: 0; pointer-events: none; }
body.inch-watching #inchBar > * { pointer-events: none; }

/* the compass: a strip of the horizon, a mark for each place, the one ahead named */
#inchCompass { width: min(46vw, 560px); height: 46px; position: relative; opacity: 0; transition: opacity .9s var(--i-ease); filter: drop-shadow(0 0 8px rgba(0, 0, 0, .6)) drop-shadow(0 1px 1px rgba(0, 0, 0, .55)); }
#inchCompass[hidden] { display: block; visibility: hidden; }
#inchCompass.on { opacity: 1; }
#inchCompass canvas { display: block; width: 100%; height: 30px; }
#inchCompass .cp-name { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font-size: 12px; font-weight: 500; letter-spacing: .01em; white-space: pre; pointer-events: none; will-change: transform; }
body.inch-title #inchCompass, body.inch-index #inchCompass { opacity: 0; pointer-events: none; }

/* the shapes */
#inchForms { position: absolute; right: max(22px, env(safe-area-inset-right)); top: calc(max(16px, env(safe-area-inset-top)) + 40px); width: 15em; pointer-events: auto; background: rgba(12, 11, 10, .84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 10px 16px 12px; border-radius: 3px; opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--i-ease), transform .3s var(--i-ease); }
#inchForms[hidden] { display: none; }
#inchForms.on { opacity: 1; transform: none; }
#inchForms button { display: block; width: 100%; text-align: left; font-size: 14.5px; padding: 5px 0; opacity: .82; }
#inchForms button:hover, #inchForms button:focus-visible { opacity: 1; }
#inchForms p { margin: 8px 0 0; padding-top: 9px; border-top: 1px solid var(--i-line); font-size: 12px; line-height: 1.4; color: var(--i-ash); }

/* ── arriving: the mark, and a name to fly under ── */
#inchGate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: clamp(22px, 5vh, 46px); pointer-events: none; padding: 0 22px 6vh;
  background: radial-gradient(ellipse 62% 54% at 50% 46%, rgba(12, 11, 10, .62), rgba(12, 11, 10, .28) 58%, rgba(12, 11, 10, 0) 100%); transition: opacity 1.1s var(--i-ease); }
#inchGate[hidden] { display: none; }
#inchGate.gone { opacity: 0; }
#inchGate.gone * { pointer-events: none !important; }
#inchGate > .inch-logo { font-size: clamp(74px, 15vw, 196px); animation: inch-arrive 1.6s var(--i-ease) both; }
@keyframes inch-arrive { from { opacity: 0; filter: blur(.1em); } }
#inchEnter { display: grid; justify-items: center; gap: 14px; pointer-events: auto; animation: inch-arrive 1.4s .5s var(--i-ease) both; }
#inchEnter input { font: 500 18px/1.2 var(--i-type); color: var(--i-paper); background: none; border: 0; border-bottom: 1px solid rgba(243, 241, 236, .45); border-radius: 0; padding: 8px 2px; width: min(15em, 70vw); text-align: center; outline: none;
  text-transform: uppercase; letter-spacing: .14em; caret-color: var(--i-paper); transition: border-color .3s var(--i-ease); }
#inchEnter input::placeholder { color: var(--i-paper); opacity: .5; text-transform: none; letter-spacing: .01em; font-weight: 400; }
#inchEnter input:focus { border-bottom-color: var(--i-paper); }
#inchEnter input[hidden] { display: none; }
#inchKey { text-transform: none !important; letter-spacing: .3em !important; }
#inchGo { font-size: 15px; font-weight: 500; padding: 10px 6px; transition: opacity .3s var(--i-ease); }
#inchGo:hover { opacity: .72; }
#inchGateSay { margin: 0; min-height: 1.4em; font-size: 13.5px; color: var(--i-paper); opacity: .86; text-align: center; max-width: 26em; }
body:not(.inch-title) #inchGate { opacity: 0; pointer-events: none; }
body:not(.inch-title) #inchGate * { pointer-events: none !important; }
body.inch-index #inchGate { opacity: 0; }

/* who this is: on arrival only */
#inchWho { position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: max(26px, env(safe-area-inset-bottom)); max-width: min(30em, 70vw); opacity: 0; transform: translateY(6px);
  transition: opacity .9s var(--i-ease), transform .9s var(--i-ease); text-shadow: 0 0 16px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .55); }
#inchWho b { display: block; font-weight: 500; font-size: 15px; }
#inchWho span { display: block; font-size: 15px; line-height: 1.45; color: var(--i-paper); opacity: .86; margin-top: 2px; }
body.inch-title #inchWho { opacity: 1; transform: none; }

/* ── the first flight: one line that says what is being shown ── */
#inchSay { position: absolute; left: 50%; bottom: clamp(74px, 15vh, 150px); margin: 0; width: min(34em, 86vw); transform: translate(-50%, 8px); text-align: center; text-wrap: balance;
  font-size: clamp(17px, 1.55vw, 22px); font-weight: 500; line-height: 1.35; opacity: 0; transition: opacity .6s var(--i-ease), transform .6s var(--i-ease);
  background: rgba(12, 11, 10, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 20px 13px; border-radius: 3px; box-sizing: border-box; pointer-events: none; }
#inchSay.on { opacity: 1; transform: translate(-50%, 0); }
#inchSkip { position: absolute; left: 50%; transform: translateX(-50%); bottom: max(26px, env(safe-area-inset-bottom)); pointer-events: auto; font-size: 13px; font-weight: 500; padding: 8px 0; opacity: .8;
  text-shadow: 0 0 14px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .5); }
#inchSkip[hidden] { display: none; }
#inchSkip:hover { opacity: 1; }

/* ── where the thing in front of the bird lives on the web ── */
#inchLink { position: absolute; right: max(22px, env(safe-area-inset-right)); bottom: max(24px, env(safe-area-inset-bottom)); pointer-events: auto; font-size: 13px; font-weight: 500; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-shadow: 0 0 14px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .5); transition: opacity .4s var(--i-ease); }
#inchLink[hidden] { display: none; }
#inchLink:hover { opacity: .72; }

/* ── what is playing ── */
#inchPlaying { position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: max(24px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; pointer-events: auto;
  font-size: 13px; text-shadow: 0 0 14px rgba(0, 0, 0, .6), 0 1px 2px rgba(0, 0, 0, .5); transition: opacity .5s var(--i-ease); }
#inchPlaying[hidden] { display: none; }
#inchPlaying i { width: 12px; height: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; align-items: end; }
#inchPlaying i::before, #inchPlaying i::after, #inchPlaying i { --h: 100%; }
#inchPlaying i::before, #inchPlaying i::after { content: ''; background: var(--i-paper); height: 55%; animation: inch-bar 0.9s ease-in-out infinite alternate; }
#inchPlaying i::after { height: 100%; animation-delay: -.45s; }
#inchPlaying.paused i::before, #inchPlaying.paused i::after { animation-play-state: paused; height: 20%; }
@keyframes inch-bar { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
#inchPlaying i::before, #inchPlaying i::after { transform-origin: bottom; }

/* ── the two scores, beside the turntable ── */
#inchTracks { position: absolute; right: max(22px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); width: min(300px, 40vw); pointer-events: auto;
  background: rgba(12, 11, 10, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 18px 18px 14px; border-radius: 3px; }
#inchTracks[hidden] { display: none; }
#inchTracks h3 { font-family: var(--i-mark); font-weight: 600; font-size: 18px; letter-spacing: -.01em; margin: 0 0 2px; }
#inchTracks p { margin: 0 0 8px; font-size: 12px; color: var(--i-ash); line-height: 1.4; }
#inchTracks p.out { margin: -6px 0 16px; }
#inchTracks p.out a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#inchTracks p.out a:hover { color: var(--i-paper); }
#inchTracks ol { list-style: none; margin: 0 0 16px; padding: 0; }
#inchTracks ol:last-child { margin-bottom: 0; }
#inchTracks li button { display: flex; width: 100%; justify-content: space-between; gap: 12px; text-align: left; font-size: 13.5px; line-height: 1.25; padding: 5px 0; color: var(--i-paper); opacity: .78; }
#inchTracks li button:hover { opacity: 1; }
#inchTracks li button[aria-current="true"] { opacity: 1; font-weight: 600; }
#inchTracks li button span:last-child { color: var(--i-ash); font-variant-numeric: tabular-nums; font-weight: 400; }

/* ── opened: the thing itself, laid over its own place in the picture ── */
#inchLens { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--i-ease); }
#inchLens[hidden] { display: none; }
#inchLens.on { opacity: 1; }
.lens-frame { position: absolute; overflow: hidden; background: #000; pointer-events: auto; will-change: left, top, width, height; }
.lens-frame > video, .lens-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.lens-frame > iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.lens-frame > article { position: absolute; inset: 0; background: #14120f; color: var(--i-paper); padding: clamp(18px, 5%, 64px); overflow: auto; }
.lens-frame > article time { display: block; font-size: clamp(13px, 1.5vw, 18px); opacity: .6; }
.lens-frame > article h2 { font-family: var(--i-mark); font-weight: 600; font-size: clamp(26px, 4.4vw, 60px); line-height: 1.05; margin: .15em 0 .45em; letter-spacing: -.025em; }
.lens-frame > article p { font-size: clamp(15px, 1.75vw, 24px); line-height: 1.45; margin: 0; max-width: 34em; }
.lens-bar { position: absolute; display: flex; gap: 18px; align-items: center; justify-content: flex-end; pointer-events: auto; font-size: 13px; white-space: nowrap;
  background: rgba(12, 11, 10, .84); padding: 9px 14px; box-sizing: border-box; }
.lens-bar .lens-name { margin-right: auto; font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.lens-bar a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lens-bar button:hover, .lens-bar a:hover { opacity: .7; }
.lens-bar [hidden] { display: none; }

/* ── on a phone, what the keys would do ── */
#inchTouch { position: absolute; left: 0; right: 0; bottom: max(86px, calc(env(safe-area-inset-bottom) + 70px)); display: flex; justify-content: center; gap: 8px; pointer-events: none; }
#inchTouch[hidden] { display: none; }
#inchTouch button { pointer-events: auto; background: rgba(12, 11, 10, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 12px 16px; font-size: 14px; font-weight: 500; border-radius: 3px; min-height: 44px; }
#inchTouch button[hidden] { display: none; }

/* ───────────────────────── the index: everything, on one page ───────────────────────── */
#inchIndex { position: absolute; inset: 0; pointer-events: auto; background: rgba(12, 11, 10, .9); backdrop-filter: blur(22px) saturate(.9); -webkit-backdrop-filter: blur(22px) saturate(.9);
  display: grid; grid-template-rows: auto minmax(0, 1fr); opacity: 0; transition: opacity .45s var(--i-ease); overflow: hidden; }
#inchIndex[hidden] { display: none; }
#inchIndex:focus { outline: none; }
#inchIndex.on { opacity: 1; }
.ix-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); }
.ix-close { font-size: 14px; font-weight: 500; padding: 7px 0 7px 12px; }
.ix-close:hover { opacity: .72; }
.ix-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 4.5vw, 84px); min-height: 0; padding: clamp(14px, 2.4vh, 30px) max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); }
.ix-ledger, .ix-detail { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 40px; scrollbar-width: thin; scrollbar-color: var(--i-line) transparent; }

/* the list: what it is, what he did on it, when; and at the end of each line, the way to fly to it */
.ix-ledger h2 { font: 400 13px/1.2 var(--i-type); color: var(--i-ash); margin: clamp(14px, 3vh, 34px) 0 clamp(4px, .8vh, 10px); letter-spacing: .01em; }
.ix-ledger h2:first-child { margin-top: 0; }
.ix-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: baseline; border-top: 1px solid var(--i-line); transition: opacity .25s var(--i-ease); }
.ix-open { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) 3em; column-gap: 16px; align-items: baseline; width: 100%; text-align: left; padding: clamp(5px, .95vh, 11px) 0 !important; font-size: clamp(14px, 1.78vh, 16.5px); line-height: 1.28; }
.ix-open .t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-open .r { color: var(--i-ash); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ix-open .y { color: var(--i-ash); font-variant-numeric: tabular-nums; text-align: right; }
.ix-go { font-size: 13px; font-weight: 600; color: var(--i-ember) !important; min-width: 5.2em; text-align: right; padding: 4px 0 !important; opacity: 0; transition: opacity .25s var(--i-ease); }
.ix-row:hover .ix-go, .ix-row:focus-within .ix-go, .ix-row.cur .ix-go { opacity: 1; }
.ix-go:hover { text-decoration: underline; text-underline-offset: 4px; }
.ix-ledger:has(.ix-row.cur) .ix-row:not(.cur):not(:hover):not(:focus-within) { opacity: .52; }
.ix-foot { margin: clamp(18px, 3.4vh, 36px) 0 0; font-size: 13px; }
.ix-foot button { color: var(--i-ash) !important; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.ix-foot button:hover { color: var(--i-paper) !important; }
@media (hover: none) { .ix-go { opacity: 1; } }

/* the detail: what the chosen line is */
.ix-detail { padding-right: 4px; }
.ix-detail > * { animation: ix-in .5s var(--i-ease) both; }
@keyframes ix-in { from { opacity: 0; transform: translateY(8px); } }
.ix-detail h1 { font-family: var(--i-mark); font-weight: 600; font-size: clamp(32px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 .3em; text-wrap: balance; }
.ix-detail .lede { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.42; margin: 0 0 1.1em; max-width: 34em; }
.ix-detail .lede b { font-weight: 500; }
.ix-detail .lede span { color: var(--i-ash); }
.ix-detail p { font-size: 15px; line-height: 1.55; margin: 0 0 .95em; max-width: 38em; color: var(--i-paper); }
.ix-detail p.quiet { color: var(--i-ash); }
.ix-detail a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ix-detail a:hover { opacity: .7; }
.ix-acts { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin: 0 0 1.5em; font-size: 15px; }
.ix-fly { background: var(--i-ember) !important; color: #170d05 !important; font-weight: 600; padding: 11px 18px !important; border-radius: 2px; transition: transform .2s var(--i-ease), filter .2s; }
.ix-fly:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ix-strip { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 1.4em; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--i-line) transparent; }
.ix-strip button { flex: 0 0 auto; height: clamp(92px, 15vh, 148px); background: #171512; position: relative; overflow: hidden; }
.ix-strip img { height: 100%; width: auto; display: block; min-width: 60px; object-fit: cover; }
.ix-strip button.v::after { content: ''; position: absolute; left: 9px; bottom: 9px; border-left: 11px solid var(--i-paper); border-top: 7px solid transparent; border-bottom: 7px solid transparent; filter: drop-shadow(0 0 4px rgba(0, 0, 0, .7)); }
.ix-strip button:hover img { opacity: .82; }
.ix-list { list-style: none; margin: 0 0 1.4em; padding: 0; max-width: 38em; }
.ix-list li { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; font-size: 14.5px; line-height: 1.45; padding: 3px 0; }
.ix-list li > :first-child { color: var(--i-ash); }
.ix-list.tracks li { grid-template-columns: 1fr auto; }
.ix-list.tracks li > :first-child { color: var(--i-paper); }
.ix-list.tracks button:hover { opacity: .7; }
.ix-list.tracks li > :last-child { color: var(--i-ash); font-variant-numeric: tabular-nums; }
.ix-list.moments li { grid-template-columns: 6.2em 1fr; padding: 7px 0; }
.ix-list.moments b { font-weight: 500; display: block; }
.ix-detail h3 { font-size: 14.5px; font-weight: 500; margin: 1.5em 0 .35em; }
.ix-cover { width: min(240px, 46%); aspect-ratio: 1; object-fit: cover; display: block; margin: 0 0 1.2em; }

/* a still or a film from the strip, looked at properly without leaving the page */
.ix-view { position: absolute; inset: 0; background: rgba(8, 7, 6, .96); display: grid; grid-template-rows: auto minmax(0, 1fr); z-index: 2; animation: ix-fade .35s var(--i-ease) both; }
@keyframes ix-fade { from { opacity: 0; } }
.ix-view .bar { display: flex; justify-content: space-between; gap: 20px; padding: max(18px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) 10px max(22px, env(safe-area-inset-left)); font-size: 14px; font-weight: 500; }
.ix-view .bar div { display: flex; gap: 22px; }
.ix-view .stage { min-height: 0; display: grid; place-items: center; padding: 0 22px 26px; }
.ix-view .stage > * { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; }

@media (max-width: 860px) {
  .ix-body { grid-template-columns: minmax(0, 1fr); }
  .ix-detail { position: absolute; inset: 0; background: var(--i-ink); padding: 64px 22px 40px; transform: translateY(102%); transition: transform .5s var(--i-ease); z-index: 1; }
  #inchIndex.has-detail .ix-detail { transform: none; }
  .ix-back { position: absolute; left: 22px; top: max(20px, env(safe-area-inset-top)); font-size: 14px; font-weight: 500; }
  .ix-open { grid-template-columns: minmax(0, 1fr) 2.8em; column-gap: 12px; padding: 11px 0 !important; font-size: 15.5px; }
  .ix-open .r { display: none; }
  #inchCompass { width: 44vw; }
  #inchTools { gap: 16px; }
  #inchTools kbd, #inchGo kbd, #inchSkip kbd { display: none; }
  #inchLink { max-width: 60vw; bottom: max(64px, calc(env(safe-area-inset-bottom) + 56px)); }
  #inchTracks { top: auto; bottom: max(150px, calc(env(safe-area-inset-bottom) + 130px)); transform: none; max-height: 44vh; overflow: auto; }
  #inchIndexBtn kbd, .lens-close kbd, .ix-close kbd { display: none; }
}
@media (min-width: 861px) { .ix-back { display: none; } }
@media (prefers-reduced-motion: reduce) {
  #inch *, #inchIndex, #inchLens { transition-duration: .01s !important; animation-duration: .01s !important; }
}

/* ── a phone held upright ── */
/* The name line is for any way up: the game's own "turn your phone" card waits until the flight has begun. While that
   card is up, nothing of the page's own is drawn over it. */
body.inch-title #turn { display: none !important; }
@media (orientation: portrait) {
  html.touch:not(.upright) body:not(.inch-title):not(.inch-index) #inch, html:not(.upright) body.touch:not(.inch-title):not(.inch-index) #inch { visibility: hidden; }
  #inchGate > .inch-logo { font-size: clamp(74px, 30vw, 150px); }
}

/* ── everything in capitals ── */
/* All of the page's own words are set in Helvetica capitals, a little apart, and a size down where there is a lot to
   read, so a paragraph in capitals is still a paragraph. (What is typed into a field is shown as it will be flown under.) */
#inch, #inch input, #inch button, #inch a { text-transform: uppercase; }
#inch { letter-spacing: .05em; }
#inch kbd { letter-spacing: .08em; }
#inchEnter input::placeholder { text-transform: uppercase; letter-spacing: .14em; font-size: 14px; }
#inchKey { text-transform: none !important; }
#inchTools button, .ix-close, #inchGo, #inchSkip, #inchLink, .lens-bar, #inchPlaying, #inchCompass .cp-name { font-size: 12px; letter-spacing: .09em; }
#inchWho b, #inchWho span { font-size: 12.5px; letter-spacing: .08em; line-height: 1.6; }
#inchSay { font-size: clamp(13px, 1.15vw, 16px); letter-spacing: .09em; line-height: 1.55; font-weight: 500; }
#inchGateSay, #inchForms p, #inchTracks p, .ix-foot { font-size: 11px; letter-spacing: .07em; line-height: 1.6; }
#inchForms button, #inchTracks li button { font-size: 12px; letter-spacing: .08em; }
#inchTracks h3 { font-size: 14px; letter-spacing: .06em; }
#inchTouch button { font-size: 12px; letter-spacing: .1em; }
.ix-ledger h2 { font-size: 11px; letter-spacing: .12em; }
.ix-open { font-size: clamp(12px, 1.5vh, 13.5px); letter-spacing: .07em; }
.ix-go { font-size: 11px; letter-spacing: .1em; }
.ix-detail h1 { letter-spacing: 0; font-size: clamp(28px, 3.6vw, 54px); line-height: 1.06; }
.ix-detail .lede { font-size: clamp(13px, 1.05vw, 15px); letter-spacing: .06em; line-height: 1.6; }
.ix-detail p, .ix-list li { font-size: 12px; letter-spacing: .06em; line-height: 1.7; }
.ix-detail h3 { font-size: 11px; letter-spacing: .12em; color: var(--i-ash); font-weight: 400; }
.ix-acts { font-size: 12px; letter-spacing: .08em; }
.ix-fly { letter-spacing: .1em; }
.ix-view .bar { font-size: 12px; letter-spacing: .09em; }
.lens-frame > article time { letter-spacing: .1em; }
.lens-frame > article h2 { letter-spacing: 0; }
.lens-frame > article p { font-size: clamp(13px, 1.4vw, 19px); letter-spacing: .05em; line-height: 1.6; }
@media (max-width: 860px) {
  .ix-open { font-size: 13px; }
  #inchSay { font-size: 13px; }
}

/* ── a narrow window: the compass under the bar, the bar's own things kept short ── */
@media (max-width: 620px) {
  #inchBar { grid-template-columns: 1fr auto; row-gap: 8px; }
  #inchCompass { grid-column: 1 / -1; grid-row: 2; justify-self: center; width: min(82vw, 420px); }
  #inchTools { gap: 14px; }
  #inchTools button { font-size: 11px; letter-spacing: .08em; }
  #inchMark .inch-logo { font-size: 26px; }
  .lens-bar { gap: 14px; padding: 8px 10px; font-size: 11px; }
  .lens-bar .lens-name { display: none; }
  #inchTouch { gap: 6px; flex-wrap: wrap; padding: 0 10px; }
  #inchTouch button { padding: 11px 12px; font-size: 11px; }
}

/* ── the dark before the world ── */
/* Until the visitor is through the ring there is the mark, the name line, and nothing else of the page's own
   (the way to the index stays, quietly, for anyone who would sooner read than fly). */
#inchWho { display: none; }
#inchGate { background: none; }
#inchMark, #inchCompass, #inchFormBtn, #inchSkip, #inchPlaying, #inchLink { transition: opacity 1.2s var(--i-ease); }
body.inch-dark #inchMark, body.inch-dark #inchCompass, body.inch-dark #inchFormBtn, body.inch-dark #inchSkip, body.inch-dark #inchPlaying, body.inch-dark #inchLink { opacity: 0 !important; pointer-events: none !important; }
body.inch-dark #inchIndexBtn { opacity: .55; }
body.inch-dark #inchIndexBtn:hover { opacity: 1; }
body.inch-dark #inchSay { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ── at the head of the index: what he is doing now, and where else he is ── */
.ix-now { margin: 0 0 clamp(14px, 3vh, 30px); }
.ix-now p { margin: 0; font-size: 13px; letter-spacing: .09em; line-height: 1.7; font-weight: 500; }
.ix-now .ix-social { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 8px; font-size: 11.5px; font-weight: 400; }
.ix-now .ix-social a { color: var(--i-ash); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: color .25s var(--i-ease); }
.ix-now .ix-social a:hover, .ix-now .ix-social a:focus-visible { color: var(--i-paper); }
.ix-ledger .ix-now + h2 { margin-top: 0; }

/* ───────────────────────── typed in letters ─────────────────────────
   The game types the page's own words into its grid of letters (see AUID in the game, and tools/fork-icarus.mjs):
   the text below is still laid out here and still takes the clicks, but what is seen is letters, each on its own
   small plate. So in that mode everything is measured in letters (--cw wide, --ch high) and nothing has a box. */
body.asciiui #inchSay { width: auto; max-width: min(calc(var(--cw) * 60), 92vw); padding: 0; bottom: calc(var(--ch) * 5); }
body.asciiui #inchSkip { bottom: calc(var(--ch) * 2); padding: 0 var(--cw); }
body.asciiui #inchTools { gap: calc(var(--cw) * 3); padding-top: 4px; }
body.asciiui #inchTools button, body.asciiui #inchGo, body.asciiui .ix-close { padding: 0; }
body.asciiui #inch kbd { margin-left: var(--cw); opacity: 1; }
body.asciiui #inchEnter { gap: var(--ch); }
body.asciiui #inchEnter input { width: calc(var(--cw) * 20); padding: 0; border: 0; text-align: left; }
body.asciiui #inchGateSay { min-height: var(--ch); max-width: calc(var(--cw) * 48); }
body.asciiui #inchForms { width: calc(var(--cw) * 26); padding: var(--ch) calc(var(--cw) * 2); }
body.asciiui #inchForms button { padding: 0; }
body.asciiui #inchForms p { margin: var(--ch) 0 0; padding: 0; border: 0; }
body.asciiui #inchTracks { width: calc(var(--cw) * 44); max-width: 92vw; padding: var(--ch) calc(var(--cw) * 2); }
body.asciiui #inchTracks h3 { margin: 0; } body.asciiui #inchTracks p, body.asciiui #inchTracks ol, body.asciiui #inchTracks p.out { margin: 0 0 var(--ch); }
body.asciiui #inchTracks li button { padding: 0; gap: calc(var(--cw) * 2); }
body.asciiui .lens-bar { gap: calc(var(--cw) * 3); padding: 0 var(--cw); }
body.asciiui #inchTouch { gap: var(--cw); }
body.asciiui #inchTouch button { padding: var(--ch) calc(var(--cw) * 1.5); min-height: 0; }
body.asciiui #inchPlaying { gap: var(--cw); }
body.asciiui #inchCompass .cp-name { top: 32px; }
/* (what hides a thing has to be on the thing itself, or the letters do not know) */
body.inch-watching #inchTools, body.inch-dark #inchTools #inchFormBtn { opacity: 0; pointer-events: none; }
body.inch-index #inchTools, body.inch-index #inchSay, body.inch-index #inchSkip, body.inch-index #inchLink, body.inch-index #inchPlaying { opacity: 0 !important; pointer-events: none; }
/* the index, in letters: one line of the grid to a line of the list */
body.asciiui #inchIndex { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.asciiui .ix-top { padding-bottom: var(--ch); }
body.asciiui .ix-now { margin: 0 0 var(--ch); } body.asciiui .ix-now p { margin: 0; }
body.asciiui .ix-now .ix-social { gap: 0 calc(var(--cw) * 3); margin: 0; }
body.asciiui .ix-ledger h2 { margin: var(--ch) 0 0; }
body.asciiui .ix-row { border: 0; column-gap: calc(var(--cw) * 2); }
body.asciiui .ix-open { padding: 0 !important; column-gap: calc(var(--cw) * 2); grid-template-columns: minmax(0, 1fr) 5ch; }
body.asciiui .ix-open .r { display: none; }   /* (in letters a line that is too long is not cut short, it runs into the next: what he did on each is in its own page, on the right) */
body.asciiui .ix-open .t { white-space: nowrap; }
body.asciiui .ix-go { padding: 0 !important; min-width: 0; }
body.asciiui .ix-foot { margin: var(--ch) 0 0; }
body.asciiui .ix-detail > * { animation: none; }
body.asciiui .ix-detail h1, body.asciiui .ix-detail p, body.asciiui .ix-detail .lede { margin: 0 0 var(--ch); max-width: 66ch; }
body.asciiui .ix-detail h3 { margin: var(--ch) 0 0; }
body.asciiui .ix-acts { gap: 0 calc(var(--cw) * 3); margin: 0 0 var(--ch); }
body.asciiui .ix-fly { padding: 0 var(--cw) !important; }
body.asciiui .ix-list { margin: 0 0 var(--ch); max-width: 70ch; }
body.asciiui .ix-list li { padding: 0; grid-template-columns: 20ch 1fr; gap: calc(var(--cw) * 2); }
body.asciiui .ix-list.tracks li { grid-template-columns: 1fr auto; } body.asciiui .ix-list.moments li { grid-template-columns: 10ch 1fr; padding: 0 0 var(--ch); }
body.asciiui .ix-strip { margin: 0 0 var(--ch); } body.asciiui .ix-cover { margin: 0 0 var(--ch); }
body.asciiui #ixDetail img { opacity: 1 !important; }
@media (max-width: 860px) { body.asciiui .ix-open { padding: calc(var(--ch) * .5) 0 !important; } body.asciiui .ix-detail { background: #000 !important; } }

#inchEnter[hidden] { display: none; }
/* (behind the index nothing else of the page's own is typed; and on a narrow window a line of the list is its name alone) */
body.inch-index #inchEnter { visibility: hidden; }
@media (max-width: 860px) { body.asciiui .ix-open { grid-template-columns: minmax(0, 1fr); } body.asciiui .ix-open .y { display: none; } }
