/* jimcaralis.com — direction C "Field notes"
   Plain CSS, no build step. Tokens up top; everything else uses them. */

:root {
  --bg: #fffdf8;
  --ink: #17160f;
  --ink-2: #4b4a42;
  --muted: #6f6d63;
  --faint: #8a887d;
  --rule: #d9d6cb;
  --rule-strong: #17160f;
  --placeholder: #e6e3d8;
  --accent: #23613f;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --measure: 40rem;
}

* { box-sizing: border-box; }
html { font-size: 17px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap {
  max-width: 1088px;
  margin: 0 auto;
  padding-inline: 20px;
}
@media (min-width: 720px) { .wrap { padding-inline: 40px; } }

/* Masthead */
.masthead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule-strong);
  padding-block: 28px 14px;
}
.masthead .wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
  text-decoration: none;
}
.masthead nav { display: flex; gap: 20px; }
.masthead nav a {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
}
@media (min-width: 720px) {
  .masthead { padding-top: 48px; }
  .masthead nav { gap: 32px; }
}

/* Labels reused everywhere */
.eyebrow {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--accent);
}
.label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--muted);
}
.meta { font-size: 0.88rem; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }

/* Home: lead post */
.lead {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 840px;
  padding-block: 40px 0;
}
.lead h1 a {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.1;
  text-decoration: none;
}
.lead .dek { font-size: 1.15rem; color: var(--ink-2); max-width: var(--measure); }

/* Home: two columns */
.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-block: 56px 0;
}
@media (min-width: 880px) {
  .columns { grid-template-columns: minmax(0, 1fr) 340px; gap: 96px; }
}

/* Series list */
.series { display: flex; flex-direction: column; gap: 36px; }
.series-group { display: flex; flex-direction: column; gap: 12px; }
.series-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
}
.series-head h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; }
.series-head span { font-size: 0.85rem; color: var(--muted); }
.post-list {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  row-gap: 8px;
  column-gap: 16px;
  margin: 0;
}
.post-list dt { color: var(--muted); font-variant-numeric: tabular-nums; }
.post-list dd { margin: 0; }
.post-list .upcoming { color: var(--faint); }
.post-list .upcoming small {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Sidebar */
.side { display: flex; flex-direction: column; gap: 40px; }
.side section { display: flex; flex-direction: column; gap: 12px; }
.side p { font-size: 0.95rem; color: var(--ink-2); }
.photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: var(--placeholder);
}
.companies {
  display: grid;
  grid-template-columns: 4.6rem minmax(0, 1fr);
  row-gap: 6px;
  column-gap: 14px;
  margin: 0;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.companies dt { color: var(--muted); }
.companies dd { margin: 0; }
.companies dd span { color: var(--muted); }
.companies dd a { text-decoration: none; font-weight: 600; }
.side .note { font-size: 0.8rem; color: var(--faint); }
.elsewhere { display: flex; gap: 16px; font-size: 0.9rem; }

/* Footer */
.footer {
  margin-top: 72px;
  border-top: 1px solid var(--rule);
  padding-block: 20px 40px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--faint);
}
.footer a { color: inherit; }

/* Post page */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  padding-block: 48px 0;
  align-items: start;
}
@media (min-width: 880px) {
  .post-layout { grid-template-columns: minmax(0, 660px) minmax(0, 1fr); gap: 96px; }
}
.post { display: flex; flex-direction: column; gap: 32px; }
.post-head { display: flex; flex-direction: column; gap: 16px; }
.post-head h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.1;
}
.post-head .dek {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--ink-2);
}
.post-body { display: flex; flex-direction: column; gap: 22px; font-size: 1.06rem; max-width: var(--measure); }
.post-body h2 { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; margin-top: 12px; }
.post-body blockquote {
  margin: 0;
  padding-left: 24px;
  border-left: 2px solid var(--accent);
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.3;
  color: #2a2922;
}
.post-body figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.post-body figcaption { font-size: 0.85rem; color: var(--muted); }
.post-body .note {
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--rule, #e2ded1);
  font-size: 0.9rem;
  color: var(--muted);
}
.post-body .todo {
  background: var(--placeholder);
  border: 1px dashed #b9b5a8;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.series-nav {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.series-nav ol {
  margin: 0;
  padding-left: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.series-nav li::marker { color: var(--accent); font-weight: 600; }
.series-nav .upcoming { color: var(--faint); }
.glance {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  row-gap: 8px;
  column-gap: 14px;
  margin: 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.glance dt { color: var(--muted); }
.glance dd { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Home: primary company block */
.main { display: flex; flex-direction: column; gap: 56px; }
.company-intro { display: flex; flex-direction: column; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--rule-strong); }
.company-blurb { font-family: var(--serif); font-size: 1.3rem; line-height: 1.35; max-width: var(--measure); }
.company-intro .meta a { color: var(--accent); }

/* Company pages: press list */
.press { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 10px; }
.press li::marker { color: var(--accent); }
.press span { color: var(--muted); font-size: 0.92rem; }
.empty { color: var(--faint); font-size: 0.95rem; }

/* Company pages: the lesson carried into Made In Motion */
.lesson {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-block: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: var(--measure);
}
.lesson p {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.35;
}
.lesson .pending { font-family: var(--sans); font-size: 0.95rem; color: var(--faint); }
.post-body ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 6px; }
.post-body li::marker { color: var(--accent); }
