/* The Bertie Weekly (newsletter.html). Builds on guide.css. The email preview keeps an email's
   own width (about 40rem, as email programs show it); the page around it uses the full width. */
.nl-hero{text-align:center; padding:2.5rem 1rem 2rem; background:var(--page); background-image:var(--hero-bg); border-bottom:1px solid var(--line);}
@media (min-width:45em){ .nl-hero{padding:3rem clamp(1.5rem, 4vw, 3.5rem) 2.5rem;} }
.nl-hero h1{margin-top:.5rem; font-size:clamp(2rem, 1.3rem + 3vw, 3.5rem); text-wrap:balance;}
.issue-bar{display:inline-flex; max-width:100%; align-items:center; gap:.5rem; margin-top:1.5rem; padding:.25rem; border-radius:999px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow);}
.step{width:2.5rem; height:2.5rem; border-radius:50%; border:0; background:var(--well-2); color:var(--accent); font-size:1.375rem; font-weight:700; line-height:1; cursor:pointer;}
.step:hover:not(:disabled){background:#b3121f; color:#ffffff;}
.step:disabled{opacity:.35; cursor:not-allowed;}
.issue-pos{min-width:0; flex:1 1 auto; text-align:center; font-weight:700; font-size:.9375rem; font-variant-numeric:tabular-nums;}
.btn:disabled{opacity:.55; cursor:not-allowed;}
button.btn{cursor:pointer; font-family:var(--sans);}

.nl-layout{display:grid; grid-template-columns:minmax(0,1fr); gap:2rem; padding:2rem 1rem 3rem; background:var(--tint); background-image:linear-gradient(180deg, var(--tint), var(--page));}
@media (min-width:45em){ .nl-layout{padding:2.5rem clamp(1.5rem, 4vw, 3.5rem) 3.5rem;} }
@media (min-width:64em){ .nl-layout{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); gap:3rem; align-items:start;} }
@media (min-width:100em){ .nl-layout{grid-template-columns:minmax(0,1fr) minmax(0,42rem) minmax(0,1fr);} .mail-frame{grid-column:2;} .nl-notes{grid-column:3;} }

/* the inbox frame around the preview */
.mail-frame{min-width:0; width:100%; max-width:42rem; margin:0 auto; border-radius:1.125rem; overflow:hidden; background:var(--card); border:1px solid var(--line); box-shadow:0 1.5rem 3.5rem rgba(122,22,32,.16);}
html[data-theme="dark"] .mail-frame{box-shadow:0 1.5rem 3.5rem rgba(0,0,0,.5);}
.mail-head{display:flex; align-items:center; gap:.375rem; padding:.625rem .875rem; background:var(--well); border-bottom:1px solid var(--line);}
.mail-head span{width:.625rem; height:.625rem; border-radius:50%; background:var(--line);}
.mail-head span:first-child{background:#ff8a95;}
.mail-head em{margin-left:auto; font-style:normal; font-size:.75rem; font-weight:600; color:var(--dim);}

/* the issue itself: always the email's light look, so the preview matches what readers receive */
.issue{--e-ink:#2a0a10; --e-soft:#5a2a31; --e-red:#b3121f; --e-line:#f3d4d8;
  background:#ffffff; color:var(--e-ink); text-align:left; outline:none;}
.issue a{color:var(--e-red);}
.masthead{text-align:center; padding:1.75rem 1.5rem 1.25rem; border-bottom:.375rem solid #d81f25; border-image:linear-gradient(90deg, #5c0f17, #d81f25, #ff8a95) 1;}
.mast-logo{display:block; width:min(15rem, 80%); margin:0 auto;}
.mast-name{margin-top:1rem; font-family:var(--serif); font-size:1.875rem; font-weight:700;}
.mast-line{margin-top:.25rem; font-size:.8125rem; color:var(--e-soft);}
.hello{padding:1.5rem 1.5rem .25rem; font-size:1rem; line-height:1.6;}
.issue section{padding:1.5rem; border-top:1px solid var(--e-line);}
.issue .lead{border-top:0; padding-top:1.25rem;}
@media (min-width:30em){ .hello,.issue section{padding-left:2rem; padding-right:2rem;} }
.sec-k{font-size:.75rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--e-red); margin-bottom:.375rem;}
.lead-thumb{position:relative; display:block; aspect-ratio:16 / 9; border-radius:.625rem; overflow:hidden; margin-bottom:1.125rem; background:#7a1620; background-image:linear-gradient(135deg, #c41a22, #5c0f17);}
.lead-thumb[hidden]{display:none;}
.lead-thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.issue h2{font-size:1.625rem; overflow-wrap:anywhere;}
.issue h3{font-size:1.375rem; overflow-wrap:anywhere;}
.lead-sum,.spot-sum,.help p,.meet p{margin-top:.5rem; color:var(--e-soft); line-height:1.6;}
.lead-with{margin-top:.375rem; font-size:.875rem; color:var(--e-soft);}
.lead-with[hidden]{display:none;}
.mail-btn{display:inline-flex; align-items:center; min-height:2.75rem; margin-top:1rem; padding:.625rem 1.25rem; border-radius:999px; background:#b3121f; color:#ffffff !important; font-weight:700; font-size:.9375rem; text-decoration:none;}
.mail-btn[hidden]{display:none;}
.mail-btn.alt{background:#7a1620;}
.mail-btn:hover{background:#8f1c26;}
.also-list{list-style:none; margin:.25rem 0 0; padding:0; display:flex; flex-direction:column; gap:.75rem;}
.also-card{display:grid; grid-template-columns:7.5rem minmax(0,1fr); gap:1rem; align-items:start; text-decoration:none; color:var(--e-ink) !important;}
.also-thumb{position:relative; display:block; aspect-ratio:16 / 9; border-radius:.5rem; overflow:hidden; background:#7a1620; background-image:linear-gradient(135deg, #c41a22, #5c0f17);}
.also-thumb img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover;}
.also-text{display:flex; flex-direction:column; gap:.125rem; min-width:0;}
.also-date{font-size:.75rem; font-weight:700; color:var(--e-red);}
.also-title{font-family:var(--serif); font-weight:700; font-size:1.0625rem; line-height:1.25; overflow-wrap:anywhere;}
.also-go{font-size:.84375rem; font-weight:700; color:var(--e-red); text-decoration:underline; text-underline-offset:.18em;}
.also-empty{color:var(--e-soft);}
.issue .spot{background:#fff4f5;}
.spot-facts{margin-top:.5rem; font-size:.875rem; font-weight:700; color:var(--e-red);}
.text-link{display:inline-block; margin-top:.625rem; font-weight:700; font-size:.875rem; overflow-wrap:anywhere;}
.quote{margin:0; padding:2rem 1.5rem; text-align:center; color:#ffffff; background:#7a1620; background-image:linear-gradient(135deg, #9e1a23, #5c0f17);}
.quote p{font-family:var(--serif); font-style:italic; font-weight:600; font-size:1.375rem; line-height:1.4;}
.quote footer{margin-top:.625rem; font-size:.8125rem; color:#ffe1e4;}
.mail-foot{padding:1.5rem; text-align:center; font-size:.8125rem; line-height:1.6; color:var(--e-soft); overflow-wrap:anywhere;}
.mail-foot p + p{margin-top:.5rem;}
.mail-foot a{font-weight:700;}

/* notes beside the preview */
.nl-notes{min-width:0;}
.nl-notes h2{font-size:clamp(1.5rem, 1.2rem + 1vw, 2rem); text-align:center;}
.how{margin:1rem 0 0; padding-left:1.25rem; display:flex; flex-direction:column; gap:.875rem; color:var(--soft);}
.how strong{color:var(--ink);}
.aside-cta{margin-top:1.5rem; text-align:center;}
@media (min-width:64em){ .nl-notes{position:sticky; top:5.5rem;} .nl-notes h2,.aside-cta{text-align:left;} }
/* the newsletter hero stays centred at every width */
.nl-hero .lede{margin-left:auto; margin-right:auto;}
.nl-hero .hero-actions{justify-content:center;}
