html {
  font-family: system-ui, Arial, sans-serif;
  font-size: 150%;  /* globally zoom in a bit */
}

body {
  background-color: #111111;
  color: #dd6600bf;
  display: grid;
  grid-template-rows: auto auto 1fr auto;  /* vert layout */
  grid-template-columns: 1fr;
  line-height: 1.55;
  margin: 0 auto;  /* center horizontally */
  max-width: 1280px;  /* don't grow past this; wide-screen rule of thumb */
  min-height: 100dvh;
  place-items: stretch;  /* horiz + vert alignment, grid-only */
}

/* this keeps all content grid rows the same width */
header,
main,
footer,
body > div {
  box-sizing: border-box;
  width: 100%;
  padding: 1rem;
}

header {
  align-items: center;
  color: #dd660090;
  display: grid;
  gap: 1rem;
  grid-template-columns: auto 1fr auto;   /* 3 cols */
}

footer {
  font-size: 0.75rem;
  text-align: center;
}

h1 {
  align-items: center;
  display: inline-flex;  /* for aligning icons in-line */
  font-size: 2rem;
  gap: 0.5rem;
}

a {
  color: #dd6600bf;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 0.25rem;
}

nav a {
  border-radius: 0.25rem;
  color: #dd6600bf;
  display: inline-block;
  font-weight: bold;
  text-decoration: none;
}

div.social a {
  display: inline-block;
  border-radius: 0.25rem;
  font-size: 2rem;
  padding: 0.25rem 0.25rem;
  text-decoration: none;
}

nav a:hover {
  background: #88888877;
  color: #dd6600ff;
  text-decoration: underline;
}

div.social a:hover {
  background: #88888877;
  color: #dd6600ff;
}

article {
  color: #ffffff77;
  margin: 0;
  min-width: 0;
}

b {
  color: #ffffff95;
}

/* show only the targeted article */
article {
  display: none;
}

/* show the first as default if none selected */
article:first-of-type {
  display: block;
}

main:has(article:target) article:first-of-type {
  display: none;
}

article:target {
  display: block;
}

img {
  border-radius: 0.25rem;
}

.image-wrapper {
  position: relative;
  background: #111111;
}

.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(  /* fade to bg near bottom */
    to bottom,
    rgba(17,17,17,0) 60%,
    rgba(17,17,17,1) 100%
  );
}

ul {
  list-style: none;  /* remove bullets */
  line-height: 1.9;
  margin-left: 0;  /* normalize spacing */
  padding-left: 0;  /* remove indent */
}

.resume {
  display: grid;
  grid-auto-rows: auto;  /* default, included to be explicit */
  grid-template-columns: 1fr;  /* again, being explicit */
}

.resume-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 2rem;
}

.resume :where(h1, h2, h3, p) {
  margin: 0;
}

.sub-row-inline {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.sub-row-card {
  min-width: 0;
  background: #22222288;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.4);
  text-align: center;
}

hr {
  border: 0;
  border-top: 1px solid #dd6600aa;
  margin: 1rem 0;
  max-width: 100%;
  width: 100%;  /* force element to expand to fill instead of shrink-fitting */
}

.pill {
  background-color: #dd660040;
  border: 1.5px solid currentColor;
  border-radius: 9999px;
  display: inline-block;
  font-size: 0.85em;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

.pill-blue {
  background-color: #0066dd40;
  border: 1.5px solid currentColor;
  border-radius: 9999px;
  display: inline-block;
  font-size: 0.85em;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}

.job-list {
  display: grid;
  row-gap: 1rem;
  width: 100%;
}

.job-card {
  display: grid;
  grid-template-rows: auto 1fr; /* header + body */
  row-gap: 0.75rem;

  width: 100%;
  min-width: 0;
  box-sizing: border-box;

  background: #22222288;
  border: 1px solid #2a2a2a;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;

  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.6),
    0 6px 16px rgba(0, 0, 0, 0.4);
}

/* header row: 2-column grid */
.job-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 1.5rem;
  align-items: start;
  min-width: 0;
}

.job-header img {
  height: 3em;
}

/* left header stack */
.job-left {
  display: grid;
  row-gap: 0.25rem;
  min-width: 0;
  align-self: center; /* vertically center vs logo */
}

.job-company {
  font-weight: 700;
  color: #ffffffcc;
  line-height: 1.2;
}

.job-title {
  font-size: 0.95em;
  color: #dd6600bf;
  line-height: 1.25;
}

/* date column */
.job-dates {
  font-size: 0.85em;
  color: #ffffff99;
  white-space: nowrap;
  text-align: right;
  align-self: center; /* vertically center vs company/title stack */
}

/* body content */
.job-body {
  margin-top: 1em;
  color: #ffffff99;
  min-width: 0;
}

.job-body p {
  margin: 0 0 0.5rem 0;
}

.job-body ul {
  margin: 0;
  padding-left: 1.25rem; /* override your global ul reset for bullets here */
  list-style: disc;
}

.job-body li {
  margin: 0.25rem 0;
}

.resume-left {
  min-width: 0;  /* for grid */
  min-width: 12dvw;  /* roughly align row labels */
}

.resume-right {
  justify-self: stretch; /* fill the grid cell horizontally */
  width: 100%;
  min-width: 0;
}

.resume-row-header .resume-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* hang right */
  gap: 0.25rem;
}

.resume-row-header .resume-right p {
  margin: 0;
}

.lang {
  margin: 0.5rem;
}

.lang-name {
  font-weight: bold;
  margin: 0.25rem;
}
