:root {
  --mast-height: 4.5rem;
  scroll-padding-top: calc(var(--mast-height) + .6rem);
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--post-base);
  border-bottom: 1px solid var(--post-rule);
}

.mast-inner {
  width: min(75rem, calc(100% - 4.5rem));
  margin-inline: auto;
  min-height: calc(var(--mast-height) - 1px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(.85rem, 3.2vw, 2.5rem);
}

.mast .wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font: 400 1.8rem / 1 var(--post-display);
  letter-spacing: .01em;
  white-space: nowrap;
  min-height: 2.75rem;
}

.mast .game-lockup {
  display: grid;
  gap: .16rem;
}

.mast .game-lockup > span {
  color: var(--post-gold);
  font: 750 .66rem/1.1 Arial, Helvetica, sans-serif;
  letter-spacing: .075em;
  text-transform: uppercase;
}

.mast .emblem {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #5e4d59;
  border-radius: .36rem;
  color: var(--post-gold);
  background: #2a2230;
}
.mast .emblem .icon { width: 1.15rem; height: 1.15rem; }

.mast nav {
  display: flex;
  gap: clamp(.7rem, 2.8vw, 1.7rem);
  align-self: stretch;
}

.mast nav a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  padding-inline: .15rem;
  color: var(--post-muted);
  font-size: .93rem;
  font-weight: 650;
  white-space: nowrap;
  border-block: 2px solid transparent;
}

.mast nav a[aria-current] {
  color: var(--post-cream);
  border-bottom-color: var(--post-pink);
}

.mast .publisher {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .47rem;
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding-inline: .7rem;
  border: 1px solid var(--post-rule);
  border-radius: .4rem;
  font-size: .88rem;
  font-weight: 650;
}

.mast nav a:hover, .mast .publisher:hover { color: var(--post-gold); }
.skip:focus { z-index: 30; }

.aside { top: calc(var(--mast-height) + 1rem); }
.archive-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: .9rem;
}

.archive-jumps a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--post-gold);
  text-decoration: underline;
  text-underline-offset: .2em;
}
.archive-page #brief { max-height: calc(100dvh - 1.5rem); overflow: auto; }

@media (max-width: 56rem) {
  .mast-inner { width: calc(100% - 2.5rem); }
}

@media (max-width: 37rem) {
  :root { --mast-height: 3.5rem; }
  .mast .wordmark { font-size: 1.55rem; gap: .35rem; }
  .mast .emblem { width: 1.55rem; height: 1.55rem; }
  .mast .emblem .icon { width: .95rem; height: .95rem; }
  .mast .publisher { padding-inline: .5rem; }
}

@media (max-width: 29.5rem) {
  :root { --mast-height: 6rem; }
  .mast-inner {
    width: calc(100% - 1.65rem);
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand social" "nav nav";
    padding-top: .35rem;
  }
  .mast .wordmark { grid-area: brand; justify-self: start; }
  .mast nav { grid-area: nav; justify-content: space-between; gap: .5rem; }
  .mast nav a { min-width: 2.75rem; }
  .mast .publisher { grid-area: social; }
}

@media (orientation: landscape) and (min-width: 29.51rem) and (max-height: 31rem) {
  :root { --mast-height: 3rem; }
  .aside { position: static; }
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.15rem 2rem;
  padding-block: 1.65rem;
}

.site-footer-inner > div { max-width: 43rem; }
.site-footer-inner p { margin: .35rem 0 0; color: var(--post-muted); font-size: .9rem; }
.site-footer-inner p a { text-decoration: underline; text-underline-offset: .15em; }
.site-footer-links { display: flex; flex-wrap: wrap; column-gap: 1.1rem; }
.site-footer-links a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9rem; }
.site-footer-links a:hover { color: var(--post-gold); }

.mast .publisher { color: var(--post-muted); white-space: nowrap; }
.mast .publisher:focus-visible, .mast .publisher:hover { color: var(--post-cream); }
.site-footer .wordmark { font: 400 1.55rem/1.1 var(--post-display); }
.site-footer .wordmark span { color: var(--post-gold); }

@media (max-width: 19.5rem) {
  .mast .publisher { font-size: .75rem; }
  .mast .wordmark { font-size: 1.4rem; }
  .mast .emblem { display: none; }
}
