/* Improve tile legibility by keeping some overlay on hover. */
.tiles article:hover:before {
  opacity: 0.70;
}

/* Keep the jagged tile grid visually balanced when adding a placeholder tile. */
.tiles article.tile-empty {
  background-image: none !important;
  cursor: default;
}

.tiles article.tile-empty:hover:before {
  opacity: 0.85;
}

.tiles article.tile-empty header {
  display: none;
}

/* Constrain project hero images to a readable height. */
.project-hero {
  max-height: 360px;
  overflow: hidden;
}

.project-hero img {
  height: 360px;
  object-fit: cover;
  width: 100%;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.tag-pill {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.35rem;
  display: inline-flex;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  text-transform: uppercase;
}

@media screen and (max-width: 980px) {
  .tiles article {
    height: auto;
    min-height: 18em;
    padding: 3em 2.5em 2em 2.5em;
  }

  .tiles article h3,
  .tiles article p,
  .major h1,
  .alt .major h1 {
    word-break: break-word;
    hyphens: auto;
  }

  .tiles article h3 {
    font-size: 1.4em;
  }

  .major h1 {
    font-size: 1.9em;
  }
}

/* Allow project titles to wrap at narrow widths. */
@media screen and (max-width: 980px) {
  header.major {
    width: auto;
    max-width: 100%;
  }
}

.max-900 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.resume-header {
  margin-bottom: 2.5rem;
}

.resume-title {
  font-size: 1.1em;
  margin-bottom: 0.35rem;
}

.resume-meta {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.25rem;
}

.resume-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.resume-links li {
  margin: 0;
}

.resume-section {
  margin-top: 2.5rem;
}

.resume-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.resume-section .resume-item:first-of-type {
  border-top: none;
  margin-top: 1rem;
  padding-top: 0;
}

.resume-item-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  justify-content: space-between;
}

.resume-date {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9em;
  white-space: nowrap;
}

.resume-location {
  font-style: italic;
  margin: 0.25rem 0 0.75rem;
}

.resume-tags {
  margin-top: 0.75rem;
}

.print-only {
  display: none;
}

.screen-only {
  display: block;
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 10pt;
    line-height: 1.2;
  }

  #wrapper {
    background: #ffffff;
  }

  #header,
  #menu,
  #contact,
  #footer {
    display: none !important;
  }

  .print-only {
    display: block;
  }

  .screen-only {
    display: none;
  }

  .resume-page #main,
  .resume-page .inner {
    max-width: 7.5in;
    margin: 0 auto;
    padding: 0.08in 0.2in;
  }

  .resume-page .major h1 {
    display: none;
  }

  .resume-print-header {
    border-bottom: 2px solid #111111;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
  }

  .resume-print-header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.1rem;
  }

  .resume-print-header p {
    color: #111111;
    font-size: 0.9rem;
    margin: 0.05rem 0;
  }

  .resume-header,
  .resume-links {
    display: none;
  }

  .resume-section {
    margin-top: 0.75rem;
  }

  .resume-item {
    border-top: 1px solid #dddddd;
    margin-top: 0.5rem;
    padding-top: 0.45rem;
  }

  .resume-item-header h4 {
    font-size: 1rem;
    margin-bottom: 0.05rem;
  }

  .resume-date {
    color: #333333;
    font-size: 0.8rem;
  }

  .resume-location {
    color: #333333;
    font-style: normal;
    margin: 0.05rem 0 0.25rem;
  }

  .tag-list,
  .tag-pill {
    background: transparent;
    border: none;
    color: #111111;
    font-size: 0.8rem;
    letter-spacing: 0;
    padding: 0;
    text-transform: none;
  }

  .tag-list {
    gap: 0.35rem 0.75rem;
  }

  .tag-pill::after {
    content: ",";
  }

  .tag-list .tag-pill:last-child::after {
    content: "";
  }

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

  p,
  li {
    font-size: 0.9rem;
  }

  ul {
    margin: 0 0 0.3rem 1rem;
    padding: 0;
  }

  section,
  .resume-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  h3 {
    font-size: 1.05rem;
    margin: 0.4rem 0 0.2rem;
  }

  .resume-section:first-of-type {
    margin-top: 0.5rem;
  }

  .resume-item-header {
    align-items: baseline;
  }
}
