/* ==========================================================================
   Almost: author website
   Palette  Night #0a0d12 · Hallway #10151c · Ink #e9e6df · Dusk #8aa0b8
            Streetlight #d8b98a (Ethan only) · Paper #e7e2d6 (Dear Reader)
   Type     Newsreader (serif, headings + quotes) · Figtree (body) · Caveat (signature)
   ========================================================================== */

.almost-html { scroll-behavior: smooth; background: #0a0d12; }
.almost-body { margin: 0; background: #0a0d12; }

.almost {
	--night: #0a0d12;
	--hall: #10151c;
	--ink: #e9e6df;
	--mute: #98a2ae;
	--dim: #6c7683;
	--dusk: #8aa0b8;
	--dusk-d: #3a4a5e;
	--gold: #d8b98a;
	--line: rgba(233, 230, 223, .12);
	--serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--hand: "Caveat", "Segoe Script", cursive;
	--ease: cubic-bezier(.2, .7, .2, 1);

	position: relative;
	background: var(--night);
	color: var(--ink);
	font-family: var(--sans);
	font-weight: 300;
	font-size: 1.0625rem;
	line-height: 1.7;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.almost *, .almost *::before, .almost *::after { box-sizing: border-box; }
/* Resets use :where() so they have zero specificity and never override component rules. */
:where(.almost) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; padding: 0; }
:where(.almost) :where(ul, ol) { list-style: none; }
:where(.almost) a { color: inherit; text-decoration: none; }
:where(.almost) img { max-width: 100%; height: auto; display: block; }
:where(.almost) :where(button, input) { font: inherit; color: inherit; }
.almost :focus-visible { outline: 2px solid var(--dusk); outline-offset: 4px; border-radius: 2px; }
.almost [hidden] { display: none !important; }
.a-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.a-skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--night) !important; padding: .6rem 1rem; transition: top .2s; }
.a-skip:focus { top: 1rem; }

/* ---------- Layout ---------- */
.a-wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.a-wrap--narrow { width: min(100% - 2.5rem, 760px); }
.a-center { text-align: center; }
.a-section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; scroll-margin-top: 0; }
.a-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.a-center .a-lede { margin-inline: auto; }
.almost h2, .almost .a-head > h1 {
	font-family: var(--serif); font-weight: 300; font-size: clamp(2.1rem, 5.2vw, 3.7rem);
	line-height: 1.08; letter-spacing: -.012em; margin-bottom: 1.4rem;
}
.a-kicker { font-family: var(--serif); font-style: italic; color: var(--dusk); font-size: 1.1rem; margin-bottom: .8rem; }
.a-lede { font-size: 1.15rem; color: var(--mute); max-width: 38rem; }
.a-muted { color: var(--dim); font-style: italic; }
.a-fine { color: var(--dim); font-size: .9rem; margin-top: 2.5rem; }
.a-link { display: inline-block; font-size: .95rem; color: var(--dusk); border-bottom: 1px solid rgba(138, 160, 184, .4); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.a-link:hover { color: var(--ink); border-color: var(--ink); }
.a-link.is-disabled { color: var(--dim); border-color: transparent; font-style: italic; cursor: default; }

/* ---------- Buttons ---------- */
.a-btn {
	position: relative; overflow: hidden; isolation: isolate;
	display: inline-flex; align-items: center; justify-content: center;
	padding: .95rem 1.9rem; border-radius: 999px; font-size: .95rem; font-weight: 500; letter-spacing: .01em;
	border: 1px solid transparent; cursor: pointer; background: none;
	transition: color .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.a-btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.a-btn--solid { background: var(--ink); color: var(--night) !important; }
.a-btn--solid::before { background: var(--dusk); }
.a-btn--ghost { border-color: rgba(233, 230, 223, .28); color: var(--ink); }
.a-btn--ghost::before { background: rgba(138, 160, 184, .18); }
.a-btn:hover::before { transform: scaleX(1); }
.a-btn:hover { transform: translateY(-1px); }
.a-btn--ghost:hover { border-color: var(--dusk); }
.a-btn--small { padding: .6rem 1.2rem; font-size: .85rem; }
.a-btn.is-disabled { opacity: .5; border: 1px dashed rgba(233, 230, 223, .35); background: transparent; color: var(--mute) !important; cursor: not-allowed; }
.a-btn.is-disabled::before { display: none; }
.a-btn.is-disabled:hover { transform: none; }

/* ---------- Veil (page transition) ---------- */
.a-veil { position: fixed; inset: 0; background: var(--night); opacity: 0; pointer-events: none; z-index: 60; transition: opacity .35s ease; }
.a-veil.is-on { opacity: 1; }

/* ---------- Navigation ---------- */
.a-nav {
	position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 1.4rem;
	padding: 1.1rem clamp(1.1rem, 3vw, 2.6rem); transition: background .5s, backdrop-filter .5s, border-color .5s, padding .4s;
	border-bottom: 1px solid transparent;
}
.a-nav.is-scrolled { background: rgba(10, 13, 18, .74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); padding-block: .75rem; }
.a-nav__brand { font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-right: auto; }
.a-nav__links { display: flex; gap: 1.7rem; }
.a-nav__links a { position: relative; font-size: .88rem; color: var(--mute); padding: .3rem 0; transition: color .3s; }
.a-nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--dusk); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.a-nav__links a:hover, .a-nav__links a.is-active { color: var(--ink); }
.a-nav__links a:hover::after, .a-nav__links a.is-active::after { transform: scaleX(1); }

.a-burger { display: none; width: 44px; height: 44px; position: relative; background: none; border: 0; cursor: pointer; z-index: 55; }
.a-burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), opacity .3s; }
.a-burger span:nth-child(1) { top: 16px; }
.a-burger span:nth-child(2) { top: 21.5px; }
.a-burger span:nth-child(3) { top: 27px; }
.almost.menu-open .a-burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.almost.menu-open .a-burger span:nth-child(2) { opacity: 0; }
.almost.menu-open .a-burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.a-menu {
	position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2.2rem;
	padding: 6rem 2rem 3rem; background: rgba(8, 10, 14, .98);
	opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s;
}
.a-menu nav { display: flex; flex-direction: column; gap: .35rem; }
.a-menu nav a { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 8vw, 2.6rem); line-height: 1.25; opacity: 0; transition: opacity .6s ease, color .3s; transition-delay: 0s; }
.a-menu nav a:hover { color: var(--dusk); }
.almost.menu-open .a-menu { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; }
.almost.menu-open .a-menu nav a { opacity: 1; transition-delay: calc(.12s * var(--n, 1)); }

/* ---------- Hero ---------- */
.a-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 7rem 0 5rem; overflow: hidden; isolation: isolate; }
.a-hero__bg { position: absolute; inset: -6% 0; z-index: -3; background: var(--hero-bg, none) center / cover no-repeat, radial-gradient(120% 90% at 70% 40%, #17202c 0%, var(--night) 62%); opacity: .95; }
.a-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 13, 18, .35), rgba(10, 13, 18, .1) 40%, var(--night) 100%); }
.a-hero__light { position: absolute; z-index: -2; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.a-hero__light--a { width: 46vw; height: 46vw; left: -12vw; top: -8vw; background: radial-gradient(circle, rgba(138, 160, 184, .22), transparent 68%); animation: driftA 38s ease-in-out infinite alternate; }
.a-hero__light--b { width: 38vw; height: 38vw; right: -8vw; bottom: -10vw; background: radial-gradient(circle, rgba(216, 185, 138, .10), transparent 66%); animation: driftB 46s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate(8vw, 6vw) scale(1.12); } }
@keyframes driftB { to { transform: translate(-7vw, -5vw) scale(1.1); } }
.a-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, var(--night)); }
.a-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

.a-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }

/* The title: "Almost" is all there, but the last letters are only almost there. */
.a-title { margin: 0 0 1.6rem; line-height: .9; }
.a-title__word { display: inline-flex; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(5.5rem, 22vw, 12.5rem); letter-spacing: -.03em; }
.a-l { display: inline-block; opacity: var(--o, 1); animation: letterIn 1.8s var(--ease) both; animation-delay: calc(.25s + var(--i) * .24s); }
.a-l--0 { --o: 1; } .a-l--1 { --o: .95; } .a-l--2 { --o: .84; }
.a-l--3 { --o: .68; } .a-l--4 { --o: .5; } .a-l--5 { --o: .3; }
.a-l--4, .a-l--5 { animation: letterIn 1.8s var(--ease) both, breathe 8s ease-in-out infinite alternate; animation-delay: calc(.25s + var(--i) * .24s), 3.6s; }
.a-l--5 { animation-duration: 1.8s, 10s; }
@keyframes letterIn { from { opacity: 0; filter: blur(14px); } to { opacity: var(--o, 1); filter: blur(0); } }
@keyframes breathe { from { opacity: var(--o); } to { opacity: calc(var(--o) + .26); } }

.a-hero__quote { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.75rem); line-height: 1.4; font-weight: 300; max-width: 30rem; }
.a-hero__sub { color: var(--mute); margin: 1.2rem 0 2.2rem; max-width: 30rem; }
.a-hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.a-hero__release { margin-top: 2.2rem; font-size: .92rem; color: var(--dim); font-family: var(--serif); font-style: italic; }
.a-hero__count:not(:empty)::before { content: ", "; }

[data-intro] { animation: introIn 1.6s var(--ease) both; }
[data-intro="1"] { animation-delay: 1.1s; }
[data-intro="2"] { animation-delay: 1.7s; }
[data-intro="3"] { animation-delay: 2.0s; }
[data-intro="4"] { animation-delay: 2.3s; }
[data-intro="5"] { animation-delay: 2.7s; }
@keyframes introIn { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }

.a-hero__book { position: relative; display: grid; place-items: center; }
.a-hero__halo { position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(138, 160, 184, .28), transparent 66%); filter: blur(40px); animation: halo 9s ease-in-out infinite alternate; }
@keyframes halo { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

.a-scroll { position: absolute; left: 50%; bottom: 1.6rem; width: 22px; height: 38px; margin-left: -11px; border: 1px solid rgba(233, 230, 223, .3); border-radius: 12px; opacity: .8; }
.a-scroll span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--ink); border-radius: 2px; animation: scrollDot 2.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- Book cover ---------- */
.a-book { position: relative; width: min(100%, 360px); perspective: 1100px; transform-style: preserve-3d; transition: transform .8s var(--ease); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.a-book--small { width: min(100%, 300px); }
.a-cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px 7px 7px 3px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .05), inset 6px 0 10px -4px rgba(0, 0, 0, .5); position: relative; }
.a-cover--ph {
	display: flex; flex-direction: column; justify-content: space-between; padding: 12% 11% 10%;
	background: linear-gradient(160deg, #24344a 0%, #131c29 55%, #0c1119 100%);
}
.a-cover--ph::before { content: ""; position: absolute; inset: 5%; border: 1px solid rgba(233, 230, 223, .14); border-radius: 2px; pointer-events: none; }
.a-cover--ph::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent); }
.a-cover__t { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1; letter-spacing: -.02em; margin-top: 38%; opacity: .92; }
.a-cover__a { font-size: .85rem; color: var(--mute); letter-spacing: .06em; }
.a-book__shine { position: absolute; inset: 0; border-radius: 3px 7px 7px 3px; pointer-events: none; background: radial-gradient(circle at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, .13), transparent 55%); opacity: 0; transition: opacity .5s; }
.a-book:hover .a-book__shine { opacity: 1; }

/* ---------- Scroll reveals (opacity only: quiet) ---------- */
.a-js [data-reveal] { opacity: 0; transition: opacity 1.3s ease; }
.a-js [data-reveal].is-in { opacity: 1; }
.a-js .a-w { display: inline-block; opacity: 0; filter: blur(5px); transition: opacity 1s ease, filter 1s ease; transition-delay: calc(var(--i) * 70ms); }
.a-js [data-split].is-in .a-w { opacity: 1; filter: none; }
.a-w-space { display: inline; }

/* ---------- About the book ---------- */
.a-book-sec { background: linear-gradient(180deg, var(--night), var(--hall) 60%, var(--night)); }
.a-themes { display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; margin-bottom: clamp(4rem, 9vw, 7rem); max-width: 56rem; }
.a-themes li { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--mute); padding-bottom: .15rem; border-bottom: 1px solid var(--line); transition: color .4s, border-color .4s; }
.a-themes li:hover { color: var(--ink); border-color: var(--dusk); }

.a-bigquote { position: relative; max-width: 58rem; margin: 0 0 clamp(4.5rem, 10vw, 8rem); padding-left: clamp(1.2rem, 4vw, 3rem); border-left: 1px solid var(--dusk-d); }
.a-bigquote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.9rem, 5.4vw, 4.2rem); line-height: 1.12; letter-spacing: -.015em; }

.a-duo { display: grid; grid-template-columns: 1fr minmax(140px, 220px) 1fr; align-items: start; gap: 1.5rem; }
.a-char h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1; margin-bottom: .5rem; }
.a-char--jamie { text-align: right; } .a-char--jamie h3 { color: var(--dusk); }
.a-char--ethan { text-align: left; }  .a-char--ethan h3 { color: var(--gold); }
.a-char__age { font-family: var(--serif); font-style: italic; color: var(--dim); margin-bottom: .9rem; }
.a-char > p:last-child { color: var(--mute); max-width: 24rem; }
.a-char--jamie > p:last-child { margin-left: auto; }

.a-between { position: relative; align-self: center; height: 150px; display: flex; align-items: center; justify-content: center; gap: 0; }
.a-orb { display: block; width: 46px; height: 46px; border-radius: 50%; flex: none; }
.a-orb--jamie { background: radial-gradient(circle at 40% 40%, #b8c9dc, #5f7690 70%); box-shadow: 0 0 40px 6px rgba(138, 160, 184, .35); animation: toward 7s ease-in-out infinite alternate; }
.a-orb--ethan { background: radial-gradient(circle at 60% 40%, #f0d9b2, #b08d58 70%); box-shadow: 0 0 40px 6px rgba(216, 185, 138, .28); animation: toward2 7s ease-in-out infinite alternate; }
.a-between__gap { width: 34px; height: 1px; background: repeating-linear-gradient(90deg, rgba(233, 230, 223, .4) 0 3px, transparent 3px 7px); animation: gapPulse 7s ease-in-out infinite alternate; }
@keyframes toward  { to { transform: translateX(12px); } }
@keyframes toward2 { to { transform: translateX(-12px); } }
@keyframes gapPulse { from { opacity: .9; } to { opacity: .25; } }
.a-between em { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-family: var(--serif); color: var(--dim); font-size: 1rem; }
.a-duo__note { max-width: 40rem; margin: 3rem auto 0; text-align: center; color: var(--mute); font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; }

/* ---------- Story ---------- */
.a-story h2 { margin-bottom: 3rem; }
.a-story__body p { font-family: var(--serif); font-size: clamp(1.2rem, 2.3vw, 1.4rem); line-height: 1.75; font-weight: 300; margin-bottom: 1.5rem; color: #d3d1cb; }
.a-story__body p.is-beat { font-style: italic; font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 2.4rem 0; color: var(--ink); }
.a-question { margin-top: clamp(4rem, 9vw, 7rem); padding-top: 3rem; border-top: 1px solid var(--line); text-align: center; }
.a-question p { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 1.8rem); color: var(--mute); margin-bottom: 1.1rem; }
.a-question__final { font-size: clamp(4.5rem, 15vw, 9rem) !important; font-weight: 300; color: var(--ink) !important; line-height: 1; margin: 1.6rem 0 0 !important; letter-spacing: -.03em; }

/* ---------- Author ---------- */
.a-author { background: var(--hall); }
.a-author__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 7vw, 6.5rem); align-items: start; }
.a-portrait { position: sticky; top: 6rem; }
.a-portrait__frame { position: relative; }
.a-portrait__frame::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--dusk-d); z-index: 0; }
.a-portrait__img, .a-portrait__ph { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.a-portrait__ph { display: grid; place-items: center; background: radial-gradient(90% 70% at 50% 30%, #243244, #121922 70%); color: var(--dim); font-family: var(--serif); font-style: italic; }
.a-portrait figcaption { position: relative; z-index: 1; margin-top: 2.2rem; font-size: .88rem; color: var(--dim); }
.a-author__text p { color: #c3c7cd; margin-bottom: 1.15rem; max-width: 36rem; }
.a-author__text p:first-of-type { font-family: var(--serif); font-size: 1.4rem; line-height: 1.55; color: var(--ink); }

.a-timeline { margin-top: 3.2rem; position: relative; padding-left: 1.8rem; border-left: 1px solid var(--dusk-d); }
.a-timeline li { position: relative; padding-bottom: 1.7rem; display: grid; gap: .15rem; }
.a-timeline li::before { content: ""; position: absolute; left: calc(-1.8rem - 4px); top: .62rem; width: 7px; height: 7px; border-radius: 50%; background: var(--dusk); box-shadow: 0 0 0 4px rgba(138, 160, 184, .15); }
.a-timeline li:last-child { padding-bottom: 0; }
.a-timeline li:last-child::before { background: transparent; border: 1px solid var(--dusk); }
.a-timeline__when { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--dusk); }
.a-timeline__what { color: var(--mute); max-width: 30rem; }

/* ---------- Dear Reader: handwritten on ruled paper, one sheet per page ---------- */
.a-letter-sec { background: radial-gradient(70% 60% at 50% 40%, #121923, var(--night)); }
.a-letter-pages { display: grid; gap: clamp(1.6rem, 5vw, 3rem); }
.a-letter {
	--ln: 2.5rem; --ink-pen: #1f2f4d;
	position: relative; padding: clamp(2rem, 6vw, 4.5rem) clamp(1.4rem, 6vw, 4.5rem) clamp(2.6rem, 7vw, 4.5rem); color: var(--ink-pen); background-color: #e9e4d8;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .2  0 0 0 0 .15  0 0 0 .1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
		linear-gradient(90deg, rgba(0, 0, 0, .09), transparent 6%, transparent 94%, rgba(0, 0, 0, .06));
	box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .5) inset;
	transform: rotate(-.5deg);
}
.a-letter--alt { transform: rotate(.45deg); }
/* The body is a stack of whole "lines": every height below is a multiple of --ln, so the writing sits on the ruled lines. */
.a-letter__body {
	font-family: var(--hand); font-weight: 500; font-size: clamp(1.55rem, 3.4vw, 1.95rem); line-height: var(--ln);
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--ln) - 1px), rgba(60, 95, 150, .3) calc(var(--ln) - 1px), rgba(60, 95, 150, .3) var(--ln));
	background-position: 0 .35rem;
}
.a-letter h2 { font-family: var(--hand); font-weight: 500; font-style: normal; font-size: clamp(2.3rem, 6vw, 3.1rem); line-height: calc(var(--ln) * 2); color: var(--ink-pen); margin: 0; }
.a-letter__p { margin: 0 0 var(--ln); font-weight: 500; overflow-wrap: anywhere; }
.a-letter__sign { font-family: var(--hand); font-weight: 500; font-size: clamp(2.2rem, 5.6vw, 2.9rem); line-height: calc(var(--ln) * 2); color: #2c3b50; margin: 0; transform: rotate(-2deg); transform-origin: left; }
.a-letter__pg { position: absolute; right: clamp(1.4rem, 6vw, 4.5rem); bottom: .9rem; margin: 0; font-family: var(--hand); font-size: 1.2rem; color: rgba(31, 47, 77, .55); }
.a-js .a-letter__p, .a-js .a-letter__sign { opacity: 0; transition: opacity 1.4s ease; transition-delay: calc(.4s + var(--i, 5) * .45s); }
.a-js .a-letter.is-in .a-letter__p, .a-js .a-letter.is-in .a-letter__sign { opacity: 1; }
.a-js .a-letter { transition: opacity 1.4s ease; }

/* Pile of pages (added by JS when the letter has more than one page): click the top sheet and it folds over from its top edge. */
.a-letter-pages.a-stack { display: grid; align-items: start; perspective: 2200px; gap: 0; transition: height .8s ease; }
.a-stack .a-letter {
	grid-area: 1 / 1; cursor: pointer; -webkit-tap-highlight-color: transparent; transform-origin: 50% 0; z-index: calc(50 - var(--k, 0));
	transform: translateY(calc(var(--d, 0) * .5rem)) rotate(var(--r, -.5deg));
	transition: transform 1.05s cubic-bezier(.5, .05, .25, 1), opacity .5s ease .35s, visibility 0s linear 1.1s, box-shadow .6s ease;
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.a-stack .a-letter:nth-child(3n+2) { --r: .45deg; }
.a-stack .a-letter:nth-child(3n+3) { --r: -.15deg; }
.a-stack .a-letter:focus-visible { outline: 2px solid var(--dusk); outline-offset: 4px; }
.a-stack .a-letter.is-folded { transform: translateY(-1.2rem) rotateX(-178deg); opacity: 0; visibility: hidden; pointer-events: none; box-shadow: none; }
.a-stack .a-letter:not(.is-folded):not([aria-hidden="false"]) { box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .8), 0 2px 0 rgba(255, 255, 255, .45) inset; }
.a-stack .a-letter[aria-hidden="true"]:not(.is-folded) > * { visibility: hidden; }
.a-stack .a-letter.is-deep { opacity: 0; }
.a-stack .a-letter[aria-hidden="true"]:not(.is-folded) { filter: brightness(calc(1 - var(--d, 0) * .06)); }
.a-stack .a-letter__pg::after { content: " \21BB"; }
@media (max-width: 560px) { .a-stack .a-letter { transform: translateY(calc(var(--d, 0) * .35rem)); } .a-stack .a-letter.is-folded { transform: translateY(-1rem) rotateX(-178deg); } }
@media (prefers-reduced-motion: reduce) { .a-letter-pages.a-stack { transition: none; } .a-stack .a-letter { transition: opacity .3s ease, visibility 0s; } .a-stack .a-letter.is-folded { transform: none; } }

/* ---------- Excerpts ---------- */
.a-excerpt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.a-excerpt { border-top: 1px solid var(--line); padding-top: 1.4rem; min-height: 260px; display: flex; flex-direction: column; }
.a-excerpt h3 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.3rem; color: var(--dusk); margin-bottom: 1.6rem; }
.a-excerpt__ghost { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.a-excerpt__ghost i { display: block; height: 7px; border-radius: 4px; background: linear-gradient(90deg, rgba(233, 230, 223, .1), rgba(233, 230, 223, .04)); }
.a-excerpt__ghost i:nth-child(2) { width: 92%; } .a-excerpt__ghost i:nth-child(3) { width: 80%; } .a-excerpt__ghost i:nth-child(4) { width: 46%; }
.a-excerpt__soon { font-family: var(--serif); font-size: 1.5rem; color: var(--mute); margin-top: auto; }
.a-excerpt blockquote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.7; color: #d3d1cb; }
.a-excerpt blockquote p + p { margin-top: 1rem; }

/* ---------- Soundtrack ---------- */
.a-music { background: var(--hall); }
.a-music-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.a-song { border-top: 1px solid var(--line); padding-top: 1.4rem; display: flex; flex-direction: column; align-items: flex-start; }
.a-song__bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-bottom: 1.6rem; opacity: .7; }
.a-song__bars i { width: 3px; height: 100%; background: var(--dusk); border-radius: 2px; transform-origin: bottom; animation: bar 4.8s ease-in-out infinite alternate; }
.a-song__bars i:nth-child(1) { animation-delay: -.3s; --s: .35; } .a-song__bars i:nth-child(2) { animation-delay: -1.4s; --s: .8; }
.a-song__bars i:nth-child(3) { animation-delay: -.9s; --s: .5; }  .a-song__bars i:nth-child(4) { animation-delay: -2.6s; --s: 1; }
.a-song__bars i:nth-child(5) { animation-delay: -1.9s; --s: .6; } .a-song__bars i:nth-child(6) { animation-delay: -3.3s; --s: .85; }
.a-song__bars i:nth-child(7) { animation-delay: -.6s; --s: .4; }
@keyframes bar { from { transform: scaleY(.2); } to { transform: scaleY(var(--s, .7)); } }
.a-song__cover { width: 3.5rem; height: 3.5rem; aspect-ratio: 1; object-fit: cover; border-radius: 6px; margin-bottom: 1.4rem; box-shadow: 0 8px 20px -8px rgba(0,0,0,.7); background: var(--line); }
.a-song h3 { font-family: var(--serif); font-weight: 300; font-size: 2.1rem; line-height: 1.1; }
.a-song__artist { color: var(--dusk); margin: .35rem 0 1rem; font-size: .95rem; }
.a-song__note { color: var(--mute); margin-bottom: 1.5rem; max-width: 22rem; }
.a-song .a-link { margin-top: auto; }

/* ---------- World ---------- */
.a-world { overflow: hidden; background: linear-gradient(180deg, var(--night), #0d131b 50%, var(--night)); }
.a-world__sky i { position: absolute; width: 54px; height: 76px; border-radius: 2px; background: rgba(216, 185, 138, .05); box-shadow: 0 0 60px 10px rgba(216, 185, 138, .03); animation: windowGlow 11s ease-in-out infinite alternate; }
.a-world__sky .w1 { right: 24%; top: 9%; } .a-world__sky .w2 { right: 19%; top: 9%; animation-delay: -4s; background: rgba(138, 160, 184, .05); }
.a-world__sky .w3 { right: 3%; top: 38%; animation-delay: -7s; } .a-world__sky .w4 { right: 6%; bottom: 8%; animation-delay: -2s; background: rgba(138, 160, 184, .05); }
.a-world__sky .w5 { right: 11%; bottom: 8%; animation-delay: -9s; }
@keyframes windowGlow { from { opacity: .25; } to { opacity: 1; } }
.a-world__list { column-count: 2; column-gap: clamp(2rem, 8vw, 8rem); }
.a-place { display: block; break-inside: avoid; padding: 1.7rem 0 2rem; border-top: 1px solid var(--line); cursor: default; transition: border-color .5s; }
.a-place__name { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.01em; color: var(--ink); transition: color .5s, letter-spacing .8s var(--ease); }
.a-place__text { display: block; margin-top: .5rem; color: var(--mute); max-width: 22rem; }
.a-place:hover, .a-place:focus-visible { border-color: var(--dusk); }
.a-place:hover .a-place__name, .a-place:focus-visible .a-place__name { color: var(--dusk); letter-spacing: .005em; }
@media (hover: hover) {
	.a-js .a-place__text { opacity: .55; transition: opacity .6s; }
	.a-js .a-place:hover .a-place__text, .a-js .a-place:focus-visible .a-place__text { opacity: 1; }
}

/* ---------- Details ---------- */
.a-details__grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: center; }
.a-details__book { display: grid; place-items: center; }
.a-dl { margin: 1rem 0 2rem; border-top: 1px solid var(--line); }
.a-dl > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.a-dl dt { color: var(--dim); font-size: .95rem; }
.a-dl dd { font-family: var(--serif); font-size: 1.2rem; }
.a-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.4rem; }
.a-chips li { font-size: .85rem; padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--mute); }
.a-buy { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- FAQ ---------- */
.a-faq { background: var(--hall); }
.a-faq__item { border-top: 1px solid var(--line); }
.a-faq__item:last-child { border-bottom: 1px solid var(--line); }
.a-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.5rem); transition: color .3s; }
.a-faq__item summary::-webkit-details-marker { display: none; }
.a-faq__item summary::after { content: "+"; font-family: var(--sans); font-weight: 200; font-size: 1.8rem; color: var(--dusk); transition: transform .5s var(--ease); flex: none; }
.a-faq__item[open] summary::after { transform: rotate(45deg); }
.a-faq__item summary:hover { color: var(--dusk); }
.a-faq__item p { padding: 0 3rem 1.6rem 0; color: var(--mute); max-width: 38rem; animation: faqIn .7s ease both; }
@keyframes faqIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Contact + newsletter ---------- */
.a-email { font-family: var(--serif); font-size: clamp(1.4rem, 3.4vw, 2rem); margin: 2rem 0 1.6rem; }
.a-email a { border-bottom: 1px solid var(--dusk-d); padding-bottom: 3px; transition: border-color .3s, color .3s; }
.a-email a:hover { color: var(--dusk); border-color: var(--dusk); }
.a-socials { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.8rem; }
.a-socials a, .a-socials .is-soon { font-size: .95rem; color: var(--mute); transition: color .3s; }
.a-socials a:hover { color: var(--ink); }
.a-socials .is-soon { color: var(--dim); font-style: italic; cursor: default; }

.a-news { background: radial-gradient(60% 80% at 50% 100%, #131b26, var(--night)); }
.a-news h2 { font-style: italic; }
.a-form { margin: 2.6rem auto 0; max-width: 520px; display: grid; gap: 1.4rem; text-align: left; }
.a-field { display: grid; gap: .25rem; }
.a-field label { font-size: .85rem; color: var(--dim); }
.a-field input { background: transparent; border: 0; border-bottom: 1px solid rgba(233, 230, 223, .28); padding: .55rem 0; font-size: 1.1rem; font-family: var(--serif); border-radius: 0; transition: border-color .4s; width: 100%; }
.a-field input:focus { outline: none; border-color: var(--dusk); }
.a-field input.is-bad { border-color: #c48b8b; }
.a-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.a-form .a-btn { justify-self: center; margin-top: .4rem; }
.a-contact { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.a-form__status { min-height: 1.6em; color: var(--dusk); font-family: var(--serif); font-style: italic; }
.a-form.is-done .a-field, .a-form.is-done .a-btn { display: none; }

/* ---------- Footer ---------- */
.a-footer { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line); text-align: center; color: var(--dim); font-size: .88rem; }
.a-footer__line { max-width: 40rem; margin: 0 auto .8rem; }
.a-footer a { color: var(--mute); border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
	.a-nav__links { display: none; }
	.a-burger { display: block; }
	.a-nav__buy { order: 2; }
	.a-burger { order: 3; margin-right: -10px; }
}
@media (max-width: 900px) {
	.a-hero { padding: 6.5rem 0 4.5rem; }
	.a-hero__grid { grid-template-columns: 1fr; gap: 3.2rem; }
	.a-hero__book { order: 2; }
	.a-book { width: min(62vw, 300px); }
	.a-duo { grid-template-columns: 1fr; gap: .5rem; }
	.a-char--jamie, .a-char--ethan { text-align: left; }
	.a-char--jamie > p:last-child { margin-left: 0; }
	.a-between { height: 150px; flex-direction: column; margin: .5rem 0; justify-content: center; }
	.a-between__gap { width: 1px; height: 30px; background: repeating-linear-gradient(180deg, rgba(233, 230, 223, .4) 0 3px, transparent 3px 7px); }
	@keyframes toward  { to { transform: translateY(8px); } }
	@keyframes toward2 { to { transform: translateY(-8px); } }
	.a-between em { display: none; }
	.a-char__age.is-spacer { display: none; }
	.a-author__grid, .a-details__grid { grid-template-columns: 1fr; }
	.a-portrait { position: relative; top: 0; max-width: 340px; }
	.a-excerpt-grid, .a-music-grid { grid-template-columns: 1fr; }
	.a-excerpt { min-height: 0; }
	.a-song { padding-bottom: 1rem; }
	.a-world__list { column-count: 1; }
	.a-details__book { order: -1; }
}
@media (max-width: 560px) {
	.almost { font-size: 1rem; }
	.a-wrap { width: min(100% - 2rem, 1180px); }
	.a-nav__brand { font-size: 1.05rem; }
	.a-btn { width: 100%; }
	.a-btn--small { width: auto; }
	.a-hero__cta { flex-direction: column; align-items: stretch; }
	.a-dl > div { grid-template-columns: 6rem 1fr; }
	.a-letter, .a-letter--alt { transform: none; --ln: 2.15rem; }
	.a-form .a-btn { justify-self: stretch; }
	.a-faq__item p { padding-right: 0; }
	.a-timeline { padding-left: 1.4rem; }
	.a-timeline li::before { left: calc(-1.4rem - 4px); }
}

/* ---------- Countdown ---------- */
.a-countdown { background: var(--hall); padding: clamp(3rem, 6vw, 4.5rem) 0; border-block: 1px solid var(--line); }
.almost .a-countdown__title { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 1.8rem; color: var(--mute); font-style: italic; }
.a-countdown__grid { display: flex; justify-content: center; gap: clamp(.8rem, 3vw, 2.2rem); flex-wrap: wrap; }
.a-countdown__cell { min-width: clamp(4.4rem, 15vw, 7.5rem); padding: 1.1rem .4rem 1rem; border: 1px solid var(--line); border-radius: 6px; background: rgba(233, 230, 223, .02); display: grid; gap: .3rem; }
.a-countdown__num { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 8vw, 4.6rem); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.a-countdown__lbl { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.a-countdown__done { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--dusk); }

/* ---------- Cast ---------- */
.a-cast__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.a-card { border-top: 1px solid var(--line); padding-top: 1.4rem; }
.a-card__img, .a-card__ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin-bottom: 1.2rem; background: radial-gradient(90% 70% at 50% 30%, #243244, #121922 70%); }
.a-card__ph { display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 4.5rem; color: var(--dim); }
.a-card h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; }
.a-card__role { color: var(--dusk); font-family: var(--serif); font-style: italic; margin-top: .3rem; }
.a-card__text { color: var(--mute); margin-top: .8rem; font-size: .98rem; }

/* ---------- Events ---------- */
.a-event-list { display: grid; gap: 0; }
.a-event { display: grid; grid-template-columns: 6.5rem 1fr; gap: clamp(1rem, 3vw, 2rem); padding: 1.8rem 0; border-top: 1px solid var(--line); }
.a-event:last-child { border-bottom: 1px solid var(--line); }
.a-event__date time { display: grid; line-height: 1; }
.a-event__d { font-family: var(--serif); font-weight: 300; font-size: 3.4rem; }
.a-event__m { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dusk); margin-top: .3rem; }
.a-event__tba { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); line-height: 1.5; }
.a-event__body h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.a-event__meta { color: var(--dusk); margin-top: .3rem; }
.a-event__note { color: var(--mute); margin: .6rem 0 .9rem; max-width: 34rem; }
.a-events__empty { color: var(--mute); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
@media (max-width: 560px) { .a-event { grid-template-columns: 1fr; gap: .6rem; } .a-event__d { font-size: 2.6rem; } }

/* ---------- Reader reviews ---------- */
.a-review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.8rem; }
.a-review { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.a-stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .7rem; font-size: 1.05rem; }
.a-review blockquote { font-family: var(--serif); font-size: 1.2rem; line-height: 1.65; color: #d3d1cb; }
.a-review figcaption { margin-top: 1rem; font-size: .9rem; color: var(--dim); }
.a-review figcaption::before { content: "– "; }
.a-review figcaption a { border-bottom: 1px solid var(--line); }
.a-review figcaption a:hover { color: var(--ink); }

/* ==========================================================================
   Reduced motion: everything visible, nothing moving
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	.almost-html { scroll-behavior: auto; }
	.almost *, .almost *::before, .almost *::after { animation: none !important; transition: none !important; }
	.a-js [data-reveal], .a-js .a-w, .a-js .a-letter__p, .a-js .a-letter__sign, [data-intro] { opacity: 1 !important; filter: none !important; }
	.a-particles { display: none; }
	.a-book { transform: none !important; }
}

/* ==========================================================================
   v1.2: pre-order, playlist, content note, reader stories
   ========================================================================== */
.a-preorder { background: radial-gradient(60% 90% at 50% 0%, #141d29, var(--night)); border-block: 1px solid var(--line); }
.a-preorder .a-lede { margin-inline: auto; }
.a-preorder__cta { margin-top: 2rem; display: grid; gap: 1.2rem; justify-items: center; }
.a-preorder__cta .a-fine { margin: 0; max-width: 30rem; }

.a-playlist { margin-top: 3rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; }
.a-playlist p { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--mute); }
.a-player { flex: 1 0 100%; max-width: 44rem; min-height: var(--player-h, 352px); border-radius: 14px; overflow: hidden; }
.a-player iframe { display: block; width: 100%; height: var(--player-h, 352px); border: 0; border-radius: 14px; color-scheme: normal; }
.a-player__gate { min-height: var(--player-h, 352px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; padding: 2rem 1.5rem; text-align: center; border: 1px solid var(--line); border-radius: 14px; background: rgba(138, 160, 184, .05); }
.a-player__gate .a-fine { margin: 0; max-width: 24rem; font-style: normal; font-family: inherit; font-size: .85rem; color: var(--dim); }
.a-player__bars { display: flex; align-items: flex-end; gap: 4px; height: 38px; opacity: .7; }
.a-player__bars i { width: 3px; height: 100%; background: var(--dusk); border-radius: 2px; transform-origin: bottom; animation: bar 4.8s ease-in-out infinite alternate; }
.a-player__bars i:nth-child(1) { animation-delay: -.3s; --s: .4; } .a-player__bars i:nth-child(2) { animation-delay: -1.4s; --s: .9; }
.a-player__bars i:nth-child(3) { animation-delay: -.9s; --s: .55; } .a-player__bars i:nth-child(4) { animation-delay: -2.6s; --s: 1; }
.a-player__bars i:nth-child(5) { animation-delay: -1.9s; --s: .65; }
@media (prefers-reduced-motion: reduce) { .a-player__bars i { animation: none; transform: scaleY(.6); } }
@media print { .a-player { display: none; } }

.a-cnote { margin-top: 2.6rem; padding: 1.4rem 1.6rem; border-left: 2px solid var(--dusk-d); background: rgba(138, 160, 184, .05); max-width: 36rem; }
.a-cnote h3 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.3rem; color: var(--dusk); margin-bottom: .5rem; }
.a-cnote p { color: var(--mute); font-size: .98rem; }
.a-cnote__title { margin-top: 1rem; font-size: .88rem !important; color: var(--dim) !important; }
.a-cnote ul { margin-top: .3rem; display: grid; gap: .25rem; }
.a-cnote li { color: var(--mute); font-size: .95rem; }

.a-stories { background: linear-gradient(180deg, var(--night), #0d131b 55%, var(--night)); }
.a-stories__sub { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.4rem; color: var(--dusk); margin-bottom: 1.6rem; }
.a-story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.6rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
.a-reader { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.a-reader blockquote { font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; color: #d3d1cb; }
.a-reader figcaption { margin-top: 1rem; font-size: .9rem; color: var(--dim); }
.a-reader figcaption::before { content: "– "; }

.a-form--story { max-width: 640px; margin: 0 auto; }
.a-field textarea { background: transparent; border: 0; border-bottom: 1px solid rgba(233, 230, 223, .28); padding: .55rem 0; font-size: 1.1rem; font-family: var(--serif); border-radius: 0; resize: vertical; width: 100%; line-height: 1.6; transition: border-color .4s; }
.a-field textarea:focus { outline: none; border-color: var(--dusk); }
.a-field textarea.is-bad { border-color: #c48b8b; }
.a-count { white-space: nowrap; flex: none; }
.a-field__hint { font-size: .82rem; color: var(--dim); display: flex; justify-content: space-between; gap: 1rem; }
.a-check { display: flex; gap: .8rem; align-items: flex-start; font-size: .95rem; color: var(--mute); cursor: pointer; }
.a-check input { margin-top: .3rem; accent-color: var(--dusk); flex: none; width: 1.05rem; height: 1.05rem; }
.a-form--story.is-done .a-field, .a-form--story.is-done .a-btn, .a-form--story.is-done .a-check, .a-form--story.is-done .a-row2 { display: none; }
@media (max-width: 560px) { .a-playlist .a-btn { width: auto; } .a-preorder__cta .a-btn { width: auto; } }

/* ==========================================================================
   v1.3: direct ordering (PayFast)
   ========================================================================== */
.a-order { background: radial-gradient(60% 90% at 50% 0%, #141d29, var(--night)); border-block: 1px solid var(--line); }
.a-order .a-lede { margin-inline: auto; }
.a-form--order { max-width: 600px; margin-top: 2.4rem; }

.a-opts { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: .7rem; }
.a-opts legend { padding: 0; margin-bottom: .6rem; font-size: .85rem; color: var(--dim); }
.a-opt { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border: 1px solid rgba(233, 230, 223, .2); border-radius: 14px; cursor: pointer; transition: border-color .3s, background .3s; }
.a-opt:hover { border-color: rgba(138, 160, 184, .6); }
.a-opt.is-on { border-color: var(--dusk); background: rgba(138, 160, 184, .08); }
.a-opt:focus-within { outline: 2px solid var(--dusk); outline-offset: 3px; }
.a-opt input { accent-color: var(--dusk); width: 1.1rem; height: 1.1rem; flex: none; }
.a-opt__body { flex: 1; display: grid; line-height: 1.3; }
.a-opt__name { font-family: var(--serif); font-size: 1.2rem; }
.a-opt__meta { font-size: .82rem; color: var(--dim); }
.a-opt__price { font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }

.a-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.a-field input[type="number"] { max-width: 8rem; -moz-appearance: textfield; appearance: textfield; }
.a-field input[type="number"]::-webkit-outer-spin-button, .a-field input[type="number"]::-webkit-inner-spin-button { opacity: 1; }
.a-field select {
	appearance: none; -webkit-appearance: none; width: 100%; border-radius: 0; color-scheme: dark;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238aa0b8' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right .2rem center;
	border: 0; border-bottom: 1px solid rgba(233, 230, 223, .28); padding: .55rem 1.6rem .55rem 0;
	font: inherit; font-size: 1.1rem; font-family: var(--serif); color: var(--ink); transition: border-color .4s;
}
.a-field select:focus { outline: none; border-color: var(--dusk); }
.a-field select.is-bad { border-color: #c48b8b; }
.a-field select option { background: var(--hall); color: var(--ink); }

.a-addr { display: grid; gap: 1.4rem; }
.a-addr[hidden] { display: none; }
.a-sub { font-family: var(--serif); font-style: italic; color: var(--dusk); font-size: 1.2rem; margin-top: .4rem; }

.a-sum { margin: .4rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.a-sum > div { display: flex; justify-content: space-between; gap: 1rem; color: var(--mute); }
.a-sum > div[hidden] { display: none; }
.a-sum .a-sum__total { color: var(--ink); font-family: var(--serif); font-size: 1.5rem; border-top: 1px solid var(--line); padding-top: .7rem; margin-top: .3rem; }

.a-order__fine { display: grid; gap: .4rem; text-align: center; }
.a-order__fine p { color: var(--dim); font-size: .86rem; }
.a-alt { margin-top: 3rem; text-align: center; }
.a-alt > p { color: var(--dim); font-size: .95rem; margin-bottom: 1rem; }
.a-alt__links { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.a-testnote { margin-top: 2rem; padding: 1rem 1.2rem; border-left: 2px solid var(--gold); background: rgba(216, 185, 138, .07); color: var(--mute); font-size: .92rem; }

.a-toast {
	position: fixed; left: 50%; bottom: 1.2rem; z-index: 65; width: min(100% - 2rem, 34rem);
	display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem;
	background: var(--hall); border: 1px solid rgba(138, 160, 184, .4); border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, .5); transform: translateX(-50%);
	animation: a-toast-in .7s var(--ease) both;
}
.a-toast[hidden] { display: none; }
.a-toast p { flex: 1; font-family: var(--serif); font-size: 1.1rem; line-height: 1.5; }
.a-toast__x { background: none; border: 0; padding: 0 .2rem; color: var(--mute); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.a-toast__x:hover { color: var(--ink); }
@keyframes a-toast-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }

@media (max-width: 560px) {
	.a-row2 { grid-template-columns: 1fr; }
	.a-opt { padding: .9rem 1rem; }
}


/* ==========================================================================
   Split pages (3.5): inner-page heading, home teaser, footer menu
   ========================================================================== */
.almost main:focus { outline: none; }

/* Inner pages start below the fixed menu. */
.a-pagehead { padding: clamp(8rem, 15vw, 11.5rem) 0 clamp(1rem, 3vw, 2rem); }
.a-pagehead__t {
	font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 7vw, 5rem);
	line-height: 1.04; letter-spacing: -.015em; margin-bottom: 1.2rem;
}
.a-pagehead + .a-section { padding-top: clamp(2rem, 5vw, 3.5rem); }
.a-main--solo > .a-section:first-child { padding-top: clamp(8rem, 15vw, 11.5rem); }

/* Home teaser */
.a-blurb .a-lede { margin-inline: auto; }
.a-blurb__cta { margin-top: 2.2rem; }

/* Jamie and Ethan on the Characters & World page */
.a-duosec { background: linear-gradient(180deg, var(--night), var(--hall) 60%, var(--night)); }

/* Footer menu */
.a-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; margin-bottom: 1.6rem; }
.a-footer__nav a { border-bottom: 0; color: var(--mute); transition: color .3s; }
.a-footer__nav a:hover { color: var(--ink); }


/* ==========================================================================
   3.6: privacy policy, book club guide, order extras
   ========================================================================== */

/* Small notes under forms */
.a-formnote { color: var(--dim); font-size: .85rem; line-height: 1.55; text-align: center; margin: 0; }
.a-form--story .a-formnote { text-align: left; }
.a-formnote .a-link, .a-order__fine .a-link { font-size: inherit; }

/* Order extras: signed copy, message, discount code */
.a-extras { margin: 0; min-width: 0; padding: 1.2rem 1.3rem 1.3rem; border: 1px solid rgba(233, 230, 223, .2); border-radius: 14px; display: grid; gap: 1.1rem; }
.a-extras[hidden] { display: none; }
.a-extras legend { padding: 0 .5rem; font-size: .85rem; color: var(--dim); }
.a-extras .a-check strong { font-weight: 500; color: var(--ink); }
.a-extras__fee { color: var(--dusk); }
.a-extras__hint { display: block; color: var(--dim); font-size: .88rem; margin-top: .1rem; }
.a-field[hidden] { display: none; }
.a-code__row { display: flex; gap: .8rem; align-items: flex-end; }
.a-code__row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .06em; }
.a-code__row input[readonly] { color: var(--dusk); }
.a-code__row .a-btn { margin: 0; flex: none; width: auto; }
.a-code .a-field__hint { min-height: 1.3em; }

/* Privacy policy */
.a-policy { padding-top: clamp(2rem, 5vw, 3.5rem); }
.a-policy__date { color: var(--dim); font-size: .9rem; margin-bottom: 1.2rem; }
.a-policy__intro { margin-bottom: 2rem; }
.a-policy__who { display: grid; gap: .2rem; margin-bottom: 1rem; padding: 1.2rem 1.4rem; border-left: 2px solid var(--dusk-d); background: rgba(138, 160, 184, .05); color: var(--mute); font-size: .98rem; }
.a-policy__who strong { font-weight: 500; color: var(--ink); }
.a-policy a, .a-bookclub a:not(.a-btn) { color: var(--dusk); border-bottom: 1px solid rgba(138, 160, 184, .4); }
.a-policy a:hover { color: var(--ink); border-color: var(--ink); }
.a-policy__body h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.2; margin: 2.8rem 0 .9rem; }
.a-policy__text { color: var(--mute); }
.a-policy__text p { margin: 0 0 1rem; max-width: 40rem; }
.a-policy__text ul { display: grid; gap: .6rem; margin: 0 0 1.1rem; max-width: 40rem; }
.a-policy__text li { position: relative; padding-left: 1.4rem; }
.a-policy__text li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: 1px; background: var(--dusk); }

/* Book club guide */
.a-bookclub { padding-top: clamp(2rem, 5vw, 3.5rem); }
.a-bookclub__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.a-bookclub .a-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.a-tips { max-width: none; margin-top: 0; }
.a-tips ul, .a-support ul { margin-top: .5rem; display: grid; gap: .5rem; }
.a-tips li { color: var(--mute); font-size: 1rem; }
.a-support { max-width: none; }
.a-qgroups { counter-reset: q; margin-top: clamp(2.2rem, 5vw, 3.5rem); display: grid; gap: clamp(2.2rem, 5vw, 3.4rem); }
.a-qgroup h3 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--dusk); margin-bottom: 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.a-qs { display: grid; gap: 1.5rem; }
.a-qs li { counter-increment: q; display: grid; grid-template-columns: 2.6rem 1fr; gap: .6rem; align-items: baseline; font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.55; }
.a-qs li::before { content: counter(q); font-family: var(--sans); font-weight: 300; font-size: .95rem; color: var(--dim); }
.a-support { margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.a-bookclub__invite { margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 2rem; border-top: 1px solid var(--line); text-align: center; }
.a-bookclub__invite p { color: var(--mute); font-family: var(--serif); font-size: 1.25rem; }
.a-bookclub__invite .a-bookclub__actions { justify-content: center; }

/* Printing (the Book Club page's print button, or Ctrl+P on any page): light, plain, ink-friendly */
@media print {
	.almost-html, .almost-body { background: #fff !important; }
	.almost { --night: #fff; --hall: #fff; --ink: #111; --mute: #333; --dim: #555; --dusk: #333; --dusk-d: #999; --line: #ccc; background: #fff !important; color: #111 !important; font-size: 11.5pt; }
	.a-nav, .a-menu, .a-veil, .a-skip, .a-burger, .a-toast, .a-footer__nav, .a-noprint, .a-order, .a-news { display: none !important; }
	.a-js [data-reveal], .a-js .a-w, [data-intro] { opacity: 1 !important; filter: none !important; transform: none !important; }
	.a-pagehead { padding: 0 0 .8rem !important; }
	.a-section { padding: 1rem 0 !important; background: none !important; }
	.a-pagehead__t { font-size: 28pt; }
	.almost h2 { font-size: 18pt; }
	.a-cnote, .a-policy__who { background: none !important; border-left: 2px solid #999 !important; }
	.a-qgroup, .a-cnote { break-inside: avoid; }
	.a-qgroup h3 { break-after: avoid; }
	.a-footer { padding: 1rem 0 0; border-top: 1px solid #ccc; }
	.almost a { color: #111 !important; border-bottom: 0 !important; }
}

.a-fine--tight { margin-top: 0; }
.a-opts--method .a-opt__body { line-height: 1.3; }

/* ---------- Teachers and librarians ---------- */
.a-teachers { padding-top: clamp(2rem, 5vw, 3.5rem); }
.a-teachers .a-head { margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.a-tc-block { margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.a-tc-block:first-child { margin-top: 0; }
.a-tc-block > h2, .a-tc-block > h3 { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 3.4vw, 2rem); color: var(--dusk); margin-bottom: 1.2rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.a-tc-block > p { color: var(--mute); max-width: 40rem; margin-bottom: 1rem; }
.a-tc-block > .a-fine { margin-top: 1rem; }
.a-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.a-offer { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.a-offer__t { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.15; margin-bottom: .6rem; }
.a-offer p { color: var(--mute); font-size: .98rem; }
.a-tc-cnote { max-width: none; margin-top: clamp(2.2rem, 5vw, 3.5rem); }
.a-tc-price { max-width: 40rem; margin: 1.4rem 0 0; padding: 1.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.a-tc-price__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.2rem; margin: 0; }
.a-tc-price__label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.a-tc-price__text { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--dusk); }
.a-tc-price .a-bookclub__actions { margin-top: 1rem; }

/* ==========================================================================
   v3.10: Readers' Corner (quiz, downloads, fan corner)
   ========================================================================== */
.a-anchor { height: 0; }
.a-field select { background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid rgba(233, 230, 223, .28); padding: .55rem 0; font-size: 1.05rem; font-family: var(--serif); border-radius: 0; width: 100%; }
.a-field select option { background: var(--hall); color: var(--ink); }
.a-field select:focus { outline: none; border-color: var(--dusk); }
.a-field input[type="file"] { border-bottom: 0; font-family: var(--sans); font-size: .95rem; color: var(--mute); padding: .4rem 0; }

.a-quiz { background: linear-gradient(180deg, var(--night), #0d131b 55%, var(--night)); }
.a-quiz__box { max-width: 720px; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.4rem, 4vw, 2.6rem); background: rgba(16, 21, 28, .6); text-align: center; }
.a-quiz__prog { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.a-quiz__bar { height: 2px; background: var(--line); margin: .9rem 0 1.6rem; }
.a-quiz__bar i { display: block; height: 100%; background: var(--dusk); transition: width .5s var(--ease); }
.a-quiz__q { font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 3.4vw, 2rem); line-height: 1.3; margin-bottom: 1.6rem; }
.a-quiz__answers { display: grid; gap: .7rem; text-align: left; }
.a-quiz__a { font: inherit; font-size: 1.02rem; color: var(--ink); background: transparent; border: 1px solid rgba(233, 230, 223, .22); border-radius: 4px; padding: .9rem 1.1rem; cursor: pointer; transition: border-color .3s, background .3s; text-align: left; }
.a-quiz__a:hover, .a-quiz__a:focus-visible { border-color: var(--dusk); background: rgba(138, 160, 184, .1); outline: none; }
.a-quiz__result { display: grid; gap: 1.4rem; text-align: left; align-items: center; }
@media (min-width: 640px) { .a-quiz__result { grid-template-columns: 200px 1fr; } }
.a-quiz__img { width: 100%; max-width: 220px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; margin: 0 auto; }
.a-quiz__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.1; margin: .2rem 0 .8rem; }
.a-quiz__acts { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1.4rem; }

.a-dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.8rem; }
.a-dl { border-top: 1px solid var(--line); padding-top: 1.2rem; display: grid; gap: .6rem; align-content: start; }
.a-dl__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: #121922; }
.a-dl h3 { font-family: var(--serif); font-weight: 300; font-size: 1.35rem; }
.a-dl p { color: var(--mute); font-size: .98rem; }
.a-dl .a-btn { justify-self: start; margin-top: .4rem; }

.a-fan-grid { columns: 260px; column-gap: 1.6rem; margin-bottom: clamp(3rem, 7vw, 5rem); }
.a-fanpost { break-inside: avoid; margin: 0 0 1.6rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.a-fanpost img { width: 100%; height: auto; border-radius: 4px; display: block; margin-bottom: .9rem; }
.a-fanpost blockquote { font-family: var(--serif); font-size: 1.08rem; line-height: 1.65; color: #d3d1cb; }
.a-fanpost figcaption { margin-top: .7rem; font-size: .9rem; color: var(--dim); }


/* ---------- Quote cards, song pictures, add to calendar, press kit (3.12.0) ---------- */
.a-quotes { background: linear-gradient(180deg, var(--night), #0d131b 55%, var(--night)); }
.a-quote-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.a-qcard { margin: 0; border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.4rem, 3vw, 2rem); background: rgba(16, 21, 28, .6); display: flex; flex-direction: column; gap: 1rem; }
.a-qcard blockquote { margin: 0; flex: 1; }
.a-qcard blockquote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4; }
.a-qcard blockquote p::before { content: "\201C"; display: block; color: var(--dusk); font-size: 3rem; line-height: .6; margin-bottom: .5rem; }
.a-qcard figcaption { color: var(--dusk); font-family: var(--serif); font-style: italic; }
.a-qcard__acts { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.a-qcard__acts .a-fine, .a-quiz__acts .a-fine, .a-song__acts .a-fine, .a-copyable .a-fine, .a-selshare .a-fine { margin: 0; }

.a-selshare { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; gap: .8rem; align-items: center; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 13, 18, .94); box-shadow: 0 8px 30px rgba(0, 0, 0, .45); }
.a-selshare[hidden] { display: none; }

.a-song__acts { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; }
.a-song__share { font: inherit; font-size: .95rem; background: none; cursor: pointer; border-top: 0; border-left: 0; border-right: 0; }

.a-cal { margin-top: 1.6rem; }
.a-cal__t { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: .8rem; }
.a-cal__btns { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

.a-press__block { margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.a-press__block > h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 1rem; }
.a-press__tag { font-family: var(--serif); font-style: italic; color: var(--dusk); font-size: 1.15rem; margin-bottom: 1.2rem; }
.a-press__facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.a-press__facts > div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.a-press__facts dt { color: var(--dim); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.a-press__facts dd { margin: 0; }
.a-copyable { margin-bottom: 1.6rem; }
.a-copyable h4, .a-press .a-dl h4 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: .6rem; }
.a-copyable p { margin-bottom: .8rem; line-height: 1.65; }
.a-copyable .a-btn { margin-right: .8rem; }
.a-press__topics { padding-left: 1.2rem; display: grid; gap: .5rem; }
.a-press__cta { text-align: center; padding-top: 1rem; }
.a-press__cta p { margin-bottom: 1rem; }
@media print { .a-selshare, .a-cal { display: none !important; } }

/* ==========================================================================
   Letters: extra fiction from Jamie and Ethan, written by hand on paper.
   Jamie writes in blue-black pen, Ethan in brown ink. Class prefix is a-ltr so it never
   touches the Dear Reader paper (.a-letter). Text conversations stay as chat bubbles.
   ========================================================================== */
.a-ltrs { padding-top: clamp(2rem, 5vw, 3.5rem); background: radial-gradient(70% 40% at 50% 30%, #121923, var(--night)); }
.a-ltrs .a-head { margin-bottom: clamp(1.4rem, 3vw, 2rem); }
.a-ltrs__note { border-left: 2px solid var(--dusk); background: rgba(138, 160, 184, .07); color: var(--mute); padding: 1rem 1.2rem; font-size: .95rem; margin-bottom: 1.6rem; }
.a-ltrs__next { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; color: var(--mute); font-family: var(--serif); font-style: italic; font-size: 1.2rem; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.a-ltr-list { display: grid; gap: clamp(2.6rem, 6vw, 4.2rem); }

/* The page */
.a-ltr {
	--lh: 2.15rem;                 /* one ruled line; text and rules share it so the writing sits on the lines */
	--pen: #22324a;                /* Jamie */
	--paper: #e7e2d6;
	--rule: rgba(52, 71, 94, .2);
	position: relative; color: var(--pen); scroll-margin-top: 6rem;
	padding: clamp(1.8rem, 5vw, 3rem) clamp(1.4rem, 6vw, 3.4rem) clamp(1.6rem, 4vw, 2.4rem);
	background-color: var(--paper);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .2  0 0 0 0 .15  0 0 0 .1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
		linear-gradient(90deg, rgba(0, 0, 0, .09), transparent 5%, transparent 95%, rgba(0, 0, 0, .06));
	box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .85), 0 2px 0 rgba(255, 255, 255, .5) inset;
	transform: rotate(-.4deg);
}
.a-ltr:nth-child(even) { transform: rotate(.35deg); }
.a-ltr--ethan { --pen: #4a3318; }
.a-ltr:target { box-shadow: 0 0 0 2px var(--dusk), 0 40px 70px -28px rgba(0, 0, 0, .85); }

/* Printed bits on the page (small, quiet, not handwriting) */
.a-ltr__top { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #7a7365; }
.a-ltr__badge { font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.a-ltr .a-ltr__badge { color: #8a8373; }
.a-ltr__new { display: inline-block; padding: .08rem .6rem; border: 1.5px solid #a8453c; border-radius: 3px; color: #a8453c; font-weight: 500; letter-spacing: .14em; transform: rotate(-4deg); }

/* Handwriting */
.almost .a-ltr__t { font-family: var(--hand); font-weight: 500; font-size: clamp(2.2rem, 5.5vw, 3rem); line-height: 1.05; margin: .9rem 0 .2rem; color: var(--pen); letter-spacing: 0; }
.a-ltr__meta { font-family: var(--hand); font-size: clamp(1.35rem, 3vw, 1.6rem); line-height: 1.2; color: var(--pen); opacity: .78; }
.a-ltr__body { position: relative; margin-top: 1.1rem; }
.a-ltr:not(.a-ltr--texts) .a-ltr__body {
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), var(--rule) calc(var(--lh) - 1px), var(--rule) var(--lh));
	padding-bottom: var(--lh);
}
.a-ltr__body > p { font-family: var(--hand); font-weight: 500; font-size: clamp(1.5rem, 3.4vw, 1.85rem); line-height: var(--lh); margin: 0 0 var(--lh); max-width: none; color: var(--pen); overflow-wrap: anywhere; }
.a-ltr__body > p:last-child { margin-bottom: 0; }
.a-ltr__posted { margin-top: 1.4rem; text-align: right; font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; color: #8a8373; }

/* Folded letter: two faint creases */
.a-ltr--letter::before, .a-ltr--letter::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .08), rgba(255, 255, 255, .35) 60%, transparent); }
.a-ltr--letter::before { top: 33%; }
.a-ltr--letter::after { top: 66%; }

/* Unsent: a little older and greyer, tilted a touch more, ink a bit faded */
.a-ltr--unsent { --paper: #dedacd; --rule: rgba(52, 71, 94, .16); transform: rotate(.7deg); }
.a-ltr--unsent:nth-child(even) { transform: rotate(-.7deg); }
.a-ltr--unsent .a-ltr__body > p { opacity: .9; }

/* Diary: notebook page with a red margin line and two bits of tape */
.a-ltr--diary { padding-left: clamp(3.6rem, 10vw, 5.4rem); --paper: #ebe6d9; }
.a-ltr--diary::before { content: ""; position: absolute; top: -.8rem; left: 12%; width: 6.5rem; height: 1.7rem; background: rgba(216, 185, 138, .6); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.a-ltr--diary::after { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(2.6rem, 7.5vw, 4rem); width: 1px; background: rgba(168, 69, 60, .4); box-shadow: 3px 0 0 rgba(168, 69, 60, .18); }

/* Text conversations: a dark phone-style card, not paper */
.a-ltr--texts { color: var(--ink); background: linear-gradient(180deg, rgba(20, 27, 36, .95), rgba(12, 16, 22, .8)); border: 1px solid var(--line); box-shadow: none; }
.a-ltr--texts, .a-ltr--texts:nth-child(even) { transform: none; }
.a-ltr--texts .a-ltr__top, .a-ltr--texts .a-ltr__badge { color: var(--dusk); }
.a-ltr--texts .a-ltr__badge { color: var(--dim); }
.almost .a-ltr--texts .a-ltr__t { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 3.6vw, 2.3rem); color: var(--ink); }
.a-ltr--texts .a-ltr__meta { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--dusk); opacity: 1; }
.a-ltr--texts .a-ltr__posted { color: var(--dim); }
.a-ltr--texts .a-ltr__new { border-color: var(--gold); color: var(--gold); }

.a-bubbles { display: grid; gap: .45rem; max-width: 26rem; }
.a-bubble { max-width: 84%; padding: .5rem .9rem; border-radius: 1.1rem; font-size: 1rem; line-height: 1.45; overflow-wrap: anywhere; }
.a-bubble--out { justify-self: end; background: rgba(138, 160, 184, .22); border-bottom-right-radius: .3rem; }
.a-bubble--in { justify-self: start; background: rgba(216, 185, 138, .16); border-bottom-left-radius: .3rem; }
.a-bubble--note { justify-self: center; max-width: 100%; background: none; color: var(--dim); font-size: .8rem; letter-spacing: .06em; text-align: center; }
.a-bubble__who { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin-bottom: .1rem; }

/* Home teaser: a scrap of the newest letter */
.a-ltr-tease .a-ltr__meta { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--dusk); opacity: 1; }
.a-ltr-tease__paper { position: relative; max-width: 30rem; margin: 1.6rem auto 1rem; padding: 1.4rem 1.6rem; text-align: left; transform: rotate(-.8deg);
	background-color: #e7e2d6; color: #22324a;
	background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 1.89rem, rgba(52, 71, 94, .2) 1.89rem, rgba(52, 71, 94, .2) 1.9rem), linear-gradient(90deg, rgba(0, 0, 0, .08), transparent 6%, transparent 94%, rgba(0, 0, 0, .05));
	box-shadow: 0 30px 50px -22px rgba(0, 0, 0, .85), 0 2px 0 rgba(255, 255, 255, .5) inset; }
.a-ltr-tease__paper.a-ltr--ethan { color: #4a3318; }
.a-ltr-tease__text { font-family: var(--hand); font-weight: 500; font-size: clamp(1.45rem, 3.2vw, 1.75rem); line-height: 1.9rem; margin: 0; color: inherit; }
.a-ltr-tease__paper.is-texts { background: rgba(20, 27, 36, .9); background-image: none; color: var(--ink); border: 1px solid var(--line); box-shadow: none; transform: none; }
.a-ltr-tease__paper.is-texts .a-ltr-tease__text { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.6; }
.a-ltr-tease .a-blurb__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }

@media (max-width: 560px) {
	.a-ltr, .a-ltr:nth-child(even), .a-ltr--unsent, .a-ltr--unsent:nth-child(even), .a-ltr-tease__paper { transform: none; }
	.a-ltr--diary { padding-left: 3.4rem; }
}

/* Hidden feature: a letter with a "story behind it" flips over like a card when clicked or tapped. No visible hint.
   The article is only a shell; the two faces carry the paper, so each one turns with its own paper. */
.a-ltr--turns { cursor: pointer; -webkit-tap-highlight-color: transparent; perspective: 1600px; padding: 0; background: none; box-shadow: none; border: 0; }
.a-ltr--turns:focus-visible { outline: 2px solid var(--dusk); outline-offset: 4px; }
.a-ltr--turns::before, .a-ltr--turns::after { display: none; }
.a-ltr--turns .a-ltr__flip { display: grid; position: relative; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.45, .05, .25, 1); }
.a-ltr--turns.is-flipped .a-ltr__flip { transform: rotateY(180deg); }
.a-ltr--turns .a-ltr__face {
	grid-area: 1 / 1; position: relative; min-width: 0;
	-webkit-backface-visibility: hidden; backface-visibility: hidden;
	padding: clamp(1.8rem, 5vw, 3rem) clamp(1.4rem, 6vw, 3.4rem) clamp(1.6rem, 4vw, 2.4rem);
	background-color: var(--paper);
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .25  0 0 0 0 .2  0 0 0 0 .15  0 0 0 .1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"),
		linear-gradient(90deg, rgba(0, 0, 0, .09), transparent 6%, transparent 94%, rgba(0, 0, 0, .06));
	box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .85), 0 2px 0 rgba(255, 255, 255, .5) inset;
}
.a-ltr--turns:target .a-ltr__face { box-shadow: 0 0 0 2px var(--dusk), 0 40px 70px -28px rgba(0, 0, 0, .85); }
.a-ltr--turns .a-ltr__back { transform: rotateY(180deg); }
/* Same paper details as the page, now on the faces */
.a-ltr--letter.a-ltr--turns .a-ltr__face::before, .a-ltr--letter.a-ltr--turns .a-ltr__face::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .08), rgba(255, 255, 255, .35) 60%, transparent); }
.a-ltr--letter.a-ltr--turns .a-ltr__face::before { top: 33%; }
.a-ltr--letter.a-ltr--turns .a-ltr__face::after { top: 66%; }
.a-ltr--diary.a-ltr--turns .a-ltr__face { padding-left: clamp(3.6rem, 10vw, 5.4rem); }
.a-ltr--diary.a-ltr--turns .a-ltr__face::before { content: ""; position: absolute; top: -.8rem; left: 12%; width: 6.5rem; height: 1.7rem; background: rgba(216, 185, 138, .6); transform: rotate(-3deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.a-ltr--diary.a-ltr--turns .a-ltr__face::after { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(2.6rem, 7.5vw, 4rem); width: 1px; background: rgba(168, 69, 60, .4); box-shadow: 3px 0 0 rgba(168, 69, 60, .18); }
.a-ltr--texts.a-ltr--turns .a-ltr__face { background: linear-gradient(180deg, rgba(20, 27, 36, .98), rgba(12, 16, 22, .96)); border: 1px solid var(--line); box-shadow: none; }
.a-ltr__back-t { font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #7a7365; margin: 0 0 1rem; }
.a-ltr--texts .a-ltr__back-t { color: var(--dusk); }
.a-ltr__back-p { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.6vw, 1.3rem); line-height: 1.7; margin: 0 0 1rem; max-width: none; color: var(--pen); overflow-wrap: anywhere; }
.a-ltr--texts .a-ltr__back-p, .a-ltr--texts .a-ltr__back-sign { color: var(--ink); }
.a-ltr__back-sign { font-family: var(--hand); font-size: 1.7rem; margin: 1.2rem 0 0; text-align: right; color: var(--pen); }
@media (max-width: 560px) { .a-ltr--diary.a-ltr--turns .a-ltr__face { padding-left: 3.4rem; } }
@media (prefers-reduced-motion: reduce) { .a-ltr--turns .a-ltr__flip { transition: none; } }

/* Share a letter: button on the page, and the window with the picture */
.a-ltr__share { margin-top: 1rem; text-align: left; }
.a-ltr__sharebtn { font: 500 .74rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--pen); background: transparent; border: 1.5px solid currentColor; border-radius: 999px; padding: .65rem 1.1rem; cursor: pointer; opacity: .8; transition: opacity .2s, background-color .2s; }
.a-ltr__sharebtn:hover, .a-ltr__sharebtn:focus-visible { opacity: 1; background: rgba(0, 0, 0, .06); }
.a-ltr--texts .a-ltr__sharebtn { color: var(--ink); }
.a-ltr--texts .a-ltr__sharebtn:hover, .a-ltr--texts .a-ltr__sharebtn:focus-visible { background: rgba(255, 255, 255, .08); }
.a-letter-share { margin: clamp(1.4rem, 3vw, 2rem) 0 0; text-align: center; }
.a-letter-share__btn { font: 500 .78rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 99px; padding: .85rem 1.5rem; cursor: pointer; transition: border-color .3s, background .3s; }
.a-letter-share__btn:hover, .a-letter-share__btn:focus-visible { border-color: var(--dusk); background: rgba(138, 160, 184, .08); }
.a-share { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1rem; }
.a-share__back { position: absolute; inset: 0; background: rgba(5, 8, 12, .82); }
.a-share__panel { position: relative; width: min(30rem, 100%); max-height: 100%; overflow: auto; background: #111822; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem 1.2rem 1.3rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.a-share__x { position: absolute; top: .5rem; right: .6rem; width: 2.4rem; height: 2.4rem; border: 0; background: transparent; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.a-share__h { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; margin: 0 2.4rem 1rem 0; color: var(--ink); }
.a-share__img { min-height: 8rem; display: grid; place-items: center; background: #0a0d12; border-radius: 8px; overflow: hidden; }
.a-share__img img { display: block; width: 100%; height: auto; max-height: 60vh; object-fit: contain; }
.a-share__wait { color: var(--mute); font-style: italic; padding: 2rem 1rem; }
.a-share__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.a-share__btn { flex: 1 1 auto; font: 500 .8rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: .85rem 1.1rem; cursor: pointer; }
.a-share__btn:hover, .a-share__btn:focus-visible { border-color: var(--dusk); }
.a-share__btn.is-main { background: var(--gold); border-color: var(--gold); color: #1a1408; }
.a-share__msg { margin: .8rem 0 0; min-height: 1.2em; font-size: .9rem; color: var(--mute); overflow-wrap: anywhere; }

/* Letters that lead to each other: a clue at the end of a letter, and an optional link to the next one */
.a-ltr__clue { margin-top: 1.6rem; }
.a-ltr__clue-t { font-family: var(--hand); font-weight: 500; font-size: clamp(1.45rem, 3.2vw, 1.75rem); line-height: 1.35; color: var(--pen); opacity: .85; margin: 0; max-width: none; transform: rotate(-.6deg); overflow-wrap: anywhere; }
.a-ltr--texts .a-ltr__clue-t { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--dusk); opacity: 1; transform: none; }
.a-ltr__thread { margin: .6rem 0 0; font: 500 .74rem/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.a-ltr__thread a { color: var(--pen); text-decoration: underline; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.a-ltr--texts .a-ltr__thread a { color: var(--gold); }
.a-ltr__thread--admin { text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .8rem; color: #a8453c; }

/* Sealed letters: shown as a closed envelope until the reader turns the page of the letter that leads to it */
.a-ltr__seal { display: none; }
.a-js .a-ltr.is-locked { background: none; box-shadow: none; padding: 0; transform: none; cursor: default; }
.a-js .a-ltr.is-locked::before, .a-js .a-ltr.is-locked::after { display: none; }
.a-js .a-ltr.is-locked .a-ltr__flip { display: none; }
.a-js .a-ltr.is-locked .a-ltr__seal { display: block; text-align: center; padding: clamp(1.8rem, 5vw, 2.8rem) 1.4rem; background: rgba(20, 27, 36, .6); border: 1.5px dashed var(--dusk-d); border-radius: 4px; color: var(--mute); }
.a-ltr__lock { color: var(--dusk); }
.a-ltr__seal-k { font: 500 .72rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: .8rem 0 .5rem; }
.a-ltr__seal-t { font-family: var(--serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; margin: 0 auto; max-width: 28rem; color: var(--mute); }
.a-ltr.is-unsealed { animation: a-unseal 1.1s ease both; }
@keyframes a-unseal { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.a-ltr__unlock { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.a-ltr--texts .a-ltr__unlock { border-top-color: var(--line); }
@media (prefers-reduced-motion: reduce) { .a-ltr.is-unsealed { animation: none; } }

/* A quiet hint on a letter that opens another: one more page peeks out from behind it, a little crooked (two corners show) */
.a-ltr--turns[data-opens] { isolation: isolate; }
.a-ltr--turns[data-opens]::before {
	content: ""; display: block; position: absolute; inset: 0; width: auto; height: auto; z-index: -1; pointer-events: none;
	background: linear-gradient(rgba(0, 0, 0, .08), rgba(0, 0, 0, .08)), var(--paper); border: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 18px 30px -18px rgba(0, 0, 0, .7);
	transform: translate(-3px, -6px) rotate(-1.8deg);
	transition: transform .5s ease;
}
.a-ltr--turns[data-opens]::after { display: none; }
.a-ltr--turns[data-opens]:hover::before { transform: translate(-4px, -8px) rotate(-2.3deg); }
.a-ltr--texts.a-ltr--turns[data-opens]::before { background: #1a232e; border: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce) { .a-ltr--turns[data-opens]::before { transition: none; } }
