/* John Lee Technology Consulting — one stylesheet, no build step.
   Palette: paper, ink, one cobalt accent reserved for things you can click. */
:root {
  --paper: #F7F8F6;
  --ink: #1F2A33;
  --muted: #5C6670;
  --rule: #D9DDD6;
  --tint: #EEF1EC;
  --accent: #1F4FD8;
  --accent-deep: #173FB0;
  --measure: 66ch;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "kern", "liga";
}
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 28px 0 20px; border-bottom: 1px solid var(--rule); }
.site-head .name { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.005em; }
.site-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 16px; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent-deep); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* hero */
.hero { padding: 72px 0 40px; }
.hero h1 {
  margin: 0 0 24px; max-width: 18ch;
  font-size: clamp(40px, 7.2vw, 78px); font-weight: 500; line-height: 1.02; letter-spacing: -0.025em;
}
.hero p { max-width: 40ch; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--ink); margin: 0 0 30px; }
.hero .page-lede { max-width: var(--measure); }

/* sections: a running margin for the section name, content to the right */
.section { display: grid; grid-template-columns: 1fr; gap: 10px 48px; padding: 44px 0; border-top: 1px solid var(--rule); }
.section > .margin { color: var(--muted); font-size: 15px; line-height: 1.4; padding-top: 6px; }
.section > .body { max-width: var(--measure); }
.section h2 { margin: 0 0 14px; font-size: 30px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.15; }
.section h3 { margin: 28px 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.005em; }
.section p { margin: 0 0 14px; }
.section p.muted, .muted { color: var(--muted); }
.section ul { padding-left: 1.1em; margin: 0 0 14px; }
.section li { margin: 4px 0; }
@media (min-width: 860px) {
  .section { grid-template-columns: 200px minmax(0, 1fr); }
  .section > .margin { position: sticky; top: 24px; align-self: start; }
}

/* actions */
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px; border-radius: 6px; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.button:hover { background: var(--accent-deep); color: #fff; }
.actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }

/* the systems table: real structure, not cards */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.systems { width: 100%; border-collapse: collapse; font-size: 16px; }
table.systems th { text-align: left; font-weight: 600; color: var(--muted); font-size: 14.5px; padding: 0 16px 10px 0; border-bottom: 1px solid var(--ink); }
table.systems td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.systems td:last-child, table.systems th:last-child { padding-right: 0; white-space: nowrap; }
table.systems td.what { color: var(--muted); }

/* process: the one place numbering is honest — these are steps */
ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
ol.steps li { counter-increment: step; position: relative; padding-left: 44px; margin: 0 0 18px; }
ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); font-size: 14px; font-weight: 600; display: grid; place-items: center; }
ol.steps strong { display: block; font-weight: 600; }

/* case studies */
.case { padding: 28px 0 4px; }
.case + .case { border-top: 1px solid var(--rule); }
.case h3 { margin: 0 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; }
.case dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 16px 0 0; font-size: 15.5px; }
.case dt { color: var(--muted); }
.case dd { margin: 0; }

/* contact form: composes an email in the visitor's own mail app */
form.contact { display: grid; gap: 16px; max-width: 560px; }
form.contact label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
form.contact input, form.contact textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; color: var(--ink); }
form.contact textarea { min-height: 150px; resize: vertical; }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.note { background: var(--tint); border-radius: 6px; padding: 12px 14px; font-size: 15.5px; }

/* footer */
.site-foot { border-top: 1px solid var(--rule); margin-top: 40px; padding: 24px 0 40px; color: var(--muted); font-size: 15px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .site-nav a, .button, a { transition: color .12s ease, background-color .12s ease, border-color .12s ease; }
}
.body > .case:first-child { padding-top: 0; }
/* narrow screens: stack the header, drop the table's repetitive year column */
@media (max-width: 640px) {
  .site-head { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 20px; }
  table.systems .since { display: none; }
  table.systems th, table.systems td { padding-right: 12px; }
}
