/* Resume page. Same palette and fonts as blog.css, but standalone so the
 * resume can't break when the blog styles change. Deliberately static: no
 * hover states, transitions or scroll effects. A print block at the bottom
 * makes Cmd-P produce a light, one-column PDF. */

:root {
  --bg: #1a1d24;
  --text: #ccd0d8;
  --muted: #8b919d;
  --link: #8ab4f8;
  --rule: #2e333d;
  --tile: #f4f5f7; /* light tile behind logos so dark marks stay visible */
  --serif: Charter, "Charter BT", Georgia, Cambria, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 4rem 1rem 6rem;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

/* --- header --- */

.top {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.headshot {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

h1 {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.contact {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--muted);
}

.contact a {
  color: var(--muted);
}

.sep {
  margin: 0 0.35rem;
}

/* --- sections --- */

section {
  margin-bottom: 2.75rem;
}

h2 {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}

/* --- entries (logo | body) --- */

.entry {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 1rem;
  margin-bottom: 1.75rem;
}

.logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: contain;
  margin-top: 2px;
}

/* Square logos with their own background fill the slot; transparent marks
 * get a padded tile (light for dark marks, black for Console's white mark). */
.logo.tile,
.logo.tile-dark {
  padding: 6px;
}
.tile {
  background: var(--tile);
}
.tile-dark {
  background: #000;
  border: 1px solid var(--rule);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  column-gap: 1rem;
}

h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.where,
.when {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.sub {
  margin-bottom: 0.4rem;
}

.role {
  font-style: italic;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f26522;
  border: 1px solid #f2652255;
  border-radius: 4px;
  padding: 0 0.4rem 0 0;
  overflow: hidden;
  line-height: 1.5;
}

.badge img {
  width: 18px;
  height: 18px;
  display: block;
}

.entry ul,
.plain {
  padding-left: 1.1rem;
}

.entry li,
.plain li {
  margin-bottom: 0.25rem;
}

.entry li::marker,
.plain li::marker {
  color: var(--muted);
}

/* Text monogram in place of a logo, for entries with no organisation. */
.mono {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rule);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}

h3 a {
  color: inherit;
}

/* --- compact entries (AI Safety): one line of text instead of a role row --- */

.compact {
  margin-bottom: 1.25rem;
}

.compact p {
  margin-top: 0.15rem;
}

/* --- phones --- */

@media (max-width: 520px) {
  main {
    padding-top: 2.5rem;
  }
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
  .where {
    display: none;
  }
}

/* --- print: light and compact --- */

@media print {
  @page {
    margin: 0.4in;
  }
  :root {
    --bg: #fff;
    --text: #111;
    --muted: #555;
    --link: #111;
    --rule: #ccc;
  }
  body {
    font-size: 10pt;
    line-height: 1.4;
  }
  main {
    max-width: none;
    padding: 0;
    zoom: 0.85; /* fits the whole resume on one Letter/A4 page */
  }
  .headshot {
    display: none;
  }
  h1 {
    font-size: 1.7rem;
  }
  .top {
    margin-bottom: 1rem;
  }
  h3 {
    font-size: 1rem;
  }
  .where,
  .when {
    font-size: 0.8rem;
  }
  h2 {
    margin-bottom: 0.9rem;
  }
  section {
    margin-bottom: 1.1rem;
  }
  .entry {
    margin-bottom: 0.7rem;
    break-inside: avoid;
  }
  h2 {
    padding-bottom: 0.3rem;
  }
  .entry li {
    margin-bottom: 0;
  }
  .compact {
    margin-bottom: 0.5rem;
  }
  /* Short lists go on one line, dot-separated: stacked, they tip print onto page 2. */
  .entry .favorites,
  .plain {
    padding-left: 0;
  }
  .favorites li,
  .plain li {
    display: inline;
  }
  .favorites li + li::before,
  .plain li + li::before {
    content: " · ";
  }
  .entry {
    grid-template-columns: 36px 1fr;
  }
  .logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .logo.tile,
  .logo.tile-dark {
    padding: 4px;
  }
  .tile {
    border: 1px solid var(--rule);
  }
}
