/* Loreline look, shared by the storefront and Atlas (body.lh).
   World: a game master's candlelit table. Warm ink ground, parchment text, the logo's red and gold.
   Type: Cormorant Garamond for display (matches the painted serif of the logo), Instrument Sans for reading.
   The theme layer maps the Tailwind utilities used across the markup and scripts onto this palette. */
:root {
  --ink: #100e0c;          /* page ground, warm near-black */
  --ink-2: #17140f;        /* raised surface */
  --ink-3: #201b15;        /* field / hover */
  --rule: #2d2620;         /* hairlines */
  --parch: #efe7d8;        /* primary text */
  --parch-2: #b9ae9c;      /* secondary text: 8.0:1 on --ink */
  --parch-3: #968a78;      /* tertiary: 5.2:1 on --ink */
  --red: #c4303a;          /* the logo's red */
  --red-hi: #a8262f;       /* primary hover: deeper, white on it is 7.0:1 (the lighter red fell to 4.4:1) */
  --field: #71655a;        /* input edges: 3.4:1 on --ink, 3.25:1 on --ink-2 */
  --gold: #d9a95b;         /* the logo's gold */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}
body.lh { font-family: 'Instrument Sans', system-ui, sans-serif; background: var(--ink); color: var(--parch); font-feature-settings: "ss01"; }
body.lh .font-display, .lh-display { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
body.lh ::selection { background: var(--red); color: #fff; }
body.lh { scrollbar-color: #3a3129 var(--ink); }
body.lh :focus-visible { outline: 2px solid var(--gold) !important; outline-offset: 2px; }
body.lh .obsidian-card { background: var(--ink-2); border-color: var(--rule); }
body.lh .crimson-glow { box-shadow: none; }
body.lh header.sticky { background: color-mix(in srgb, var(--ink) 92%, transparent); border-color: var(--rule); }
body.lh footer { background: var(--ink); border-color: var(--rule); }
body.lh .text-zinc-400 { color: var(--parch-2); }
body.lh .text-zinc-500 { color: var(--parch-3); }
body.lh p, body.lh li { text-wrap: pretty; }
body.lh h1, body.lh h2, body.lh h3 { text-wrap: balance; }

/* Buttons: one pair, they press (Emil: scale 0.97, 160ms strong ease-out; hover only on real pointers). */
.lh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem;
  border-radius: 6px; font-weight: 600; font-size: .95rem; letter-spacing: 0; transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease; }
.lh-btn:active { transform: scale(0.97); }
.lh-btn-primary { background: var(--red); color: #fff; }
.lh-btn-quiet { background: transparent; color: var(--parch); border: 1px solid var(--rule); }
@media (hover: hover) and (pointer: fine) {
  .lh-btn-primary:hover { background: var(--red-hi); }
  .lh-btn-quiet:hover { border-color: #4a3f34; background: var(--ink-3); }
}

.lh-nav { gap: .25rem; }
.lh-navlink { padding: .5rem .8rem; border-radius: 6px; font-size: .9rem; font-weight: 500; color: var(--parch-2); transition: color 160ms ease, background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .lh-navlink:hover { color: var(--parch); background: var(--ink-3); } }
.lh-btn-sm { min-height: 40px; padding: 0 1rem; font-size: .9rem; }
/* ── Theme layer: older Tailwind markup on the guide, legal and account pages picks up the same world ── */
body.lh .text-white { color: var(--parch); }
body.lh .text-zinc-100, body.lh .text-zinc-200 { color: var(--parch); }
body.lh .text-zinc-300 { color: #d6ccbb; }
body.lh .text-red-400, body.lh .text-red-300 { color: var(--gold); }
body.lh .text-\[10px\], body.lh .text-\[11px\] { font-size: .8125rem; line-height: 1.45; }
body.lh .text-xs { font-size: .875rem; line-height: 1.5; }
body.lh .bg-obsidian-950 { background-color: var(--ink); }
body.lh .bg-obsidian-900, body.lh .bg-obsidian-800 { background-color: var(--ink-2); }
body.lh .border-zinc-700, body.lh .border-zinc-800, body.lh .border-zinc-800\/80, body.lh .border-zinc-800\/90, body.lh .border-zinc-900 { border-color: var(--rule); }
body.lh .obsidian-card, body.lh .obsidian-panel { background: var(--ink-2); border: 1px solid var(--rule); border-radius: 12px; }
body.lh .rounded-sm { border-radius: 6px; }
body.lh .bg-red-600 { background-color: var(--red); }
@media (hover: hover) and (pointer: fine) { body.lh .hover\:bg-red-500:hover { background-color: var(--red-hi); } }
body.lh .uppercase.tracking-wider, body.lh .uppercase.tracking-widest { text-transform: none; letter-spacing: 0; }
body.lh [class*="shadow-red-"], body.lh [class*="shadow-lg"] { box-shadow: none; }
body.lh a.underline { text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); text-underline-offset: 3px; }
body.lh code, body.lh .font-mono { font-size: .9em; }
body.lh input[type="checkbox"] { accent-color: var(--red); }
body.lh input:not([type="checkbox"]):not([type="radio"]), body.lh select, body.lh textarea { background-color: var(--ink); border-color: var(--field); color: var(--parch); }
body.lh input:focus, body.lh select:focus, body.lh textarea:focus { border-color: var(--gold); }
body.lh ::placeholder { color: var(--parch-3); opacity: 1; }
body.lh .text-emerald-400 { color: #8fc29a; }
body.lh .text-rose-400 { color: #ec8a85; }
body.lh .text-amber-400, body.lh .text-amber-300 { color: var(--gold); }

/* Header and footer shared by every page */
.lh-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ink) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.lh-drawer { border-top: 1px solid var(--rule); background: var(--ink-2); padding: .75rem 1rem; display: grid; gap: .25rem; }
.lh-drawer a { padding: .7rem .75rem; border-radius: 6px; color: var(--parch); font-size: 1rem; }
.lh-drawer a:active { background: var(--ink-3); }
.lh-menu { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 6px; border: 1px solid var(--rule); color: var(--parch); }
.lh-foot { margin-top: 4rem; border-top: 1px solid var(--rule); padding: 3.5rem 0 2.5rem; background: var(--ink); }
.lh-foot-top { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .lh-foot-top { grid-template-columns: 1fr 3fr; } }
.lh-foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
@media (min-width: 700px) { .lh-foot-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lh-foot-cols p { color: var(--parch); font-weight: 600; font-size: .95rem; margin-bottom: .75rem; }
.lh-foot-cols a { display: block; color: var(--parch-2); font-size: .925rem; padding: .55rem 0; line-height: 1.4; transition: color 160ms ease; }
@media (min-width: 700px) { .lh-foot-cols a { padding: .3rem 0; } }

/* Site banner, offer kind: ink and gold, the deadline written as a date (shared/ui.js). */
.lh-banner-offer { background: var(--ink-3); color: var(--parch); border-bottom: 1px solid var(--rule); }
.lh-banner-offer .font-medium { color: var(--gold); }
.lh-banner-offer a { color: var(--parch); text-decoration-color: color-mix(in srgb, var(--gold) 55%, transparent); }
.lh-banner-when { color: var(--parch-2); }
@media (hover: hover) and (pointer: fine) { .lh-foot-cols a:hover { color: var(--parch); } }
.lh-foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--parch-3); font-size: .85rem; max-width: 80ch; }

.lh-drawer.hidden { display: none; }
@media (min-width: 1024px) { .lh-menu, .lh-drawer { display: none !important; } }
.lh-menu svg { width: 20px; height: 20px; }
body.lh dd { text-wrap: pretty; }
body.lh .bg-red-600, .lh-btn-primary { color: #fff !important; }
