/* A minimal timeline and reading view. Shared type and colours come from style.css. */
.journal-page { min-height: 100svh; display: flex; flex-direction: column; }
.journal-page .site-header { display: grid; grid-template-columns: 1fr auto 1fr; }
.journal-page .wordmark { justify-self: start; }
.journal-page .header-nav { grid-column: 2; }
.journal-page main { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.timeline-main { padding-top: clamp(48px, 7vw, 92px); }
.timeline { --date-width: 112px; --timeline-gap: 56px; --axis: calc(var(--date-width) + var(--timeline-gap) / 2); width: min(100%, 860px); margin-inline: auto; list-style: none; }
.timeline-item { display: grid; grid-template-columns: var(--date-width) minmax(0, 1fr); column-gap: var(--timeline-gap); position: relative; padding-bottom: 58px; }
.timeline-item--minor:not(:last-child), .timeline-item:has(+ .timeline-item--minor) { padding-bottom: 28px; }
.timeline-item::before { content: ""; position: absolute; top: 14px; bottom: -14px; left: var(--axis); width: 1px; background: var(--line); }
.timeline-item::after { content: ""; position: absolute; top: 10px; left: calc(var(--axis) - 3px); width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--paper); }
.timeline-item--icon::after { display: none; }
.timeline-marker { position: absolute; top: 0; left: calc(var(--axis) - 14px); display: block; width: 28px; height: 28px; padding: 2px; background: var(--paper); box-shadow: 0 0 0 5px var(--paper); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:last-child::before { display: none; }
.timeline-date { padding-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.6; font-variant-numeric: tabular-nums; }
.timeline-content { min-width: 0; }
.timeline-content h2 { font-size: 25px; font-weight: 550; line-height: 1.3; letter-spacing: -.035em; text-wrap: pretty; }
.timeline-content h2 a:hover { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.timeline-content > p, .article-card > p { max-width: 60ch; margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.timeline-content > .timeline-note { margin-top: 0; color: var(--ink); }
.timeline-content > .timeline-status, .article-card > .timeline-status { margin-top: 16px; font-size: 12px; line-height: 1.6; }
.education-status { color: var(--muted); font-size: 16px; font-weight: 400; letter-spacing: -.015em; white-space: nowrap; }
.article-card {
  --sheet: #f8f5eb;
  --fold: #e5dcc5;
  --corner: 22px;
  position: relative;
  isolation: isolate;
  display: block;
  margin-top: -16px;
  padding: 16px 24px;
}
.article-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--sheet);
  clip-path: polygon(0 0, calc(100% - var(--corner)) 0, 100% var(--corner), 100% 100%, 0 100%);
  transition: background-color .18s ease;
  pointer-events: none;
}
.article-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: var(--corner);
  height: var(--corner);
  background: var(--fold);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  transition: background-color .18s ease;
  pointer-events: none;
}
.article-card > p { margin-top: 8px; padding-right: 36px; color: #686254; }
.article-card > .timeline-status { margin-top: 22px; padding-right: 36px; }
.article-kind { margin-right: 4px; color: #494233; font-size: 10px; font-weight: 550; letter-spacing: .1em; text-transform: uppercase; }
.article-card-arrow { position: absolute; right: 24px; bottom: 16px; display: block; width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .18s ease; }
.article-card:hover, .article-card:focus-visible { --sheet: #f1ecdd; --fold: #dcd0b5; text-decoration: none; }
.article-card:is(:hover, :focus-visible) h2 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.article-card:is(:hover, :focus-visible) .article-card-arrow { transform: translate(2px, -2px) rotate(-45deg); }
.article-card:focus-visible { outline-offset: 4px; }
.back-to-news img, .journal-footer img { flex: 0 0 16px; }
.timeline-content > p a { text-decoration: underline; text-underline-offset: 4px; }
.timeline-visual { max-width: 560px; margin-top: 24px; }
.timeline-visual :is(img, video, svg, canvas) { display: block; max-width: 100%; height: auto; }
.timeline-visual figcaption { margin-top: 10px; color: var(--muted); font-size: 12px; }
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; color: var(--muted); font-size: 12px; }
.journal-footer { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-top: 64px; padding-block: 24px 32px; color: var(--muted); font-size: 12px; }
.journal-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }

/* Each entry is a real HTML document, with a comfortable reading measure. */
.reading-main { padding-top: clamp(44px, 6vw, 76px); }
.reading-width { width: min(100%, 680px); margin-inline: auto; }
.back-to-news { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--muted); font-size: 13px; }
.article-header { margin-top: 43px; }
.article-header .entry-meta { margin-top: 0; margin-bottom: 23px; }
.article-header h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.08; font-weight: 600; letter-spacing: -.055em; text-wrap: pretty; }
.article-deck { margin-top: 26px; color: var(--muted); font-size: 22px; line-height: 1.6; letter-spacing: -.025em; text-wrap: pretty; }
.article-byline { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 27px; padding-bottom: 30px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article-body { padding-top: 38px; font-size: 18px; line-height: 1.85; overflow-wrap: break-word; }
.article-body > * + * { margin-top: 24px; }
.article-body h2 { margin-top: 48px; font-size: 28px; line-height: 1.25; font-weight: 550; letter-spacing: -.035em; text-wrap: pretty; }
.article-body h3 { margin-top: 32px; font-size: 21px; line-height: 1.35; font-weight: 550; letter-spacing: -.025em; }
.article-body a { text-decoration: underline; text-underline-offset: 4px; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 10px; }
.article-body blockquote { margin-block: 36px; padding-left: 24px; border-left: 2px solid var(--ink); font-size: 23px; line-height: 1.6; letter-spacing: -.025em; }
.article-body code { font-size: .85em; background: #f4f4f4; padding: .15em .35em; }
.article-body pre { overflow-x: auto; padding: 20px; background: #f4f4f4; line-height: 1.6; }
.article-body pre code { padding: 0; }
.article-body img { display: block; max-width: 100%; height: auto; }
.article-body figure { margin-block: 36px; }
.article-body figcaption { margin-top: 10px; color: var(--muted); font-size: 13px; }
.article-end { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
@media (max-width: 620px) {
  .timeline-main { padding-top: 42px; }
  .timeline { --axis: 4px; }
  .timeline-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-left: 28px; padding-bottom: 42px; }
  .timeline-item--minor:not(:last-child), .timeline-item:has(+ .timeline-item--minor) { padding-bottom: 22px; }
  .timeline-item--minor { row-gap: 6px; }
  .timeline-item::before { top: 10px; bottom: -10px; }
  .timeline-item::after { top: 6px; }
  .timeline-marker { top: -4px; }
  .timeline-date { padding-top: 0; }
  .timeline-content h2 { font-size: 23px; }
  .timeline-content > p, .article-card > p { font-size: 15px; }
  .article-card { --corner: 18px; margin-top: 0; padding: 14px 20px; }
  .article-card-arrow { right: 20px; bottom: 14px; }
  .timeline-visual { margin-top: 20px; }
  .journal-footer { margin-top: 48px; padding-bottom: 20px; gap: 0 24px; }
  .reading-main { padding-top: 26px; }
  .article-header { margin-top: 28px; }
  .article-deck { margin-top: 22px; font-size: 20px; }
  .article-body { padding-top: 28px; font-size: 17px; line-height: 1.8; }
  .article-body h2 { margin-top: 38px; font-size: 26px; }
  .article-body blockquote { padding-left: 20px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .article-card::before, .article-card::after, .article-card-arrow { transition: none; }
  .article-card:is(:hover, :focus-visible) .article-card-arrow { transform: rotate(-45deg); }
}
@media print {
  .journal-page .site-header, .back-to-news, .journal-footer, .article-end { display: none; }
  .timeline-main, .reading-main { padding-top: 0; }
  .article-header { margin-top: 0; }
  .article-header h1 { font-size: 36px; }
  .article-body { font-size: 12pt; line-height: 1.6; }
  .article-body h2, .article-body h3 { break-after: avoid; }
  .timeline-item, .article-body blockquote { break-inside: avoid; }
}
