/* Newsletter archive + edition pages */
.nl-hero{position:relative;text-align:center;padding:52px 0 72px;overflow:hidden}
.nl-hero::before{content:"";position:absolute;inset:-10% -10% auto;height:620px;pointer-events:none;
  background:radial-gradient(38% 46% at 18% 18%,rgba(124,58,237,.12),transparent 70%),radial-gradient(34% 40% at 84% 8%,rgba(167,139,250,.16),transparent 70%),radial-gradient(40% 30% at 50% 0%,var(--accent-light),transparent 70%)}
.nl-hero > .wrap{position:relative;z-index:1}
.nl-hero h1{font-size:clamp(42px,6.6vw,84px);font-weight:800;letter-spacing:-.045em;margin:24px auto 22px;max-width:14ch}
.nl-sub{font-size:clamp(17px,1.5vw,19px);max-width:620px;margin:0 auto 30px}
.nl-form{max-width:540px;margin:0 auto}
.nl-form .sub-msg{text-align:left}
.sub-wrap.big .sub-form{padding:7px 7px 7px 9px;box-shadow:var(--shadow-md)}
.sub-wrap.big .sub-form input[type=email]{height:48px;font-size:16px}
.sub-wrap.big .sub-form button{height:48px;padding:0 24px;font-size:15px}
.nl-proof{display:inline-grid;grid-template-columns:repeat(3,auto);margin-top:30px;border:1px solid var(--border);border-radius:16px;background:var(--bg);box-shadow:var(--shadow-md);overflow:hidden;text-align:left}
.nl-proof div{padding:14px 24px}
.nl-proof div + div{border-left:1px solid var(--border)}
.nl-proof b{display:block;font-size:22px;font-weight:800;color:var(--accent);letter-spacing:-.02em;line-height:1.15}
.nl-proof span{font-size:12.5px;color:var(--muted)}
.nl-list{padding-top:40px}

/* edition cards */
.ed-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.ed-card{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:18px;background:var(--bg);overflow:hidden;box-shadow:var(--shadow-md);transition:transform .3s cubic-bezier(.2,.7,.2,1),box-shadow .3s,border-color .25s}
.ed-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--accent)}
.ed-thumb{aspect-ratio:1.91/1;background:var(--surface);overflow:hidden;border-bottom:1px solid var(--border)}
.ed-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.ed-card:hover .ed-thumb img{transform:scale(1.03)}
.ed-ph{display:grid;place-items:center;height:100%;font-size:38px;font-weight:800;color:var(--accent);letter-spacing:-.04em;background:linear-gradient(135deg,var(--accent-light),var(--bg))}
.ed-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.ed-meta{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.ed-new{font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#fff;background:var(--accent);padding:4px 10px;border-radius:999px}
.ed-card h3{font-size:20px;font-weight:700;letter-spacing:-.02em;line-height:1.25;margin-bottom:8px}
.ed-card p{font-size:15px;color:var(--body);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:16px}
.ed-read{margin-top:auto;font-size:14px;font-weight:600;color:var(--accent);display:inline-flex;gap:6px}
.ed-card:hover .ed-read .arr{transform:translateX(3px)}
.ed-read .arr{transition:transform .2s}
.ed-card.featured{display:grid;grid-template-columns:1.1fr 1fr;border-color:var(--accent);box-shadow:var(--shadow-lg)}
.ed-card.featured .ed-thumb{aspect-ratio:auto;min-height:320px;border-bottom:none;border-right:1px solid var(--border)}
.ed-card.featured .ed-thumb{position:relative}
.ed-card.featured .ed-thumb img,.ed-card.featured .ed-thumb .ed-ph{position:absolute;inset:0;width:100%;height:100%}
.ed-card.featured .ed-body{padding:36px;justify-content:center}
.ed-card.featured h3{font-size:clamp(26px,3vw,36px);font-weight:800;letter-spacing:-.03em;line-height:1.1;margin-bottom:12px}
.ed-card.featured p{-webkit-line-clamp:3;font-size:16.5px}
.pager{display:flex;justify-content:space-between;align-items:center;margin-top:48px;gap:12px}
.nl-empty{text-align:center;border:1px solid var(--border);border-radius:22px;background:var(--bg);box-shadow:var(--shadow-md);padding:48px 28px;max-width:640px;margin:0 auto}
.nl-empty h3{font-size:26px;font-weight:800;margin-bottom:8px}
.nl-empty p{margin-bottom:22px}

/* single edition */
.ed-head{max-width:820px;padding-top:44px;padding-bottom:28px}
.ed-back{display:inline-flex;font-size:14px;font-weight:600;color:var(--body);margin-bottom:26px;padding:7px 14px;border:1px solid var(--border);border-radius:999px;background:var(--bg);box-shadow:var(--shadow-sm)}
.ed-back:hover{color:var(--accent);border-color:var(--accent)}
.ed-head h1{font-size:clamp(34px,5vw,58px);font-weight:800;letter-spacing:-.04em;line-height:1.05;margin:6px 0 16px}
.ed-dek{font-size:clamp(18px,1.8vw,21px);color:var(--body);margin-bottom:24px}
.ed-by{display:flex;align-items:center;gap:12px;font-size:14px}
.ed-by img{width:42px;height:42px;border-radius:50%;object-fit:cover}
.ed-by b{display:block;color:var(--ink)}
.ed-by span{color:var(--muted);font-size:13px}
.ed-cover{max-width:980px;margin:12px auto 0}
.ed-cover img{width:100%;border-radius:20px;border:1px solid var(--border);box-shadow:var(--shadow-md)}
.ed-content{max-width:820px}
.prose{background:var(--bg);border:1px solid var(--border);border-radius:22px;box-shadow:var(--shadow-md);padding:48px 56px;margin-top:32px;font-size:18px;line-height:1.75;color:#2d2b29}
.prose > *:first-child{margin-top:0}
.prose p{margin:0 0 1.15em}
.prose h2,.prose h3,.prose h4{color:var(--ink);letter-spacing:-.025em;line-height:1.2;margin:1.8em 0 .6em}
.prose h2{font-size:30px;font-weight:800}
.prose h3{font-size:23px;font-weight:700}
.prose h4{font-size:19px;font-weight:700}
.prose a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}
.prose strong,.prose b{color:var(--ink)}
.prose ul,.prose ol{margin:0 0 1.2em 1.3em}
.prose li{margin:.35em 0}
.prose blockquote{margin:1.4em 0;padding:16px 22px;border-left:3px solid var(--accent);background:var(--accent-light);border-radius:0 14px 14px 0;color:var(--ink)}
.prose img{border-radius:14px;margin:1.4em auto;border:1px solid var(--border)}
.prose figure{margin:1.4em 0}
.prose figcaption{font-size:14px;color:var(--muted);text-align:center;margin-top:-.6em}
.prose hr{border:0;border-top:1px dashed #d7d2cb;margin:2em 0}
.prose pre{background:#111;color:#eee;padding:18px;border-radius:12px;overflow:auto;font-size:14px}
.prose code{font-size:.9em;background:var(--surface);padding:2px 6px;border-radius:6px}
.prose iframe{width:100%;aspect-ratio:16/9;border:0;border-radius:14px;margin:1.4em 0}

/* the gate */
.has-gate .prose:first-of-type{border-bottom-left-radius:0;border-bottom-right-radius:0;position:relative;overflow:hidden;max-height:none}
.gate{position:relative;margin-top:-140px;padding-top:140px;z-index:2;background:linear-gradient(180deg,rgba(255,255,255,0),rgba(255,255,255,.96) 120px)}
.gate-card{border:1px solid var(--accent);border-radius:22px;background:linear-gradient(180deg,var(--accent-light),var(--bg) 60%);box-shadow:var(--shadow-lg);padding:36px;text-align:center}
.gate-card .k{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent)}
.gate-card .k::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent)}
.gate-card h3{font-size:clamp(22px,2.6vw,30px);font-weight:800;margin:12px auto 8px;max-width:22ch}
.gate-card p{max-width:480px;margin:0 auto 22px}
.gate-card .sub-wrap{max-width:500px;margin:0 auto;text-align:left}
.gate-fine{font-size:13.5px;color:var(--muted);margin:14px 0 0 !important}
.linkish{background:none;border:0;padding:0;font:inherit;color:var(--accent);font-weight:600;text-decoration:underline;cursor:pointer}
.gated{display:none}
.unlocked .gate{display:none}
.unlocked .gated{display:block;margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0;border-top:0;padding-top:0;animation:unfold .6s ease}
.unlocked .prose:first-of-type{border-bottom:0;padding-bottom:0}
@keyframes unfold{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ed-end{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:36px 0 0}
.nl-more{padding-top:96px}

@media (max-width:980px){
  .ed-grid{grid-template-columns:1fr 1fr}
  .ed-card.featured{grid-template-columns:1fr}
  .ed-card.featured .ed-thumb{min-height:0;aspect-ratio:1.91/1;border-right:none;border-bottom:1px solid var(--border)}
}
@media (max-width:640px){
  .nl-hero{padding:30px 0 56px}
  .nl-proof div{padding:12px 14px}
  .nl-proof b{font-size:18px}
  .ed-grid{grid-template-columns:1fr}
  .ed-card.featured .ed-body{padding:24px}
  .ed-head{padding-top:28px}
  .prose{padding:26px 20px;font-size:17px;border-radius:18px}
  .prose h2{font-size:25px}
  .gate-card{padding:26px 18px}
  .pager .btn{padding:0 16px}
}
