/* ═══════════════════════════════════════════════════════════════════════════
   articles.css — /articles/ and every article page.
   White, calm and easy to read. Most readers are learning English, many on a
   phone, so the text is big, the lines are short and nothing moves.
   ═══════════════════════════════════════════════════════════════════════ */
.page-article, .page-articles { --top: calc(var(--bar-h) + var(--bar-gap) * 2); --page: var(--sound); }

.ar { width: min(760px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }

/* the top of an article */
.ar-head { padding: calc(var(--top) + clamp(24px, 6vh, 64px)) 0 clamp(24px, 4vh, 40px); display: grid; gap: 18px; }
.ar-head .eyebrow a { color: inherit; text-decoration: none; }
.ar-head .eyebrow a:hover { color: var(--sound); }
.ar-title { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem); letter-spacing: -.03em; line-height: 1.02; font-variation-settings: 'opsz' 96, 'wdth' 100, 'wght' 780; }
.ar-lede { font-size: var(--t-lede); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.ar-by { display: flex; align-items: center; gap: 12px; padding-top: 6px; font-size: .95rem; color: var(--ink-2); }
.ar-by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--cyc-2); flex: none; }
.ar-by b { color: var(--ink); }
.ar-by span { display: block; line-height: 1.35; }

/* "The short answer" box */
.ar-short { margin: 8px 0 0; padding: 20px 24px; border-radius: var(--radius); background: var(--cyc-2); border-left: 4px solid var(--sound); display: grid; gap: 8px; }
.ar-short > b { font-family: var(--f-display); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sound); font-variation-settings: 'opsz' 12, 'wdth' 90, 'wght' 650; }
.ar-short p { font-size: 1.1rem; line-height: 1.55; }

/* the article text */
.ar-body { padding-bottom: clamp(40px, 8vh, 80px); font-size: clamp(1.1rem, 1.02rem + .35vw, 1.25rem); line-height: 1.7; text-wrap: pretty; }
.ar-body > * + * { margin-top: 1.05em; }
.ar-body h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); letter-spacing: -.02em; line-height: 1.1; margin-top: 2.1em; }
.ar-body h3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.45rem); line-height: 1.2; margin-top: 1.7em; }
.ar-body h2 + *, .ar-body h3 + * { margin-top: .6em; }
.ar-body ul, .ar-body ol { padding-left: 1.3em; display: grid; gap: .45em; }
.ar-body li::marker { color: var(--ink-3); }
.ar-body strong { font-weight: 700; }
.ar-body .gloss { color: var(--ink-2); font-size: .92em; }
.ar-body mark { background: var(--pen-soft); color: inherit; padding: 0 .15em; border-radius: 3px; }

/* a line worth remembering */
.ar-pull { margin: 1.8em 0; padding: 0; font-family: var(--f-display); font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; font-variation-settings: 'opsz' 48, 'wdth' 100, 'wght' 680; text-wrap: balance; }
.ar-pull span { background: linear-gradient(transparent 60%, var(--pen) 60%, var(--pen) 92%, transparent 92%); }

/* a message to copy into an AI app */
.ar-prompt { position: relative; margin-top: 1.1em; padding: 18px 20px 18px 22px; border: 1px solid var(--line); border-left: 4px solid var(--sound); border-radius: 14px; background: var(--cyc); box-shadow: var(--shadow-1); }
.ar-prompt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.ar-prompt-top b { font-family: var(--f-display); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-variation-settings: 'opsz' 12, 'wdth' 90, 'wght' 650; }
.ar-prompt p { font-size: 1.02rem; line-height: 1.55; }
.ar-copy { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: var(--cyc); font-size: .88rem; font-weight: 600; }
.ar-copy:hover { background: var(--sound); }
.ar-copy.done { background: var(--sound); }

/* the seven-day plan */
.ar-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.ar-table th, .ar-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.ar-table th { font-family: var(--f-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-variation-settings: 'opsz' 12, 'wdth' 90, 'wght' 650; }
.ar-table td:first-child { white-space: nowrap; font-weight: 700; padding-right: 18px; }

/* the end of an article: apps first, then the email list */
.ar-end { border-top: 1px solid var(--line); padding: clamp(40px, 7vh, 72px) 0; display: grid; gap: 22px; }
.ar-end h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.3rem); letter-spacing: -.02em; }
.ar-end > p { color: var(--ink-2); max-width: 60ch; }
.ar-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ar-app { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cyc); box-shadow: var(--shadow-1); color: var(--ink); }
.ar-app .tag { font-family: var(--f-display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sound); font-variation-settings: 'opsz' 12, 'wdth' 90, 'wght' 650; }
.ar-app h3 { font-size: 1.35rem; }
.ar-app p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.ar-app .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ar-app .btn { font-size: .95rem; padding: 12px 18px; }

.ar-course { padding: 24px; border-radius: var(--radius); background: var(--cyc-2); display: grid; gap: 8px; }
.ar-course .tag { font-family: var(--f-display); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--live); font-variation-settings: 'opsz' 12, 'wdth' 90, 'wght' 650; }
.ar-course h3 { font-size: 1.35rem; }
.ar-course p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.ar-course .join { margin-top: 8px; }

/* more in the series + sources */
.ar-more { display: grid; gap: 10px; }
.ar-more h2 { font-size: 1.3rem; }
.ar-more a { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.ar-more a:hover { border-color: var(--ink); }
.ar-more a b { font-family: var(--f-display); font-size: 1.12rem; line-height: 1.25; font-variation-settings: 'opsz' 24, 'wdth' 100, 'wght' 680; }
.ar-more a span { color: var(--ink-2); font-size: .95rem; }
.ar-sources { font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.ar-sources h2 { font-size: 1rem; font-family: var(--f-text); font-weight: 700; letter-spacing: 0; margin-bottom: 6px; }
.ar-sources ol { padding-left: 1.2em; margin: 0; display: grid; gap: 6px; }

/* /articles/ */
.ars-head { padding: calc(var(--top) + clamp(24px, 6vh, 64px)) 0 clamp(20px, 3vh, 32px); display: grid; gap: 16px; }
.ars-head h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); letter-spacing: -.035em; }
.ars-head p:not(.eyebrow) { font-size: var(--t-lede); line-height: 1.45; color: var(--ink-2); max-width: 40ch; }
.ars-series { padding-bottom: clamp(48px, 9vh, 96px); display: grid; gap: 16px; }
.ars-series > h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-top: 12px; }
.ars-series > p { color: var(--ink-2); max-width: 60ch; }
.ars-card { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cyc); box-shadow: var(--shadow-1); text-decoration: none; color: var(--ink); transition: transform .3s var(--ease-out), box-shadow .3s; }
@media (hover: hover) { .ars-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--ink); } }
.ars-card .n { font-family: var(--f-display); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--sound); font-variation-settings: 'opsz' 12, 'wdth' 90, 'wght' 650; }
.ars-card h3 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); line-height: 1.12; }
.ars-card p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.5; }
.ars-card .go { font-weight: 700; color: var(--sound); font-size: .98rem; }

@media (max-width: 640px) {
  .ar-apps { grid-template-columns: 1fr; }
  .ar-prompt { padding: 16px 16px 16px 18px; }
  .ar-prompt-top { align-items: flex-start; }
  .ar-table td:first-child { white-space: normal; }
}
@media print {
  .bar, .foot, .ar-end, .ar-copy { display: none !important; }
}
