/* ---- Reading page: Newsreader at 20 px, a 700 px measure (~85 characters), reddy-orange, the walking figure. ---- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 20px/1.6 var(--serif);
  font-optical-sizing: auto; }
a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
a:hover { text-decoration-color: var(--link); }
main { display: block; }
.smallcaps, .earlier, .byline, .cs-also span { font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; font-variant-numeric: lining-nums; }

/* ---- Post ---- */
.post { padding: 0 40px; }
.post-head, .body { max-width: 700px; margin-left: auto; margin-right: auto; }
.standfirst { margin: 0 0 20px; font: italic 400 21px/1.5 var(--serif); color: var(--soft); text-wrap: pretty; }
.byline { margin: 0; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--soft); }
.hero { max-width: 1040px; margin: 40px auto 0; }
.hero img { display: block; width: 100%; height: auto; }
.body { padding: 24px 0 40px; }
.body p, .body li { margin: 0 0 1em; text-wrap: pretty; hyphens: auto; }
.body h2 { margin: 2.1em 0 .55em; font: 500 31px/1.18 var(--serif); letter-spacing: -.012em; text-wrap: balance;
  font-variation-settings: "opsz" 48; }
.body h2:first-child { margin-top: .8em; }
.body h2::before { content: ""; display: block; width: 44px; border-top: 3px solid var(--accent); margin-bottom: 16px; }
.body p:has(> img) { margin: 2em 0 .6em; }
.body img { display: block; width: 100%; height: auto; }
/* A smaller picture inside a story: any image whose file name has "-inset." (Steve, 30 Nov: "not full width"). */
.body img[src*="-inset."] { width: min(100%, 440px); margin: 0 auto; }
.body p.caption { font-size: 16px; line-height: 1.45; font-style: italic; color: var(--soft); }
.body blockquote { margin: 1.6em 0; padding: 0; font: italic 300 30px/1.3 var(--serif); color: var(--accent-text); }
.body code { font-size: 85%; }

/* ---- Home ---- */
.home { max-width: 1120px; margin: 0 auto; padding: 48px 40px 16px; }
.pic { display: block; }
.pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.pic .nopic { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: var(--tint); }
.pic .nopic img { width: auto; height: 72%; aspect-ratio: auto; object-fit: contain; }
.cover-story { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: stretch; }
/* The cover picture fills the height of the words beside it (cropped, not stretched), never below 340 px. */
.cs-pic { position: relative; min-height: 340px; overflow: hidden; }
.cs-pic > img, .cs-pic > .nopic { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.cs-pic > img { object-fit: cover; object-position: 50% 40%; }
.cs-words { align-self: center; }
.cs-lead { margin: 10px 0 14px; font: 500 40px/1.1 var(--serif); letter-spacing: -.018em; text-wrap: balance;
  font-variation-settings: "opsz" 60; }
.cs-lead a, .wk-lead a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
  text-decoration-thickness: 1.5px; }
.cs-lead a:hover, .wk-lead a:hover { color: var(--link); }
.cs-ex { margin: 0 0 14px; font-size: 18px; line-height: 1.5; color: var(--soft); text-wrap: pretty; }
.cs-also { margin: 0; font-size: 16px; line-height: 1.5; color: var(--soft); }
.cs-also span { font-size: 12.5px; color: var(--ink); margin-right: .3em; }
.cs-read { margin: 18px 0 0; font-size: 17px; }
.cs-read a { white-space: nowrap; }
.earlier { margin: 64px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ink); }
.weeks { list-style: none; margin: 0; padding: 0; }
.week { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--rule);
  align-items: start; }
.wk-lead { margin: 6px 0 8px; font: 500 27px/1.18 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.wk-ex { margin: 0; font-size: 17px; line-height: 1.5; color: var(--soft); max-width: 40em; }
.wk-also { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--soft); max-width: 40em; }

/* ---- Footer ---- */
/* The footer and its rule are exactly as wide as the page above them: the 1040 px home content (cover, cards,
   archive) on the home page, the 700 px reading column on a post, with the same side margins. */
.colophon { --col: 700px; margin: 40px max(40px, calc((100% - var(--col)) / 2)) 0; padding: 24px 0 56px;
  border-top: 1px solid var(--ink); font-size: 16px; line-height: 1.5; color: var(--soft); }
.is-home .colophon { --col: 1040px; }
.colophon-text { max-width: 640px; }
.colophon-note { display: flex; gap: 18px; align-items: flex-start; }
.colophon p { margin: 0; }
/* The faint last line: copyright and the feed, small print directly under the note's text (beside the avatar).
   Links in the same grey, still underlined (faintly) so they read as links. */
/* Friends: one quiet line between the note and the small print. */
.colophon .colophon-friends { margin-top: 10px; font-size: 15px; }
.colophon .colophon-line { margin-top: 10px; font-size: 13px; letter-spacing: .02em; color: var(--soft); }
.colophon-line a { color: inherit; text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--soft) 40%, transparent); }
.colophon-line a:hover { text-decoration-color: currentColor; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; }

@media (max-width: 700px) {
  body { font-size: 18px; }
  .post { padding: 0 20px; }
  .hero { margin: 24px -20px 0; }
  .standfirst { font-size: 18.5px; }
  .body h2 { font-size: 25px; }
  .home { padding: 28px 20px 8px; }
  .cover-story { grid-template-columns: 1fr; gap: 16px; }
  .cs-pic { margin: 0 -20px; min-height: 0; }
  .cs-pic > img, .cs-pic > .nopic { position: static; height: auto; aspect-ratio: 3 / 2; }
  .cs-read { margin-top: 14px; font-size: 16px; }
  .cs-lead { font-size: 29px; }
  .cs-ex { font-size: 16.5px; }
  .cs-also { font-size: 15px; }
  .earlier { margin-top: 44px; }
  .week { grid-template-columns: 108px 1fr; gap: 16px; padding: 20px 0; }
  .wk-lead { font-size: 20px; margin: 4px 0 6px; }
  .wk-ex { font-size: 15px; }
  .wk-also { font-size: 14px; }
  .colophon { margin: 32px 20px 0; padding-bottom: 40px; }
  .colophon .colophon-friends { font-size: 14.5px; }
  .avatar { width: 52px; height: 52px; }
}
/* K, the final: J (Kicker) on cream. The dates as a small-caps orange kicker above a big light-italic
   "Made this week" in the poster's reddy-orange, the walking figure on the cover, every week on the home
   page led by the same date kicker. Cream paper (#f6efe1, the October articles' page), the October navy ink,
   blue links. Rules are single and thin: no double or heavy rule anywhere.
   Contrast on the cream: ink 12.7:1, soft text 6.4:1, links 6.8:1, kicker orange 5.1:1;
   the title orange is 3.5:1 and is only ever used at 58 px and up. */
:root {
  --bg: #f6efe1; --ink: #1d2940; --soft: #5a5550; --rule: #e2d6bd; --tint: #ece2cd;
  --accent: #d9553a; --accent-text: #b23d22; --link: #1f4fa3;
  --serif: Newsreader, Georgia, serif;
}
.date { margin: 0; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-text); font-variant-numeric: lining-nums; }
.date::before { content: ""; display: inline-block; width: 22px; margin-right: 10px; vertical-align: .3em;
  border-top: 2px solid var(--accent); }
.date-big { font-size: 17px; }
.date-kicker { font-size: 17px; margin-bottom: 16px; }
.empty { margin: 8px 0 24px; font: italic 400 24px/1.45 var(--serif); color: var(--soft); }
/* drafts (before a week is cleared): a banner on the post, a tag beside its dates */
.draft-banner { max-width: 700px; margin: 28px auto -28px; padding: 8px 14px; border: 1px solid var(--accent-text);
  color: var(--accent-text); font-size: 14px; letter-spacing: .14em; font-weight: 600; text-align: center; }
.draft-tag { margin-left: .6em; padding: 1px 6px; border: 1px solid currentColor; font-size: .8em; letter-spacing: .1em; }
/* home cover */
.cover { margin: 0 max(40px, calc((100% - 1040px) / 2)); display: grid; grid-template-columns: 1fr auto; align-items: end;
  border-bottom: 1px solid var(--ink); }
.cover-by { margin: 34px 0 30px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.cover-title { margin: 0 0 24px; font: italic 300 150px/.86 var(--serif); letter-spacing: -.035em; color: var(--accent);
  font-variation-settings: "opsz" 72; }
.cover-sub { margin: 0 0 36px; max-width: 28em; font: italic 400 21px/1.45 var(--serif); color: var(--soft); text-wrap: pretty; }
.cover-fig { display: block; width: 360px; height: auto; margin: 24px 0 -2px; }
/* earlier weeks as three cards */
.weeks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; padding-top: 22px; }
.week { display: block; padding: 0; border: 0; }
.wk-pic { margin-bottom: 14px; }
.wk-lead { font-size: 23px; }
.wk-ex { font-size: 16px; }
/* post */
.strip { margin: 0 max(40px, calc((100% - 1040px) / 2)); display: flex; align-items: flex-end; gap: 14px;
  border-bottom: 1px solid var(--ink); }
.strip-fig img { display: block; height: 76px; width: auto; margin-top: 10px; }
.strip-name { padding-bottom: 12px; color: var(--ink); text-decoration: none; font-size: 15px; letter-spacing: .16em;
  text-transform: uppercase; font-weight: 600; }
.strip-all { margin-left: auto; padding-bottom: 12px; font-size: 16px; }
.post-head { padding-top: 60px; }
h1.title { margin: 0 0 22px; font: italic 300 92px/.96 var(--serif); letter-spacing: -.03em; color: var(--accent);
  font-variation-settings: "opsz" 72; }
.post-head .standfirst { color: var(--soft); }
@media (max-width: 700px) {
  .cover { margin: 0 20px; grid-template-columns: 1fr 118px; }
  .cover-words { display: contents; }
  .cover-by { grid-column: 1 / -1; margin: 20px 0 14px; font-size: 12px; }
  .cover-title { grid-column: 1; grid-row: 2; font-size: 60px; margin-bottom: 0; align-self: end; padding-bottom: 6px; }
  .cover-fig { grid-column: 2; grid-row: 2; width: 118px; margin: 0; }
  .cover-sub { grid-column: 1 / -1; grid-row: 3; margin: 14px 0 22px; font-size: 16.5px; }
  .weeks { display: block; padding-top: 0; }
  .week { display: grid; grid-template-columns: 108px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
  .wk-pic { margin: 0; }
  .date { font-size: 12.5px; letter-spacing: .1em; }
  .date::before { width: 14px; margin-right: 7px; }
  .date-big, .date-kicker { font-size: 14px; }
  .strip { margin: 0 20px; gap: 10px; }
  .strip-fig img { height: 56px; }
  .strip-name { font-size: 12px; padding-bottom: 9px; }
  .strip-all { font-size: 15px; padding-bottom: 9px; }
  .post-head { padding-top: 32px; }
  h1.title { font-size: 58px; }
}

/* A link to the week's LinkedIn post, where the conversation happens (no comments on the site). */
.post .discuss{max-width:700px;margin:2.4em auto 0;font-size:1.05em;font-style:italic}

/* Earlier and later posts at the foot of a post (after the body and the LinkedIn line, before the author note):
   the earlier on the left, the later on the right, each a label, its dates in the kicker's small caps and its
   lead as the link. Stacked on a phone. */
.post-nav { max-width: 700px; margin: 8px auto 0; padding-top: 22px; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pn { display: block; text-decoration: none; color: var(--ink); }
.pn-next { grid-column: 2; text-align: right; }
.pn-label { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--soft); }
.pn-date { display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: var(--accent-text); font-variant-numeric: lining-nums; }
.pn-lead { display: block; font-size: 19px; line-height: 1.4; color: var(--link); text-wrap: pretty;
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .18em;
  text-decoration-color: color-mix(in srgb, var(--link) 45%, transparent); }
.pn:hover .pn-lead { text-decoration-color: var(--link); }
@media (max-width: 700px) {
  .post-nav { grid-template-columns: 1fr; gap: 22px; }
  .pn-next { grid-column: auto; text-align: left; }
  .pn-lead { font-size: 17.5px; }
}

/* ---- L (long term): the archive under "Earlier weeks". One block per month: the month in the left column,
   then one line per post, its dates in the kicker's small caps and its lead in the reading serif, faint rules
   between lines. A monthly episode says "Made this month" in italic orange where a week has its dates. ---- */
.archive { margin-top: 8px; }
.arch-month { display: grid; grid-template-columns: 180px 1fr; gap: 32px; padding: 18px 0 14px;
  border-bottom: 1px solid var(--rule); }
.arch-month:last-child { border-bottom: 0; }
.arch-head { margin: 0; font: italic 400 26px/1.2 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.arch-head span { color: var(--soft); font-style: normal; font-size: 17px; letter-spacing: .04em; margin-left: .15em; }
.arch-list { list-style: none; margin: 0; padding: 0; }
.arch-item { display: grid; grid-template-columns: 146px 1fr; gap: 20px; align-items: baseline; padding: 9px 0;
  border-top: 1px solid var(--rule); }
.arch-item:first-child { border-top: 0; padding-top: 4px; }
.arch-date { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: var(--accent-text); font-variant-numeric: lining-nums; white-space: nowrap; }
/* the lead carries the same orange underline as the cover and card headlines, so it reads as a link (Steve, 30 Nov) */
.arch-lead { font-size: 19px; line-height: 1.4; color: var(--ink); text-wrap: pretty;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 1.5px; }
.arch-lead:hover { color: var(--link); }
.is-month .arch-date { font: italic 400 17px/1.3 var(--serif); letter-spacing: 0; text-transform: none; }
/* the kicker's short orange rule marks a monthly episode, so it reads as a different kind of post at a glance */
.is-month .arch-date::before { content: ""; display: inline-block; width: 16px; margin-right: 8px; vertical-align: .3em;
  border-top: 2px solid var(--accent); }
@media (max-width: 700px) {
  .arch-month { grid-template-columns: 1fr; gap: 4px; padding: 16px 0 10px; }
  .arch-head { font-size: 22px; }
  .arch-head span { font-size: 15px; }
  .arch-item { grid-template-columns: 1fr; gap: 2px; padding: 9px 0; }
  .arch-date { font-size: 12px; letter-spacing: .1em; }
  .arch-lead { font-size: 17.5px; }
  .is-month .arch-date { font-size: 15.5px; }
  .is-month .arch-date::before { width: 12px; margin-right: 6px; }
}
