/* Demo: Jane Okafor, mechanical engineer.
   Reads like technical documentation. Cool greys, a single technical blue, a
   sticky identity rail, and numbers given room. Nothing warm about it, which is
   the point: it should not feel related to the Resume Insite site at all. */

:root {
  --bg:     #FFFFFF;
  --sunk:   #F6F8FA;
  --ink:    #0D1117;
  --muted:  #57606A;
  --line:   #D8DEE4;
  --accent: #0969DA;
  --sans:   "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:   "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 2px; }

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* ------------------------------------------------------------- the rail --- */
.rail { position: sticky; top: 0; padding: 64px 0; }

.rail h1 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }

.rail .role {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.rail .loc {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.rail nav { margin-top: 28px; display: grid; gap: 2px; }
.rail nav a {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0;
}
.rail nav a:hover { color: var(--accent); }

.rail .links { margin-top: 28px; display: grid; gap: 6px; font-size: 14px; }
.rail .links a { text-decoration: none; }
.rail .links a:hover { text-decoration: underline; }

/* ---------------------------------------------------------- the content --- */
.body { padding: 64px 0 120px; }

section + section { margin-top: 56px; }

h2 {
  margin: 0 0 20px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.intro { font-size: 18px; line-height: 1.6; margin: 0; max-width: 60ch; }
.intro + .intro { margin-top: 14px; }

/* Numbers get room, because this is what the reader is scanning for. */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 28px;
}
.metric { background: var(--bg); padding: 18px 20px; }
.metric b {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.metric span { font-size: 13px; color: var(--muted); }

.project { padding: 22px 0; border-bottom: 1px solid var(--line); }
.project:first-of-type { border-top: 1px solid var(--line); }
.project h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.project p { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }

.project .tags { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.project .tags span {
  font-family: var(--mono);
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}

.role-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.role-row b { font-weight: 600; }
.role-row em { font-style: normal; color: var(--muted); display: block; font-size: 14px; }
.role-row time { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span {
  font-family: var(--mono);
  font-size: 12px;
  padding: 5px 10px;
  background: var(--sunk);
  border-radius: 4px;
}

.contact { background: var(--sunk); border-radius: 8px; padding: 24px; margin-top: 56px; }
.contact p { margin: 0; color: var(--muted); }
.contact .mail { display: inline-block; margin-top: 8px; font-size: 19px; font-weight: 600; }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 0; }
  .rail { position: static; padding: 48px 0 0; }
  .rail nav { display: none; }
  .body { padding-top: 40px; }
  .metrics { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- depth on demand ------ */
/* Case studies collapse by default. This is the thing a PDF cannot do: the
   scanner gets a one-line summary, and the person who is actually interested
   opens the detail. On paper you must choose one audience or the other. */
.case { border-bottom: 1px solid var(--line); }
.case:first-of-type { border-top: 1px solid var(--line); }

.case > summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}
.case > summary::-webkit-details-marker { display: none; }
.case > summary:hover h3 { color: var(--accent); }

.case h3 { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.case .oneline { margin: 0; color: var(--muted); font-size: 15px; max-width: 62ch; }

.case .toggle {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  padding-top: 2px;
}
.case .toggle::after { content: " +"; }
.case[open] .toggle::after { content: " \2212"; }
.case[open] .toggle span { display: none; }
.case[open] .toggle::before { content: "Close"; }

.case .detail { padding: 0 0 24px; }

.case dl {
  margin: 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px 20px;
}
.case dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.case dd { margin: 0; font-size: 15px; max-width: 62ch; }

.case .tags { margin-top: 18px; }

/* ------------------------------------------------------- availability --- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 16px;
  padding: 5px 11px;
  border-radius: 100px;
  background: #E6F4EA;
  color: #14532D;
  font-size: 12px;
  font-weight: 500;
}
.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16A34A;
  flex: none;
}

.rail .download {
  display: block;
  margin-top: 20px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}
.rail .download:hover { background: var(--ink); color: #FFFFFF; }

/* -------------------------------------------------------------- quote --- */
.quote {
  margin: 0;
  padding: 24px 26px;
  background: var(--sunk);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
}
.quote p { margin: 0; font-size: 17px; line-height: 1.55; }
.quote footer { margin-top: 14px; font-size: 14px; color: var(--muted); }
.quote footer b { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------- certs --- */
.certs { display: grid; gap: 10px; }
.cert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.cert:first-child { border-top: 1px solid var(--line); }
.cert .verify { font-size: 13px; white-space: nowrap; }
.cert em { font-style: normal; color: var(--muted); display: block; font-size: 13px; }

.stamp {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
