/* The link-in-bio page (template-links.php), and the newsletter page (template-newsletter.php) in the same column:
 * one phone-width column on site.css's tokens that fits a phone screen without scrolling. The story photo takes whatever height the rest leaves; everything under it is centered. Text over
 * the photo is light in either theme, so it takes the fixed lime. */
.links { display: flex; flex-direction: column; width: 100%; max-width: 480px; min-height: 100vh; min-height: 100svh; margin: 0 auto; }

.links-top { display: flex; justify-content: center; padding: 14px 20px; border-bottom: 1px solid var(--hairline); }

.links-hero { position: relative; display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-end; min-height: 190px; max-height: 480px; color: #f2f2ef; overflow: hidden; }
.links-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.links-hero-text {
  position: relative;
  display: flex; flex-direction: column; gap: 5px;
  padding: 56px 20px 16px;
  background: linear-gradient(transparent, rgba(16, 18, 22, .97) 55%);
}
.links-kicker { font: 700 11px var(--meta-font); letter-spacing: .09em; text-transform: uppercase; color: var(--ld-lime); }
.links-hed { font: 800 20px/1.22 var(--hed); letter-spacing: -.015em; }
.links-read { margin-top: 2px; font: 700 13px var(--body); color: var(--ld-lime); }

.links-col { display: flex; flex-direction: column; padding: 18px 20px 20px; text-align: center; }
.links-sec + .links-sec { margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.links-home { margin-top: 10px; }

/* The site's newsletter form, laid flat into the column. */
.links .nl-inline { margin: 0; padding: 0; gap: 2px; background: none; border: 0; border-radius: 0; text-align: center; }
.links .nl-inline-hed, .links-sec-hed { margin: 0; font: 800 17px/1.25 var(--hed); letter-spacing: -.01em; }
.links-sec-hed { margin-bottom: 2px; }
.links .nl-inline-sub, .links-sec-sub { margin: 0 0 10px; font: 400 14px/1.45 var(--body); color: var(--text-2); }
.links .nl-inline .nl-form { margin: 0; flex-direction: column; gap: 8px; }
.links .nl-form input {
  background: var(--btn-bg); border: 1px solid var(--btn-border); border-radius: var(--r-nav);
  padding: 12px 16px; font: 500 16px var(--body); text-align: center; outline: none;
}
.links .nl-form input:focus { border-color: var(--hover-border); }
.links .nl-msg:empty { min-height: 6px; }
.links .nl-inline-privacy { font-size: 12px; }

.links-btn, .links .nl-inline .nl-form button {
  display: flex; align-items: center; justify-content: center; width: 100%;
  padding: 12px 16px; border: 1px solid var(--btn-border); border-radius: var(--r-nav);
  background: var(--btn-bg); color: var(--text); font: 700 15px var(--body);
}
.links-btn.is-go, .links .nl-inline .nl-form button { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.links-btn:hover, .links .nl-inline .nl-form button:hover { filter: brightness(1.06); }

/* The newsletter page: the pitch over the form, then what each send carries. */
.nl-page .links-col { padding-top: 36px; padding-bottom: 28px; }
.nl-page-hed { margin: 6px 0 8px; font: 800 26px/1.15 var(--hed); letter-spacing: -.02em; }
.nl-page-sub { margin: 0 0 18px; font: 400 15px/1.5 var(--body); color: var(--text-2); }
.nl-page-days { margin-bottom: 0; padding-left: 0; list-style: none; text-align: left; display: flex; flex-direction: column; gap: 10px; }
.nl-page-days li { font: 400 14px/1.45 var(--body); color: var(--text-2); }
.nl-page-day { display: block; font: 700 11px var(--meta-font); letter-spacing: .09em; text-transform: uppercase; color: var(--text); }
.nl-page .links-home { margin-top: 20px; }

/* Short screens (a small phone inside Instagram's browser): the one-line subheads go so every button still shows. */
@media (max-height: 620px) {
  .links-hero { min-height: 150px; }
  .links .nl-inline-sub, .links-sec-sub { display: none; }
  .links .nl-inline-hed, .links-sec-hed { margin-bottom: 8px; }
}
