/* page/articles.css — page-scoped styling for articles.html only.
   Composes tokens from components/styles.css + home/home-flagship.css
   (R-04/R-05); no shared component is edited. Loads LAST. */

/* ---------------- Masthead ---------------- */
.ar-mast { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(32px, 5vw, 56px); }
.ar-mast__inner { max-width: var(--content); text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.ar-mast .kicker { justify-content: center; }
.ar-mast__title {
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.08; color: var(--primary);
  margin: 9px 0 14px; text-wrap: balance;
}
.ar-mast__sub { font-size: clamp(14.5px, 1.5vw, 16px); line-height: 1.6; color: var(--text); max-width: 60ch; margin: 0 auto; }

/* ---------------- Featured lead ----------------
   Image left, title right on desktop; stacks on small screens. Deliberately a
   different shape from the grid tiles so the page opens with hierarchy. */
.ar-lead {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(22px, 3vw, 44px);
  align-items: center; border: 1px solid var(--line); border-radius: var(--r-frame);
  padding: clamp(16px, 2vw, 22px); background: var(--white);
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
@media (hover: hover) and (pointer: fine) {
  .ar-lead:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.09); }
  .ar-lead:hover .ar-lead__media img { transform: scale(1.03); }
}
.ar-lead:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.ar-lead__media {
  display: block; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 16 / 9.5; background: var(--surface-2, #f4f1f3);
  box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.07);
}
.ar-lead__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1); }
.ar-lead__body { display: block; padding-right: clamp(0px, 2vw, 24px); }
.ar-lead__flag {
  display: inline-block; padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--primary); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 11.5px; letter-spacing: 0.02em;
}
.ar-lead__title {
  display: block; margin: 14px 0 16px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(21px, 2.6vw, 32px); line-height: 1.15; color: var(--primary); text-wrap: balance;
}
.ar-lead__cta { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: var(--primary); }
.ar-lead__cta svg { transition: transform 0.2s ease; }
.ar-lead:hover .ar-lead__cta svg { transform: translateX(4px); }

@media (max-width: 820px) {
  .ar-lead { grid-template-columns: 1fr; }
  .ar-lead__body { padding-right: 0; padding-bottom: 6px; }
}

/* ---------------- Filter bar ---------------- */
.ar-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 32px);
}
.ar-bar__head .kicker { margin-bottom: 2px; }
.ar-filters { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.ar-chip {
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  padding: 8px 15px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: -0.005em;
  color: var(--text); transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.ar-chip:hover { color: var(--primary); border-color: var(--primary); }
.ar-chip:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ar-chip.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---------------- Article grid ---------------- */
.ar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 26px; }

.ar-card { display: flex; flex-direction: column; }
.ar-card[hidden] { display: none; }
/* Several real post images are product screenshots on a white background, which
   would otherwise dissolve into the white page and read as an empty tile. A
   hairline inset ring keeps every thumbnail contained regardless of its
   artwork, without adding a visible frame to photographic ones. */
.ar-card__media {
  display: block; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 16 / 10; background: var(--surface-2, #f4f1f3);
  box-shadow: inset 0 0 0 1px rgba(11, 11, 11, 0.07);
}
.ar-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1); }
@media (hover: hover) and (pointer: fine) {
  .ar-card:hover .ar-card__media img { transform: scale(1.04); }
  .ar-card:hover .ar-card__title { text-decoration: underline; text-underline-offset: 3px; }
}
.ar-card__cat {
  display: inline-block; margin: 14px 0 0;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text);
}
.ar-card__title {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: 17px; line-height: 1.3; color: var(--primary); margin: 7px 0 0; text-wrap: pretty;
}
.ar-card__link { display: block; color: inherit; }
.ar-card__link:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--r-card); }

@media (max-width: 980px) { .ar-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; } }
@media (max-width: 560px) { .ar-grid { grid-template-columns: 1fr; gap: 26px; } }

.ar-count { margin: clamp(26px, 3.5vw, 36px) 0 0; text-align: center; font-size: 13px; color: var(--text); }

/* ---------------- Reveal (opacity + rise only; never clip-path — see T-0025) ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ar-lead, .ar-lead__media img, .ar-card__media img, .ar-lead__cta svg, .ar-chip { transition: none; }
  .ar-lead:hover { transform: none; }
}
