/* Learn publication layout. The shared shell, palette and theme controls live in site.css. */

.learn-index,
.learn-article {
  width: min(100% - 48px, 1120px);
  margin: 0 auto;
}

.learn-intro {
  max-width: 760px;
  padding: clamp(64px, 10vw, 112px) 0 clamp(48px, 7vw, 76px);
}

.learn-intro .kicker,
.article-header .kicker {
  margin: 0 0 16px;
  color: var(--brand-brown);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.article-header .kicker a {
  text-decoration: none;
}

.article-header .kicker a:hover,
.article-header .kicker a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.learn-intro h1,
.article-header h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.7rem, 8vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.learn-intro > p:not(.kicker) {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  line-height: 1.65;
}

.feed-link {
  display: inline-flex;
  margin-top: 28px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--brand-brown);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.feed-link:hover,
.feed-link:focus-visible {
  background: var(--bg-soft);
}

.learn-listing {
  padding: 0 0 clamp(72px, 10vw, 120px);
}

.learn-listing > h2 {
  margin: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-list > li {
  border-bottom: 1px solid var(--border);
}

.article-card {
  display: grid;
  grid-template-columns: minmax(8rem, 0.3fr) minmax(0, 1fr);
  gap: 8px 44px;
  padding: 32px 0 36px;
}

.article-card-date {
  grid-row: 1 / span 2;
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.article-card h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.article-card h2 a {
  text-decoration: none;
}

.article-card h2 a:hover,
.article-card h2 a:focus-visible {
  color: var(--brand-brown);
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.13em;
}

.article-card > p:last-child {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.learn-empty {
  padding: 38px 0 44px;
  color: var(--text-muted);
}

.learn-empty p {
  margin: 0;
}

.learn-empty p + p {
  margin-top: 6px;
}

.learn-article {
  max-width: 1120px;
  padding: clamp(54px, 9vw, 104px) 0 clamp(72px, 10vw, 120px);
}

.learn-article > article,
.article-back {
  width: min(100%, 760px);
  margin: 0 auto;
}

.article-header {
  padding-bottom: clamp(30px, 5vw, 48px);
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(2.45rem, 7vw, 4.8rem);
}

.standfirst {
  margin: 24px 0 0;
  max-width: 700px;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.6;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  align-items: center;
  margin: 26px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-meta a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 0.18em;
}

.draft-label {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.article-lead-image,
.article-inline-image {
  width: min(100%, 960px);
  margin: clamp(34px, 6vw, 58px) auto 0;
}

.article-lead-image picture,
.article-inline-image picture {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: min(40rem, 72vh);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: clamp(18px, 3vw, 30px);
  box-shadow: 0 28px 72px rgba(51, 48, 44, 0.18);
}
.article-lead-image img,
.article-inline-image img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.article-lead-image figcaption,
.article-inline-image figcaption {
  max-width: 700px;
  margin: 12px auto 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: center;
}

.article-proof-note {
  margin: 1.8em 0 2.2em;
  padding: 1em 1.15em;
  border-left: 3px solid var(--brand-brown);
  background: var(--bg-soft);
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.6;
}

.article-proof-note strong {
  display: block;
  margin-bottom: 0.25em;
}

.article-proof-note p {
  margin: 0;
}

/* THE ARTICLE BODY IS SET IN THE SITE'S OWN FACE (phase-2 follow-on, Amendment 1).
 *
 * It was `Georgia, "Times New Roman", serif` from the first Learn build. Two things were wrong with
 * that by 9 September 2026. The reader's: Mike read the article body on staging as "Times New Roman
 * slipped in", which is what a Georgia stack becomes on a machine without Georgia. The component's:
 * a product scene now sits inside this element, and `font-family` inherits, so a picture of the
 * product was being set in a face the product has never used. One token, declared once in
 * `site.css`, is read here and by `.sketch-window`, so the two can no longer disagree. */
.article-body {
  padding-top: clamp(34px, 6vw, 58px);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.article-body > :first-child {
  margin-top: 0;
}

.article-body > :last-child {
  margin-bottom: 0;
}

.article-body p,
.article-body ul,
.article-body ol,
.article-body blockquote {
  margin: 0 0 1.45em;
}

.article-body h2,
.article-body h3 {
  max-width: 660px;
  margin: 2.2em 0 0.65em;
  font-family: var(--font-sans);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.article-body h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.article-body h3 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

.article-body a {
  color: var(--brand-brown);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

.article-body blockquote {
  padding: 0.15em 0 0.15em 1.2em;
  border-left: 3px solid var(--brand-brown);
  color: var(--text-muted);
}

.article-body img,
.article-body video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 2em auto;
  border-radius: var(--radius-md);
}

.article-body figure {
  margin: 2em 0;
}

.article-body figcaption {
  margin-top: 0.7em;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.5;
}

.article-back {
  margin-top: clamp(48px, 8vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-back a {
  color: var(--brand-brown);
  font-weight: 700;
  text-decoration: none;
}

.article-back a:hover,
.article-back a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.editorial-standards {
  margin-bottom: clamp(72px, 10vw, 120px);
  padding: clamp(32px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}

.editorial-standards > .kicker {
  margin: 0 0 12px;
  color: var(--brand-brown);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.editorial-standards > h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  letter-spacing: -0.045em;
  line-height: 1;
  text-wrap: balance;
}

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 44px);
  margin-top: 34px;
}

.editorial-grid h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.editorial-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.editorial-grid a {
  color: var(--brand-brown);
  text-underline-offset: 0.16em;
}

@media (max-width: 40rem) {
  .learn-index,
  .learn-article {
    width: min(100% - 32px, 1120px);
  }

  .learn-intro {
    padding-top: 54px;
  }

  .article-card {
    display: block;
  }

  .article-card-date {
    margin: 0 0 10px;
  }

  .article-card > p:last-child {
    margin-top: 12px;
  }

  .article-lead-image {
    width: calc(100% + 16px);
    margin-left: -8px;
  }

  .article-lead-image figcaption {
    padding: 0 8px;
  }

  .editorial-standards {
    padding: 28px 22px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .learn-article {
    width: 100%;
    padding: 0;
  }

  .article-body {
    font-size: 11pt;
  }

  .article-back {
    display: none;
  }
}

/* The publication facts support the articles without a second three-column feature block. */
.learn-main .editorial-standards, details.editorial-standards { margin-top: 32px; padding: 0 20px; }
details.editorial-standards > summary { font-size: 1rem; }
details.editorial-standards > p { max-width: 78ch; font-size: .9375rem; }
