/* Letters from the rush (/history/letters/): letters on paper over the globe. Pages from builder/history/letters.py,
   motion from builder/www/src/letters/main.js (/assets/letters.js?v=06984bae). Loaded after /assets/history.css?v=261f331b. */
.lx { position: relative; --paper: #efe5cf; --paper2: #e6d9bc; --ink: #2b2218; --ink2: #5d4d39; --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --fell: "IM Fell English", "Libre Caslon Text", Georgia, serif; }
.lx a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* the globe stays behind the whole walk */
.lx-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1.2s var(--ease);
  background: radial-gradient(90% 70% at 70% 50%, color-mix(in srgb, var(--c) 9%, #071014), #05080a 70%); }
.lx-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
body.lx-walking .lx-stage.ready { opacity: 1; }
body.lx-walking .lx-stage canvas { pointer-events: auto; }
.lx-stage .glabel { font-size: 12px; padding: 5px 9px; border-radius: 8px; background: rgba(5, 8, 10, .72); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  color: var(--muted); margin: -22px 0 0 14px; }
.lx-stage .glabel b { display: block; color: var(--text); }

/* hero */
.lx-hero { position: relative; z-index: 2; min-height: 92vh; min-height: 92svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; background: #05080a; }
.lx-hero-media, .lx-hero-media picture { position: absolute; inset: 0; z-index: -2; }
.lx-hero-media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.38) contrast(1.05) brightness(.86); animation: hx-kb 34s ease-in-out infinite alternate; }
.lx-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5, 8, 10, .35), rgba(5, 8, 10, .1) 30%, rgba(5, 8, 10, .82) 78%, #05080a); }
.lx-hero-copy { width: 100%; max-width: 1180px; margin: 0 auto; padding: 140px 24px 80px; }
.lx-hero h1 { font-family: var(--fell); font-weight: 400; font-size: clamp(48px, 8vw, 112px); line-height: .95; letter-spacing: -.01em; max-width: 980px; text-wrap: balance; }
.lx-hero .lead { max-width: 660px; margin-top: 18px; color: #dbe3e0; font-size: clamp(17px, 1.6vw, 20px); text-shadow: 0 1px 16px rgba(0, 0, 0, .6); }
.lx-hero .kick { text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.lx-hero .kick a { color: inherit; }
.lx-hero .kick span { margin: 0 8px; opacity: .5; }
.lx-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; font: 500 12px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lx-meta span + span::before { content: "·"; margin-right: 16px; color: var(--c); }
.lx-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lx-cta button { font: inherit; cursor: pointer; }

/* the bar that follows the walk */
.lx-hud { position: sticky; top: 70px; z-index: 6; display: flex; align-items: center; gap: 10px; width: max-content; max-width: calc(100% - 32px);
  margin: 18px auto 0; padding: 7px 8px 7px 8px; border-radius: 999px; background: rgba(5, 8, 10, .78); border: 1px solid var(--line2);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.lx-hud button { all: unset; cursor: pointer; display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 999px; color: var(--text);
  font: 500 20px/1 var(--head); transition: background .2s; }
.lx-hud button:hover, .lx-hud button:focus-visible { background: rgba(255, 255, 255, .08); }
.lx-hud .lx-read-hud { font: 500 12px/1 Inter, sans-serif; padding: 0 14px; border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); color: var(--c); }
.lx-hud .lx-read-hud[aria-pressed="true"] { background: var(--c); color: #05080a; }
.lx-hud-read { display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 0 4px; }
.lx-year { font: 600 22px/1 var(--head); color: var(--c); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.lx-where { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.lx-dots { display: flex; gap: 5px; padding: 0 6px; }
.lx-dots a { display: block; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); transition: background .3s, transform .3s; }
.lx-dots a.past { background: color-mix(in srgb, var(--c) 55%, transparent); }
.lx-dots a.on { background: var(--c); transform: scale(1.35); }

/* the walk */
.lx-walk { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0 0 18vh; }
.lx-stop { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 14px;
  width: min(600px, calc(100% - 32px)); margin: 0 0 0 max(16px, calc((100vw - 1180px) / 2 + 24px)); padding: 12vh 0; transition: opacity .6s var(--ease); scroll-margin-top: 120px; }
.lx-walk:has(.lx-stop.on) .lx-stop:not(.on) { opacity: .28; }
.lx-n { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .08em; }
.lx-n span { color: var(--c); font-size: 15px; }
.lx-say { font-size: 17px; line-height: 1.6; color: #dfe7e4; max-width: 540px; padding: 14px 18px; border-radius: 14px; background: rgba(5, 8, 10, .72);
  border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lx-say .hx-sup a { color: var(--c); }

.lx-letter { position: relative; margin: 0; padding: 26px 30px 22px; color: var(--ink); border-radius: 3px;
  background: radial-gradient(120% 90% at 20% 0%, rgba(255, 255, 255, .35), transparent 60%),
              radial-gradient(80% 70% at 100% 100%, rgba(120, 84, 40, .16), transparent 70%),
              linear-gradient(180deg, var(--paper), var(--paper2));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 24px 60px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .3);
  transform: rotate(-.5deg); transition: transform .8s var(--ease), box-shadow .8s; }
.lx-stop:nth-child(even) .lx-letter { transform: rotate(.45deg); }
.lx-stop.on .lx-letter { transform: rotate(0); }
.lx-letter::before { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: .5;
  background: repeating-linear-gradient(0deg, transparent 0 31px, rgba(90, 70, 40, .07) 31px 32px); }
.lx-head { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(60, 40, 20, .2); }
.lx-kind { font: 600 10.5px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .14em; color: #7a5a2e; }
.lx-head time { font: italic 400 19px/1.2 var(--fell); color: var(--ink); }
.lx-place { font: 400 15px/1.3 var(--fell); color: var(--ink2); }
.lx-letter blockquote { position: relative; margin: 0; font: 400 17.5px/1.72 var(--serif); }
.lx-letter blockquote p + p { margin-top: .8em; }
.lx-letter blockquote p:first-child::first-letter { font: 400 2.9em/.8 var(--fell); float: left; margin: 6px 8px 0 0; color: #6a4520; }
.lx-letter figcaption { position: relative; margin-top: 16px; font: 13px/1.5 Inter, sans-serif; color: var(--ink2); }
.lx-letter figcaption b { color: var(--ink); }
.lx-letter figcaption a { color: #6a4520; }
/* newspapers and notices: newsprint, a column rule and a masthead feel */
.lx-letter.k-newspaper, .lx-letter.k-notice { background: linear-gradient(180deg, #ebe7dc, #ddd7c8); border-top: 5px double rgba(30, 25, 20, .7); padding-top: 22px; }
.lx-letter.k-newspaper::before, .lx-letter.k-notice::before { background: none; }
.lx-letter.k-newspaper blockquote, .lx-letter.k-notice blockquote { font-size: 16.5px; line-height: 1.6; text-align: justify; hyphens: auto; }
.lx-letter.k-newspaper .lx-kind, .lx-letter.k-notice .lx-kind { color: #3a3128; }
.lx-letter.k-notice { border-top-style: solid; border-top-width: 3px; }
.lx-letter.k-book .lx-kind { color: #6b4a2a; }

.lx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-chips a { font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: rgba(5, 8, 10, .72); border: 1px solid var(--line2); color: var(--text); text-decoration: none; }
.lx-chips a:hover { border-color: var(--c); }
.lx-tools { font-size: 12.5px; }
.lx-tools a { color: var(--muted); }

/* after the walk */
.lx-end { position: relative; z-index: 3; background: var(--bg); padding: 64px 0 24px; border-top: 1px solid var(--line); }
.lx-after { font: 400 clamp(20px, 2.2vw, 26px)/1.5 var(--serif); max-width: 820px; color: var(--text); }
.lx-note { max-width: 820px; margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--c); background: var(--bg2); border-radius: 0 12px 12px 0; color: #cfd8d5; font-size: 15px; }
.lx-doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 40px 0; }
.lx-door { position: relative; display: grid; grid-template-rows: 200px auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); text-decoration: none; color: var(--text); }
.lx-door picture, .lx-door img { width: 100%; height: 200px; object-fit: cover; display: block; filter: sepia(.25); }
.lx-door > span { display: grid; gap: 6px; padding: 16px 18px 18px; }
.lx-door em { font: 500 11.5px/1.3 var(--mono); font-style: normal; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.lx-door b { font: 600 21px/1.2 var(--head); }
.lx-door small { color: var(--muted); font-size: 14px; }
.lx-door:hover { border-color: var(--c); }
.lx-ents, .lx-archive { margin-top: 40px; }
.lx-ents h2, .lx-archive h2 { font-size: 22px; margin-bottom: 12px; }
.lx-ents .cols { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-ents .cols a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line2); text-decoration: none; font-size: 14px; }
.lx-archive ol { margin-top: 12px; padding-left: 20px; list-style: decimal; color: #cfd8d5; font-size: 14.5px; }
.lx-archive li { margin: 6px 0; }
.lx-archive li span { color: var(--muted); }
.lx-archive a { color: var(--c); }
.lx-atlas { margin-top: 28px; color: var(--muted); }
.lx-atlas a { color: var(--c); }

/* hub */
.lx-hubpage { background: var(--bg); }
.lx-hub-sec { padding: 64px 24px 8px; max-width: 1180px; margin: 0 auto; }
.lx-hub-sec h2 { font-size: clamp(28px, 3.4vw, 40px); }
.lx-hub-sec .sub { color: var(--muted); max-width: 720px; margin-top: 10px; }
.lx-cards { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.lx-card { display: grid; grid-template-rows: 210px auto; height: 100%; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); text-decoration: none; color: var(--text); transition: border-color .25s, transform .25s; }
.lx-card:hover { border-color: var(--c); transform: translateY(-2px); }
.lx-card-media picture, .lx-card-media img { display: block; width: 100%; height: 210px; object-fit: cover; filter: sepia(.3) contrast(1.04); }
.lx-card-copy { display: grid; gap: 8px; padding: 16px 18px 18px; align-content: start; }
.lx-card-copy em { font: 500 11.5px/1.3 var(--mono); font-style: normal; color: var(--c); text-transform: uppercase; letter-spacing: .06em; }
.lx-card-copy b { font: 400 26px/1.1 var(--fell); }
.lx-card-copy small { color: var(--muted); font-size: 13.5px; }
.lx-card-copy q { display: block; margin-top: 4px; padding: 12px 14px; border-radius: 3px; background: linear-gradient(180deg, var(--paper), var(--paper2)); color: var(--ink);
  font: italic 400 15px/1.55 var(--serif); quotes: "\201C" "\201D"; }
.lx-card-copy i { font-style: normal; font-size: 14px; color: var(--c); margin-top: 4px; }
.lx-hubmap { position: relative; margin: 24px 0 0; height: min(620px, 78vh); border-radius: 22px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(80% 70% at 50% 50%, #0b171b, #05080a 75%); }
.lx-hubmap canvas { width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1s; cursor: pointer; }
.lx-hubmap.ready canvas { opacity: 1; }
.lx-hubmap .glabel { padding: 5px 9px; border-radius: 8px; background: rgba(5, 8, 10, .72); border: 1px solid var(--line2); margin: -18px 0 0 12px; }
.lx-hubmap .glabel b { display: block; color: var(--text); }
.lx-how p { max-width: 780px; margin-top: 12px; color: #cfd8d5; }
.hx-hub-letters .hx-lcard b, .hx-letters .hx-next b { font-family: "IM Fell English", Georgia, serif; font-weight: 400; }

@media (max-width: 899px) {
  .lx-hud { top: 62px; gap: 4px; padding: 5px; }
  .lx-where { display: none; }
  .lx-dots { display: none; }
  .lx-stop { margin: 0 auto; justify-content: flex-end; padding: 46vh 0 8vh; }
  .lx-letter { padding: 20px 20px 18px; }
  .lx-letter blockquote { font-size: 16.5px; }
  .lx-say { font-size: 15.5px; }
  .lx-stage { background: radial-gradient(90% 60% at 50% 28%, color-mix(in srgb, var(--c) 9%, #071014), #05080a 70%); }
}
@media (prefers-reduced-motion: reduce) {
  .lx-hero-media img { animation: none; }
  .lx-letter, .lx-stop, .lx-stage { transition: none; }
}
