/* Lens & Moments Journal — public index/category redesign, Sep 2026 */
:root {
  --lmj-ivory: #f7f1e5;
  --lmj-paper: #fffaf0;
  --lmj-cream: #efe4cf;
  --lmj-ink: #244f55;
  --lmj-ink-soft: #4f7071;
  --lmj-blue: #3659a4;
  --lmj-sky: #b9dbe2;
  --lmj-sage: #a9c5b2;
  --lmj-gold: #d9a63a;
  --lmj-clay: #b86c4a;
  --lmj-line: rgba(36, 79, 85, .18);
  --lmj-shadow: 8px 9px 0 rgba(54, 89, 164, .12);
}

.lmj8 {
  position: relative;
  overflow: clip;
  color: var(--lmj-ink);
  background:
    radial-gradient(circle at 9% 2%, rgba(217,166,58,.13), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(185,219,226,.23), transparent 34rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--lmj-ivory) 74%, #f4eddf 100%);
  font-family: "Manrope", system-ui, sans-serif;
}

.lmj8::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image: repeating-linear-gradient(125deg, rgba(54,89,164,.12) 0 1px, transparent 1px 7px);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(255,255,255,.75) 11rem, rgba(255,255,255,.22) 42rem, transparent 80rem);
}

.lmj8-shell {
  width: min(1460px, calc(100% - 56px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.lmj8-utility {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 10px;
  border-bottom: 1px solid var(--lmj-line);
  color: var(--lmj-ink-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lmj8-utility > *:not(:last-child)::after {
  content: "·";
  margin-left: 14px;
  color: var(--lmj-gold);
}

.lmj8-utility a { color: var(--lmj-ink); text-decoration: none; }
.lmj8-utility a:hover { color: var(--lmj-blue); }

.lmj8-masthead,
.lmj8-category-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(42px, 8vw, 130px);
  align-items: end;
  padding: clamp(48px, 7vw, 98px) 0 34px;
}

.lmj8-eyebrow,
.lmj8-section-head p,
.lmj8-most-read-title p {
  margin: 0 0 10px;
  color: var(--lmj-clay);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.lmj8-masthead h1,
.lmj8-category-head h1 {
  margin: 0;
  color: var(--lmj-blue);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(64px, 10vw, 150px);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .78;
}

.lmj8-masthead > p,
.lmj8-category-head > div > p:last-child {
  max-width: 520px;
  margin: 0 0 4px;
  color: var(--lmj-ink-soft);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.75;
}

.lmj8-category-head h1 { font-size: clamp(52px, 7vw, 108px); line-height: .9; }
.lmj8-category-head .lmj8-text-link { align-self: end; justify-self: end; }

.lmj8-categories {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px;
  margin: 10px 0 clamp(42px, 6vw, 80px);
  border: 1px solid rgba(54,89,164,.17);
  border-radius: 18px;
  background: rgba(255,250,240,.68);
  box-shadow: 0 14px 36px rgba(36,79,85,.06);
  backdrop-filter: blur(16px);
}

.lmj8-categories::-webkit-scrollbar { display: none; }
.lmj8-categories a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 11px;
  color: var(--lmj-ink-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .035em;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, translate .2s ease;
}
.lmj8-categories a:hover { color: var(--lmj-blue); background: rgba(185,219,226,.24); translate: 0 -1px; }
.lmj8-categories a.is-current { color: #fffdf5; background: var(--lmj-blue); box-shadow: 3px 3px 0 rgba(217,166,58,.34); }
.lmj8-categories sup { font-size: 8px; opacity: .72; }

.lmj8-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, .7fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
  margin-bottom: clamp(76px, 10vw, 144px);
}
.lmj8-lead.without-image { grid-template-columns: minmax(0, 860px); }

.lmj8-lead-media {
  position: relative;
  display: block;
  min-height: 520px;
  height: min(64vw, 720px);
  overflow: hidden;
  border: 1px solid rgba(54,89,164,.2);
  border-radius: 28px 8px 28px 8px;
  background: var(--lmj-cream);
  box-shadow: var(--lmj-shadow);
  transform-style: preserve-3d;
}
.lmj8-lead-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 56%, rgba(36,79,85,.13));
}
.lmj8-lead-media img,
.lmj8-story-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale .75s cubic-bezier(.2,.75,.2,1); }
.lmj8-lead-media:hover img,
.lmj8-story-media:hover img { scale: 1.025; }

.lmj8-media-cue {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  padding: 8px 12px;
  border: 1px solid rgba(255,253,245,.65);
  border-radius: 999px;
  background: rgba(255,250,240,.78);
  backdrop-filter: blur(10px);
  color: var(--lmj-ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lmj8-lead-copy { padding-right: clamp(0px, 2vw, 28px); }
.lmj8-meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 16px; color: var(--lmj-ink-soft); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lmj8-meta-line span:not(:last-child)::after { content: "·"; margin-left: 16px; color: var(--lmj-gold); }

.lmj8-lead h2,
.lmj8-story h2,
.lmj8-story h3 {
  margin: 17px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 650;
  letter-spacing: -.036em;
}
.lmj8-lead h2 { font-size: clamp(37px, 4.2vw, 66px); line-height: 1.02; }
.lmj8-lead h2 a,
.lmj8-story h2 a,
.lmj8-story h3 a { color: var(--lmj-blue); text-decoration: none; }
.lmj8-lead h2 a:hover,
.lmj8-story h2 a:hover,
.lmj8-story h3 a:hover { color: var(--lmj-clay); }

.lmj8-lead-copy > p {
  margin: 24px 0 26px;
  color: var(--lmj-ink-soft);
  font-size: 16px;
  line-height: 1.78;
}

.lmj8-text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  padding: 10px 0 7px;
  border-bottom: 2px solid var(--lmj-gold);
  color: var(--lmj-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .07em;
  text-decoration: none;
  text-transform: uppercase;
}
.lmj8-text-link span { transition: translate .2s ease; }
.lmj8-text-link:hover span { translate: 4px -3px; }

.lmj8-stories { padding-bottom: clamp(74px, 9vw, 128px); }
.lmj8-category-stories { padding-top: 10px; }
.lmj8-section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 0 0 23px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--lmj-line);
}
.lmj8-section-head h2,
.lmj8-most-read-title h2 {
  margin: 0;
  color: var(--lmj-blue);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(38px, 4.8vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
}
.lmj8-section-head > span { color: var(--lmj-ink-soft); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }

.lmj8-story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(34px, 4vw, 64px) clamp(24px, 3.4vw, 52px);
}
.lmj8-story {
  grid-column: span 6;
  min-width: 0;
  padding-top: 1px;
}
.lmj8-story:nth-child(6n + 1), .lmj8-story:nth-child(6n + 4) { grid-column: span 7; }
.lmj8-story:nth-child(6n + 2), .lmj8-story:nth-child(6n + 3) { grid-column: span 5; }
.lmj8-story:nth-child(6n + 5), .lmj8-story:nth-child(6n + 6) { grid-column: span 6; }

.lmj8-story-media {
  display: block;
  height: clamp(290px, 35vw, 540px);
  overflow: hidden;
  border-radius: 8px 24px 8px 24px;
  background: var(--lmj-cream);
  border: 1px solid rgba(54,89,164,.16);
  box-shadow: 5px 6px 0 rgba(169,197,178,.26);
}
.lmj8-story:nth-child(6n + 2) .lmj8-story-media,
.lmj8-story:nth-child(6n + 4) .lmj8-story-media { height: clamp(340px, 42vw, 620px); }
.lmj8-story-copy { padding: 20px 4px 0; }
.lmj8-story h2,
.lmj8-story h3 { font-size: clamp(27px, 2.7vw, 42px); line-height: 1.07; }
.lmj8-story-copy > p { margin: 14px 0 17px; color: var(--lmj-ink-soft); font-size: 14px; line-height: 1.7; }
.lmj8-story-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid var(--lmj-line); color: var(--lmj-ink-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.lmj8-story-foot a { color: var(--lmj-blue); text-decoration: none; }
.lmj8-story.without-image { align-self: start; padding: 26px 26px 24px; border-top: 4px solid var(--lmj-gold); background: rgba(255,250,240,.58); border-radius: 0 0 18px 18px; }

.lmj8-most-read {
  display: grid;
  grid-template-columns: minmax(220px, .45fr) minmax(0, 1.55fr);
  gap: clamp(38px, 7vw, 110px);
  padding: clamp(54px, 7vw, 94px) 0 clamp(84px, 10vw, 144px);
  border-top: 1px solid var(--lmj-line);
}
.lmj8-most-read-list { border-top: 1px solid var(--lmj-line); }
.lmj8-most-read-list a {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 20px;
  align-items: center;
  min-height: 88px;
  padding: 18px 0;
  border-bottom: 1px solid var(--lmj-line);
  color: var(--lmj-ink);
  text-decoration: none;
}
.lmj8-most-read-list b { color: var(--lmj-gold); font-family: "Playfair Display", Georgia, serif; font-size: 22px; }
.lmj8-most-read-list span { font-family: "Playfair Display", Georgia, serif; color: var(--lmj-blue); font-size: clamp(19px, 2vw, 29px); line-height: 1.2; }
.lmj8-most-read-list small { color: var(--lmj-ink-soft); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.lmj8-most-read-list a:hover span { color: var(--lmj-clay); }
.lmj8-most-read-list a:hover b { translate: 5px 0; }

.lmj8-empty { padding: 28px 0 72px; color: var(--lmj-ink-soft); font-size: 15px; }

/* JS-enhanced motion. Content stays visible if JS is unavailable. */
.lmj8.is-motion-ready [data-lmj-reveal] { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .75s cubic-bezier(.2,.7,.2,1); }
.lmj8.is-motion-ready [data-lmj-reveal].is-visible { opacity: 1; translate: 0 0; }
[data-lmj-tilt] { will-change: transform; transition: transform .22s ease-out; }

@media (max-width: 1050px) {
  .lmj8-shell { width: min(100% - 36px, 1200px); }
  .lmj8-masthead, .lmj8-category-head { grid-template-columns: 1fr; gap: 24px; }
  .lmj8-masthead > p, .lmj8-category-head > div > p:last-child { max-width: 720px; }
  .lmj8-category-head .lmj8-text-link { justify-self: start; }
  .lmj8-lead { grid-template-columns: 1.12fr .88fr; gap: 34px; }
  .lmj8-lead-media { min-height: 420px; }
}

@media (max-width: 760px) {
  .lmj8-shell { width: min(100% - 26px, 760px); }
  .lmj8-utility { min-height: 48px; gap: 9px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-size: 9px; }
  .lmj8-utility::-webkit-scrollbar { display: none; }
  .lmj8-utility > *:not(:last-child)::after { margin-left: 9px; }
  .lmj8-masthead, .lmj8-category-head { padding: 40px 0 26px; }
  .lmj8-masthead h1 { font-size: clamp(68px, 24vw, 110px); }
  .lmj8-category-head h1 { font-size: clamp(49px, 14vw, 76px); }
  .lmj8-categories { margin-bottom: 42px; border-radius: 14px; padding: 7px; }
  .lmj8-lead { grid-template-columns: 1fr; gap: 30px; margin-bottom: 82px; }
  .lmj8-lead-media { min-height: 0; height: min(118vw, 570px); border-radius: 22px 7px 22px 7px; box-shadow: 5px 6px 0 rgba(54,89,164,.11); }
  .lmj8-lead-copy > p { font-size: 15px; }
  .lmj8-story-grid { display: block; }
  .lmj8-story { margin-bottom: 54px; }
  .lmj8-story-media,
  .lmj8-story:nth-child(6n + 2) .lmj8-story-media,
  .lmj8-story:nth-child(6n + 4) .lmj8-story-media { height: min(112vw, 510px); }
  .lmj8-story:nth-child(even) .lmj8-story-media { height: min(92vw, 430px); }
  .lmj8-story-copy { padding-top: 17px; }
  .lmj8-section-head { align-items: start; }
  .lmj8-section-head > span { padding-top: 8px; }
  .lmj8-most-read { grid-template-columns: 1fr; gap: 28px; }
  .lmj8-most-read-list a { grid-template-columns: 38px 1fr; }
  .lmj8-most-read-list small { display: none; }
}

@media (max-width: 460px) {
  .lmj8-shell { width: calc(100% - 22px); }
  .lmj8-masthead > p, .lmj8-category-head > div > p:last-child { font-size: 14px; line-height: 1.65; }
  .lmj8-categories a { font-size: 10px; padding: 8px 10px; }
  .lmj8-lead h2 { font-size: clamp(34px, 11vw, 48px); }
  .lmj8-meta-line { gap: 7px 11px; font-size: 9px; }
  .lmj8-meta-line span:not(:last-child)::after { margin-left: 11px; }
  .lmj8-section-head h2, .lmj8-most-read-title h2 { font-size: 42px; }
  .lmj8-story h2, .lmj8-story h3 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .lmj8 *, .lmj8 *::before, .lmj8 *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .lmj8.is-motion-ready [data-lmj-reveal] { opacity: 1; translate: none; }
  [data-lmj-tilt] { transform: none !important; }
}
