/* case.css - "A day with Entropy" (/case-study). Loads after home.css and reuses its tokens, fonts, header, contact
   and footer. Written for a reader who is not technical: one narrow reading column, and no text under 16px. */

.cs { font-size: 17px; line-height: 1.6; }
.cs-narrow { max-width: 760px; }
.cs .kicker { font-size: 16px; letter-spacing: .04em; }
.cs .eyebrow { font-size: 16px; }
.cs .nav-cta, .cs-back { font-size: 16px; }
.cs-back { padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--text-2); }
.cs-back:hover { color: var(--text); background: var(--bg-3); }
.cs .foot-row, .cs .brand-s { font-size: 16px; }
.cs .contact p { font-size: 17px; }

/* intro */
.cs-hero { padding: 48px 0 56px; }
.cs-hero h1 { font-size: clamp(2rem, 1.5rem + 2.6vw, 3.3rem); font-weight: 750; letter-spacing: -.035em; max-width: 18ch; }
.cs-lead { margin-top: 18px; font-size: 1.12rem; color: var(--text-2); max-width: 58ch; }
.cs-lead:first-of-type { margin-top: 22px; }
.cs-label { margin-top: 32px; padding: 18px 20px; border-radius: 14px; background: var(--honey-soft); border-left: 4px solid var(--honey); }
.cs-label p { font-size: 16px; color: var(--text-2); }
.cs-label .cs-label-h { font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: 17px; }

.cs-p { margin-top: 16px; color: var(--text-2); max-width: 60ch; }
.cs .sec h2 { max-width: 24ch; }
.cs h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }

/* colour key + the night strip */
.cs-key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; font-size: 16px; color: var(--text-2); }
.cs-key li { display: inline-flex; align-items: center; gap: 8px; }
.dotk { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dotk-calm { background: var(--bg); box-shadow: inset 0 0 0 4px var(--chaos); }
.dotk-fix, .pip-fix { background: var(--ok); }
.dotk-you, .pip-you { background: var(--person); }

.cs-strip { margin-top: 18px; }
.cs-strip-bar { position: relative; height: 14px; border-radius: 999px;
  background: linear-gradient(90deg, var(--bg-3), var(--bg-4) 45%, var(--bg-4) 60%, var(--honey-soft)); box-shadow: inset 0 0 0 1px var(--line); }
.pip { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; box-shadow: 0 0 0 3px var(--bg); }
.cs-strip-ends { display: flex; justify-content: space-between; margin-top: 8px; font: 500 16px/1.2 var(--mono); color: var(--text-3); }

/* timeline */
.tline { position: relative; margin-top: 32px; display: grid; gap: 14px; }
.tline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); }
.ev { position: relative; display: grid; gap: 6px; padding-left: 36px; }
.ev::before { content: ""; position: absolute; left: 1px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 4px var(--chaos); }
.ev-fix::before { box-shadow: inset 0 0 0 9px var(--ok); }
.ev-you::before { box-shadow: inset 0 0 0 9px var(--person); }
.ev-t { font: 500 16px/1.4 var(--mono); color: var(--honey-ink); }
.ev-b { padding: 18px 20px; border-radius: 14px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.ev-calm .ev-b { background: transparent; box-shadow: none; padding: 0 0 6px; }
.ev-b p { margin-top: 8px; color: var(--text-2); }
.ev-tag { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px !important; padding: 4px 12px; border-radius: 999px; font-size: 16px; font-weight: 600; }
.ev-tag::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.tag-fix { background: var(--ok-soft); color: var(--ok) !important; }
.tag-you { background: var(--person-soft); color: var(--person) !important; }
@media (min-width: 760px) {
  .ev { grid-template-columns: 104px 1fr; gap: 20px; padding-left: 0; }
  .tline::before { left: 113px; }
  .ev::before { left: 105px; top: 20px; }
  .ev-t { text-align: right; padding-top: 16px; padding-right: 24px; }
  .ev-b { margin-left: 18px; }
  .ev-calm .ev-b { padding-top: 16px; }
}

/* morning note */
.note { margin: 36px 0 0; padding: 22px 22px 24px; border-radius: 18px; background: var(--bg-2); box-shadow: var(--shadow); }
.note-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.note-top svg { width: 22px; height: 22px; }
.note-ex { margin-left: auto; font: 500 16px/1 var(--mono); color: var(--text-3); }
.note-hi { margin-top: 16px; font-size: 1.15rem; font-weight: 650; }
.note-sub { margin-top: 18px; font-weight: 700; color: var(--ok); }
.note-sub-you { color: var(--person); }
.note-list { margin-top: 8px; display: grid; gap: 6px; color: var(--text-2); }
.note-list li { position: relative; padding-left: 26px; }
.note-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); }
.note-you { counter-reset: n; }
.note-you li { counter-increment: n; padding-left: 32px; }
.note-you li::before { content: counter(n); width: 22px; height: 22px; left: 0; top: .15em; display: grid; place-items: center;
  font: 600 16px/1 var(--sans); color: #fff; background: var(--person); }
.note-end { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-2); }

/* true story */
.cs-true { background: var(--bg-3); }

/* lists */
.cs-list { margin-top: 22px; display: grid; gap: 10px; }
.cs-list li { position: relative; padding: 14px 16px 14px 50px; border-radius: 12px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.cs-list li::before { position: absolute; left: 16px; top: 13px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 700 16px/1 var(--sans); }
.cs-list-no li::before { content: "\2715"; background: var(--fail-soft); color: var(--fail); }
.cs-list-yes li::before { content: "\2713"; background: var(--ok-soft); color: var(--ok); }

/* what it saves */
.save { margin-top: 24px; display: grid; gap: 12px; }
.save li { padding: 18px 20px; border-radius: 14px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); border-top: 3px solid var(--honey); }
.save p { margin-top: 6px; color: var(--text-2); }
@media (min-width: 640px) { .save { grid-template-columns: 1fr 1fr; } }
.cs-nums { margin-top: 28px; padding: 22px 20px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2); }
.cs-nums-h { font-weight: 700; }
.cs-nums-l { margin-top: 14px; display: grid; gap: 14px; }
.cs-nums-l li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; }
.cs-nums-l b { font-size: 1.9rem; font-weight: 750; letter-spacing: -.03em; color: var(--honey-ink); min-width: 3.4ch; font-variant-numeric: tabular-nums; }
.cs-nums-l span { color: var(--text-2); }
.cs-honest { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-2); }
.cs-honest b { color: var(--text); }
.cs-small { margin-top: 16px; font-size: 16px; color: var(--text-3); }

/* how it fits */
.fit { margin-top: 24px; display: grid; gap: 12px; }
.fit li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.fit b { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: var(--honey); color: #1a1203; }
.fit p { margin-top: 6px; color: var(--text-2); }

/* will not do */
.wont { margin-top: 24px; display: grid; gap: 12px; }
.wont li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; padding: 18px 20px; border-radius: 14px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); }
.wont svg { width: 26px; height: 26px; color: var(--person); margin-top: 2px; }
.wont p { margin-top: 4px; color: var(--text-2); }

@media (min-width: 1000px) { .cs-hero { padding: 80px 0 72px; } }
