/* GRA Moissanite — site-level styles layered on the Modernist design system.
   Tokens and component classes live in modernist.css; this file only holds
   what the pages add on top. */

body { margin: 0; text-wrap: pretty; }
a { color: var(--color-accent-700); }
a:hover { color: var(--color-accent); }

/* The brand logo is a square JPEG on white — multiply blends it onto the
   ground so it needs no transparent cut-out. Until the real file is dropped
   into assets/, .brand-fallback renders the wordmark instead. */
.brand-mark { display: block; mix-blend-mode: multiply; }
.brand-fallback {
  display: none; font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  letter-spacing: -0.01em; line-height: 1;
}
.brand-fallback .sub {
  display: block; font-size: 0.34em; letter-spacing: 0.14em;
  text-transform: uppercase; margin-top: 0.22em;
}
.brand-missing .brand-mark { display: none; }
.brand-missing .brand-fallback { display: block; }

/* Hero slideshow: three grayscale crops crossfading on a 3s cycle. */
.hero-stage { position: relative; align-self: stretch; min-height: 420px; overflow: hidden; }
.hero-stage img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: grayscale(1); transition: opacity 1.2s ease;
}
.hero-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--color-neutral-200);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 45%, transparent); text-align: center; padding: 24px;
}

.shape-tile { border-top: 2px solid var(--color-divider); padding: 24px 20px 36px; cursor: pointer; color: var(--color-text); }
.shape-tile:hover { background: var(--color-accent); color: var(--color-bg); }
.shape-tile:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

@media print {
  [data-no-print] { display: none !important; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) !important; }

  /* Stack the nav rather than hide it. An earlier version dropped the links
     entirely below this width, which left a phone visitor with no route to
     the weight charts at all — and most visitors arrive on a phone. Brand and
     the primary action share the first line; the links wrap underneath. */
  .nav { flex-wrap: wrap; row-gap: 12px; }
  .nav-links {
    order: 3;
    width: 100%;
    flex: 1 1 100% !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    flex-wrap: wrap;
  }
  .nav-links a { font-size: 17px !important; }

  /* The logo is sized for a desktop header; scale it and its ® to match. */
  .brand-mark { height: 96px !important; }
  .brand-fallback { font-size: 22px !important; }
  .brand-tm { font-size: 9px !important; margin-top: 32px !important; }

  .hero-stage { min-height: 280px; }
}
