/* =========================================================================
   NN Homepage - the assembled front page (ticket 12.04 of the
   homepage-refresh effort).

   Almost nothing is written here, on purpose. The banner draws its own edge
   and its own picture, the six bands draw their own air and their own rows,
   and the grid is the shop's own grid with the shop's own edge. What is left
   is the three small things the assembled page owns and no other ticket
   does:

   - the page's paper, so the banner, the bands and the grid sit on one ivory;
   - the last door of the page, drawn exactly as a band draws its own;
   - the goods edge under that door, 24 on a computer and 16 on a phone.

   House tokens only: ivory ground, charcoal words. No fifth colour, no
   shadow, no rounded surface, no box, no rule between blocks.
   ========================================================================= */

/* --- 1. The page's own paper ------------------------------------------
   The assembled page is ivory from the banner to the last door. The blocks
   above and below it (the shared header, the footer) keep their own ground. */

.nn-homepage,
.nn-homepage .page-content,
.nn-homepage .site-main {
  background-color: var(--color-ivory, #F4F1EA);
}

/* --- 2. The stray closing paragraph -----------------------------------
   A paragraph holding a shortcode prints its own closing tag after the
   shortcode's markup, and the browser reads that lone closing tag as one
   more empty paragraph. Four of them on this page would add about 58px of
   air that no block asked for, which is exactly what moves the measured
   gap between two blocks off its settled 192 / 112. The empty ones are
   hidden; a paragraph with words in it is untouched. */

.nn-homepage .page-content > .elementor > .elementor-element > p:empty,
.nn-homepage .page-content > .elementor > .elementor-element > .e-con > p:empty {
  display: none;
}

/* --- 3. The bands' doors ----------------------------------------------
   The door is a word in tracked capitals at the end of a row, not a line of
   prose: it rests without an underline and answers the pointer with one.
   The page's own link rule (".page-content a") underlines every link inside
   page content and outweighs the band's single class, so the house's answer
   - one class deeper - is written here for this page. Nothing about the band
   is redrawn: the size, the tracking, the colour and the hover words are the
   band's own. */

.nn-homepage .page-content .nn-band__door {
  text-decoration: none;
}

.nn-homepage .page-content .nn-band__door:hover,
.nn-homepage .page-content .nn-band__door:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* --- 3. The last door -------------------------------------------------
   The page's seventh door, the one into The Shop. It keeps the goods edge
   the rest of the page keeps, and it is drawn as the bands draw theirs: a
   bare word in charcoal tracked capitals, standing on the page's own paper.
   No fill, no border, no rounding, no mark. */

.nn-hp-foot {
  box-sizing: border-box;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding-inline: 24px;
}

.nn-homepage .page-content .nn-hp-door {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-family: var(--font-body, Manrope, sans-serif);
  font-size: var(--type-label-md-size, 12px);
  font-weight: var(--type-label-md-weight, 600);
  line-height: var(--type-label-md-leading, 1.2);
  letter-spacing: var(--type-label-md-tracking, 0.08em);
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--color-charcoal, #20201F);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
}

.nn-homepage .page-content .nn-hp-door:hover,
.nn-homepage .page-content .nn-hp-door:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nn-homepage .page-content .nn-hp-door:focus-visible {
  outline: 2px solid var(--color-charcoal, #20201F);
  outline-offset: 4px;
}

@media (max-width: 767px) {
  .nn-hp-foot {
    padding-inline: 16px;
  }
}
