/* Content pages: about, résumé and 404 as standalone pages, and the same
   about/résumé content when it is loaded into the home page card. */

/* Standalone page layout -------------------------------------------------- */

.site,
.site-main {
  height: 100%;
}

.layout-fixed,
.layout-medium,
.layout-full {
  position: relative;
  z-index: 1;
  width: 90%;
  margin: 0 auto;
}

.layout-fixed { max-width: 700px; }
.layout-medium { max-width: 1040px; }
.layout-full { max-width: 1700px; }

/* Header: photo with a dark wash, name, GitHub link and home link. */
.header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10% 0;
  text-align: center;
  background-color: #3b4345;
  background-size: cover;
  background-position: center;
}

.header::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  background: #181a1e;
  opacity: 0.72;
  transition: opacity 0.5s 0.4s, visibility 0s 0.9s;
}

@media screen and (min-width: 992px) {
  .header {
    padding: 4% 0;
  }

  .header::before {
    opacity: 0.2;
  }
}

.header-wrap {
  z-index: 10;
}

.site-title {
  margin: 0;
  padding: 0;
  font-size: 4.6vw;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0;
  color: #fff;
}

.site-description {
  margin: 3em 0;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.6;
}

@media screen and (min-width: 768px) {
  .site-title {
    display: block;
    position: static;
    width: auto;
  }
}

.header-bottom {
  margin: 1em 0 1.4em 0;
}

.header .social-link {
  display: inline-block;
  width: 25px;
  height: auto;
  margin: 0;
  padding: 0;
  font-family: fontello;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  line-height: 22px;
  text-align: center;
  text-decoration: inherit;
  text-transform: none;
  color: rgba(255, 255, 255, 0.6);
  border: 0;
  border-radius: 4px;
  transition: all 0.3s ease-out;
}

.header .social-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: none;
  border-color: transparent;
}

.social-link.github::before {
  content: '\e82a';
}

/* Menu with icon links (only "Home" for now). */
.nav-menu {
  font-family: 'Heebo', sans-serif;
}

.nav-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.nav-menu li {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
}

.nav-menu a {
  display: block;
  position: relative;
  padding: 5px 8px;
  letter-spacing: 0.12em;
  color: #fff;
  transition: all 0.1s;
}

.nav-menu a:hover {
  color: #fff;
  opacity: 0.8;
}

.menu-with-icons a::before {
  display: inline-block;
  margin-right: 5px;
  font-family: fontello;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  font-variant: normal;
  text-align: center;
  text-decoration: inherit;
  text-transform: none;
  vertical-align: middle;
}

.menu-with-icons .home::before {
  content: '\e872';
}

@media screen and (min-width: 768px) {
  .nav-menu a {
    margin: 0 12px;
  }

  .menu-with-icons a::before {
    margin-right: 10px;
    font-size: 24px;
  }
}

/* Footer of the standalone pages (and of the home page once the card is open). */
.site-footer {
  position: relative;
  clear: left;
  width: 100%;
  border-top: 1px solid #eee;
}

.site-footer .site-info {
  max-width: 960px;
  margin-right: auto;
  margin-left: auto;
  padding: 22px 0;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer .site-info a {
  color: inherit;
}

.textwidget {
  font-size: 0.875em;
}

/* Article --------------------------------------------------------------- */

.page-layout {
  position: relative;
  width: 100%;
  min-height: 100%;
  background-size: cover;
  background-position: center center;
}

.hentry {
  padding: 0 0 2em 0;
}

.entry-header {
  padding-top: 2em;
}

.entry-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  text-align: center;
  word-wrap: break-word;
}

.entry-content {
  margin: 1.2em 0 0;
}

.entry-content::before,
.entry-content::after {
  content: " ";
  display: table;
}

.entry-content::after {
  clear: both;
}

@media screen and (min-width: 768px) {
  .hentry {
    padding: 0 0 4em 0;
  }

  .entry-header {
    padding-top: 3em;
  }

  .entry-content {
    margin-top: 2.4em;
  }
}

/* Section title: small caps label with a highlighter stroke. */
.section-title {
  position: relative;
  z-index: 10;
  margin: 2em 0 2em;
}

.entry-content > .section-title:first-child {
  margin-top: 0;
}

@media screen and (min-width: 992px) {
  .section-title {
    margin: 4em 0 2em;
  }
}

.section-title--spaced {
  margin-top: 3rem;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  color: inherit;
}

.section-title h2 i {
  display: inline-block;
  position: relative;
  padding: 0;
  font-style: normal;
  color: inherit;
  box-shadow: inset 0 -6px 0px #feeac5;
}

[data-theme="dark"] .section-title h2 i {
  box-shadow: inset 0 -6px 0px rgba(120, 120, 120, 0.5);
}

/* Timeline: one continuous line on the wrapper with a dot per item, so a
   dot can never come loose from the line. Used on about and résumé. */
.cv-timeline {
  position: relative;
  margin-left: 8px;
  padding-left: 1.75rem;
}

.cv-timeline::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 0;
  z-index: 1;
  width: 2px;
  height: calc(100% - 1.6rem);
  background: #bcb1a6;
}

[data-theme="dark"] .cv-timeline::before {
  background: #5a5a5a;
}

.cv-timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.cv-timeline-item:last-child {
  padding-bottom: 0;
}

.cv-timeline-item::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: -1.75rem;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin-left: -5px;
  background: var(--bg-primary);
  border: 2px solid #9a8f84;
  border-radius: 50%;
}

[data-theme="dark"] .cv-timeline-item::before {
  border-color: #7a7a7a;
}

/* About: interests timeline. */
.timeline-date {
  margin-bottom: 0.5rem;
  font-family: 'Heebo', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.timeline-title {
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-content {
  line-height: 1.7;
  color: var(--text-secondary);
}

.timeline-content p {
  margin-bottom: 0.75rem;
}

.timeline-subitems {
  margin: 0.75rem 0 1rem;
  padding-left: 1rem;
  border-left: 2px solid color-mix(in srgb, var(--text-muted) 35%, transparent);
}

.timeline-subitem {
  margin: 0.5rem 0;
}

.timeline-subitem-title {
  margin-bottom: 0.35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.timeline-subitem p {
  margin-bottom: 0.5rem;
  font-size: 0.95em;
}

.timeline-tags,
.skill-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.timeline-tags {
  margin-top: 1rem;
}

.timeline-tag,
.chip {
  display: inline-block;
  padding: 0 0.7em;
  font-size: 0.9em;
  line-height: 1.5em;
  color: var(--text-primary);
  background: #ddd8d3;
  border-radius: 0.3rem;
}

.timeline-tag {
  font-weight: 400;
}

[data-theme="dark"] .timeline-tag,
[data-theme="dark"] .chip {
  color: var(--text-secondary);
  background: #3a3a3a;
}

/* Same in both themes. */
.chip.primary {
  color: #2f2e2b;
  background: #bcb1a6;
}

/* About: logos of past employers. */
.work-experience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .work-experience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

.client {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-height: 60px;
  margin: 1em 0 0;
  text-align: center;
}

.client img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 60px;
  margin: 0 auto;
  object-fit: contain;
  filter: grayscale(0.3);
  transition: filter 0.3s ease;
}

.client img:hover {
  filter: grayscale(0);
}

[data-theme="dark"] .client img {
  filter: brightness(0) invert(1);
}

/* Résumé: entries in the timeline. They sit closer together than the
   about timeline: their own margins space them, not the item padding. */
.event {
  position: relative;
}

.cv-timeline-item.event {
  padding-bottom: 0;
}

.event h3 {
  display: inline-block;
  position: relative;
  margin: 0 0 1.5em 0;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.3;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #bcb1a6;
  border: 1px solid #bcb1a6;
  border-radius: 2px;
}

.event h4 {
  margin: 0 0 0.4em 0;
  padding: 0;
  font-family: 'Heebo', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event h5 {
  margin: 0;
  padding: 0 0 0.5em 0;
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.event h5 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.event p {
  margin: 0.6em 0 0.2em 0;
  font-size: 0.95em;
  letter-spacing: 0.3px;
}

.event p:last-child {
  margin-bottom: 0;
}

/* Résumé: skills. */
.skill-category {
  margin-bottom: 2rem;
}

.skill-category h4 {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* 404 */
.http-alert {
  text-align: center;
}

.http-alert h1 {
  margin: 0.12em 0 0.3em 0;
  font-size: 10em;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

@media screen and (min-width: 768px) {
  .http-alert h1 {
    font-size: 14em;
  }
}
