/* ============================================================
   NGARO: article pages
   Loaded only by the article pages. Consumes style.css tokens;
   defines no new custom properties of its own, same rule as legal.css.

   The layout deliberately differs from the legal shell in one way: the
   answer paragraph sits above the fold at full prose width, because it is
   the paragraph a search engine or an assistant lifts to answer the
   question in the title. Everything else is subordinate to it.
   ============================================================ */

/* ---------- 1. HEAD ---------- */
.art-head {
  padding-block: clamp(128px, 14vw, 190px) clamp(34px, 4vw, 52px);
}

.art-crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tx-faint);
  margin-bottom: 26px;
}
.art-crumb a {
  color: var(--tx-faint);
  transition: color .3s var(--ease);
}
.art-crumb a:hover { color: var(--amber); }
.art-crumb i {
  font-style: normal;
  opacity: .5;
}

/* The title is the query. It is set at .h1 scale rather than display scale
   because it is a sentence, and a sentence at display scale wraps into a
   wall on a phone. */
.art-title {
  font-size: clamp(1.95rem, 4.1vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -.032em;
  font-weight: 500;
  max-width: 30ch;
}

/* ---------- 2. BYLINE ---------- */
.art-by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.art-by__av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  flex: none;
}
.art-by__av svg { width: 21px; height: 21px; }

.art-by__who { display: grid; gap: 3px; }
.art-by__name { font-size: .95rem; font-weight: 500; }
.art-by__meta {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

/* ---------- 3. THE ANSWER ---------- */
/* Sits immediately under the byline, before any narrative. Bordered rather
   than tinted so it stays legible if the amber ever changes. */
.art-answer {
  margin-top: clamp(30px, 4vw, 44px);
  padding: clamp(22px, 2.6vw, 32px) clamp(20px, 2.4vw, 34px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: 3px;
  max-width: 72ch;
}
.art-answer p {
  font-size: clamp(1.04rem, 1.4vw, 1.22rem);
  line-height: 1.62;
  color: var(--tx);
}
.art-answer p + p { margin-top: 14px; }
.art-answer strong { font-weight: 600; }

/* ---------- 4. HERO VISUAL ---------- */
/* CSS-generated rather than photographic. A stock photograph of a laptop
   would say nothing true about the subject, and the site owns no image for
   this piece. The shape is the argument: a filled ring for what stays put,
   an open one for what leaves. */
.art-hero {
  margin-top: clamp(38px, 5vw, 60px);
  aspect-ratio: 16 / 7;
  border-radius: 4px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 150% at 12% 18%, rgba(255,158,44,.20) 0%, rgba(255,158,44,0) 52%),
    radial-gradient(90% 120% at 88% 88%, rgba(22,36,28,.30) 0%, rgba(22,36,28,0) 55%),
    linear-gradient(160deg, var(--bone-2) 0%, var(--bone) 46%, var(--bone-3) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Concentric rings: the innermost solid, the outer ones progressively more
   broken, reading outward from your disk to the network. */
.art-hero__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.art-hero__rings i {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(10,10,10,.16);
}
.art-hero__rings i:nth-child(1) { width: 15%; aspect-ratio: 1; background: rgba(10,10,10,.055); border-color: rgba(10,10,10,.24); }
.art-hero__rings i:nth-child(2) { width: 33%; aspect-ratio: 1; }
.art-hero__rings i:nth-child(3) { width: 54%; aspect-ratio: 1; border-style: dashed; opacity: .74; }
.art-hero__rings i:nth-child(4) { width: 78%; aspect-ratio: 1; border-style: dashed; opacity: .42; }
.art-hero__rings i:nth-child(5) { width: 104%; aspect-ratio: 1; border-style: dashed; opacity: .2; }

.art-hero__mark {
  position: relative;
  width: clamp(34px, 5vw, 60px);
  color: var(--ink);
  opacity: .92;
}

.art-hero__cap {
  position: absolute;
  left: clamp(16px, 2vw, 26px);
  bottom: clamp(12px, 1.6vw, 20px);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tx-faint);
}

@media (prefers-reduced-motion: no-preference) {
  .art-hero__rings i:nth-child(3) { animation: art-drift 26s linear infinite; }
  .art-hero__rings i:nth-child(4) { animation: art-drift 38s linear infinite reverse; }
}
@keyframes art-drift { to { transform: rotate(360deg); } }

/* ---------- 5. BODY ---------- */
.art-body {
  padding-block: clamp(46px, 6vw, 78px) clamp(20px, 3vw, 40px);
}

.art-doc {
  max-width: 68ch;
}

.art-doc > * + * { margin-top: 17px; }

.art-doc h2 {
  font-size: clamp(1.42rem, 2.5vw, 2.05rem);
  line-height: 1.14;
  letter-spacing: -.024em;
  font-weight: 500;
  margin-top: clamp(46px, 5vw, 72px);
  scroll-margin-top: 100px;
}

.art-doc h3 {
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -.012em;
  margin-top: clamp(30px, 3.4vw, 42px);
}

.art-doc p {
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--tx-mute);
}

.art-doc strong { font-weight: 600; color: var(--tx); }

.art-doc a {
  color: var(--ember);
  border-bottom: 1px solid rgba(224,97,26,.34);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.art-doc a:hover { color: var(--amber); border-color: currentColor; }

/* Lists reuse the legal dot marker so the two page types agree. */
.art-list { display: grid; gap: 11px; margin-top: 17px; }
.art-list li {
  position: relative;
  padding-left: 20px;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--tx-mute);
}
.art-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
}
.art-list--num { counter-reset: art; }
.art-list--num li { padding-left: 30px; }
.art-list--num li::before {
  counter-increment: art;
  content: counter(art);
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--amber);
}

/* Pull quote: the one sentence worth stopping on. */
.art-quote {
  margin-block: clamp(34px, 4vw, 52px);
  padding-left: clamp(18px, 2.2vw, 28px);
  border-left: 2px solid var(--amber);
}
.art-quote p {
  font-size: clamp(1.2rem, 1.9vw, 1.6rem);
  line-height: 1.36;
  letter-spacing: -.018em;
  color: var(--tx);
  font-weight: 400;
}

/* Callout, matching the legal pages' treatment. */
.art-note {
  margin-block: clamp(28px, 3.2vw, 40px);
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--bone-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.art-note p { color: var(--tx); font-size: .99rem; }
.art-note p + p { margin-top: 12px; }

/* ---------- 6. TABLE ---------- */
.art-tablewrap {
  margin-block: clamp(26px, 3vw, 38px);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.art-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 460px;
  background: var(--paper);
}
.art-table th,
.art-table td {
  text-align: left;
  padding: 13px 16px;
  font-size: .93rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
}
.art-table th {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tx-faint);
  font-weight: 400;
  background: var(--bone);
}
.art-table td { color: var(--tx-mute); }
.art-table td:first-child { color: var(--tx); font-weight: 500; }
.art-table tr:last-child td { border-bottom: none; }

/* ---------- 7. FOOT OF THE PIECE ---------- */
.art-end {
  max-width: 68ch;
  margin-top: clamp(46px, 5vw, 70px);
  padding-top: clamp(26px, 3vw, 38px);
  border-top: 1px solid var(--line);
}
.art-end__label {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--tx-faint);
  margin-bottom: 14px;
}
.art-end p { font-size: 1.02rem; line-height: 1.68; color: var(--tx-mute); }
.art-end p + p { margin-top: 14px; }
