@font-face {
  font-family: Geologica;
  src: url("assets/geologica-540.woff2") format("woff2");
  font-weight: 540;
  font-display: swap;
}

.portfolio-masthead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.6rem, 3vw, 3.8rem) clamp(1.2rem, 2vw, 2.3rem);
  color: #f6f0e4;
}

.portfolio-signature h1 {
  font: 540 clamp(2.5rem, 4.85vw, 5.5rem)/1.05 Geologica, Onest, Arial, sans-serif;
  letter-spacing: -.055em;
}

.portfolio-signature p {
  margin-top: .55rem;
  font: 450 clamp(1rem, 1.3vw, 1.3rem)/1.35 Onest, Arial, sans-serif;
  color: #d6c9b5;
}

.portfolio-masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(.85rem, 1.65vw, 1.85rem);
  font: 480 clamp(.96rem, 1.12vw, 1.125rem)/1.25 Onest, Arial, sans-serif;
}

.portfolio-masthead nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease;
}

.portfolio-masthead nav a:focus-visible {
  outline: 2px solid #e8b88e;
  outline-offset: 3px;
  border-radius: 3px;
}

.portfolio-masthead .portfolio-format-link {
  color: #e3b58e;
  font-weight: 570;
}

@media (hover: hover) and (pointer: fine) {
  .portfolio-masthead nav a:hover { color: #e8b88e; }
  .portfolio-masthead .portfolio-format-link:hover { color: #ffe0bc; }
}

@media (max-width: 940px) {
  .portfolio-masthead { flex-direction: column; align-items: start; gap: .5rem; }
  .portfolio-masthead nav { gap: 1.1rem; }
}

@media (max-width: 600px) {
  .portfolio-masthead { padding-block: 1.6rem .4rem; }
  .portfolio-signature h1 { font-size: clamp(1.72rem, 8.5vw, 2.85rem); }
  .portfolio-signature p { margin-top: .38rem; }
  .portfolio-masthead nav { width: 100%; gap: 0 .6rem; font-size: .9rem; }
  .portfolio-masthead .portfolio-format-link { margin-left: auto; }
}

@media (min-width: 386px) and (max-width: 420px) {
  .portfolio-masthead nav { gap: 0 .4rem; font-size: .875rem; }
}

@media (max-width: 385px) {
  .portfolio-masthead nav {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .portfolio-masthead nav a:nth-child(even) { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-masthead nav a { transition: none; }
}
