/* Editorial landing — extends style.v10.css tokens. Motion uses transform/opacity only. */
.lx { --ink: #0b1a2a; --ink-2: #13293f; --gold: #c9a15a; --gold-2: #e6c88f; --paper-2: #fbf7ee; }
.ic { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; flex: none; }
.pin-chip { display: inline-flex; align-items: center; gap: .3em; font-size: 13px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line, #e5dcc8); color: var(--copper, #a8702c); white-space: nowrap; }
.pin-chip.on-dark { border-color: rgba(230,200,143,.35); color: var(--gold-2); }
.lx-h { display: flex; align-items: center; gap: .45em; font-family: "Aref Ruqaa", serif; font-size: clamp(26px, 4vw, 38px); color: var(--navy, #16324f); margin: 0 0 18px; }
.lx-h .ic { color: var(--copper, #a8702c); }
.lx-note { font-size: 13px; color: var(--copper, #a8702c); margin: 10px 0 0; }
.lx-note.on-dark { color: rgba(230,200,143,.8); }
.lx-section { padding: clamp(34px, 6vw, 72px) 0; }

/* ---------- hero: dark "cover story" with a pointer spotlight ---------- */
.lx-hero { position: relative; overflow: hidden; color: #f4ecdc; padding: clamp(28px, 6vw, 80px) 0 clamp(24px, 4vw, 44px);
  background: radial-gradient(90% 70% at 85% 0%, #1d3a5c 0%, transparent 60%), linear-gradient(170deg, var(--ink), var(--ink-2)); }
.lx-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 3px); mix-blend-mode: overlay; }
.lx-spot { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: radial-gradient(420px circle at var(--sx, 78%) var(--sy, 30%), rgba(230,200,143,.16), transparent 60%); transition: background-position .2s; }
.lx-hero-in { position: relative; display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(20px, 5vw, 64px); align-items: center; }
.lx-dateline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.lx-today { font-size: 13px; opacity: .75; }
.lx-kicker { color: var(--gold-2); font-size: 15px; margin: 0 0 6px; letter-spacing: .01em; }
.lx-name { font-family: "Aref Ruqaa", serif; font-size: clamp(46px, 9vw, 104px); line-height: 1.05; margin: 0 0 14px; color: #fff;
  background: linear-gradient(100deg, #fff 30%, var(--gold-2) 50%, #fff 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: lx-sheen 2.2s .6s ease-out 1 both; }
@keyframes lx-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
.lx-lede { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.95; max-width: 32em; opacity: .9; margin: 0 0 22px; }
.lx-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.lx-btn { display: inline-flex; align-items: center; gap: .45em; min-height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: var(--gold); color: #10202f; transition: transform .2s ease-out, background .2s; }
.lx-btn.ghost { background: transparent; color: #f4ecdc; border: 1px solid rgba(244,236,220,.35); }
.lx-btn:hover { background: var(--gold-2); } .lx-btn.ghost:hover { background: rgba(255,255,255,.08); }
.lx-btn:focus-visible, .lx-book:focus-visible, .lw-card:focus-visible, .lx-rail:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.lx-portrait { border-radius: 22px; background: #e9eef6; box-shadow: 0 30px 70px rgba(0,0,0,.45); max-width: 380px; justify-self: center; transform: rotate(-1.5deg); }
.lx-portrait figcaption { position: absolute; bottom: 10px; inset-inline-start: 12px; font-size: 12px; color: #16324f; background: rgba(255,255,255,.78); padding: 3px 10px; border-radius: 999px; }
/* the hero portrait flashes on load, no scroll needed */
.flash-photo.is-hero::after { animation: press-flash 1.1s .5s ease-out 1 both; }
.flash-photo.is-hero img { animation: press-exposure 1.1s .5s ease-out 1 both; }
.lx-stats { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: clamp(26px, 4vw, 44px) auto 0; padding: 0;
  border-top: 1px solid rgba(230,200,143,.25); }
.lx-stats li { padding: 18px 8px 4px; text-align: center; }
.lx-stats b { display: block; font-size: clamp(30px, 5vw, 46px); font-weight: 600; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.lx-stats span { font-size: 13px; opacity: .8; }

/* ---------- outlet wall: greyscale, colour returns under a sweeping spotlight ---------- */
.lx-band { background: var(--paper-2); padding: clamp(30px, 5vw, 56px) 0; border-block: 1px solid var(--line, #e5dcc8); }
.ol-wall { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ol-item { position: relative; overflow: hidden; display: grid; justify-items: center; gap: 6px; padding: 22px 12px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line, #e5dcc8); text-align: center; }
.ol-item img { height: 40px; width: auto; max-width: 140px; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .75; transition: filter .6s, opacity .6s; }
.ol-item::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(120%);
  background: linear-gradient(105deg, transparent 35%, rgba(201,161,90,.22) 50%, transparent 65%); }
.lx-band.on .ol-item img, .ol-item:hover img { filter: none; opacity: 1; }
.lx-band.on .ol-item::after { animation: ol-sweep 1.2s ease-out 1 both; }
.lx-band.on .ol-item:nth-child(2)::after, .lx-band.on .ol-item:nth-child(2) img { animation-delay: .15s; transition-delay: .15s; }
.lx-band.on .ol-item:nth-child(3)::after, .lx-band.on .ol-item:nth-child(3) img { animation-delay: .3s; transition-delay: .3s; }
.lx-band.on .ol-item:nth-child(4)::after, .lx-band.on .ol-item:nth-child(4) img { animation-delay: .45s; transition-delay: .45s; }
@keyframes ol-sweep { to { transform: translateX(-120%); } }
.ol-name { font-weight: 600; color: var(--navy, #16324f); }
.ol-note { font-size: 12.5px; color: var(--copper, #a8702c); }

/* ---------- books: snap slider ---------- */
.lx-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.lx-book { display: grid; gap: 8px; padding: 18px; border-radius: 20px; text-decoration: none; color: #f4ecdc; transition: transform .25s ease-out; }
.lx-book.t-peacock { background: linear-gradient(160deg, #062a26, #0c4a43); }
.lx-book.t-night { background: linear-gradient(160deg, #0f2438, #23407a); }
.lx-book:hover { transform: translateY(-4px); }
.lx-book img { width: 62%; height: auto; justify-self: center; border-radius: 4px 10px 10px 4px; box-shadow: -10px 18px 36px rgba(0,0,0,.45); transform: perspective(900px) rotateY(12deg); transition: transform .4s ease-out; }
.lx-book:hover img { transform: perspective(900px) rotateY(0deg); }
.lb-kind { font-size: 13px; color: var(--gold-2); }
.lb-title { font-family: "Aref Ruqaa", serif; font-size: 28px; }
.lb-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-meta .pin-chip { color: var(--gold-2); border-color: rgba(230,200,143,.35); }

/* ---------- calendar: next anniversary + this week in the archive ---------- */
.lx-cal { background: var(--paper-2); }
.lx-cal-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.cal-card, .otd-card { border-radius: 20px; padding: clamp(20px, 3vw, 30px); background: #fff; border: 1px solid var(--line, #e5dcc8); }
.cal-card { background: linear-gradient(160deg, var(--ink), var(--ink-2)); color: #f4ecdc; border: 0; }
.cal-card .lx-h { color: #fff; } .cal-card .lx-h .ic { color: var(--gold-2); }
.cal-title { font-size: 18px; line-height: 1.8; margin: 0 0 10px; }
.cal-count { display: flex; align-items: baseline; gap: 10px; }
.cal-count b { font-size: clamp(52px, 9vw, 84px); line-height: 1; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.cal-meta { font-size: 13px; opacity: .8; margin: 10px 0 0; }
.otd-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.otd-list a { display: block; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #e5dcc8); text-decoration: none; color: inherit; line-height: 1.7; }
.otd-list a:hover { border-color: var(--copper, #a8702c); }
.otd-list small { display: block; color: var(--copper, #a8702c); font-size: 12.5px; }

/* ---------- timeline rail: horizontal scroll-snap ---------- */
.lx-rail { list-style: none; margin: 0; padding: 8px max(16px, calc((100vw - 1180px) / 2)) 20px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.tl-item { scroll-snap-align: start; position: relative; padding-top: 34px; }
.tl-item::before { content: ""; position: absolute; top: 14px; inset-inline: -8px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); opacity: .5; }
.tl-year { position: absolute; top: 0; inset-inline-start: 0; font-family: "Aref Ruqaa", serif; font-size: 22px; color: var(--copper, #a8702c); background: var(--paper, #fbf7ee); padding-inline-end: 8px; }
.tl-card { height: 100%; border-radius: 16px; padding: 16px; background: #fff; border: 1px solid var(--line, #e5dcc8); display: grid; gap: 8px; align-content: start; }
.tl-card > .ic { color: var(--copper, #a8702c); width: 22px; height: 22px; }
.k-award .tl-card { border-color: rgba(201,161,90,.6); }
.k-book .tl-card { background: linear-gradient(170deg, #fff, #f6efe0); }
.tl-card p { margin: 0; line-height: 1.8; }
.tl-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tl-src { font-size: 12.5px; color: var(--copper, #a8702c); }
.tl-more { display: inline-block; margin-top: 12px; color: var(--copper, #a8702c); font-weight: 600; text-decoration: none; }
.tl-more:hover { text-decoration: underline; }

/* ---------- latest writing ---------- */
.lw-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lw-card { height: 100%; display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line, #e5dcc8); text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.lw-card:hover { transform: translateY(-3px); border-color: var(--copper, #a8702c); }
.lw-meta { font-size: 12.5px; color: var(--copper, #a8702c); display: flex; gap: .35em; align-items: center; }
.lw-meta time { unicode-bidi: isolate; }
.lw-title { font-size: 18px; line-height: 1.75; font-weight: 600; }
.lw-go { color: var(--copper, #a8702c); }

/* ---------- closing quote ---------- */
.lx-quote { background: linear-gradient(170deg, var(--ink), var(--ink-2)); color: #fff; text-align: center; padding: clamp(40px, 7vw, 90px) 0; }
.lx-quote blockquote { margin: 0 auto; max-width: 22em; font-family: "Aref Ruqaa", serif; font-size: clamp(26px, 4.6vw, 44px); line-height: 1.7; }

/* ---------- dark theme ---------- */
html[data-theme="dark"] .lx-band, html[data-theme="dark"] .lx-cal { background: var(--mist, #20262f); }
html[data-theme="dark"] .ol-item, html[data-theme="dark"] .otd-card, html[data-theme="dark"] .tl-card, html[data-theme="dark"] .lw-card { background: var(--paper, #1a2029); }
html[data-theme="dark"] .k-book .tl-card { background: var(--paper, #1a2029); }
html[data-theme="dark"] .tl-year { background: var(--ivory, #12161d); }

/* ---------- mobile first adjustments ---------- */
@media (max-width: 860px) {
  .lx-hero-in { grid-template-columns: 1fr; }
  .lx-portrait { order: -1; max-width: 230px; }
  .lx-copy { text-align: center; }
  .lx-dateline, .lx-cta { justify-content: center; }
  .lx-lede { margin-inline: auto; }
  .lx-stats { grid-template-columns: repeat(2, 1fr); }
  .ol-wall { grid-template-columns: repeat(2, 1fr); }
  .lx-cal-in, .lw-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .lx-books { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .lx-book { scroll-snap-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-name, .flash-photo.is-hero::after, .flash-photo.is-hero img, .lx-band.on .ol-item::after { animation: none; }
  .lx-name { background: none; -webkit-text-fill-color: #fff; }
}
/* the hero carries the name, so the home page drops the duplicate masthead line */
body:has(.lx) .mast-name { display: none; }

/* ---------- newsletter ---------- */
.lx-news { background: var(--paper-2); border-top: 1px solid var(--line, #e5dcc8); }
.nl-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: center; }
.nl-lede { margin: 0; color: var(--muted, #5b5345); line-height: 1.9; }
.nl-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.nl-form input[type="email"] { font: inherit; font-size: 16px; min-height: 48px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line, #e5dcc8); background: #fff; color: #1c2733; }
.nl-form input[type="email"]:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.nl-form { position: relative; }
.nl-hp { position: absolute; top: 0; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }
.nl-msg { grid-column: 1 / -1; margin: 0; min-height: 1.6em; font-size: 14px; color: var(--copper, #a8702c); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) { .nl-in { grid-template-columns: minmax(0, 1fr); text-align: center; } .nl-form { grid-template-columns: minmax(0, 1fr) auto; } .nl-form input[type="email"] { min-width: 0; width: 100%; box-sizing: border-box; } }
.lx-quote bdi { white-space: nowrap; }
