/* ---------------------------------------------------------------------------
   INTERACTIVE NEWSLETTER — a design sample (Gabriel, 2026-11-02): the Fall 2026
   newsletter told as a web page instead of a flipbook of its PDF. Loaded only
   on pages built on the .abf-nl wrapper (inc/newsletter-story.php).

   Everything is visible without the script. The script adds .abf-nl-motion
   (scroll reveals, the route drawing itself) and .is-playing on the hero (the
   eclipse, once, in under five seconds). Neither runs for visitors who ask
   for reduced motion.
   --------------------------------------------------------------------------- */

.abf-nl {
  --nl-night: #04121b;
  --nl-deep: #003746;
  --nl-cream: #ffeecb;
  --nl-mist: #d7e9e7;
  --nl-gold: #f99f1c;
  --nl-ink: #1d3a44;
}

/* The theme gives every article paragraph line-height 1.68 with a strong
   selector (style.css); this one outranks it, and the story's parts set
   --nl-lh (the display line ran at 1.68, 2026-11-02). */
body:not(.home) .site-main > article .entry-content .abf-nl p { line-height: var(--nl-lh, 1.68); }

/* The hero sits right under the site header. */
body:not(.home) .site-content:has(.abf-nl-hero) { padding-top: 0; }
.abf-nl .alignfull {
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* HERO --------------------------------------------------------------------- */
.abf-nl-hero {
  position: relative;
  overflow: hidden;
  color: #fffdeb;
  background: radial-gradient(ellipse at 72% 42%, #0d4256 0%, #072433 38%, var(--nl-night) 72%);
  padding: clamp(1.75rem, 4vw, 3rem) 1.25rem clamp(2.75rem, 6vw, 5rem);
}
.abf-nl-hero::before { /* stars */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .75;
  background-image:
    radial-gradient(1.6px 1.6px at 8% 22%, #fffdeb 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 18% 70%, #fffdeb 60%, transparent 62%),
    radial-gradient(1.8px 1.8px at 27% 12%, #fffdeb 60%, transparent 62%),
    radial-gradient(1px 1px at 36% 48%, #fffdeb 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 44% 86%, #fffdeb 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 55% 8%, #fffdeb 60%, transparent 62%),
    radial-gradient(1.6px 1.6px at 63% 92%, #fffdeb 60%, transparent 62%),
    radial-gradient(1px 1px at 79% 6%, #fffdeb 60%, transparent 62%),
    radial-gradient(1.4px 1.4px at 88% 30%, #fffdeb 60%, transparent 62%),
    radial-gradient(1.2px 1.2px at 94% 78%, #fffdeb 60%, transparent 62%),
    radial-gradient(1px 1px at 72% 64%, #fffdeb 60%, transparent 62%),
    radial-gradient(1.3px 1.3px at 13% 44%, #fffdeb 60%, transparent 62%);
}
.abf-nl-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "note note" "text art";
  align-items: center;
  column-gap: clamp(1.5rem, 4vw, 4rem);
}
.abf-nl-sample {
  grid-area: note;
  margin: 0 0 clamp(1.25rem, 3vw, 2.25rem);
  font-size: .9rem;
  color: var(--nl-mist);
}
.abf-nl-sample span {
  display: inline-block;
  margin-right: .55rem;
  padding: .2rem .65rem;
  border-radius: 999px;
  background: var(--nl-gold);
  color: var(--nl-night);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.abf-nl-sample a { color: #fffdeb; text-underline-offset: .2em; }
.abf-nl-hero-text { grid-area: text; }
.abf-nl-hero-art {
  grid-area: art;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 500px;
}
.abf-nl-eclipse { display: block; width: 100%; height: auto; overflow: visible; }
.abf-nl h1.abf-nl-title {
  margin: 0 0 .9rem;
  color: var(--nl-gold);
  font-family: var(--wp--preset--font-family--brand-sans);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}
.abf-nl-display {
  margin: 0 0 1.1rem;
  color: #fffdeb;
  font-family: var(--wp--preset--font-family--goudy);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  --nl-lh: 1.05;
}
.abf-nl-lead {
  max-width: 34rem;
  margin: 0;
  color: var(--nl-mist);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  --nl-lh: 1.55;
}
.abf-nl-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; }
.abf-nl a.abf-nl-button {
  display: inline-block;
  padding: .85rem 1.45rem;
  border-radius: 999px;
  background: var(--nl-gold);
  color: var(--nl-night);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.abf-nl a.abf-nl-button:hover { background: var(--abf-goldenrod-hover, #fab755); }
.abf-nl a.abf-nl-button.is-quiet {
  background: transparent;
  color: #fffdeb;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 235, .8);
}
.abf-nl a.abf-nl-button.is-quiet:hover { background: rgba(255, 253, 235, .12); }
.abf-nl a:focus-visible,
.abf-nl button:focus-visible,
.abf-nl input:focus-visible {
  outline: 3px solid var(--nl-gold);
  outline-offset: 3px;
}
.abf-nl-replay {
  margin-top: 1.1rem;
  padding: .35rem 0;
  border: 0;
  background: none;
  color: var(--nl-mist);
  font: inherit;
  font-size: .95rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
/* A text link, so the theme's button hover fill (style.css) stays off it. */
.abf-nl-replay:hover,
.abf-nl-replay:focus { background: none; color: #fffdeb; }

/* The eclipse, played once: the moon crosses the sun; the diamond ring
   flashes where the last light goes; the corona blooms, turning a little as
   it grows, and the prominences show. 4.6 seconds in all. */
.abf-nl-moon,
.abf-nl-glow,
.abf-nl-flare { transform-box: fill-box; transform-origin: center; }
.abf-nl-hero.is-playing .abf-nl-moon { animation: abf-nl-moon 3.2s cubic-bezier(.4, .04, .2, 1) both; }
.abf-nl-hero.is-playing .abf-nl-glow { animation: abf-nl-glow 4.4s cubic-bezier(.2, .6, .3, 1) both; }
.abf-nl-hero.is-playing .abf-nl-prominences { animation: abf-nl-prominences 4.4s ease-out both; }
.abf-nl-hero.is-playing .abf-nl-flare { animation: abf-nl-flare 4.6s ease-out both; }
.abf-nl-hero.is-playing .abf-nl-glint { animation: abf-nl-glint 4.6s ease-out both; } /* hidden at rest */
.abf-nl-hero.is-playing::before { animation: abf-nl-stars 3.6s ease-in both; }
/* The moon comes in from the lower left, along the line to the diamond ring
   (39° up on the right, newsletter_story.FLARE_AT), so the ring flashes
   where the last light goes. */
@keyframes abf-nl-moon { from { transform: translate(-202px, 164px); } to { transform: none; } }
@keyframes abf-nl-glow {
  0%, 64% { opacity: 0; transform: scale(.86) rotate(-5deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes abf-nl-prominences { 0%, 70% { opacity: 0; } 100% { opacity: 1; } }
@keyframes abf-nl-flare {
  0%, 59% { opacity: 0; transform: scale(.3); }
  70% { opacity: 1; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes abf-nl-glint { 0%, 60% { opacity: 0; } 70% { opacity: .75; } 100% { opacity: 0; } }
@keyframes abf-nl-stars { from { opacity: .15; } to { opacity: .75; } }

@media (max-width: 860px) {
  .abf-nl-hero-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "note" "art" "text"; }
  .abf-nl-hero-art { max-width: 340px; margin-bottom: 1.25rem; }
}

/* THE VOYAGE IN NUMBERS ------------------------------------------------------ */
.abf-nl-stats { background: var(--nl-cream); padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem; }
.abf-nl-stat-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  text-align: center;
}
.abf-nl-stat-list li { margin: 0; }
.abf-nl-stats .abf-stat-number {
  display: block;
  color: var(--nl-deep);
  font-family: var(--wp--preset--font-family--goudy);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1;
}
.abf-nl-stat-label { display: block; margin-top: .45rem; color: #2c4a55; font-size: .95rem; font-weight: 600; }
@media (max-width: 720px) { .abf-nl-stat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; } }

/* STORIES -------------------------------------------------------------------- */
.abf-nl-section { max-width: 760px; margin: 0 auto; padding: clamp(2.75rem, 6vw, 4.5rem) 0 1.5rem; }
.abf-nl-eyebrow {
  margin: 0 0 .45rem;
  color: var(--abf-mulberry, #9e005a);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.abf-nl h2 { margin-top: 0; }
.abf-nl-article > p { color: var(--nl-ink); }
.abf-nl-dropcap::first-letter {
  float: left;
  padding: .06em .12em 0 0;
  color: var(--nl-deep);
  font-family: var(--wp--preset--font-family--goudy);
  font-size: 4.6em;
  line-height: .82;
}
.abf-nl-mission {
  margin: 2rem 0;
  padding: 1.35rem 1.6rem;
  border-left: 4px solid var(--abf-bright-teal, #00a9a1);
  border-radius: 0 14px 14px 0;
  background: var(--abf-surface-tint, #e8f3f5);
}
.abf-nl-mission h3 { margin: 0 0 .5rem; }
.abf-nl-mission p { margin: 0 0 .6rem; color: var(--nl-ink); }
.abf-nl-mission p:last-child { margin-bottom: 0; }

/* The route, wider than the text column. */
.abf-nl-route {
  width: min(1000px, calc(100vw - 2.5rem));
  margin: 2.5rem 0 2.25rem calc(50% - min(500px, 50vw - 1.25rem));
}
.abf-nl-route-map { position: relative; }
.abf-nl-route svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
  background: radial-gradient(ellipse at 30% 30%, #0b3a4d 0%, var(--nl-night) 75%);
}
/* The trip's badge, stamped on the open sea west of Ireland (ABF, 2026-11-04:
   "another location farther down the page" than the hero). */
.abf-nl-badge {
  position: absolute;
  left: 3.5%;
  bottom: 6%;
  width: 15%;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  transform: rotate(-8deg);
}
@media (max-width: 700px) { .abf-nl-badge { width: 19%; bottom: 5%; } }
.abf-nl-land { fill: rgba(215, 233, 231, .14); stroke: rgba(215, 233, 231, .38); stroke-width: .8; stroke-linejoin: round; }
.abf-nl-graticule line { stroke: rgba(215, 233, 231, .09); stroke-width: 1; }
.abf-nl-route-line { fill: none; stroke: var(--nl-gold); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.abf-nl-stops circle { fill: #fffdeb; stroke: var(--nl-night); stroke-width: 2; }
.abf-nl-route text {
  fill: #fffdeb;
  font-family: var(--wp--preset--font-family--brand-sans);
  font-size: 15px;
  font-weight: 700;
  paint-order: stroke; /* a dark halo keeps labels readable over land and the line */
  stroke: var(--nl-night);
  stroke-width: 4px;
  stroke-linejoin: round;
}
.abf-nl-route .abf-nl-place {
  fill: var(--nl-mist);
  font-size: 13px;
  letter-spacing: .32em;
  text-transform: uppercase;
  stroke-width: 0;
  opacity: .75;
}
.abf-nl-eclipse-mark circle { fill: #fffdeb; }
.abf-nl-eclipse-mark .abf-nl-eclipse-moon { fill: var(--nl-night); }
@media (max-width: 700px) { /* the map shrinks to a third: the labels and line don't */
  .abf-nl-route text { font-size: 25px; stroke-width: 6px; }
  .abf-nl-route .abf-nl-place { font-size: 19px; letter-spacing: .24em; }
  .abf-nl-route-line { stroke-width: 6; }
  .abf-nl-land { stroke-width: 1.4; }
}
.abf-nl-route figcaption,
.abf-nl-credit { margin-top: .6rem; color: #4d646b; font-size: .85rem; font-style: italic; }

/* The eclipse photos: a strip, or one at a time with the slider. */
.abf-nl-phases {
  margin: 2.25rem 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 18px;
  background: #05080d;
  color: #fffdeb;
  text-align: center;
}
.abf-nl-phase-stage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.abf-nl-phase { position: relative; margin: 0; }
.abf-nl-phase-photo { display: block; width: 100%; height: auto; border-radius: 10px; }
.abf-nl-phase figcaption { margin-top: .5rem; color: var(--nl-mist); font-size: .9rem; }
.abf-nl-phases.is-enhanced .abf-nl-phase-stage { display: block; }
.abf-nl-phases.is-enhanced .abf-nl-phase-photo { width: min(300px, 100%); margin: 0 auto; }
/* With the slider, its step names say what each photo is. */
.abf-nl-phases.is-enhanced .abf-nl-phase figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.abf-nl-phase-control { margin: 1.25rem auto 0; max-width: 460px; }
.abf-nl-phase-control label { display: block; margin-bottom: .5rem; color: #fffdeb; font-weight: 700; }
/* The thumb's stops line up with the centers of the four step names. */
.abf-nl-phase-control input[type="range"] {
  display: block;
  width: calc(75% + 16px);
  margin: 0 calc(12.5% - 8px);
  accent-color: var(--nl-gold);
}
.abf-nl .abf-nl-phase-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: .45rem 0 0;
  padding: 0;
  list-style: none;
}
.abf-nl-phase-steps li { margin: 0; color: #b9c9c8; font-size: .85rem; line-height: 1.3; }
.abf-nl-phase-steps li.is-current { color: var(--nl-gold); font-weight: 800; }
.abf-nl-phases .abf-nl-credit { color: #b9c9c8; margin-bottom: 0; }
@media (max-width: 600px) { .abf-nl-phase-stage { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.abf-nl-pull {
  margin: 2.5rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 4px solid var(--abf-mulberry, #9e005a);
}
.abf-nl-pull p {
  color: var(--nl-deep);
  font-family: var(--wp--preset--font-family--goudy);
  font-size: clamp(1.2rem, 1rem + 1.6vw, 1.75rem);
  font-style: italic;
  --nl-lh: 1.38;
}
.abf-nl-traveler {
  margin: 1.5rem 0 0;
  padding: 1.5rem 1.75rem;
  border-radius: 16px;
  background: var(--nl-cream);
}
.abf-nl-traveler p { margin: 0; color: var(--nl-ink); font-size: 1.08rem; font-style: italic; --nl-lh: 1.55; }

/* PHOTOS --------------------------------------------------------------------- */
.abf-nl-gallery { margin-top: clamp(2rem, 5vw, 3.5rem); padding: clamp(2.5rem, 5vw, 4rem) 1.25rem; background: var(--nl-mist); }
.abf-nl-gallery-inner { max-width: 1180px; margin: 0 auto; }
.abf-nl-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
.abf-nl-photo { margin: 0; }
.abf-nl-photo-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 55, 70, .18);
  transition: transform .35s ease;
}
.abf-nl-photo:hover .abf-nl-photo-img { transform: scale(1.03); }
.abf-nl-photo figcaption { margin-top: .65rem; color: var(--nl-ink); font-size: .95rem; font-weight: 600; }
.abf-nl-photo .abf-nl-credit { display: block; margin-top: .15rem; font-weight: 400; }
@media (max-width: 900px) { .abf-nl-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .abf-nl-photo-grid { grid-template-columns: minmax(0, 1fr); } }

/* GRADUATES ------------------------------------------------------------------ */
.abf-nl-grads { padding: clamp(2.75rem, 6vw, 4.5rem) 1.25rem; background: var(--nl-cream); }
.abf-nl-grads-inner { max-width: 1180px; margin: 0 auto; }
.abf-nl-grads-inner > .abf-nl-eyebrow,
.abf-nl-grads-inner > h2,
.abf-nl-grads-inner > .abf-nl-article { max-width: 760px; margin-left: auto; margin-right: auto; }
/* Three to a row, two, or one; a short last row is centered. */
.abf-nl-grad-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.75rem 1.5rem;
  margin: 3.5rem 0 0;
  padding: 0;
  list-style: none;
}
.abf-nl-grad {
  flex: 0 1 calc((100% - 3rem) / 3);
  min-width: 0;
  margin: 0;
  padding: 0 1.4rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 55, 70, .12);
  text-align: center;
}
.abf-nl-grad-photo {
  display: block;
  width: 150px;
  height: 150px;
  margin: -2.25rem auto 1rem;
  border: 5px solid var(--nl-gold);
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}
.abf-nl-grad h3 { margin: 0 0 .65rem; }
.abf-nl-grad blockquote { margin: 0; }
.abf-nl-grad blockquote p { margin: 0; color: var(--nl-ink); font-size: 1.05rem; font-style: italic; text-align: left; --nl-lh: 1.6; }
@media (max-width: 960px) { .abf-nl-grad { flex-basis: calc((100% - 1.5rem) / 2); } }
@media (max-width: 620px) { .abf-nl-grad { flex-basis: 100%; } }

/* GIVING --------------------------------------------------------------------- */
.abf-nl-give {
  padding: clamp(3rem, 7vw, 5rem) 1.25rem;
  background: linear-gradient(135deg, var(--nl-deep) 0%, #0a4d5f 55%, var(--nl-night) 100%);
  color: #fffdeb;
  text-align: center;
}
.abf-nl-give-inner { max-width: 760px; margin: 0 auto; }
.abf-nl .abf-nl-give h2 { color: #fffdeb; }
.abf-nl-give p { color: var(--nl-mist); font-size: 1.1rem; }
.abf-nl-give .abf-nl-actions { justify-content: center; }

.abf-nl-colophon { max-width: 760px; margin: 0 auto; padding: 2.5rem 0 0; color: #4d646b; font-size: .92rem; text-align: center; }
.abf-nl-colophon h2 { font-size: .95rem; }
.abf-nl-colophon p { margin: 0 0 .4rem; --nl-lh: 1.55; }

/* MOTION (only with .abf-nl-motion, which the script adds) ------------------- */
.abf-nl-motion .abf-nl-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.abf-nl-motion .abf-nl-reveal.is-in { opacity: 1; transform: none; }
.abf-nl-motion .abf-nl-grad:nth-child(2) { transition-delay: .08s; }
.abf-nl-motion .abf-nl-grad:nth-child(3) { transition-delay: .16s; }
.abf-nl-motion .abf-nl-grad:nth-child(4) { transition-delay: .24s; }
.abf-nl-motion .abf-nl-grad:nth-child(5) { transition-delay: .32s; }
.abf-nl-motion .abf-nl-route .abf-nl-route-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s ease .35s;
}
.abf-nl-motion .abf-nl-route.is-in .abf-nl-route-line { stroke-dashoffset: 0; }
/* The eclipse appears where the line ends. */
.abf-nl-motion .abf-nl-route .abf-nl-eclipse-mark { opacity: 0; transition: opacity .7s ease 2.8s; }
.abf-nl-motion .abf-nl-route.is-in .abf-nl-eclipse-mark { opacity: 1; }
/* Then the badge is stamped on. */
.abf-nl-motion .abf-nl-route .abf-nl-badge {
  opacity: 0;
  transform: rotate(-8deg) scale(1.3);
  transition: opacity .35s ease 3.3s, transform .45s cubic-bezier(.2, 1.5, .4, 1) 3.3s;
}
.abf-nl-motion .abf-nl-route.is-in .abf-nl-badge { opacity: 1; transform: rotate(-8deg); }
.abf-nl-motion .abf-nl-phase:not([hidden]) { animation: abf-nl-fade .35s ease both; }
@keyframes abf-nl-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .abf-nl *,
  .abf-nl *::before,
  .abf-nl-hero::before { animation: none !important; transition: none !important; }
  .abf-nl-photo:hover .abf-nl-photo-img { transform: none; }
}
