/* =================================================================
   SNOWLEOPARD Studio & Research — newsletter.css
   The Naturalist's Field Notes page (newsletter.html): one treated cedar
   photograph behind the hero, subscribe form and reader testimonials,
   followed by the featured Field Note.
   ================================================================= */

/* ----- Page backdrop ---------------------------------------------- */
/* .fieldnotes-bg holds the photograph; .fieldnotes-veil keeps the copy legible. */
.fieldnotes {
  position: relative;
  background-color: var(--bone);
  overflow: hidden;
}
.fieldnotes-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/heroes/newsletter-cedar.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  opacity: 0.98;
  z-index: 0;
}
/* Bone wash that fades out over the leaves. */
.fieldnotes-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(243, 239, 230, 0.74) 0%,
    rgba(243, 239, 230, 0.48) 28%,
    rgba(243, 239, 230, 0.22) 46%,
    rgba(243, 239, 230, 0.44) 62%,
    rgba(243, 239, 230, 0.62) 100%
  );
}
.fieldnotes-inner {
  position: relative;
  z-index: 2;
}

/* ----- Hero: masthead, introduction, reach and subscribe form ----- */
.fn-hero {
  margin: 0 auto;
  /* Keeps the Subscribe button within a laptop's first screen. */
  flex-direction: column;
  gap: 0.9rem;
}
.fn-lockup {
  width: min(560px, 72%);
  height: auto;
  margin: 0.1rem 0 0.5rem;
  filter: drop-shadow(0 2px 16px hsla(0, 0%, 100%, 0.5));
  /* Optical centring: the artwork's ink sits 4.73% right of its box centre. */
  transform: translateX(-4.73%);
}
/* The audience figure is set as a credential in the label register, a step
   below the introduction. */
.fn-hero-reach {
  font-family: var(--serif);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bone);
  text-shadow: 0 1px 3px rgba(21, 54, 49, 0.75);
  /* Lining figures so 20,000+ sits at cap height. */
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  margin-top: 0.85rem;
}

/* ----- Subscribe form --------------------------------------------- */
.fn-subscribe {
  width: min(720px, 100%);
  margin: 0.6rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* A frosted bone panel gives the fields a ground with reliable contrast
   (hairline rules need 3:1), matching the site's other forms. */
.fn-subscribe {
  text-align: left;
  background-color: rgba(243, 239, 230, 0.94);
  -webkit-backdrop-filter: blur(11px) saturate(1.06);
  backdrop-filter: blur(11px) saturate(1.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  padding: 2.2rem 2.4rem 2rem;
  box-shadow: 0 18px 44px rgba(38, 38, 38, 0.14);
}

.fn-subscribe .fn-field label {
  display: block;
  font-family: var(--serif);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--apothecary);
  margin-bottom: 0.45rem;
}
.fn-subscribe .fn-field {
  flex: 1 1 50%;
  min-width: 0;
}

/* Matches the Field Notes band fields on the same bone ground. */
.fn-subscribe input {
  display: block;
  width: 100%;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--museum-black);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(22, 59, 54, 0.58);
  border-radius: 0;
  padding: 0.35rem 0 0.6rem;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.fn-subscribe input:hover {
  background: transparent;
  border-bottom-color: rgba(22, 59, 54, 0.85);
}
.fn-subscribe input:focus {
  outline: none;
  background: transparent; /* Overrides the site-wide input:focus fill. */
  border-bottom-color: var(--fireweed);
  box-shadow: 0 1px 0 0 var(--fireweed);
}
.fn-subscribe .fn-field:focus-within label {
  color: var(--apothecary);
}
.fn-subscribe input:-webkit-autofill,
.fn-subscribe input:-webkit-autofill:hover,
.fn-subscribe input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--museum-black);
  -webkit-box-shadow: 0 0 0 1000px var(--bone) inset;
  box-shadow: 0 0 0 1000px var(--bone) inset;
  caret-color: var(--museum-black);
}
.fn-subscribe .btn-pill {
  align-self: center;
  margin-top: 0.75rem;
  min-width: 220px;
}

/* ----- Testimonials ----------------------------------------------- */
.fn-testimonials {
  max-width: 1500px;
  margin: 0 auto;
  padding: 1.5rem 3rem 6rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
.fn-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.fn-quote {
  background-color: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(11px) saturate(1.06);
  backdrop-filter: blur(11px) saturate(1.06);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 22px;
  padding: 2.4rem 2.6rem 2rem;
  box-shadow: 0 18px 44px rgba(38, 38, 38, 0.14);
}
.fn-quote p {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.65;
  color: var(--museum-black);
  margin-bottom: 1.1rem;
}
.fn-quote p:last-of-type {
  margin-bottom: 0;
}
.fn-cite {
  display: block;
  margin-top: 1.3rem;
  text-align: right;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--museum-black);
}

/* ----- Responsive ------------------------------------------------- */

@media screen and (max-width: 1024px),
  screen and (min-width: 1025px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fn-hero {
    padding-top: 3.5rem;
  }

  /* Cards stack at full width; margins replace the desktop gap. */
  .fn-testimonials {
    display: block;
    padding: 1.5rem 2rem 5rem;
  }
  .fn-col {
    display: block;
  }
  .fn-col + .fn-col {
    margin-top: 2rem;
  }
  .fn-quote {
    margin-bottom: 2rem;
  }
  .fn-col .fn-quote:last-child {
    margin-bottom: 0;
  }
}

@media screen and (max-width: 600px),
  screen and (orientation: landscape) and (max-width: 1000px) and (max-height: 500px),
  screen and (min-width: 601px) and (max-width: 1024px) and (orientation: portrait),
  screen and (min-width: 1025px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fieldnotes-bg {
    opacity: 0.68;
  }
  .fn-hero {
    padding: 2.75rem 1.25rem 2.5rem;
    gap: 1.1rem;
  }
  .fn-lockup {
    width: 94%;
  }
  .fn-subscribe .btn-pill {
    width: 100%;
  }

  .fn-testimonials {
    padding: 1rem 1.25rem 4rem;
  }
  .fn-quote {
    padding: 1.7rem 1.6rem 1.4rem;
    border-radius: 18px;
    margin-bottom: 1.5rem;
  }
  .fn-quote p {
    font-size: 1.12rem;
    line-height: 1.6;
  }
  .fn-cite {
    font-size: 0.98rem;
  }
}

/* ----- Featured Field Note ---------------------------------------- */
.fn-featured {
  background: var(--bone);
  padding: 5.5rem 0 6rem;
}
.fn-featured-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.fn-featured-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.4rem;
  align-items: center;
  margin-top: 3rem;
}
/* Lets a long unbroken word shrink rather than widen the grid track. */
.fn-featured-body {
  min-width: 0;
}
.fn-featured-media {
  display: block;
}
.fn-featured-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0; /* Square corners on photographs. */
}
.fn-featured-kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--museum-black);
  margin: 0 0 0.8rem;
}
.fn-featured-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
}
.fn-featured-meta {
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 1.6rem;
}
.fn-featured-excerpt {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.8;
  color: var(--museum-black);
  margin: 0 0 1.8rem;
}
.fn-featured-excerpt em {
  font-style: italic;
  font-weight: 500;
}
.fn-featured-link a {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--museum-black);
  text-decoration: none;
  border-bottom: 1px solid var(--museum-black);
  padding-bottom: 0.18rem;
  transition: border-color 0.25s ease;
}
.fn-featured-link a:hover {
  border-color: rgba(38, 38, 38, 0.4);
}

@media screen and (max-width: 768px),
  screen and (orientation: landscape) and (max-width: 1000px) and (max-height: 500px),
  screen and (min-width: 601px) and (max-width: 1024px) and (orientation: portrait),
  screen and (min-width: 1025px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fn-featured-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
@media screen and (max-width: 600px),
  screen and (orientation: landscape) and (max-width: 1000px) and (max-height: 500px),
  screen and (min-width: 601px) and (max-width: 1024px) and (orientation: portrait),
  screen and (min-width: 1025px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fn-featured {
    padding: 3.5rem 0 4rem;
  }
}

/* Phones: masthead, introduction, fields and Subscribe fit the first screen. */
@media screen and (max-width: 600px),
  screen and (orientation: landscape) and (max-width: 1000px) and (max-height: 500px),
  screen and (min-width: 601px) and (max-width: 1024px) and (orientation: portrait),
  screen and (min-width: 1025px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fn-hero {
    box-sizing: border-box;
  }
  .fn-lockup {
    width: min(86%, 430px);
  }
  /* The reach line stays a step below the 1rem introduction. */
  .fn-hero-reach {
    font-size: 0.78rem;
    line-height: 1.45;
    letter-spacing: 0.14em;
    text-wrap: balance;
    margin-top: 0.7rem;
  }
  .fn-subscribe {
    width: min(620px, 100%);
  }
  .fn-subscribe input {
    font-size: 0.86rem;
    padding: 0.68rem 0.8rem;
    min-height: 42px;
  }
  .fn-subscribe .btn-pill {
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 1.2rem;
  }
}
@media screen and (max-width: 350px) {
  .fn-hero {
    min-height: auto;
  }
}

/* The band fills the screen height so the button lands just above the fold. */
@media screen and (max-width: 600px),
  screen and (orientation: landscape) and (max-width: 1000px) and (max-height: 500px),
  screen and (min-width: 601px) and (max-width: 1024px) and (orientation: portrait),
  screen and (min-width: 1025px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fn-hero {
    min-height: calc(100svh - 132px);
    padding: 2rem 1.25rem 2.2rem;
    gap: 0;
    justify-content: space-between;
  }
  /* Margins separate the masthead, introduction and form at this width. */
  .fn-lockup {
    margin: 0 auto 0.9rem;
  }

  .fn-subscribe {
    margin: 0 auto;
    gap: 0.7rem;
  }
  .fn-subscribe .btn-pill {
    margin-top: 0.2rem;
  }
}

/* Desktop testimonials: quieter surfaces and a comfortable measure. */
@media screen and (min-width: 1025px) and (orientation: landscape),
  screen and (min-width: 1025px) and (hover: hover),
  screen and (min-width: 1367px) {
  .fn-testimonials {
    max-width: 1200px;
    gap: 2rem;
  }
  .fn-col {
    gap: 2rem;
    min-width: 0;
  }
  .fn-quote {
    background-color: rgba(243, 239, 230, 0.96);
    border-color: rgba(243, 239, 230, 0.8);
    padding: 2rem 2.2rem;
    box-shadow: 0 10px 28px rgba(38, 38, 38, 0.08);
  }
  .fn-quote p {
    font-size: 1.2rem;
    line-height: 1.65;
  }
  .fn-cite {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* Left-aligned opening with the form over the forest. */
.fn-hero {
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  padding: 3.5rem var(--edge) 3rem;
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  column-gap: 4rem;
  row-gap: 1.25rem;
  text-align: left;
  align-items: start;
}
/* A continuous wash gives the copy a readable ground without a panel edge. */
.fn-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  background: linear-gradient(
    90deg,
    rgba(243, 239, 230, 0.88),
    rgba(243, 239, 230, 0.72) 38%,
    rgba(243, 239, 230, 0) 76%
  );
  pointer-events: none;
}
.fn-hero .fn-lockup {
  grid-column: 1;
  width: 100%;
  max-width: 600px;
  margin: 0;
  transform: none;
}
.fn-landing-intro {
  grid-column: 1;
  margin: 0.3rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--museum-black);
  text-align: left;
}
.fn-hero .fn-subscribe {
  grid-column: 1;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  gap: 1rem;
}
.fn-hero .fn-subscribe .btn-pill {
  align-self: flex-start;
  width: auto;
  min-width: min(220px, 100%);
  max-width: 100%;
  margin-top: 0.75rem;
}
@media (max-width: 800px),
  (orientation: landscape) and (max-width: 1000px) and (max-height: 500px),
  (min-width: 601px) and (max-width: 1024px) and (orientation: portrait),
  (min-width: 1025px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fn-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 2rem 1.5rem;
    min-height: auto;
    row-gap: 1.2rem;
    justify-content: normal;
  }
  .fn-hero::before {
    background: linear-gradient(
      180deg,
      rgba(243, 239, 230, 0.82),
      rgba(243, 239, 230, 0.65) 65%,
      rgba(243, 239, 230, 0)
    );
  }
  .fn-hero .fn-lockup {
    max-width: 560px;
  }
  .fn-landing-intro {
    font-size: 1.05rem;
  }
}

/* The wash tapers through the testimonials instead of stopping at the hero. */
.fn-hero::before {
  bottom: -5rem;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - 18rem),
    rgba(0, 0, 0, 0.92) calc(100% - 14rem),
    rgba(0, 0, 0, 0.65) calc(100% - 9rem),
    rgba(0, 0, 0, 0.25) calc(100% - 4rem),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 calc(100% - 18rem),
    rgba(0, 0, 0, 0.92) calc(100% - 14rem),
    rgba(0, 0, 0, 0.65) calc(100% - 9rem),
    rgba(0, 0, 0, 0.25) calc(100% - 4rem),
    transparent 100%
  );
}
@media (min-width: 801px) and (orientation: landscape) and (min-height: 501px),
  (min-width: 1001px) and (orientation: landscape),
  (min-width: 1025px) and (hover: hover),
  (min-width: 1367px) {
  .fn-hero {
    padding-top: 2.5rem;
    padding-bottom: 1.5rem;
    row-gap: 1rem;
  }
  .fn-testimonials {
    padding-top: 0.75rem;
  }
}

/* Desktop: the content column is inset by 10% of the viewport. */
@media (min-width: 801px) and (orientation: landscape) and (min-height: 501px),
  (min-width: 1001px) and (orientation: landscape),
  (min-width: 1025px) and (hover: hover),
  (min-width: 1367px) {
  .fn-hero {
    --newsletter-inset: max(
      0px,
      calc(10vw - max(0px, (100vw - 1440px) / 2) - var(--edge))
    );
    grid-template-columns: var(--newsletter-inset) minmax(0, 600px) minmax(
        0,
        1fr
      );
    column-gap: 0;
  }
  .fn-hero .fn-lockup,
  .fn-hero .fn-landing-intro,
  .fn-hero .fn-subscribe {
    grid-column: 2;
  }
}

/* Reach line in Apothecary green. */
.fn-hero .fn-hero-reach {
  color: var(--apothecary);
  text-shadow: none;
}

/* Publishing frequency, quieter than the promise it supports. */
.fn-landing-intro .fn-frequency {
  display: block;
  margin-bottom: 0.3rem;
  transform: translateY(0.3rem);
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}
/* Shares the container and inset of the subscribe column. */
@media (min-width: 801px) and (orientation: landscape) and (min-height: 501px),
  (min-width: 1001px) and (orientation: landscape),
  (min-width: 1025px) and (hover: hover),
  (min-width: 1367px) {
  .fn-testimonials {
    box-sizing: border-box;
    max-width: 1440px;
    padding-left: max(var(--edge), calc(10vw - max(0px, (100vw - 1440px) / 2)));
    padding-right: max(
      var(--edge),
      calc(10vw - max(0px, (100vw - 1440px) / 2))
    );
  }
}
@media (max-width: 800px),
  (orientation: landscape) and (max-width: 1000px) and (max-height: 500px),
  (min-width: 601px) and (max-width: 1024px) and (orientation: portrait),
  (min-width: 1025px) and (max-width: 1366px) and (hover: none) and (pointer: coarse) and (orientation: portrait) {
  .fn-testimonials {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Keeps the audience credential quieter than the promise. */
.fn-hero .fn-hero-reach {
  font-weight: 500;
}
