/* jamescockburn.io — shared stylesheet (October 2026 redesign) */

:root {
  --paper: #f6f4ef;
  --paper-2: #edeae2;
  --ink: #16181d;
  --ink-2: #3a3e47;
  --ink-3: #6a6f7a;
  --rule: #d8d4ca;
  --accent: #8a3b2b;
  --accent-hover: #6e2e21;
  --accent-soft: rgba(138, 59, 43, 0.08);
  --serif: var(--sans);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --measure: 680px;
  --wide: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
main p a:not(.btn), .proof a, .service li a {
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
}
p + p { margin-top: 1em; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent-soft); }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 24px; }
.prose { max-width: var(--measure); }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.wordmark { font-family: var(--serif); font-size: 22px; color: var(--ink); letter-spacing: -0.01em; white-space: nowrap; }
.wordmark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--accent); }
.about-nav { position: relative; }
.about-nav > summary { font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.about-nav > summary::after, .about-nav[open] > summary::after { content: none; }
.about-links { position: absolute; top: 32px; left: -16px; min-width: 190px; padding: 8px 0; background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 8px 20px rgba(22, 24, 29, .08); }
.about-links a { display: block; padding: 9px 16px; }
.about-links a:hover, .about-links a:focus-visible { background: var(--paper-2); }
.menu { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 3px;
  font-size: 14.5px; font-weight: 500; line-height: 1;
  border: 1px solid var(--ink); color: var(--ink); background: transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); letter-spacing: -0.025em; }
h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.12; }
h3 { font-size: 22px; line-height: 1.25; }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }

/* Sections */
section { padding: 80px 0; border-bottom: 1px solid var(--rule); }
section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 40px; }
.section-head h2 { max-width: 760px; }
.section-head p { margin-top: 14px; max-width: var(--measure); }
.band { background: var(--paper-2); }

/* Hero */
.hero { padding: 88px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }
.hero h1 { margin-bottom: 26px; }
.home-hero h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(36px, 4.8vw, 56px); line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.hero .lede { max-width: 620px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.proof { border-top: 1px solid var(--ink); padding-top: 18px; }
.proof .eyebrow { margin-bottom: 10px; }
.proof li { list-style: none; padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.45; }
.proof li:last-child { border-bottom: none; }
.proof li span { display: block; color: var(--ink-3); font-size: 13px; margin-top: 3px; }

/* Numbered focus areas (home) */
.focus { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.focus-item { padding: 26px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.focus-item .num { font-family: var(--serif); font-size: 20px; color: var(--accent); padding-top: 3px; }
.focus-item h3 { margin-bottom: 8px; }
.focus-item p { font-size: 15.5px; }

/* Two-column band (home) */
.split { display: grid; grid-template-columns: 7fr 4fr; gap: 64px; align-items: start; }

/* Expandable rows: shared behaviour for .service, .project and .entry */
details > summary { list-style: none; cursor: pointer; position: relative; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-55%);
  font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent);
}
details[open] > summary::after { content: "–"; }
details > summary:hover h3 { color: var(--accent); }

/* Services */
.service { border-top: 1px solid var(--rule); }
.service:first-of-type { border-top: none; }
.service > summary, .service .body { display: grid; grid-template-columns: 300px 1fr; gap: 0 48px; padding-right: 48px; }
.service > summary { padding-top: 34px; padding-bottom: 34px; }
.service .num { font-family: var(--serif); font-size: 15px; color: var(--accent); margin-bottom: 8px; display: block; }
.service h3 { font-size: 25px; transition: color .15s ease; }
.service .who { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.service .tease { font-size: 15.5px; color: var(--ink-2); padding-top: 8px; }
.service .body > ul { grid-column: 2; list-style: none; margin: -14px 0 0; padding: 0 0 34px; }
.service li { padding: 9px 0 9px 22px; position: relative; font-size: 15.5px; border-bottom: 1px solid var(--rule); }
.service li:last-child { border-bottom: none; }
.service li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1px; background: var(--accent); }

/* Booking */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.offer { background: var(--paper); border: 1px solid var(--rule); padding: 28px 26px 26px; display: flex; flex-direction: column; }
.offer h3 { font-size: 21px; }
.offer .price { font-family: var(--serif); font-size: 34px; color: var(--ink); margin: 10px 0 4px; line-height: 1; }
.offer .price small { font-family: var(--sans); font-size: 13px; color: var(--ink-3); margin-left: 6px; }
.offer p { font-size: 15px; margin: 12px 0 22px; flex: 1; }
.terms { margin-top: 28px; font-size: 14px; color: var(--ink-3); max-width: 760px; }

/* Timeline entries */
.timeline { border-top: 1px solid var(--rule); }
.entry { border-bottom: 1px solid var(--rule); }
.entry > summary, .entry .row, .entry .more { display: grid; grid-template-columns: 170px 1fr; gap: 0 28px; }
.entry > summary, .entry .row { padding: 24px 48px 24px 0; }
.entry .when { font-size: 14px; color: var(--ink-3); padding-top: 4px; }
.entry h3 { font-size: 20px; transition: color .15s ease; }
.entry .where { font-family: var(--serif); font-style: italic; color: var(--ink-2); font-size: 17px; margin: 2px 0 8px; }
.entry p, .entry li { font-size: 15.5px; }
.entry .more > div { grid-column: 2; padding: 0 48px 24px 0; margin-top: -10px; }
.entry .more ul { margin: 0 0 0 18px; }
.entry .more li { margin: 4px 0; }

/* Projects */
.project { border-top: 1px solid var(--rule); }
.project:first-of-type { border-top: none; }
.project > summary, .project .body { display: grid; grid-template-columns: 1fr 2fr; gap: 0 40px; padding-right: 48px; }
.project > summary { padding-top: 34px; padding-bottom: 34px; }
.project .tag { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; display: block; }
.project h3 { font-size: 24px; transition: color .15s ease; }
.project .tease { font-size: 15.5px; padding-top: 6px; }
.project .body > div { grid-column: 2; padding: 0 0 34px; margin-top: -14px; }
.project p { font-size: 15.5px; }
.project .links { margin-top: 14px; font-size: 14px; display: flex; gap: 18px; flex-wrap: wrap; }

/* Press */
.press-item { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 170px 1fr; gap: 28px; }
.press-item .when { font-size: 14px; color: var(--ink-3); padding-top: 3px; }
.press-item h3 { font-size: 20px; }
.press-item .outlet { font-size: 14px; color: var(--ink-3); margin: 2px 0 8px; }
.press-item p { font-size: 15.5px; }
blockquote { font-family: var(--serif); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.35; color: var(--ink); max-width: 760px; }
blockquote footer { font-family: var(--sans); font-size: 14px; color: var(--ink-3); margin-top: 14px; }

/* Strip of three */
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.strip div { border-top: 1px solid var(--ink); padding-top: 16px; font-size: 15px; }
.strip div b { display: block; font-family: var(--serif); font-weight: 400; font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.strip.stack { grid-template-columns: 1fr; gap: 18px; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 16px; display: flex; gap: 16px; }
.contact-list li span:first-child { color: var(--ink-3); width: 84px; flex-shrink: 0; font-size: 14px; padding-top: 2px; }
.contact-list li:last-child { border-bottom: none; }

/* Footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--ink-3); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .focus { grid-template-columns: 1fr; }
  .offers { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; gap: 20px; }
  .service > summary, .service .body, .project > summary, .project .body { grid-template-columns: 1fr; gap: 10px; padding-right: 40px; }
  .service .body > ul, .project .body > div { grid-column: 1; margin-top: 0; }
  .service > summary, .project > summary { padding-top: 26px; padding-bottom: 26px; }
}
@media (max-width: 1040px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--ink); padding: 8px 0; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after, .menu[open] > summary::after { content: none; }
  .menu[open] summary { color: var(--accent); }
  .menu .sheet { position: absolute; right: 0; top: 40px; background: var(--paper); border: 1px solid var(--rule); min-width: 250px; max-height: calc(100dvh - 80px); overflow-y: auto; padding: 8px 0; box-shadow: 0 12px 32px rgba(22, 24, 29, .08); }
  .menu .sheet a { display: block; padding: 11px 18px; font-size: 15px; color: var(--ink-2); }
  .menu .sheet a:hover { background: var(--paper-2); color: var(--ink); }
}
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .hero { padding: 52px 0 56px; }
  .entry > summary, .entry .row, .entry .more, .press-item { grid-template-columns: 1fr; gap: 6px; }
  .entry .more > div { grid-column: 1; padding-right: 0; }
  .focus-item { grid-template-columns: 32px 1fr; }
  .site-header .wrap { height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* Essay (How I think) */
.essay-grid { display: grid; grid-template-columns: 220px minmax(0, 680px); gap: 64px; align-items: start; }
.toc { position: sticky; top: 92px; border-top: 1px solid var(--ink); padding-top: 16px; }
.toc .eyebrow { margin-bottom: 10px; }
.toc a { display: block; font-size: 14px; color: var(--ink-3); padding: 7px 0; border-bottom: 1px solid var(--rule); line-height: 1.4; }
.toc a:last-child { border-bottom: none; }
.toc a:hover { color: var(--accent); }
.essay h2 { font-size: 30px; margin: 56px 0 18px; display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 90px; }
.essay h2:first-child { margin-top: 0; }
.essay h2 .n { font-size: 15px; color: var(--accent); font-family: var(--sans); font-weight: 600; letter-spacing: .08em; }
.essay h3.sub { font-size: 21px; margin: 36px 0 12px; color: var(--ink); }
.essay p { font-size: 18px; line-height: 1.78; }
.essay p + p { margin-top: 1.1em; }
.essay .pull { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 27px); line-height: 1.35; color: var(--ink); margin: 34px 0; padding-left: 22px; border-left: 2px solid var(--accent); }
.essay .example { margin-top: 64px; padding: 36px 36px 30px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 4px; }
.essay .example h2 { margin-top: 0; font-size: 26px; }
.essay .example p { font-size: 17px; }
@media (max-width: 960px) {
  .essay-grid { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .essay .example { padding: 26px 22px 20px; margin-top: 48px; }
  .essay h2 { font-size: 26px; margin-top: 44px; }
}

/* Folded essay sections */
.essay .fold > summary { list-style: none; cursor: pointer; margin-top: 56px; padding-right: 44px; }
.essay .fold > summary::-webkit-details-marker { display: none; }
.essay .fold > summary h2 { margin: 0; }
.essay .fold > summary:hover h2 { color: var(--accent); }
.essay .fold > summary::after { top: 50%; }
.essay .fold[open] > summary { margin-bottom: 18px; }
.essay .fold > summary + p, .essay .fold > summary + .pull { margin-top: 0; }
@media (max-width: 960px) { .essay .fold > summary { margin-top: 44px; } }

/* Curated post timeline */
.notes-hero h1, .post-timeline h2, .post-highlights h3 { font-family: var(--sans); font-weight: 500; }
.notes-hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.12; }
.notes-hero .lede { margin-top: 24px; }
.notes-hero .small { margin-top: 20px; }
.post-timeline { list-style: none; max-width: 880px; margin: 0 auto; }
.post-timeline li { display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 32px; padding: 32px 0; border-top: 1px solid var(--rule); scroll-margin-top: 90px; }
.post-timeline time, .post-highlights time { display: block; font-size: 13px; color: var(--accent); }
.post-timeline h2 { font-size: 24px; line-height: 1.3; margin-bottom: 12px; }
.post-timeline p { font-size: 16px; }
.post-link { display: inline-block; margin-top: 16px; font-size: 14px; text-decoration: underline; text-underline-offset: .2em; }
.post-highlights { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.post-highlights li { padding-top: 18px; border-top: 1px solid var(--rule); }
.post-highlights h3 { font-size: 20px; line-height: 1.3; margin: 12px 0; }
.post-highlights h3 a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.post-highlights p { font-size: 15px; }
.notes-next { margin-top: 32px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .post-timeline li { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .post-highlights { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
