/* ============================================
   WORK PAGE: child article pilot
   All selectors namespaced under .work-page.
   Loads after /style.css; inherits global tokens, fonts, reset, and the
   top black stroke (body::before).
   No homepage scroll choreography on work pages.
   ============================================ */

/* Compact sticky nav for work pages.
   Replaces the homepage masthead lockup with a single bar:
   monogram + nav controls left, italic wordmark center, account links right.
   Reuses .nav-icon, .signin, .subscribe-btn, .nav-links from style.css. */
.work-page .work-nav {
  position: sticky;
  top: var(--top-stroke-height);
  z-index: 100;
  height: var(--site-nav-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-divider);
  padding: 0 max(var(--header-edge-padding), calc((100% - var(--max-outer)) / 2));
  display: grid;
  grid-template-columns: minmax(25%, 1fr) auto minmax(25%, 1fr);
  align-items: center;
}

.work-page .work-nav-left,
.work-page .work-nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 40px;
}

.work-page .work-nav-right {
  justify-content: flex-end;
}

.work-page .work-nav-center {
  display: flex;
  justify-content: center;
}

.work-page .work-monogram {
  font-family: "Prata", Georgia, serif;
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.work-page .work-wordmark {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 28px;
  line-height: 1;
  color: var(--color-text);
  white-space: nowrap;
}

/* Article container: Atlantic-style narrow text column. */
.work-page .work-article {
  max-width: 696px;
  margin: 0 auto;
  padding: 56px 16px 80px;
}

.work-page {
  /* Prefer Adobe Garamond Pro if installed locally; otherwise EB Garamond. */
  --font-work-serif: "Adobe Garamond Pro", "Adobe Garamond", "EB Garamond", Georgia, serif;
}

.work-page .work-header {
  margin: 0;
}

.work-page .work-kicker {
  font-family: "Logic Monospace", "Logic Mono", "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 14px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #A80D13;
  margin: 0 0 20px;
}

.work-page .work-headline {
  font-family: var(--font-work-serif);
  font-size: 46px;
  line-height: 52px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text);
  text-wrap: pretty;
  margin: 0 0 16px;
}

.work-page .work-dek {
  font-family: var(--font-work-serif);
  font-size: 24px;
  line-height: 32px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text);
  text-wrap: pretty;
  margin: 0 0 36px;
}

/* Hero figure breaks out of the 696px article column to a centered 980px max
   on desktop; collapses to viewport width (minus 24px gutters) at narrow sizes. */
.work-page .work-hero-figure {
  width: min(980px, calc(100vw - 48px));
  max-width: 980px;
  margin-left: 50%;
  transform: translateX(-50%);
  margin-top: 3.5rem;
  margin-bottom: 4.5rem;
}

.work-page .work-hero-figure img,
.work-page .work-hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.work-page .work-body {
  font-family: var(--font-work-serif);
  color: var(--color-text);
}

.work-page .work-body p {
  font-family: var(--font-work-serif);
  font-size: 22px;
  line-height: 33px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text);
  text-wrap: pretty;
  margin: 0 0 24px;
}

.work-page .work-body p:last-child {
  margin-bottom: 0;
}

/* Bulleted lists inside the body. Used when the source Markdown carries a
   list block (e.g. Fire TV Stick 4K "The details"). Inherits the body
   serif type scale so list copy sits cleanly against surrounding paragraphs. */
.work-page .work-body ul {
  list-style: disc;
  padding-left: 1.4em;
  margin: 0 0 24px;
}

.work-page .work-body li {
  font-family: var(--font-work-serif);
  font-size: 22px;
  line-height: 33px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text);
  text-wrap: pretty;
  margin: 0 0 12px;
}

.work-page .work-body li:last-child {
  margin-bottom: 0;
}

/* Section subheads inside the body. Used when the source structure
   carries labeled sections (e.g. Fire TV Stick 4K). */
.work-page .work-subhead {
  font-family: var(--font-work-serif);
  font-size: 28px;
  line-height: 36px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text);
  text-wrap: pretty;
  margin: 40px 0 16px;
}

/* Supporting body figures sit inside the 696px article column and match
   the body text width. Only the hero figure breaks out to 980px. */
.work-page .work-figure {
  width: 100%;
  max-width: 100%;
  margin: 40px 0;
  transform: none;
}

.work-page .work-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.work-page .work-figure-wide {
  width: min(980px, calc(100vw - 48px));
  max-width: 980px;
  margin-left: 50%;
  transform: translateX(-50%);
}

.work-page .work-video-embed {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.work-page .work-video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* PDF artifact embed. US-Letter aspect ratio, falls back to a download link
   if the browser cannot render PDFs inline (most mobile browsers). */
.work-page .work-pdf-embed {
  width: 100%;
  aspect-ratio: 8.5 / 11;
  background: #f4f4f2;
}

.work-page .work-pdf-embed object,
.work-page .work-pdf-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.work-page .work-pdf-fallback {
  display: block;
  padding: 24px;
  font-family: var(--font-work-serif);
  font-size: 18px;
  line-height: 28px;
  color: var(--color-text);
}

.work-page .work-caption {
  font-family: var(--font-work-serif);
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  color: rgba(0, 0, 0, 0.55);
  margin-top: 12px;
}

/* Stats block: 3 to 4 standalone metrics drawn from the result section. */
.work-page .work-stats {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-text);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.work-page .work-stat {
  display: flex;
  flex-direction: column;
}

.work-page .work-stat-number {
  font-family: var(--font-serif);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 500;
  color: var(--color-headline);
}

.work-page .work-stat-label {
  font-family: var(--font-kicker);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.6);
  margin-top: 10px;
}

/* Prose-stat variant: sentence-style labels under a large serif value.
   Used when stat labels read as full sentences, not short metric tickers. */
.work-page .work-stats-prose .work-stat-number {
  font-size: 56px;
  line-height: 1.05;
}

.work-page .work-stats-prose .work-stat-label {
  font-family: var(--font-work-serif);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(0, 0, 0, 0.65);
  margin-top: 10px;
  hyphens: none;
}

/* Mobile */
@media (max-width: 768px) {
  .work-page .work-nav-links,
  .work-page .work-nav-right .signin {
    display: none;
  }

  .work-page .work-wordmark {
    font-size: 22px;
  }

  .work-page .work-article {
    padding: 32px 16px 64px;
  }

  .work-page .work-headline {
    font-size: 36px;
    line-height: 40px;
  }

  .work-page .work-dek {
    font-size: 19px;
    line-height: 27px;
  }

  .work-page .work-body p {
    font-size: 19px;
    line-height: 29px;
    margin-bottom: 20px;
  }

  .work-page .work-body li {
    font-size: 19px;
    line-height: 29px;
    margin-bottom: 10px;
  }

  .work-page .work-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .work-page .work-stat-number {
    font-size: 36px;
  }

  .work-page .work-stats-prose .work-stat-number {
    font-size: 42px;
  }

  .work-page .work-stats-prose .work-stat-label {
    font-size: 15px;
    line-height: 22px;
  }

  .work-page .work-subhead {
    font-size: 22px;
    line-height: 28px;
    margin: 32px 0 12px;
  }

  .work-page .work-figure {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .work-page .work-caption {
    font-size: 13px;
    line-height: 19px;
  }

  .work-page .work-pdf-embed {
    aspect-ratio: auto;
    height: 70vh;
  }
}
