/* ── layout2: a proposal for the home page (23 IX 2026) ── */
html, body { height: auto; min-height: 100%; }
body {
  margin: 0; padding: 0;
  background: #14171c;
  background-image: radial-gradient(60vw 60vh at 12% 0%, rgba(120, 132, 150, 0.16), transparent 70%);
  color: #cfd3d9;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-align: left;
}
.l2 { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 100vh; }
.l2 a { color: #b9c0c9; text-decoration: none; border-bottom: 1px solid rgba(185, 192, 201, 0.35); }
.l2 a:hover { color: #ffffff; border-bottom-color: #ffffff; }
.l2 p { max-width: none; margin: 0 0 1.2rem; padding: 0; text-align: left; font-size: inherit; }

.l2-side {
  position: sticky; top: 0; align-self: start; height: 100vh; box-sizing: border-box;
  padding: 56px 36px 40px 44px;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex; flex-direction: column; gap: 22px;
}
.l2 .l2-brand { border: 0; display: block; width: 176px; position: relative; }
.l2-brand img { width: 168px; height: auto; display: block; filter: drop-shadow(0 0 22px rgba(160, 175, 195, 0.18)); }
.l2 .l2-tag { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.15rem; color: #8b929c; line-height: 1.45; margin: 0 0 0.4rem; }
.l2-nav { display: flex; flex-direction: column; gap: 10px; font-family: "Inter", system-ui, sans-serif; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.l2-nav a { border: 0; color: #9aa1ab; padding: 2px 0; }
.l2-nav a[aria-current="page"] { color: #e6e8eb; }
.l2-nav a:last-child { text-transform: none; letter-spacing: 0.02em; margin-top: 10px; color: #737a84; font-size: 0.82rem; }
.l2-user { margin-top: auto; font-family: "Inter", system-ui, sans-serif; font-size: 0.78rem; color: #737a84; }
.l2-user a { border: 0; }

.l2-main { padding: 72px 8vw 96px 7vw; max-width: 66ch; box-sizing: content-box; }
.l2 .l2-kicker { font-family: "Inter", system-ui, sans-serif; font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: #8b929c; margin: 0 0 1.4rem; }
.l2 .l2-lead { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 1.85rem; line-height: 1.3; color: #eceef1; margin: 0 0 1.6rem; }
.l2-hero p:last-child { margin-bottom: 0; }
.l2-rule { border: 0; height: 1px; background: rgba(255, 255, 255, 0.08); margin: 3.2rem 0 3rem; }
.l2-essay strong { color: #eceef1; font-weight: 500; }
.l2 .l2-pull { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.7rem; line-height: 1.3; font-weight: 500; color: #eceef1; margin: 2.2rem 0 2.2rem; padding-left: 1.2rem; border-left: 2px solid rgba(185, 192, 201, 0.45); }
.l2-questions { list-style: none; padding: 0; margin: 1.4rem 0 1.8rem; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 1.3rem; line-height: 1.45; }
.l2-questions li { padding: 0.45rem 0 0.45rem 1.1rem; border-left: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 0.2rem; }
.l2 .l2-signature { font-family: "Arizonia", cursive; font-size: 2.3rem; color: #e6e8eb; text-align: right; margin: 2.8rem 0 0; }
.l2-footer { margin-top: 3.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; gap: 2rem; flex-wrap: wrap; font-family: "Inter", system-ui, sans-serif; font-size: 0.86rem; letter-spacing: 0.04em; }

@media (max-width: 860px) {
  body { font-size: 1.05rem; line-height: 1.6; }
  .l2 { grid-template-columns: 1fr; }
  .l2-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.07);
             padding: 22px 20px 16px; gap: 14px; display: grid; grid-template-columns: 92px 1fr; column-gap: 18px; align-items: center; }
  .l2 .l2-brand { width: 92px; }
  .l2-brand img { width: 92px; }
  .l2-brand::before { inset: -14px -18px; }
  .l2 .l2-tag { margin: 0; font-size: 1.05rem; line-height: 1.35; }
  .l2-nav { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; font-size: 0.72rem; letter-spacing: 0.12em; margin-top: 4px; }
  .l2-nav a:last-child { margin-top: 0; width: 100%; font-size: 0.78rem; }
  .l2-user { grid-column: 1 / -1; margin-top: 0; }
  .l2-main { padding: 28px 20px 56px; }
  .l2 .l2-kicker { font-size: 0.68rem; margin-bottom: 1rem; }
  .l2 .l2-lead { font-size: 1.35rem; line-height: 1.3; margin-bottom: 1.2rem; }
  .l2-rule { margin: 2.2rem 0 2rem; }
  .l2 .l2-pull { font-size: 1.3rem; margin: 1.6rem 0; padding-left: 0.9rem; }
  .l2-questions { font-size: 1.1rem; }
  .l2 .l2-signature { font-size: 1.9rem; margin-top: 2rem; }
  .l2-footer { gap: 1rem 1.6rem; }
}
@media (max-width: 400px) {
  .l2-side { grid-template-columns: 80px 1fr; padding: 18px 16px 14px; }
  .l2 .l2-brand, .l2-brand img { width: 80px; }
  .l2 .l2-tag { font-size: 0.98rem; }
  .l2-main { padding: 24px 16px 48px; }
  .l2 .l2-lead { font-size: 1.25rem; }
}

/* signature: readable italic, smaller (25 IX 2026) */
.l2 .l2-signature { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 1.35rem; letter-spacing: .01em; color: #cfd3d9; margin-top: 2.2rem; }
@media (max-width: 860px) { .l2 .l2-signature { font-size: 1.2rem; } }

.l2-footer a.l2-pub span { color: #8b929c; margin-right: .45em; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.l2-pubs { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.6rem; margin-top: .4rem; }
.l2-pubs-h { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: #737a84; }

html, body { background-color: #14171c; }

/* about the author (25 IX 2026) */
.l2-author { display: grid; grid-template-columns: 112px 1fr; gap: 26px; align-items: start; margin-top: 3rem; padding-top: 2.2rem; border-top: 1px solid rgba(255,255,255,.08); }
.l2-author img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; filter: grayscale(.25) contrast(1.02); border: 1px solid rgba(255,255,255,.12); }
.l2 .l2-author p { font-size: 1rem; line-height: 1.65; color: #aab0b9; }
.l2 .l2-author .l2-kicker { margin-bottom: .6rem; }
@media (max-width: 600px) { .l2-author { grid-template-columns: 1fr; gap: 16px; } .l2-author img { width: 96px; height: 96px; } }

.l2-author { grid-template-columns: 150px 1fr; }
.l2-author img { width: 150px; height: 150px; border-radius: 12px; }
@media (max-width: 600px) { .l2-author img { width: 140px; height: 140px; } }

/* ── first screen v2 (28 IX 2026): says what EmoStack is and that it works ── */
.l2 .l2-h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-size: 2.6rem; line-height: 1.12; color: #eceef1; margin: 0 0 1.4rem; text-wrap: balance; }
.l2-hero2 > p { font-size: 1.12rem; margin: 0 0 .9rem; }
.l2-go { display: flex; flex-wrap: wrap; gap: 10px; margin: 1.6rem 0 2rem; }
.l2-go a { font-family: "Inter", system-ui, sans-serif; font-size: .86rem; text-decoration: none; color: #eceef1; border: 1px solid rgba(185, 192, 201, .32); border-radius: 999px; padding: 8px 16px; }
.l2-go a:hover { border-color: #b9c0c9; }
.l2-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid rgba(236, 238, 241, .12); }
.l2-fact { padding: 16px 0 4px; border-bottom: 1px solid rgba(236, 238, 241, .08); }
.l2 .l2-fact h2 { font-family: "Inter", system-ui, sans-serif; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #b9c0c9; font-weight: 500; margin: 0 0 6px; }
.l2 .l2-fact p { font-size: .98rem; line-height: 1.45; margin: 0 0 10px; }
.l2-hero2 .l2-facts .l2-fact:last-child p { margin-bottom: 10px; }
@media (max-width: 860px) { .l2 .l2-h1 { font-size: 1.95rem; } }
@media (max-width: 520px) { .l2-facts { grid-template-columns: 1fr; } }

.l2 .l2-h1, .l2 .l2-fact h2 { text-align: left; }

/* ── links in the body of the l2 pages read as links: amber, like the paper's pages (4 X 2026); nav, pills and footer keep their own ── */
:root { --link: #e3c36a; --link-hi: #fff1bf; --link-dim: rgba(227, 195, 106, .45); }
.l2 a { color: var(--link); border-bottom-color: var(--link-dim); }
.l2 a:hover { color: var(--link-hi); border-bottom-color: var(--link-hi); }
.l2-nav a, .l2-nav a:hover { color: #9aa1ab; border: 0; }
.l2-nav a[aria-current="page"] { color: #e6e8eb; }
.l2-go a { color: #eceef1; border: 1px solid rgba(185, 192, 201, .32); }
.l2-go a:hover { color: #fff; border-color: #b9c0c9; }
.l2-brand a, .l2-brand a:hover { border: 0; }
.l2-footer a { color: #aab0b9; border-bottom-color: rgba(185, 192, 201, .35); }
.l2-footer a:hover { color: #fff; border-bottom-color: #fff; }
.l2-fact a::after, .l2-fact a[href^="https://doi.org"]::after { content: ""; }
.l2 p { color: #a9aeb6; font-weight: 400; }
