/* ==========================================================================
   Unreal Sensei — newsletter pages (news.html, news-archive.html, issue.html)
   Landing page from mockup 08, archive + issue page from mockup 05.
   Only tokens and component patterns from site.css are used.
   ========================================================================== */

/* ---------- Landing hero ---------- */
.nl-hero { position: relative; overflow: hidden; background: var(--bg-2); padding: clamp(44px, 6vw, 84px) 0 clamp(48px, 7vw, 96px); }
:root[data-theme="light"] .nl-hero { background: linear-gradient(to bottom, #ffffff 0%, var(--bg-2) 100%); }
:root[data-theme="dark"] .nl-hero { background: transparent; }
.nl-hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.nl-hero h1 { font-size: clamp(36px, 4.7vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin-top: 18px; }
.nl-hero h1 .line { display: block; }
.nl-hero .lead { margin-top: 20px; font-size: clamp(17px, 1.45vw, 20px); color: var(--text-2); line-height: 1.55; max-width: 54ch; }
.nl-hero .proof { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 26px; color: var(--text-3); font-size: 14px; font-weight: 600; }
.nl-hero .proof img { height: 34px; width: auto; border-radius: 8px; }
.nl-hero .proof .sep { width: 1px; height: 22px; background: var(--line-2); }
.nl-art { position: relative; aspect-ratio: 1; max-width: 520px; margin-inline: auto; width: 100%; }
/* each layer is moved by js/news.js (mouse parallax + idle float); depth comes from data-depth */
.nl-art .layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.nl-art .circle { border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(255, 196, 68, .18), rgba(255, 97, 68, .16) 60%, rgba(244, 102, 146, .14)); }
:root[data-theme="dark"] .nl-art .circle { box-shadow: 0 0 140px rgba(255, 97, 68, .14); }
/* Keep the phone frames light in both themes, matching the newsletter artwork. */
.nl-art img { position: absolute; width: 47%; border-radius: 34px; border: 1px solid #e7eaec; box-shadow: var(--shadow-lg); background: #ffffff; }
.nl-art .p1 { left: 10%; top: -2%; transform: rotate(-5deg); }
.nl-art .p2 { right: 7%; bottom: -6%; transform: rotate(7deg); }
.nl-art .hero-card { position: absolute; left: -6%; bottom: 12%; animation: none; }
@media (max-width: 900px) { .nl-hero .grid { grid-template-columns: 1fr; } .nl-art { max-width: 420px; margin-top: 24px; } .nl-art .hero-card { left: 0; } }

/* ---------- Subscribe form (newsletter-band input spec) ---------- */
.news-form { max-width: 560px; }
.news-form .row-form { display: flex; gap: 10px; }
.news-form input { flex: 1; min-width: 0; height: 56px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--surface); padding: 0 22px; font: inherit; font-size: 15px; color: var(--text); box-shadow: var(--shadow-sm); }
.news-form input:focus { outline: none; border-color: var(--focus-accent); box-shadow: 0 0 0 4px rgba(255, 97, 68, .07); }
.news-form input::placeholder { color: var(--text-4); }
.news-form .btn { min-height: 56px; }
.news-form .fine { margin-top: 10px; font-size: 12.5px; color: var(--text-4); }
.news-form.stacked .row-form { flex-direction: column; }
.news-form.stacked input, .news-form.stacked .btn { flex: none; height: 48px; min-height: 48px; }
.nl-hero .news-form { margin-top: 28px; }
@media (max-width: 520px) { .news-form .row-form { flex-direction: column; } .news-form input { flex: none; } }

/* ---------- Landing: latest issues ---------- */
.nl-latest { padding: clamp(48px, 7vw, 96px) 0; }
.nl-latest .years { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.nl-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }
.nl-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
.nl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
:root[data-theme="dark"] .nl-card:hover { border-color: rgba(255,97,68,.55); box-shadow: 0 0 0 1px rgba(255,97,68,.25), 0 0 18px 3px rgba(255,97,68,.16), 0 12px 30px rgba(0,0,0,.5); }
.nl-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-3); }
.nl-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.nl-card:hover .thumb img { transform: scale(1.04); }
.nl-card .thumb .chip { position: absolute; left: 12px; top: 12px; background: var(--surface); }
.nl-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.nl-card .date { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.nl-card h3 { font-size: 20px; line-height: 1.2; }
.nl-card h3 a::after { content: ""; position: absolute; inset: 0; }
.nl-card p { color: var(--text-3); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nl-card .meta { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--text-3); font-weight: 600; display: flex; gap: 14px; }
.nl-card .meta span { display: inline-flex; align-items: center; gap: 6px; }
.nl-card .meta svg { width: 15px; height: 15px; }
.nl-card.wide { grid-column: 1 / -1; flex-direction: row; }
.nl-card.wide .thumb { width: 46%; aspect-ratio: auto; min-height: 260px; }
.nl-card.wide .body { padding: 28px 30px; justify-content: center; }
.nl-card.wide h3 { font-size: 28px; }
.nl-card.wide p { font-size: 16px; -webkit-line-clamp: 4; }
@media (max-width: 900px) { .nl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .nl-card.wide { flex-direction: column; } .nl-card.wide .thumb { width: 100%; aspect-ratio: 16/9; min-height: 0; } }
@media (max-width: 560px) { .nl-cards { grid-template-columns: 1fr; } }

/* ---------- Archive + issue: two columns with a sticky rail ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 4vw, 48px); align-items: start; }
.sticky-rail { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 18px; align-self: start; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } .sticky-rail { position: static; } }
.side-card { border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); padding: 22px; box-shadow: var(--shadow-sm); }
.side-card h3 { font-size: 19px; margin-top: 10px; }
.side-card > p { margin-top: 8px; color: var(--text-3); font-size: 14.5px; }
.side-card .news-form { margin-top: 14px; }
.side-card .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--grad-warm); box-shadow: var(--shadow-glow); }
.side-card .ic svg { width: 18px; height: 18px; }
.side-card .mini li { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.side-card .mini li:first-child { border-top: 0; padding-top: 6px; }
.side-card .mini a { font-weight: 600; }
.side-card .mini a:hover { color: var(--accent); }
.side-card .mini time { display: block; font-size: 12px; color: var(--text-4); margin-top: 2px; }
.rail-years { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* archive rows */
.topic-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-filter .chip { cursor: pointer; }
.topic-filter .chip:hover { border-color: var(--accent); color: var(--accent); }
.month-label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 26px 0 10px; }
.month-label:first-child { margin-top: 0; }
.issue-list { display: grid; gap: 12px; }
.issue-row a { position: relative; display: grid; grid-template-columns: 180px 1fr auto; gap: 18px; align-items: center; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med); }
.issue-row a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
:root[data-theme="dark"] .issue-row a:hover { border-color: rgba(255,97,68,.55); }
.issue-row .thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-3); }
.issue-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.issue-row .text { display: grid; gap: 6px; min-width: 0; }
.issue-row .kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-3); font-weight: 600; }
.issue-row .ttl { font-size: 19px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.issue-row a:hover .ttl { color: var(--accent); }
.issue-row .sum { font-size: 14.5px; color: var(--text-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.issue-row .meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-4); }
.issue-row .meta svg { width: 14px; height: 14px; }
.issue-row .go { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.issue-row a:hover .go { background: var(--accent); color: #fff; border-color: transparent; transform: translateX(2px); }
.issue-row .go svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .issue-row a { grid-template-columns: 1fr; } .issue-row .go { display: none; } }

/* ---------- Masterclass reminders ---------- */
.mc-card .body h3 { font-size: 19px; }
.mc-card .body .btn { align-self: flex-start; }
.mc-inline { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; margin: 2.2em 0 0; padding: 18px; border-radius: var(--r-lg); background: var(--bg-2); border: 1px solid var(--line); }
:root[data-theme="dark"] .mc-inline { background: var(--surface); }
.mc-inline img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
.mc-inline b { display: block; font-size: 19px; margin-top: 8px; letter-spacing: -.02em; }
.mc-inline .meta { display: block; font-size: 13px; color: var(--text-3); font-weight: 600; margin-top: 2px; }
.mc-inline p { margin-top: 8px; font-size: 14.5px; color: var(--text-3); }
.mc-inline .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 640px) { .mc-inline { grid-template-columns: 1fr; } }
.mc-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 20px; border-radius: var(--r-md); border: 1px dashed var(--line-2); background: var(--surface); font-size: 14px; color: var(--text-2); }
.mc-strip span { display: inline-flex; align-items: center; gap: 10px; }
.mc-strip svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ---------- Issue page ---------- */
.article h1 { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; line-height: 1.05; margin-top: 16px; text-wrap: balance; }
.article .byline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; font-size: 14px; color: var(--text-3); font-weight: 600; }
.article .byline img { width: 32px; height: 32px; border-radius: 50%; }
.article .byline b { color: var(--text); }
.article-hero { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); aspect-ratio: 16 / 9; margin-top: 28px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* imported rich text (Webflow) */
.prose { margin-top: 30px; font-size: 17px; line-height: 1.7; color: var(--text-2); max-width: 72ch; }
.prose p { margin: 0 0 1.1em; }
.prose p:first-child { font-size: clamp(18px, 1.5vw, 20px); color: var(--text); }
.prose h2, .prose h3, .prose h4 { color: var(--text); margin: 1.8em 0 .6em; letter-spacing: -.025em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 22px; } .prose h4 { font-size: 18px; }
.prose a { color: var(--accent); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 97, 68, .4); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { margin: 0 0 1.1em 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--text-2); font-style: italic; }
.prose figure { margin: 1.6em 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--text-4); text-align: center; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--r-lg); }
.prose .source { margin-top: 2em; font-size: 13px; color: var(--text-4); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.pager a { display: grid; gap: 4px; padding: 16px 18px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--t-fast), transform var(--t-fast); }
.pager a:hover { border-color: var(--accent); transform: translateY(-2px); }
.pager a small { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-4); font-weight: 700; }
.pager a span { font-weight: 700; font-size: 15px; line-height: 1.25; }
.pager a.next { text-align: right; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a.next { text-align: left; } }
