/* The résumé page — layout and type for phone and desktop. The desktop is
   the 1440 frame of 2026-11-18 ("MB / Résumé"), measured from its export:
   a 112 nav, the hero 64 below it with the card centred beside the intro,
   then Experience (a 160 dates column, the body beside it) with Education
   and Expertise in a 326 side column, 72 apart. The phone has no frame in
   this design: it keeps the one-column order of the page before it, in the
   new type. Shared pieces are base.css; all values come from tokens.css. */

/* ---------- nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-16);
  height: 64px;
  border-bottom: 1px solid var(--rule);
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: var(--lh-meta);
}
.nav .brand .slash { margin: 0 var(--space-4); }
.nav .pdf { white-space: nowrap; }
/* the arrow stands off the bracket and rides a little high, as drawn */
.nav .pdf .arrow { margin: 0 2px 0 8px; transform: translateY(-1.5px); }
.nav a:hover { color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding: var(--space-32) 0 0; }
.hero h1 {
  margin: 0;
  font-size: var(--fs-display);
  font-weight: 500;
  line-height: var(--lh-display);
  letter-spacing: var(--ls-display);
}
.hero .headline { margin-top: var(--space-16); text-transform: uppercase; }
.hero .location,
.hero .contact {
  margin: var(--space-16) 0 0;
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
}
.hero .location { color: var(--secondary); }
.hero .contact { font-weight: 500; }
.hero .contact .sep { margin: 0 14px; color: var(--accent); }
/* A part never breaks inside (an address): the line wraps at the dots. */
.hero .contact .part { white-space: nowrap; }
.hero .contact a:hover { color: var(--accent); }
.hero .summary { margin-top: var(--space-16); max-width: 736px; color: var(--secondary); }
.hero .summary p { margin: 0; }
.hero .summary p + p { margin-top: var(--space-12); }

/* ---------- sections ---------- */

.section { margin-top: var(--space-48); }
.section > h2 { margin-bottom: var(--space-16); }
.experience > h2 { margin-bottom: 0; padding-bottom: var(--space-24); border-bottom: 1px solid var(--rule); }

/* Experience on phone: the employer with its dates on the same line. A
   grid, not an absolute corner: a long name wraps beside the dates, which
   keep their own column. */
.experience .entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: var(--space-12);
  /* a rule's own pixel is part of the 24 above an entry, as the frame
     measures it: 190 from one rule to the next around a one-line job */
  padding: calc(var(--space-24) - 1px) 0 var(--space-32);
}
.experience .entry + .entry { border-top: 1px solid var(--rule); }
.experience .entry-body { display: contents; }
.experience .entry > .dates {
  grid-row: 1;
  grid-column: 2;
  margin: 0;
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
  text-align: right;
  color: var(--secondary);
}
.experience .dates span { display: block; white-space: nowrap; }
.experience .entry-head { grid-row: 1; grid-column: 1; }
.experience .role, .experience .description { grid-column: 1 / -1; }

/* The employer beside its mark: 44 square, an app icon's corner. */
.entry-head { display: flex; align-items: center; gap: var(--space-12); min-height: 44px; }
.logo { flex: none; width: 44px; height: 44px; border-radius: 10px; }
.logo-initial {
  display: grid;
  place-items: center;
  background: var(--tile);
  color: var(--secondary);
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
}
.entry h3 {
  margin: 0;
  min-width: 0;
  font-size: var(--fs-20);
  font-weight: 500;
  line-height: var(--lh-lead);
  letter-spacing: var(--ls-lead);
}
.entry .role {
  margin: var(--space-12) 0 0;
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
  color: var(--secondary);
}
.entry .description { margin: var(--space-12) 0 0; }
/* a job's points: hung, so a line that wraps keeps clear of its dot */
.entry .points { grid-column: 1 / -1; margin: var(--space-12) 0 0; padding-left: var(--space-16); }
.entry .points li + li { margin-top: var(--space-4); }
.entry .points li::marker { color: var(--secondary); }

/* Education and Expertise: body type, a line each. */
.education h3 { font-size: var(--fs-16); font-weight: 400; line-height: var(--lh-body); letter-spacing: 0; }
.education .school { margin: var(--space-16) 0 0; }
.education .entry + .entry { margin-top: var(--space-24); }
.expertise .lead { margin: 0; }
.expertise .lead + .lead { margin-top: var(--space-12); }
.skills { list-style: none; margin: 0; padding: 0; }
.lead + .skills { margin-top: var(--space-16); }
.patent { margin: 0; }
.patent + .patent { margin-top: var(--space-12); }

/* ---------- footer ---------- */

.footer {
  display: flex;
  flex-direction: column;        /* stacked on phone, one row on desktop */
  gap: var(--space-4);
  margin-top: var(--space-48);
  padding: var(--space-24) 0 var(--space-32);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-14);
  line-height: var(--lh-meta);
  color: var(--secondary);
}
.footer p { margin: 0; }

/* The page's dock floats over its foot (dock.css): the footer keeps room
   under its last line for it. */
.footer { padding-bottom: calc(var(--dock-h) + var(--dock-inset) + var(--space-32) + env(safe-area-inset-bottom, 0px)); }

/* ---------- desktop ---------- */

@media (min-width: 900px) {
  .nav { height: 112px; }

  /* the card the design drew beside the intro floats now (dock.css) */
  .hero { padding-top: var(--space-64); }

  .main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 326px;
    column-gap: var(--space-72);
    align-items: start;
    margin-top: var(--space-64);
  }
  .main .section:first-child, .col-side .section:first-child { margin-top: 0; }
  .col-side .section + .section { margin-top: var(--space-40); }

  /* Experience: a dates column, with the body beside it */
  .experience .entry {
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: 0;
    padding: calc(var(--space-24) - 1px) 0 var(--space-48);
  }
  .experience .entry:last-child { padding-bottom: var(--space-24); }
  .experience .entry > .dates { grid-column: 1; text-align: left; }
  .experience .entry-body { display: block; grid-column: 2; grid-row: 1; min-width: 0; }
  .entry h3 { font-size: var(--fs-24); }
  .education h3 { font-size: var(--fs-18); }

  .footer {
    flex-direction: row;
    justify-content: space-between;
    gap: var(--space-16);
    margin-top: 0;
    padding: calc(var(--space-32) - 1px) 0 var(--space-64);
  }
}
