/* Shared responsive header for The Postcard Edit */
.site-header {
  width: 100%;
  box-sizing: border-box;
}

.site-header *,
.site-header *::before,
.site-header *::after {
  box-sizing: border-box;
}

.site-header__inner {
  width: min(100% - 2.5rem, 1200px);
  min-height: 88px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.75rem);
}

.site-brand {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  line-height: 1.15;
}

.site-brand__name {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.25rem, 2.4vw, 1.9rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.site-brand__meta {
  margin-top: 0.35rem;
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-nav__toggle {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.site-nav__toggle-icon {
  display: flex;
  width: 1.2rem;
  flex-direction: column;
  gap: 0.3rem;
}

.site-nav__toggle-icon span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

@media (max-width: 680px) {
  .site-header__inner {
    width: calc(100% - 2rem);
    min-height: 76px;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding-block: 0.9rem;
  }

  .site-brand__name {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }

  .site-brand__meta {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .site-nav__toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.25rem 0 0.5rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.7rem 0;
  }
}
