/* ========================================================================
   lintelstandard.com — root placeholder.
   One route, one screen. Every value below comes from tokens.css; no new
   colours, no values off the spacing scale, no shadows, no gradients.
   ======================================================================== */

*,
*::before,
*::after { box-sizing: border-box; }

html { height: 100%; }

body.lintel {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ----- Guilloche ---------------------------------------------------------
   Brand texture, not imagery. Accent-colour linework held well below full
   strength, anchored to the bottom of the viewport and masked out before it
   reaches the content column.
   ------------------------------------------------------------------------ */
.guilloche {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("../img/guilloche.svg");
  background-repeat: no-repeat;
  background-size: min(1200px, 100vw) auto;
  background-position: 50% calc(100% + 232px);
  opacity: 0.3;
  /* The engraving is strongest in the open band above the footer, held back
     to a whisper behind the footer line, and gone before the content column. */
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0.3) 96px, #000 190px, #000 40%, transparent 68%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0, rgba(0, 0, 0, 0.3) 96px, #000 190px, #000 40%, transparent 68%);
}

/* ----- Header ------------------------------------------------------------ */
.site-header {
  position: relative;
  z-index: 1;
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-5);
  background: var(--bg-2);
  border-bottom: var(--border-1) solid var(--rule);
}

.site-header__mark {
  display: block;
  height: 26px;
  width: auto;
}

/* ----- Content ----------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: calc(var(--measure-prose) + var(--space-5) * 2);
  margin: 0 auto;
  padding: var(--space-8) var(--space-5) var(--space-9);
}

.page h1 {
  margin-bottom: var(--space-4);
}

.lead {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  margin-bottom: var(--space-3);
}

.meta {
  font-size: var(--fs-meta);
  line-height: var(--lh-meta);
  color: var(--fg-2);
  margin-bottom: 0;
}

.product {
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: var(--border-1) solid var(--rule);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-mono-eyebrow);
  text-transform: uppercase;
  color: var(--fg-2);
  margin-bottom: var(--space-2);
}

.product h2 {
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-2);
}

.product p:last-child {
  margin-bottom: 0;
}

/* ----- Footer ------------------------------------------------------------ */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 0 var(--space-5) var(--space-6);
}

.site-footer__inner {
  max-width: var(--measure-prose);
  margin: 0 auto;
  padding-top: var(--space-4);
  border-top: var(--border-1) solid var(--rule);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-footer__mark {
  display: block;
  height: 32px;
  width: auto;
}

.site-footer__contact,
.site-footer__copy {
  margin: 0;
  font-size: var(--fs-meta);
  line-height: var(--lh-meta);
  color: var(--fg-2);
}

.site-footer__contact a {
  color: var(--fg-1);
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: var(--accent);
}

.site-footer__copy {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: var(--fs-micro);
}

/* ----- Narrow viewports -------------------------------------------------- */
@media (max-width: 720px) {
  /* Narrower viewport, shorter pattern: pull the engraving back up so the
     crest still reads above the footer. */
  .guilloche {
    background-size: 150vw auto;
    background-position: 50% calc(100% + 88px);
  }

  .site-header,
  .site-footer {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .page {
    padding: var(--space-7) var(--space-4) var(--space-8);
  }

  .site-footer__inner {
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .site-footer__copy {
    margin-left: 0;
    flex-basis: 100%;
  }
}
