/* Colors sampled from the banner so the page and logo match. */
:root {
  --bg: #000000;          /* same pure black as the banner, so there's no visible edge */
  --text: #e8e8e8;
  --muted: #9a9a9a;
  --blue: #38b6ff;        /* the J */
  --orange: #ff8210;      /* the S */
  --line: #2a2a2a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* Banner: full width, scales with the screen, never cropped. */
.banner img {
  display: block;
  width: 100%;
  height: auto;
}

main {
  max-width: 44rem;       /* keeps lines under ~75 characters */
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1rem;
}

h2, h3 {
  font-family: "Michroma", "IBM Plex Sans", sans-serif;
  font-weight: 400;
  line-height: 1.25;
}
h2 { color: var(--blue);   font-size: 1.35rem; margin: 3rem 0 1rem; }
h3 { color: var(--orange); font-size: 1.05rem; margin: 0 0 0.5rem; }
main > section:first-child h2 { margin-top: 0; }

a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--orange); }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Contact links sit in a row and wrap on small screens. */
.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

/* Projects are separated by a rule, not boxed in cards. */
.project {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.project p { margin: 0 0 0.5rem; }
.tools { color: var(--muted); font-size: 0.9375rem; }
.project-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

/* PDF toggle */
.pdf { margin-top: 0.75rem; }
.pdf summary { cursor: pointer; color: var(--blue); }
.pdf iframe {
  width: 100%;
  height: 36rem;
  margin-top: 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
}
.pdf-note { color: var(--muted); font-size: 0.875rem; }

footer {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}
footer p { margin: 0; }
