/* The articles (2026-11-23): the list at /articles/ (layout A, "magazine")
   and each article's page. The site's tokens (styles.css); this is only what
   the articles add. Each article has one kind of cover: a drawing in style B
   (navy line, colour printed a little off it), a piece of the app, or
   Mr. Skip saying one line. */

.site-header--static { position: relative; background: var(--bg); }

/* --- The list --- */
.ar-head { padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 44px); }
.ar-head .display { margin-top: 12px; }
.ar-head .lede { max-width: 36em; margin-top: 14px; color: var(--muted); font: 400 clamp(17px, 1.6vw, 19px)/1.5 var(--font-text); text-wrap: pretty; }
.ar-list { padding-bottom: clamp(56px, 8vw, 96px); }

.ar-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: inherit; text-decoration: none; transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.ar-card:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -28px rgba(15, 31, 58, 0.45); }
.ar-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ar-card__txt { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 26px; }
.ar-card__title { color: var(--ink); font: 600 clamp(21px, 1.9vw, 24px)/1.2 var(--font-display); text-wrap: balance; }
.ar-card__exc { color: var(--muted); font: 400 16px/24px var(--font-text); text-wrap: pretty; }
.ar-meta { color: var(--muted); font: 600 13px/18px var(--font-text); }

.ar-feat { display: grid; }
.ar-feat .ar-card__txt { justify-content: center; padding: clamp(22px, 4vw, 44px); gap: 14px; }
.ar-feat .ar-card__title { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; }
/* Side by side only where the picture's box stays wide enough to show the whole drawing. */
@media (min-width: 1100px) { .ar-feat { grid-template-columns: 1.1fr 1fr; } .ar-feat .cover { height: 100%; min-height: 360px; aspect-ratio: auto; } }

.ar-grid { display: grid; gap: 22px; margin-top: 22px; }
@media (min-width: 700px) { .ar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.tag { align-self: flex-start; padding: 5px 10px; border-radius: 999px; font: 700 11px/14px var(--font-text); letter-spacing: 1px; text-transform: uppercase; }
.tag--pro { background: #DBEAFE; color: #1E40AF; }
.tag--adhd { background: #CCFBF1; color: #0F766E; }
.tag--big { background: #EDE9FE; color: #5B21B6; }
.tag--hab { background: #DCFCE7; color: #166534; }
.tag--proj { background: #FEF3C7; color: #92400E; }
.tag--love { background: #FFEDD5; color: #9A3412; }
.tag--ppl { background: #FFE4E6; color: #9F1239; }
.tag--place { background: #E0F2FE; color: #075985; }
.tag--body { background: #ECFCCB; color: #3F6212; }
.tag--bill { background: #E0E7FF; color: #3730A3; }

/* --- Covers --- */
.cover { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 9; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Mr. Skip says the line. */
.cover--say { background: radial-gradient(circle at 70% 10%, #C4B5FD, transparent 60%), linear-gradient(135deg, #4338CA, #7C3AED); }
.cover--say .say { display: flex; align-items: center; gap: 14px; max-width: 86%; }
.say__eye { flex: none; width: clamp(70px, 9vw, 110px); aspect-ratio: 1; color: #F1F5FB; }
.say__eye svg { width: 100%; height: 100%; overflow: visible; }
.say p { padding: 13px 16px; border-radius: 18px 18px 18px 5px; background: #F1F5FB; color: #0F1F3A; font: 600 clamp(16px, 1.7vw, 21px)/1.3 var(--font-display); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.5); text-wrap: balance; }
/* A piece of the app: the week of rings. */
.cover--app { background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.35), transparent 70%), #0A1322; }
.week { display: flex; flex-direction: column; align-items: center; gap: 14px; color: #F1F5FB; font: 600 clamp(14px, 1.4vw, 16px)/1.3 var(--font-text); }
.week__days { display: flex; gap: clamp(6px, 1vw, 10px); }
.week__day { position: relative; width: clamp(30px, 3.4vw, 40px); aspect-ratio: 1; }
.week__day svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.week__day span { position: absolute; inset: 0; display: grid; place-items: center; font: 700 11px/1 var(--font-text); color: rgba(241, 245, 251, 0.75); }
/* A piece of the app: the notification when you get home. */
.ping { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(86%, 420px); color: #F1F5FB; }
.ping__where { display: flex; align-items: center; gap: 6px; font: 600 clamp(13px, 1.3vw, 15px)/1 var(--font-text); opacity: 0.85; }
.ping__where svg { width: 16px; height: 16px; }
.ping__card { display: flex; align-items: center; gap: 12px; width: 100%; padding: clamp(10px, 1.2vw, 14px) clamp(12px, 1.4vw, 16px); border: 1px solid rgba(241, 245, 251, 0.18); border-radius: 22px; background: rgba(241, 245, 251, 0.14); }
.ping__card img { flex: none; width: clamp(32px, 3.4vw, 42px); height: auto; border-radius: 22%; }
.ping__card > div { flex: 1; min-width: 0; }
.ping__top { display: flex; justify-content: space-between; font: 600 12px/16px var(--font-text); opacity: 0.7; }
.ping__title { font: 600 clamp(14px, 1.5vw, 18px)/1.3 var(--font-text); }
.ping__sub { font: 400 13px/18px var(--font-text); opacity: 0.7; }
/* A piece of the app: boring tasks on their day. */
.due { display: flex; flex-direction: column; gap: clamp(6px, 0.9vw, 10px); width: min(82%, 400px); color: #F1F5FB; }
.due__head { font: 700 12px/16px var(--font-text); letter-spacing: 1px; text-transform: uppercase; opacity: 0.7; }
.due__row { display: flex; align-items: center; gap: 12px; padding: clamp(8px, 1vw, 12px) 14px; border: 1px solid rgba(241, 245, 251, 0.14); border-radius: 16px; background: rgba(241, 245, 251, 0.1); }
.due__check { flex: none; width: 22px; height: 22px; border: 2px solid rgba(241, 245, 251, 0.55); border-radius: 50%; }
.due__t { font: 600 clamp(14px, 1.4vw, 17px)/1.3 var(--font-text); }
.due__d { font: 600 12px/16px var(--font-text); color: rgba(241, 245, 251, 0.65); }
.due__d--today { color: #FBBF24; }

/* --- An article --- */
.post { width: min(100% - 2 * var(--gutter), 720px); margin-inline: auto; padding-block: clamp(36px, 6vw, 64px) 0; color: var(--ink); }
.post__back { display: inline-block; margin-bottom: 22px; color: var(--muted); font: 600 14px/20px var(--font-text); text-decoration: none; }
.post__back:hover { color: var(--accent); }
.post h1 { margin-top: 14px; font: 600 clamp(34px, 5.4vw, 52px)/1.08 var(--font-display); letter-spacing: -0.01em; text-wrap: balance; }
.post__lede { margin-top: 16px; color: var(--muted); font: 400 clamp(19px, 2vw, 22px)/1.45 var(--font-text); text-wrap: pretty; }
.post__by { margin-top: 18px; color: var(--muted); font: 600 14px/20px var(--font-text); }
.post__cover { width: min(100% - 2 * var(--gutter), 960px); margin: clamp(28px, 4vw, 44px) auto 0; overflow: hidden; border: 1px solid var(--line); border-radius: 26px; }
.post__note { margin-top: clamp(28px, 4vw, 40px); padding: 14px 18px; border-radius: 14px; background: var(--soft); color: var(--muted); font: 400 15px/22px var(--font-text); }
.post__body { padding-top: 8px; font: 400 19px/1.65 var(--font-text); }
.post__body h2 { margin: 44px 0 12px; font: 600 clamp(25px, 2.6vw, 30px)/1.2 var(--font-display); text-wrap: balance; }
.post__body p, .post__body ul, .post__body ol { margin: 0 0 18px; text-wrap: pretty; }
.post__body ul, .post__body ol { padding-left: 24px; }
.post__body ul { list-style: disc; }
.post__body ol { list-style: decimal; }
.post__body li::marker { color: #22B8B0; font-weight: 700; }
.post__body li { margin-bottom: 8px; }
.post__body a { color: var(--accent); }
.post__body strong { color: var(--ink); }
.post__body blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid #22B8B0; font: 600 clamp(21px, 2.2vw, 25px)/1.35 var(--font-display); }

.tryit { display: flex; align-items: center; gap: 22px; margin: 44px 0 0; padding: 26px; border-radius: 22px; background: linear-gradient(120deg, #1D4ED8 0%, #2563EB 40%, #0D9488 100%); color: #fff; }
.tryit img { flex: none; width: 84px; height: 84px; }
.tryit__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.tryit p { font: 400 17px/1.5 var(--font-text); }
.tryit strong { display: block; font: 600 22px/1.25 var(--font-display); }
.tryit .button { background: #fff; color: #0F1F3A; }
@media (max-width: 560px) { .tryit { flex-direction: column; align-items: flex-start; } .tryit img { width: 64px; height: 64px; } }

.sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font: 400 15px/1.55 var(--font-text); }
.sources h2 { margin-bottom: 10px; color: var(--ink); font: 700 15px/20px var(--font-text); letter-spacing: 1px; text-transform: uppercase; }
.sources ol { margin: 0; padding-left: 20px; }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
.sources a { color: var(--accent); }
.sources__fine { margin-top: 16px; }

.more { padding-block: clamp(56px, 8vw, 88px); }
.more h2 { margin-bottom: 22px; font: 600 clamp(26px, 2.8vw, 32px)/1.2 var(--font-display); }
.more .ar-grid { margin-top: 0; }

@media (prefers-reduced-motion: reduce) { .ar-card { transition: none; } .ar-card:hover { transform: none; } }
