@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@500;700&display=swap");

:root { --site-header-h: 76px; }
.masthead {
  --header-gold: #eac993;
  --header-line: #d5ad7260;
  --header-gutter: clamp(20px, 5vw, 100px);
  position: fixed;
  inset: 0 0 auto;
  min-height: var(--site-header-h);
  z-index: 80;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--header-gutter);
  background: rgba(16, 13, 12, .55);
  border-bottom: 1px solid var(--header-line);
  backdrop-filter: blur(12px);
  transition: background .3s ease;
  font: 500 1rem/1.4 "Be Vietnam Pro", system-ui, sans-serif;
  color: #f7ebd9;
}
.masthead.is-scrolled { background: rgba(16, 13, 12, .87); }
.masthead .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  text-decoration: none;
  line-height: 1.25;
}
.masthead .brand-mark {
  position: relative;
  display: block;
  flex: none;
  width: clamp(40px, 5vw, 54px);
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
}
.masthead .brand-mark img { position: absolute; width: 390%; max-width: none; left: -3.7%; top: -1%; height: auto; }
.masthead .brand strong, .masthead .brand small { display: block; white-space: nowrap; }
.masthead .brand strong { color: #f48b78; font-size: clamp(.77rem, 1.3vw, 1.05rem); letter-spacing: .025em; }
.masthead .brand small { margin-top: 4px; color: var(--header-gold); font-size: .68rem; letter-spacing: .13em; }
.masthead nav { display: flex; gap: clamp(12px, 1.6vw, 27px); }
.masthead nav a, .masthead .staff, .masthead button {
  font: 500 .73rem/1.4 "Be Vietnam Pro", system-ui, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
  text-decoration: none;
}
.masthead nav a, .masthead .staff { color: #e2d5c4; }
.masthead nav a:hover, .masthead nav a[aria-current], .masthead .staff:hover { color: var(--header-gold); }
.masthead .staff { justify-self: end; white-space: nowrap; }
.masthead .menu-toggle { display: none; }
.masthead :focus-visible { outline: 2px solid var(--header-gold); outline-offset: 4px; }
aside.site-side-rail { top: var(--site-header-h); height: calc(100dvh - var(--site-header-h)); overflow: auto; }
@media (max-width: 1180px) {
  :root { --site-header-h: 65px; }
  .masthead { grid-template-columns: minmax(0,1fr) auto auto; gap: clamp(7px,2vw,24px); }
  .masthead .staff { grid-column: 2; grid-row: 1; }
  .masthead .menu-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    padding: 7px 10px;
    color: var(--header-gold);
    background: transparent;
    border: 1px solid var(--header-line);
    border-radius: 4px;
  }
  .masthead nav { position: absolute; inset: 100% 0 auto; display: none; padding: 10px var(--header-gutter); background: #18110f; border-bottom: 1px solid var(--header-line); }
  .masthead nav.is-open { display: grid; gap: 0; }
  .masthead nav a { padding: 10px 0; }
}
@media (max-width: 380px) {
  .masthead { --header-gutter: 12px; }
  .masthead .staff { font-size: .63rem; }
  .masthead .staff span { display: none; }
  .masthead .brand { gap: 6px; }
  .masthead .brand small { font-size: .56rem; letter-spacing: .08em; }
  .masthead .brand strong { font-size: .70rem; }
}
