/* cristianavramescu.com — Design C (research/website-redesign/designs/c-hybrid.html), built from web/site.yaml by web/site.html.
   Fonts come from fonts.css. Text measure: every paragraph block uses --col; headings use the full width and balance their lines. */

:root {
  --paper: #f7f6f2; --ink: #1c1b19; --muted: #5f5d57; --line: #dddbd3; --wash: #efede6;
  --accent: #b44a33; --accent-ink: #ffffff;
  --serif: "Newsreader", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --col: 720px; --wide: 1080px; --bar-h: 61px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #151513; --ink: #ecebe6; --muted: #a8a69f; --line: #34332f; --wash: #1e1d1a; --accent: #e07a5f; --accent-ink: #151513; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #151513; --ink: #ecebe6; --muted: #a8a69f; --line: #34332f; --wash: #1e1d1a; --accent: #e07a5f; --accent-ink: #151513; color-scheme: dark; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
em { font-style: italic; color: var(--accent); }
h1, h2, h3, h4, p { margin: 0; font-weight: 400; }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 99; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--muted); }

/* Bar: name, five anchors, theme toggle, the CV. */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.bar .name { font-family: var(--serif); font-size: 20px; text-decoration: none; margin-right: auto; }
.bar nav { display: flex; gap: 22px; font-size: 14px; }
.bar nav a { text-decoration: none; color: var(--muted); padding: 10px 0; }
.bar nav a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); font: 500 14px var(--sans); text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { color: var(--paper); opacity: .85; }
.btn:hover { color: inherit; opacity: .75; }
.btn.quiet { border-color: var(--line); color: var(--muted); }

/* Hero: who he is, in one line and one paragraph. One action. */
.hero { padding: clamp(56px, 8vw, 96px) 0 0; }
.hero h1 { font-family: var(--serif); font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -0.025em; margin: 18px 0 26px; }
.hero .sub { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; max-width: var(--col); }
.hero .bio { margin-top: 18px; color: var(--muted); max-width: var(--col); }
.hero .actions { margin-top: 30px; }

/* Scope line under the hero: how big the job is, so "8 engineers" isn't read alone. */
.scope { margin-top: 18px; max-width: var(--col); color: var(--muted); }

/* Proof strip: before → after, each a change on his teams. */
section.proof { padding-top: clamp(48px, 6vw, 72px); }
.proof ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 32px; }
.proof li { border-top: 1px solid var(--ink); padding-top: 16px; }
.proof .ba { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.proof .ba s { font-size: 18px; color: var(--muted); text-decoration-thickness: 1px; }
.proof .ba span { color: var(--muted); }
.proof .ba b { flex-basis: 100%; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 30px); line-height: 1.15; color: var(--accent); }
.proof .what { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--muted); }

section { padding: clamp(72px, 10vw, 120px) 0 0; }
.label { display: flex; gap: 14px; align-items: baseline; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.label::after { content: ""; flex: 1; border-top: 1px solid var(--line); transform: translateY(-4px); }
h2.title { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 12px; }
.intro { color: var(--muted); max-width: var(--col); margin-bottom: 36px; }

/* Stories: each one is its own project. The header row names it; the margin carries its one result. */
.story { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px 56px; padding: 44px 0; border-top: 1px solid var(--line); }
.story:first-of-type { border-top: 1px solid var(--ink); }
.story .fig { font-family: var(--serif); font-size: clamp(42px, 4.6vw, 56px); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.story .fig small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 13.5px; line-height: 1.45; letter-spacing: 0; color: var(--muted); }
.story .proj { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.story .proj b { font-weight: 500; color: var(--accent); }
.story h3 { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 18px; }
.story dl { margin: 0; display: grid; gap: 14px; max-width: var(--col); }
.story dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.story dd { margin: 2px 0 0; }
.story dd strong { font-weight: 600; }
.story dd ul, .project dd ul { margin: 4px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.story dd li::marker { color: var(--muted); }

/* Colleague quotes: one inside a story, the rest after the principles. Role only, never names. */
blockquote { margin: 0; }
blockquote p { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 24px); line-height: 1.35; }
blockquote footer { margin-top: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pull { margin-top: 26px; max-width: var(--col); padding-left: 20px; border-left: 3px solid var(--accent); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.quotes blockquote { border-top: 1px solid var(--ink); padding-top: 18px; }
.quotes blockquote p { font-size: clamp(18px, 1.8vw, 20px); }

/* Org diagram, inside the replatform story. */
.org { margin: 28px 0 0; max-width: 560px; border-top: 1px solid var(--line); padding-top: 16px; }
.org figcaption { font-size: 15px; margin-bottom: 12px; }
.org svg { width: 100%; height: auto; display: block; }
.org svg text { font-family: var(--sans); fill: var(--ink); }
.org svg .t-muted { fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend b { display: inline-block; width: 24px; border-top: 3px solid var(--accent); }
.legend b.dash { border-top: 2px dashed var(--muted); }
/* Phones: the same diagram as a list. display:none on the SVG removes it from the accessibility tree. */
.org-list { display: none; list-style: none; margin: 0; padding: 0; }
.org-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.org-list li:first-child { border-top: 0; }
.org-list li::before { content: ""; margin-top: 11px; border-top: 2px dashed var(--muted); }
.org-list li.direct::before { border-top: 3px solid var(--accent); }
.org-list li.me::before { border: 0; background: var(--ink); width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; }
.org-list li.support::before { border-top: 1.5px dotted var(--muted); }
.org-list small { display: block; color: var(--muted); font-size: 13.5px; }

/* How I lead */
.lead-col { max-width: var(--col); }
.principles { list-style: none; margin: 0; padding: 0; counter-reset: p; border-bottom: 1px solid var(--line); }
.principles li { counter-increment: p; display: grid; grid-template-columns: 48px 1fr; padding: 22px 0; border-top: 1px solid var(--line); }
.principles li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 6px; }
.principles strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; line-height: 1.25; margin-bottom: 6px; }
.principles span { color: var(--muted); }

/* Career: every role says what it was, what changed, and what I worked with. */
.career { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.career > li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 6px 40px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.career .when { font-family: var(--mono); font-size: 13px; color: var(--muted); padding-top: 6px; }
.career h3 { font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.career .org-name { color: var(--muted); font-size: 15px; margin-top: 2px; }
.career .remit { margin-top: 12px; max-width: var(--col); }
.career ul.points { margin: 12px 0 0; padding-left: 18px; display: grid; gap: 6px; max-width: var(--col); font-size: 16px; }
.career ul.points li::marker { color: var(--muted); }
.skills { margin: 16px 0 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 6px 14px; max-width: var(--col); font-size: 14px; }
.skills dt { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; }
.skills dd { margin: 0; color: var(--muted); }
.career li.minor h3 { font-size: 20px; }

.project { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px 56px; border-top: 1px solid var(--ink); padding-top: 28px; }
.project .cat { font-family: var(--serif); font-size: 22px; line-height: 1.2; }
.project .cat small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.project h3 { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 26px); line-height: 1.25; margin-bottom: 14px; }
.project dl { margin: 0; display: grid; gap: 14px; max-width: var(--col); }
.project dt { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.project dd { margin: 2px 0 0; }
.project .aside { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: var(--col); }

.contact { padding-bottom: 72px; }
.contact .closing { font-family: var(--serif); font-size: clamp(40px, 6vw, 72px); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 32px; }
.contact .actions { display: flex; flex-wrap: wrap; gap: 10px; }
body > footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-family: var(--mono); font-size: 12px; color: var(--muted); }

@media (max-width: 900px) {
  :root { --bar-h: 96px; }
  .bar .wrap { flex-wrap: wrap; gap: 0 10px; padding-top: 6px; }
  .bar nav { order: 3; width: 100%; overflow-x: auto; gap: 20px; scrollbar-width: none; border-top: 1px solid var(--line);
    -webkit-mask-image: linear-gradient(to right, #000 82%, transparent); mask-image: linear-gradient(to right, #000 82%, transparent); padding-right: 40px; }
  .bar nav a { white-space: nowrap; padding: 12px 0; }
  .bar .btn { min-height: 40px; padding: 0 14px; }
}
@media (max-width: 900px) {
  .proof ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .story, .project, .career > li { grid-template-columns: 1fr; gap: 10px; }
  .story .fig { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
  .story .fig small { margin: 0; }
  .principles li { grid-template-columns: 36px 1fr; }
  .skills { grid-template-columns: 1fr; gap: 2px; }
  .skills dd + dt { margin-top: 8px; }
}
@media (max-width: 520px) {
  .proof .ba span { display: none; }
  .org svg { display: none; }
  .org-list { display: block; }
}
@media print {
  :root, :root[data-theme="dark"] { --paper: #fff; --ink: #000; --muted: #444; --line: #ccc; --wash: #f3f3f3; --accent: #9c3c28; --accent-ink: #fff; color-scheme: light; }
  .bar, .actions, .skip { display: none; }
  section { padding-top: 32px; }
  .story, .project, .principles li, .career > li, blockquote, .proof li { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: var(--muted); }
}
