/* Smed Advisory. Smed Partners design system: ink on paper, Fraunces and Inter, hairline rules, one Ember accent. */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --ink: #16191d;
  --steel: #4a5560;
  --ember: #b66a3c;
  --paper: #faf8f5;
  --mist: #edeae4;
  --hairline: #d9d5ce;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Inter", "Calibri", system-ui, -apple-system, "Segoe UI", sans-serif;
  --page: 1180px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 28px;
  font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--hairline); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: text-decoration-color 120ms ease, color 120ms ease; }
a:hover { text-decoration-color: var(--ember); }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 10; }
.muted { color: var(--steel); }
.small { font-size: 15px; line-height: 24px; }

/* ---------- masthead ---------- */
.masthead { max-width: var(--page); margin: 0 auto; padding: 28px var(--gutter) 22px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px 32px; flex-wrap: wrap; border-bottom: 1px solid var(--hairline); }
.name-link { font-family: var(--display); font-size: 20px; font-weight: 500; text-decoration: none; letter-spacing: 0; }
.masthead nav { display: flex; gap: 6px 22px; flex-wrap: wrap; font-size: 14px; }
.masthead nav a { color: var(--steel); text-decoration: none; }
.masthead nav a:hover { color: var(--ink); }
.masthead nav .lang { color: var(--ink); padding-left: 22px; border-left: 1px solid var(--hairline); }

/* ---------- the page grid: left margin, text, right margin ---------- */
main { max-width: var(--page); margin: 0 auto; padding-inline: var(--gutter); }
.block { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 3fr); column-gap: 48px; row-gap: 0; padding-block: 64px 72px; border-top: 1px solid var(--hairline); }
.block:first-child { border-top: 0; }
.margin-l { grid-column: 1; }
.text { grid-column: 2; max-width: 62ch; }
.text.wide { grid-column: 2 / 4; max-width: none; }
.margin-r { grid-column: 3; }
.text > p + p { margin-top: 18px; }

h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h2.margin-l { font-family: var(--display); font-size: 24px; line-height: 30px; padding-top: 2px; }
h3 { font-family: var(--display); font-size: 21px; line-height: 28px; }
.sub-h { font-family: var(--body); font-size: 13px; line-height: 20px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin: 44px 0 12px; }

/* ---------- intro ---------- */
.intro { padding-top: 72px; }
.intro h1 { font-family: var(--display); font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.01em; }
.intro .role { color: var(--steel); margin: 14px 0 36px; }
.lede { font-family: var(--display); font-size: 24px; line-height: 35px; font-weight: 400; }
.intro .text > p.lede + p { margin-top: 22px; }
.portrait { width: 100%; max-width: 240px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 2px; }
.side-h { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin: 28px 0 8px; }
.now li { font-size: 15px; line-height: 23px; padding: 7px 0; border-top: 1px solid var(--hairline); color: var(--steel); }
.now li b { color: var(--ink); font-weight: 600; }

/* ---------- career: a CV list with a to-scale bar ---------- */
.career { border-top: 1px solid var(--ink); }
.career li { display: grid; grid-template-columns: 104px minmax(0, 1.25fr) minmax(0, 1fr); gap: 4px 32px; padding: 16px 0 18px; border-bottom: 1px solid var(--hairline); align-items: start; }
.yrs { font-size: 14px; line-height: 24px; color: var(--steel); font-variant-numeric: tabular-nums; white-space: nowrap; }
.career .t { font-weight: 600; font-size: 16px; line-height: 24px; }
.career .o { color: var(--steel); font-size: 15px; line-height: 22px; }
.career .d { font-size: 15px; line-height: 23px; margin-top: 6px; max-width: 58ch; }
.bar { position: relative; height: 24px; }
.bar::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--hairline); }
.bar i { position: absolute; top: 8px; height: 7px; background: var(--ink); }
.career li.now .bar i { background: var(--ember); }
.axis { display: grid; grid-template-columns: 104px minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 32px; }
.ticks { position: relative; height: 22px; margin-top: 6px; }
.ticks em { position: absolute; transform: translateX(-50%); font-style: normal; font-size: 12px; color: var(--steel); font-variant-numeric: tabular-nums; }
.ticks em:first-child { transform: none; }
.aside-note { font-size: 13px; color: var(--steel); text-align: right; margin-top: 2px; }
.edu li { display: grid; grid-template-columns: 104px 1fr; gap: 28px; padding: 9px 0; border-top: 1px solid var(--hairline); font-size: 15px; line-height: 23px; }
.edu li:last-child { border-bottom: 1px solid var(--hairline); }

/* ---------- selected work with figures in the margin ---------- */
.work-item { padding-top: 34px; }
.work-item h3 { margin-bottom: 8px; }
.work-item p { color: var(--ink); }
.fig { padding-top: 38px; }
.fig svg { width: 100%; max-width: 240px; height: auto; display: block; }
.fig figcaption { font-size: 13px; line-height: 19px; color: var(--steel); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--hairline); max-width: 240px; }
.fig figcaption b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.bar-ink { fill: var(--ink); }
.bar-mist { fill: var(--mist); stroke: var(--hairline); stroke-width: 1; }
.lbl { fill: var(--steel); font: 400 12px var(--body); }
.val { fill: var(--ink); font: 500 17px var(--display); }

/* ---------- written and said ---------- */
.kind { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); margin-bottom: 8px; }
.item-h { margin-bottom: 10px; }
.item-h a { text-decoration-color: var(--hairline); }
.pull { margin: 28px 0 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--ember); }
.pull p { font-family: var(--display); font-size: 27px; line-height: 36px; }
.biblio li { display: grid; grid-template-columns: 104px 1fr; gap: 28px; padding: 10px 0; border-top: 1px solid var(--hairline); font-size: 15.5px; line-height: 24px; }
.biblio li:last-child { border-bottom: 1px solid var(--hairline); }
.biblio + .small { margin-top: 12px; }

/* ---------- contact ---------- */
.mail { margin-top: 14px !important; font-family: var(--display); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; }
.mail a { text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.rows { display: grid; grid-template-columns: 104px 1fr; margin-top: 28px; border-top: 1px solid var(--hairline); }
.rows dt, .rows dd { margin: 0; padding: 10px 0; border-bottom: 1px solid var(--hairline); font-size: 15.5px; }
.rows dt { color: var(--steel); }

/* ---------- colophon ---------- */
.colophon { max-width: var(--page); margin: 0 auto; padding: 22px var(--gutter) 40px; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; font-size: 13px; line-height: 20px; color: var(--steel); }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .block { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); column-gap: 40px; }
  .margin-r { grid-column: 2; }
  .text.wide { grid-column: 2; }
  .intro .margin-r { grid-row: 1; grid-column: 1; }
  .intro .margin-l { display: none; }
  .fig { padding-top: 16px; }
  .career li { grid-template-columns: 96px minmax(0, 1fr); }
  .career li .bar { grid-column: 2; margin-top: 4px; }
  .axis { grid-template-columns: 96px minmax(0, 1fr); }
  .axis > span:nth-child(2) { display: none; }
  .edu li, .biblio li { grid-template-columns: 96px 1fr; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; line-height: 26px; }
  .block { grid-template-columns: minmax(0, 1fr); padding-block: 44px 52px; }
  .margin-l, .text, .text.wide, .margin-r { grid-column: 1; }
  div.margin-l:empty, div.margin-r:empty { display: none; }
  .intro .margin-r { grid-row: auto; display: grid; grid-template-columns: 110px 1fr; gap: 0 18px; margin-top: 32px; }
  .intro .margin-r .portrait { grid-row: 1 / span 2; }
  .intro .margin-r .side-h { margin-top: 0; }
  h2.margin-l { margin-bottom: 18px; }
  .lede { font-size: 21px; line-height: 31px; }
  .career li { grid-template-columns: 1fr; }
  .career li .bar { grid-column: 1; order: -1; margin-top: 0; }
  .axis { grid-template-columns: 1fr; }
  .axis > span:not(.ticks) { display: none; }
  .axis > span:nth-child(2) { display: none; }
  .aside-note { text-align: left; }
  .biblio li, .edu li, .rows { grid-template-columns: 88px 1fr; gap: 0 16px; }
  .masthead nav a:not(.lang) { display: none; }
  .masthead nav .lang { border-left: 0; padding-left: 0; }
  .work-item { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- v5: company site additions ---------- */
.name-link { letter-spacing: 0.005em; }
.masthead nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--ember); text-underline-offset: 0.35em; }

.intro .tagline { font-family: var(--display); font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.01em; }

/* areas list in the right margin of the front page */
.areas li { font-size: 15px; line-height: 23px; padding: 7px 0; border-top: 1px solid var(--hairline); }
.areas li:last-child { border-bottom: 1px solid var(--hairline); }
.areas a { text-decoration: none; }
.areas a:hover { text-decoration: underline; text-decoration-color: var(--ember); }
.areas span { display: block; color: var(--steel); font-size: 14px; line-height: 21px; }

/* service lists */
.area-h { margin-bottom: 10px; }
.svc { margin-top: 22px; border-top: 1px solid var(--ink); }
.svc li { padding: 11px 0 12px; border-bottom: 1px solid var(--hairline); font-size: 16px; line-height: 25px; }
.svc li b { font-weight: 600; }
.after { margin-top: 22px !important; }

/* cases */
.work-item .res { margin-top: 10px; }
.res-l { color: var(--steel); font-size: 14px; font-weight: 600; margin-right: 6px; }
.more { margin-top: 30px !important; font-size: 15px; }
.related li { font-size: 14.5px; line-height: 22px; padding: 7px 0; border-top: 1px solid var(--hairline); }
.related li:last-child { border-bottom: 1px solid var(--hairline); }

/* engagement forms */
.rows.forms { grid-template-columns: 180px 1fr; }
.rows.forms dt { color: var(--ink); font-weight: 600; }
.rows.forms dd { color: var(--ink); }
.rows dd .muted { display: block; font-size: 14px; }

@media (max-width: 720px) {
  .rows.forms { grid-template-columns: 1fr; }
  .rows.forms dt { border-bottom: 0; padding-bottom: 0; }
  .intro .margin-r.solo { display: block; }
}

/* area note in the left margin, next to a featured case */
.note { padding-top: 38px; font-size: 14px; line-height: 21px; color: var(--steel); text-align: right; }
@media (max-width: 720px) {
  .note { padding-top: 26px; text-align: left; }
  .note-wrap + .work-item { padding-top: 2px; }
}

/* education lists without years */
.edu.plain li, .edu.plain li:last-child { grid-template-columns: 1fr; }
