/* The Great Gatsby — its own look. Art Deco: night blue, gold and champagne, geometric capitals, the green light.
   Loaded on top of style.css; everything is scoped to html[data-book="gatsby"]. */
@import url('/fonts/book-gatsby.css');

html[data-book="gatsby"] {
  --deco: 'Josefin Sans', 'Tenor Sans', 'Inter', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;
  --gold: #d9b45b;
  --green: #6dffa8;
}
html[data-book="gatsby"] body[data-theme='night']  { --bg: #070b16; --ink: #efe6cf; --muted: #9ea3b2; --accent: #d9b45b; --card: rgba(9, 14, 28, .9); --line: rgba(217, 180, 91, .28); }
html[data-book="gatsby"] body[data-theme='gold']   { --bg: #0c0905; --ink: #f6ead0; --muted: #b9a57c; --accent: #ecc66b; --card: rgba(18, 13, 7, .9); --line: rgba(236, 198, 107, .3); }
html[data-book="gatsby"] body[data-theme='ash']    { --bg: #3a3936; --ink: #ecE8de; --muted: #b3afa5; --accent: #e9c430; --card: rgba(48, 47, 44, .92); --line: rgba(236, 232, 222, .2); }
html[data-book="gatsby"] body[data-theme='day']    { --bg: #f4eddc; --ink: #1d1a14; --muted: #6e6450; --accent: #83651e; --card: #fbf6ea; --line: rgba(138, 106, 31, .3); }
html[data-book="gatsby"] body[data-theme='rain']   { --bg: #1a2129; --ink: #e3e8ea; --muted: #99a6ad; --accent: #c9b06e; --card: rgba(30, 38, 46, .92); --line: rgba(227, 232, 234, .16); }
html[data-book="gatsby"] body[data-theme='heat']   { --bg: #f2dfbd; --ink: #2a170a; --muted: #7d5c3e; --accent: #ad3d1b; --card: #f8ead0; --line: rgba(184, 64, 28, .28); }
html[data-book="gatsby"] body[data-theme='autumn'] { --bg: #1a1510; --ink: #eee3cd; --muted: #ad9c80; --accent: #d39a3e; --card: rgba(30, 24, 17, .92); --line: rgba(211, 154, 62, .26); }
html[data-book="gatsby"] body[data-theme='bay']    { --bg: #02050b; --ink: #e8e3d4; --muted: #7d8597; --accent: #6dffa8; --card: rgba(6, 10, 18, .92); --line: rgba(109, 255, 168, .2); }
html[data-book="gatsby"] body[data-theme='dawn']   { --bg: #ece7da; --ink: #1b1d22; --muted: #66665f; --accent: #7f621f; --card: #f7f3e9; --line: rgba(27, 29, 34, .16); }

/* ---------- type: geometric capitals for display, the shared serif for reading ---------- */
html[data-book="gatsby"] .kicker,
html[data-book="gatsby"] .note .k { font-family: var(--deco); font-weight: 600; letter-spacing: .3em; }
html[data-book="gatsby"] .cover h1 {
  font-family: var(--deco); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  font-size: clamp(42px, 7.4vw, 124px); line-height: 1.02; margin: .1em 0 .2em; padding-top: .16em;
  background: linear-gradient(180deg, #fff3c9 0%, #e6c46e 45%, #a8812c 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .6));
}
html[data-book="gatsby"] .cover .tag { font-style: italic; max-width: 36ch; text-shadow: 0 1px 2px #03050d, 0 0 18px #03050d, 0 0 30px #03050d; }
/* the title sits in the sky; the lawn, the bay and the light stay visible underneath */
html[data-book="gatsby"] .cover-txt { top: clamp(72px, 13vh, 140px); bottom: auto; }
html[data-book="gatsby"] .cover::after { background: linear-gradient(to bottom, rgba(3, 5, 13, .92) 0, rgba(3, 5, 13, .6) 34%, rgba(3, 5, 13, 0) 56%, rgba(3, 5, 13, 0) 88%, var(--bg) 100%); }
html[data-book="gatsby"] .meta i { font-family: var(--display); }

/* part headers: a gold sunburst behind the title */
html[data-book="gatsby"] .part { min-height: 100vh; }
html[data-book="gatsby"] .part::before {
  content: ''; position: absolute; left: 50%; top: 52%; width: min(1300px, 190vw); aspect-ratio: 2 / 1; transform: translate(-50%, -100%);
  background: repeating-conic-gradient(from -90deg at 50% 100%, color-mix(in srgb, var(--accent) 45%, transparent) 0 .6deg, transparent .6deg 6deg);
  -webkit-mask-image: radial-gradient(circle at 50% 100%, transparent 20%, #000 20.3%, #000 52%, transparent 72%); mask-image: radial-gradient(circle at 50% 100%, transparent 20%, #000 20.3%, #000 52%, transparent 72%);
  pointer-events: none; opacity: .7;
}
html[data-book="gatsby"] .part::after {
  content: ''; position: absolute; left: 50%; top: 52%; width: min(520px, 76vw); aspect-ratio: 2 / 1; transform: translate(-50%, -100%);
  border: 1px solid var(--accent); border-bottom: 0; border-radius: 999px 999px 0 0; opacity: .5; pointer-events: none;
}
html[data-book="gatsby"] .part-n { display: none; }
html[data-book="gatsby"] .part .kicker { padding: .5em 1.4em; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); }
html[data-book="gatsby"] .part h2 { font-family: var(--deco); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(42px, 8vw, 120px); line-height: 1; overflow-wrap: anywhere; }
html[data-book="gatsby"] .part p { max-width: 34ch; }

html[data-book="gatsby"] .h { font-family: var(--deco); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: clamp(24px, 1rem + 1.4vw, 36px); line-height: 1.2; }
html[data-book="gatsby"] .h::before { width: 64px; height: 10px; background: linear-gradient(var(--accent) 0 2px, transparent 2px 4px, var(--accent) 4px 6px, transparent 6px 8px, var(--accent) 8px 10px); }
html[data-book="gatsby"] .p.drop::first-letter {
  font-family: var(--deco); font-weight: 700; font-size: 3.6em; line-height: 1; color: var(--accent);
  padding: .14em .22em .02em; margin: .08em .18em 0 0; border: 2px solid var(--accent); outline: 1px solid var(--accent); outline-offset: 3px;
}

/* quotes: champagne italics between two thin gold rules */
html[data-book="gatsby"] .q blockquote { font-weight: 500; }
html[data-book="gatsby"] .q blockquote::before {
  content: ''; display: block; height: 14px; width: 120px; margin: 0 auto .8em;
  background: linear-gradient(90deg, transparent, var(--accent) 30% 70%, transparent) 0 0 / 100% 1px no-repeat,
              linear-gradient(90deg, transparent, var(--accent) 40% 60%, transparent) 0 6px / 100% 1px no-repeat,
              linear-gradient(45deg, transparent 45%, var(--accent) 45% 55%, transparent 55%) 50% 100% / 8px 8px no-repeat;
}
html[data-book="gatsby"] .q.hero blockquote { font-size: clamp(28px, 1.1rem + 2.4vw, 54px); }

html[data-book="gatsby"] .note { border-radius: 0; border: 1px solid var(--line); border-inline-start: 1px solid var(--line); position: relative; background: var(--card); }
html[data-book="gatsby"] .note::before, html[data-book="gatsby"] .note::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid var(--accent); }
html[data-book="gatsby"] .note::before { top: -5px; inset-inline-start: -5px; border-right: 0; border-bottom: 0; }
html[data-book="gatsby"] .note::after { bottom: -5px; inset-inline-end: -5px; border-left: 0; border-top: 0; }
html[data-book="gatsby"] .note h3 { font-family: var(--display); font-style: italic; }

html[data-book="gatsby"] .card { border-radius: 0; border: 1px solid var(--line); box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line), 0 24px 60px rgba(0, 0, 0, .35); }

html[data-book="gatsby"] .block-h h3 { font-family: var(--deco); font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: clamp(28px, 1.2rem + 2vw, 50px); line-height: 1.15; }
html[data-book="gatsby"] .stat b { font-family: var(--deco); font-weight: 600; font-size: clamp(36px, 3.4vw, 54px); }
html[data-book="gatsby"] .stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
html[data-book="gatsby"] .stats { border-radius: 0; }
html[data-book="gatsby"] .theme { border-radius: 0; }
html[data-book="gatsby"] .theme .n { font-family: var(--deco); font-weight: 400; }
html[data-book="gatsby"] .more-i { border-top: 0; border-inline-start: 0; position: relative; padding-top: 1.8em; }
html[data-book="gatsby"] .more-i::before { content: ''; position: absolute; top: 0; inset-inline: 0; height: 7px; border-top: 1px solid var(--accent); border-bottom: 3px double var(--accent); }
html[data-book="gatsby"] .fin h2 { font-family: var(--deco); font-style: normal; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
html[data-book="gatsby"] .btn { border-radius: 0; }
html[data-book="gatsby"] .progress { background: linear-gradient(90deg, #a8812c, #fff3c9, #d9b45b); }
html[data-book="gatsby"] .x-cap { max-width: 34rem; margin: 1.2em auto 0; text-align: center; font-family: var(--display); font-style: italic; font-size: 1.1em; color: var(--muted); }

/* ---------- cast: place cards ---------- */
html[data-book="gatsby"] .x-cast { max-width: 64rem; margin: 5em auto; }
.cast { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pc { position: relative; padding: 1.6em 1.4em 1.3em; background: var(--card); border: 1px solid var(--line); text-align: center; }
.pc::before { content: ''; position: absolute; inset: 5px; border: 1px solid var(--line); pointer-events: none; }
.pc-w { font: 600 11px var(--deco); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.pc h4 { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 28px; line-height: 1.1; margin: .35em 0 .45em; }
.pc p { margin: 0; font-size: .86em; line-height: 1.6; text-align: start; }
.pc.main { grid-column: span 2; }
.pc.main h4 { font-size: 36px; }
@media (max-width: 560px) { .pc.main { grid-column: auto; } }

/* ---------- rumours: cards you turn over ---------- */
html[data-book="gatsby"] .x-rumours { max-width: 60rem; margin: 5em auto; }
html[data-book="gatsby"] .x-rumours .block-h .kicker { letter-spacing: .12em; text-transform: none; font-size: 13px; font-weight: 400; color: var(--muted); }
.rum { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rm { all: unset; cursor: pointer; display: grid; perspective: 900px; min-height: 190px; }
.rm:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rm > span { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; padding: 1.4em 1.3em; border: 1px solid var(--line); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .8s cubic-bezier(.4, .1, .2, 1); }
.rm-f { background: linear-gradient(160deg, #1d150a, #0b0805); color: #f6ead0; text-align: center; }
.rm-f q { font-family: var(--display); font-style: italic; font-size: 1.35em; line-height: 1.3; quotes: '“' '”'; }
.rm-f::after { content: '⟲'; display: block; margin-top: .7em; font-size: 16px; color: var(--gold); opacity: .7; }
.rm-b { background: var(--card); color: var(--ink); transform: rotateY(180deg); font-size: .9em; line-height: 1.6; }
.rm-b b { font: 700 13px var(--deco); letter-spacing: .24em; text-transform: uppercase; margin-bottom: .6em; }
.rm[data-v='true'] .rm-b b { color: #3f9a5c; } .rm[data-v='false'] .rm-b b { color: #c2412f; }
.rm[data-v='half'] .rm-b b, .rm[data-v='open'] .rm-b b { color: var(--accent); }
.rm.on .rm-f { transform: rotateY(-180deg); }
.rm.on .rm-b { transform: rotateY(0); }

/* ---------- guests: names written on a railway timetable ---------- */
html[data-book="gatsby"] .x-guests { max-width: 50rem; margin: 4em auto 5em; }
.tt { position: relative; background: #f3ead2; color: #2a2418; padding: 1.6em clamp(1em, 4vw, 2.4em) 2em; box-shadow: 0 30px 70px rgba(0, 0, 0, .25); overflow: hidden;
  background-image: linear-gradient(90deg, transparent 49.6%, rgba(90, 70, 40, .12) 49.6% 50.4%, transparent 50.4%), linear-gradient(rgba(90, 70, 40, .08) 1px, transparent 1px); background-size: 100% 100%, 100% 30px; }
.tt-h { display: flex; flex-direction: column; align-items: center; gap: .2em; border-bottom: 3px double #2a2418; padding-bottom: .7em; margin-bottom: 1em; text-align: center; }
.tt-h span { font: 600 11px var(--deco); letter-spacing: .3em; text-transform: uppercase; }
.tt-h b { font: 700 clamp(14px, 2.4vw, 19px) var(--deco); letter-spacing: .12em; text-transform: uppercase; }
.tt-bg { position: absolute; inset: 5.2em 1em 1em; display: grid; grid-template-columns: repeat(4, 1fr); font: 500 13px/30px var(--ui); color: rgba(42, 36, 24, .22); pointer-events: none; font-variant-numeric: tabular-nums; }
.tt-bg div { display: flex; flex-direction: column; align-items: center; }
.tt-n { position: relative; list-style: none; margin: 0; padding: 0; columns: 2 16rem; column-gap: 2em; }
.tt-n li { font-family: var(--hand); font-size: 1.32em; line-height: 1.25; color: #1f2c57; margin: 0 0 .35em; break-inside: avoid; opacity: 0; transform: translateX(-8px) rotate(-1deg); transition: opacity .5s, transform .5s; }
.tt-n li.on { opacity: 1; transform: rotate(-1deg); }
.tt-n li b { font-weight: 700; }
.tt-n li i { font-style: normal; font-weight: 500; font-size: .86em; color: #4a4f66; }

/* ---------- clock: tips over, is caught, goes back ---------- */
html[data-book="gatsby"] .x-clock { position: relative; max-width: 48rem; margin: 3em auto; padding: 4em 0 2em; text-align: center; overflow: hidden; }
.clk { position: relative; height: 340px; }
.clk-rain { position: absolute; inset: -4em -20%; background: repeating-linear-gradient(105deg, transparent 0 22px, rgba(200, 215, 230, .16) 22px 23px); animation: ggRain .6s linear infinite; pointer-events: none; }
@keyframes ggRain { to { background-position: -28px 60px; } }
.clk-c { position: absolute; z-index: 2; left: 50%; bottom: 44px; width: 180px; margin-left: -90px; transform-origin: 50% 100%; will-change: transform; }
.clk-c svg { display: block; width: 100%; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45)); }
.x-clock.caught .clk-c { animation: ggShake .24s ease-in-out 2; }
@keyframes ggShake { 50% { margin-left: -86px; } }
.clk-shelf { position: absolute; left: 50%; bottom: 20px; width: min(520px, 90%); height: 24px; transform: translateX(-50%); background: linear-gradient(#7a5b3a, #4a3420); border-top: 3px solid var(--gold); }
.clk-cap p { margin: .3em 0; font-family: var(--display); font-style: italic; font-size: clamp(20px, 1rem + 1vw, 28px); opacity: 0; transform: translateY(10px); transition: opacity .7s, transform .7s; }
.clk-cap p.on { opacity: 1; transform: none; }

/* ---------- shirts: thrown onto the table one by one ---------- */
html[data-book="gatsby"] .x-shirts { max-width: 54rem; margin: 2em auto; }
.sh { position: relative; height: min(70vh, 560px); }
.sh-t { position: absolute; inset: 10% 0 0; background: radial-gradient(ellipse at 50% 100%, rgba(255, 230, 160, .14), transparent 70%); }
.sh-i { position: absolute; left: var(--x); bottom: var(--y); width: min(34%, 220px); transform: translateY(-110vh) rotate(calc(var(--r) * 3)); opacity: 0; transition: transform .9s cubic-bezier(.3, .6, .3, 1) var(--d), opacity .3s var(--d); }
.sh-i.on { transform: rotate(var(--r)); opacity: 1; }
.sh-i svg { display: block; width: 100%; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .3)); }

/* ---------- heat: a thermometer that keeps rising ---------- */
html[data-book="gatsby"] .x-heat { --h: 0; max-width: 46rem; margin: 4em auto; display: grid; grid-template-columns: 70px 1fr; gap: 2em; align-items: center; }
.th { position: relative; height: 360px; width: 70px; }
.th-t { position: absolute; left: 22px; top: 0; bottom: 40px; width: 26px; border: 3px solid var(--ink); border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.th-t i { position: absolute; left: 4px; right: 4px; bottom: 0; height: calc(8% + var(--h) * 92%); background: linear-gradient(#e2531f, #b8401c); border-radius: 8px 8px 0 0; box-shadow: 0 0 calc(var(--h) * 24px) rgba(226, 83, 31, .8); }
.th-b { position: absolute; left: 10px; bottom: 0; width: 50px; height: 50px; border-radius: 50%; background: #b8401c; border: 3px solid var(--ink); }
.th-s { position: absolute; left: 54px; top: 10px; bottom: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.th-s span { display: block; width: 12px; height: 2px; background: var(--ink); opacity: .6; }
.th-q { margin: 0; }
.th-q blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(26px, 1.1rem + 2vw, 46px); line-height: 1.2; }
.th-q figcaption { margin-top: 1.1em; font: 13px/1.6 var(--ui); color: var(--muted); }
.th-q figcaption .k { display: inline-block; font-weight: 600; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; margin-inline-end: .6em; }
.th-q figcaption i { font-family: var(--display); font-size: 17px; color: var(--ink); opacity: .8; }
html[data-book="gatsby"] .x-heat blockquote { filter: blur(calc(var(--h) * .6px)); transform: skewX(calc(var(--h) * -2deg)); }

/* ---------- schedule: the back page of a boy's book ---------- */
html[data-book="gatsby"] .x-schedule { max-width: 40rem; margin: 4em auto; }
.sc { position: relative; background: #efe3c4; color: #2b2214; padding: 2em clamp(1.2em, 5vw, 2.6em) 2.2em; box-shadow: inset 0 0 60px rgba(120, 80, 20, .25), 0 26px 60px rgba(0, 0, 0, .3); transform: rotate(-.6deg); }
.sc-book { position: absolute; top: .9em; inset-inline-end: 1.2em; font: 700 10px var(--deco); letter-spacing: .3em; color: rgba(43, 34, 20, .35); }
.sc-d { font-family: var(--hand); font-size: 1.5em; color: #3a2f6b; margin-bottom: .4em; }
.sc ol, .sc ul { margin: 0; padding: 0; list-style: none; }
.sc li { font-family: var(--hand); font-size: clamp(1.2em, 1rem + .6vw, 1.45em); line-height: 1.35; color: #24305e; clip-path: inset(0 calc((1 - var(--w, 0)) * 100%) 0 0); margin-bottom: .2em; }
[dir='rtl'] .sc li { clip-path: inset(0 0 0 calc((1 - var(--w, 0)) * 100%)); }
.sc ol li { display: flex; align-items: baseline; gap: .4em; }
.sc ol li i { flex: 1; border-bottom: 2px dotted rgba(36, 48, 94, .45); min-width: 1em; }
.sc ol li b { font-weight: 500; white-space: nowrap; }
.sc .sc-h { font: 700 13px var(--deco); letter-spacing: .28em; text-transform: uppercase; color: #6b5a3a; margin: 1.2em 0 .5em; }
.sc s { text-decoration-thickness: 2px; text-decoration-color: #24305e; }

/* ---------- funeral: the names fade in the rain ---------- */
html[data-book="gatsby"] .x-funeral { position: relative; max-width: 54rem; margin: 3em auto; padding: 3em 1em 4em; overflow: hidden; }
.fu-rain { position: absolute; inset: -10%; background: repeating-linear-gradient(100deg, transparent 0 18px, rgba(200, 215, 230, .14) 18px 19px); animation: ggRain .5s linear infinite; pointer-events: none; }
.fu-n { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3em 1.1em; font-family: var(--hand); font-size: 1.25em; color: var(--ink); }
.fu-n li { transition: opacity 1.4s, filter 1.4s; }
.fu-n li.gone { opacity: .07; filter: blur(2px); }
.fu-c { position: relative; margin: 2.4em auto 0; max-width: 26rem; text-align: center; opacity: 0; transform: translateY(16px); transition: opacity 1.2s, transform 1.2s; }
.x-funeral.came .fu-c { opacity: 1; transform: none; }
.fu-c ul { list-style: none; margin: .8em 0 0; padding: 0; font-family: var(--display); font-style: italic; font-size: clamp(22px, 1rem + 1vw, 30px); line-height: 1.45; }

/* ---------- the last sentence: rowing forward, carried back ---------- */
html[data-book="gatsby"] .x-current { --p: 0; height: 240vh; margin: 0 calc(-1 * clamp(20px, 5vw, 40px)); }
.cur { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.cur-sea { position: absolute; inset: 0; background:
  repeating-linear-gradient(0deg, transparent 0 26px, rgba(109, 255, 168, .05) 26px 27px),
  linear-gradient(#02050b 0, #071425 55%, #02050b 100%); }
.cur-sea::after { content: ''; position: absolute; inset: 40% 0 0; background: radial-gradient(ellipse 50px 3px at 50% 50%, rgba(159, 180, 214, .3), transparent 70%) 0 0 / 150px 34px; animation: ggSea 9s linear infinite;
  -webkit-mask-image: linear-gradient(transparent, #000 30%); mask-image: linear-gradient(transparent, #000 30%); }
@keyframes ggSea { to { background-position: -150px 0; } }
.cur-gl { position: absolute; top: 22%; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #eafff2;
  box-shadow: 0 0 18px 6px rgba(109, 255, 168, .8), 0 0 70px 24px rgba(109, 255, 168, .35);
  transform: translateY(calc(var(--p) * -14vh)) scale(calc(1 - var(--p) * .9)); opacity: calc(1 - var(--p) * 1.15); }
.cur-l { position: relative; max-width: 22ch; margin: 0; padding: 0 20px; text-align: center; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(30px, 1.2rem + 3.4vw, 68px); line-height: 1.25; color: #f3ecd8; }
.cur { grid-template-rows: 1fr auto 1fr; }
.cur-l { grid-row: 2; }
.cur-o { grid-row: 3; align-self: start; margin: 1.6em 0 0; padding: 0 20px; max-width: 34rem; text-align: center; font: italic 16px/1.5 var(--display); color: #8f98aa; opacity: calc(1 - var(--p) * 1.4); }
.cur-l span { display: inline-block; animation: ggRow 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.27s);
  translate: calc(var(--p) * var(--i) * -9px) calc(var(--p) * var(--i) * -4px); opacity: clamp(.15, calc(1.4 - var(--p) * var(--i) / 9), 1); }
[dir='rtl'] .cur-l span { translate: calc(var(--p) * var(--i) * 9px) calc(var(--p) * var(--i) * -4px); }
@keyframes ggRow { 50% { transform: translateY(-6px) rotate(-1deg); } }

/* ---------- the green light in the corner ---------- */
.gl { all: unset; position: fixed; z-index: 45; bottom: 26px; inset-inline-end: 26px; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity 1.2s; --b: 1; }
.gl.on { opacity: 1; pointer-events: auto; }
.gl i { width: 9px; height: 9px; border-radius: 50%; background: #eafff2;
  box-shadow: 0 0 calc(6px + var(--b) * 10px) calc(2px + var(--b) * 4px) rgba(109, 255, 168, calc(.4 + var(--b) * .5)), 0 0 calc(20px + var(--b) * 40px) calc(6px + var(--b) * 12px) rgba(109, 255, 168, calc(var(--b) * .35));
  animation: ggGl 2.8s ease-in-out infinite; }
@keyframes ggGl { 50% { opacity: .6; } }
.gl:focus-visible { outline: 1px solid var(--green); outline-offset: 2px; border-radius: 50%; }
.gl-tip { position: fixed; z-index: 46; bottom: 80px; inset-inline-end: 22px; max-width: 16rem; padding: .7em 1em; font: italic 500 17px var(--display); color: #e9fff2;
  background: rgba(4, 10, 14, .92); border: 1px solid rgba(109, 255, 168, .35); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; pointer-events: none; }
.gl-tip.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .sh-i { transition: none; } .cur-l span { animation: none; } }

/* ---------- scripts ---------- */
/* connected and CJK scripts: no wide tracking, no geometric Latin face */
html[data-book="gatsby"]:is([lang=ar], [lang=hi], [lang=zh], [lang=ja], [lang=ko]) { --deco: var(--ui); --hand: var(--body); }
html[data-book="gatsby"]:is([lang=ar], [lang=hi]) :is(.cover h1, .part h2, .h, .block-h h3, .kicker, .pc-w, .rm-b b, .tt-h span, .tt-h b, .sc .sc-h, .fin h2, .part .kicker) { letter-spacing: 0 !important; }
html[data-book="gatsby"]:is([lang=zh], [lang=ja], [lang=ko]) :is(.cover h1, .part h2, .h, .block-h h3) { letter-spacing: .04em; }
html[data-book="gatsby"]:is([lang=ar], [lang=hi], [lang=zh], [lang=ja], [lang=ko]) :is(.tt-n li, .sc li, .sc-d, .fu-n) { font-size: 1.05em; }
html[data-book="gatsby"][lang=ar] .p.drop::first-letter { border: 0; outline: 0; margin: 0; padding: 0; }
html[data-book="gatsby"]:is([lang=ar], [lang=hi]) .art svg text { letter-spacing: 0 !important; }
html[data-book="gatsby"]:is([lang=ar], [lang=hi], [lang=zh], [lang=ja], [lang=ko]) .art svg text { font-family: var(--ui); }
html[data-book="gatsby"]:is([lang=zh], [lang=ja], [lang=ko]) .cover h1 { font-size: clamp(30px, 6vw, 110px); letter-spacing: .02em; line-height: 1.2; }
