/* Component: Fieldnotes ----------------------------------------------------- */
@layer components {
  /* The hero reproduces the approved standalone reference (1438x955 artwork
     area). The box keeps that aspect so the background-position percentages
     resolve to the same framing the reference shows; the crop itself was
     measured by locating the eye sculpture's iris in BOTH the reference and a
     test render -- comparing like with like, since the wash shrinks the blue
     that a threshold sees -- and aligning their CENTRES. Extent is not usable --
     the wash eats the edge of the blue that a threshold sees, and trusting the
     measured width once sent the crop 18% too large. Iris centre lands at the
     reference's (406, 678). */
  .tp-fn-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 1438 / 955;
    overflow: hidden;
    isolation: isolate;
    /* Full bleed to the top of the document, behind the transparent editorial
       header, exactly as the other editorial destinations do. The wash is ~0.97
       up there, so what sits behind the nav is already page-coloured. */
    margin-top: calc(-1 * var(--tp-editorial-band-top, 59px));
  }

  .tp-fn-hero__plate,
  .tp-fn-hero__wash {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }

  .tp-fn-hero__plate {
    background-image: var(--tp-plate);
    background-repeat: no-repeat;
    background-size: 229.5% auto;
    background-position: 28.55% 90.0%;
  }

  /* Measured off the reference: the implied cream sits at ~0.28 over the books
     and eye and rises to ~0.97 at every edge, which is what gives the page its
     atmospheric light and leaves the header and title a clean field. Stops are
     smoothed, so there is no findable boundary and the hero's bottom edge meets
     the footer already at the page colour -- no cutoff to hide. */
  .tp-fn-hero__wash {
    background: radial-gradient(ellipse 70% 52% at 44% 58%, rgba(246, 240, 229, 0.18) 0%, rgba(246, 240, 229, 0.1946) 7.14%, rgba(246, 240, 229, 0.2339) 14.29%, rgba(246, 240, 229, 0.2911) 21.43%, rgba(246, 240, 229, 0.3596) 28.57%, rgba(246, 240, 229, 0.4326) 35.71%, rgba(246, 240, 229, 0.5033) 42.86%, rgba(246, 240, 229, 0.565) 50%, rgba(246, 240, 229, 0.6267) 57.14%, rgba(246, 240, 229, 0.6974) 64.29%, rgba(246, 240, 229, 0.7704) 71.43%, rgba(246, 240, 229, 0.8389) 78.57%, rgba(246, 240, 229, 0.8961) 85.71%, rgba(246, 240, 229, 0.9354) 92.86%, rgba(246, 240, 229, 0.95) 100%);
  }

  .tp-fn-hero__lockup {
    position: absolute;
    left: clamp(22px, 5.6vw, 80px);
    top: clamp(56px, 7.4vw, 106px);
    z-index: 2;
    max-width: min(34ch, 46vw);
  }

  .tp-fn-hero__title {
    margin: 0;
    font-weight: 400;
    font-size: clamp(30px, 4.2vw, 58px);
    line-height: 1.02;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--tp-color-heading, #1E3A63);
  }

  .tp-fn-hero__intro {
    margin: clamp(10px, 1.2vw, 18px) 0 0;
    font-size: clamp(14px, 1.15vw, 17px);
    font-style: italic;
    font-weight: 300;
    line-height: 1.62;
    color: var(--tp-color-body, #3C3A34);
    text-wrap: pretty;
  }

  .tp-fn-hero__return {
    position: absolute;
    right: clamp(18px, 4vw, 58px);
    top: clamp(58px, 7.6vw, 108px);
    z-index: 2;
    min-height: var(--tp-tap-target, 44px);
    display: inline-flex;
    align-items: center;
    font-family: 'Courier Prime', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tp-color-heading, #1E3A63);
  }

  /* Entries only exist once something is published; the reference is the empty
     state and nothing is invented to fill it. */
  .tp-fn-entries {
    position: relative;
    z-index: 2;
    padding: clamp(34px, 5vw, 72px) clamp(22px, 4vw, 58px) clamp(46px, 6vw, 88px);
  }

  .tp-fn-entries__inner {
    display: grid;
    gap: clamp(26px, 3vw, 44px);
    max-width: 1100px;
    margin: 0 auto;
  }

  .tp-fn-entry__link {
    display: block;
    padding-bottom: clamp(18px, 2vw, 26px);
    border-bottom: var(--tp-border-soft, 1px solid rgba(217, 199, 155, 0.5));
  }

  .tp-fn-entry__date {
    font-family: 'Courier Prime', monospace;
    font-size: 9.5px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #635840;
  }

  .tp-fn-entry__title {
    margin: 10px 0 0;
    font-weight: 400;
    font-size: clamp(21px, 2.1vw, 30px);
    line-height: 1.16;
    color: var(--tp-color-heading, #1E3A63);
  }

  .tp-fn-entry__excerpt {
    margin: 10px 0 0;
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 300;
    line-height: 1.62;
    color: var(--tp-color-body, #3C3A34);
    text-wrap: pretty;
  }
}

@layer components {
  /* No tablet or mobile reference exists for Fieldnotes, so these are derived
     in the locked responsive language of the other editorial destinations:
     title at the top, the eye/notebook cluster as the subject, the mannequin
     and Baburen out of frame. The hero grows taller as it narrows so the
     cluster keeps its presence instead of becoming a letterbox strip.

     Cluster on the plate: the sculpture spans x 0.208-0.297, y 0.638-0.745 and
     the open notebooks carry it out to about x 0.45, y 0.85 — centre (0.29, 0.72). */
  @media (max-width: 1099px) {
    .tp-fn-hero {
      aspect-ratio: 4 / 3;
    }

    .tp-fn-hero__plate {
      background-size: 232% auto;
      background-position: 19.5% 90.0%;
    }
  }

  @media (max-width: 699px) {
    .tp-fn-hero {
      aspect-ratio: 3 / 4;
    }

    .tp-fn-hero__plate {
      background-size: 300% auto;
      background-position: 23.5% 94.0%;
    }

    /* The lockup sits at the top, as on every other locked mobile editorial
       page, rather than floating over the middle of the artwork. */
    .tp-fn-hero__lockup {
      left: 16px;
      right: 16px;
      /* clear of the return link above it */
      top: 96px;
      max-width: none;
    }

    .tp-fn-hero__wash {
      background: radial-gradient(ellipse 86% 54% at 48% 62%, rgba(246, 240, 229, 0.14) 0%, rgba(246, 240, 229, 0.155) 7.14%, rgba(246, 240, 229, 0.1953) 14.29%, rgba(246, 240, 229, 0.254) 21.43%, rgba(246, 240, 229, 0.3243) 28.57%, rgba(246, 240, 229, 0.3991) 35.71%, rgba(246, 240, 229, 0.4717) 42.86%, rgba(246, 240, 229, 0.535) 50%, rgba(246, 240, 229, 0.5983) 57.14%, rgba(246, 240, 229, 0.6709) 64.29%, rgba(246, 240, 229, 0.7457) 71.43%, rgba(246, 240, 229, 0.816) 78.57%, rgba(246, 240, 229, 0.8747) 85.71%, rgba(246, 240, 229, 0.915) 92.86%, rgba(246, 240, 229, 0.93) 100%);
    }

    .tp-fn-hero__title {
      font-size: 30px;
    }

    .tp-fn-hero__intro {
      font-size: 14px;
      max-width: 34ch;
    }

    .tp-fn-hero__return {
      right: 16px;
      top: 58px;
      min-height: 0;
    }
  }
}
