@charset "utf-8";
/* Masthead: institutional strip, centered Voices logo, navigation with the Past Issues panel,
   search overlay and mobile menu. Typography follows the printed magazine:
   Fira Sans (~ Aller) for labels, Bitter (~ Caecilia) for titles. */

.mast { position: sticky; top: 0; z-index: 60; background: #fff; }

/* ---------- institutional strip ---------- */
.mast-util { border-bottom: 1px solid #e7e2d6; background: #fbf9f4; }
.mast-util-inner {
  max-width: var(--max); margin: 0 auto; padding: 12px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.mast-inst { display: flex; align-items: center; gap: 26px; }
.mast-inst a { display: block; line-height: 0; opacity: 1; transition: opacity .2s, transform .3s var(--ease); }
.mast-inst a:hover { opacity: 1; transform: translateY(-1px); }
.mast-inst a:nth-child(1) img { height: 66px; width: auto; }
.mast-inst a:nth-child(2) img { height: 62px; width: auto; }
.mast-inst a:nth-child(3) img { height: 56px; width: auto; }
.mast-meta { margin: 0; display: flex; gap: 0; font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #7a7466; }
.mast-meta span + span::before { content: "·"; margin: 0 12px; color: #c9a227; }

/* ---------- logo row ---------- */
.mast-main { position: relative; overflow: hidden; }
.mast-main::before, .mast-main::after {   /* double rule, as in the printed masthead */
  content: ""; position: absolute; left: 40px; right: 40px; height: 1px; background: #1b1b1b;
}
.mast-main::before { bottom: 4px; }
.mast-main::after { bottom: 0; height: 2px; }
.mast-main-inner {
  max-width: var(--max); margin: 0 auto; padding: 22px 40px 20px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px;
}
.mast-logo { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; }
.mast-logo img { width: 230px; height: auto; mix-blend-mode: multiply; transition: transform .5s var(--ease); }
.mast-logo:hover img { transform: scale(1.03) rotate(-.5deg); }
.mast-tagline { font: 300 italic 14px var(--display); color: #5e5a50; letter-spacing: .02em; }

.mast-issue { justify-self: start; display: flex; align-items: center; gap: 14px; text-decoration: none; color: #1b1b1b; }
.mast-issue img {
  width: 64px; height: auto; border-radius: 2px; box-shadow: 0 10px 22px -8px rgba(0,0,0,.45);
  transform: rotate(-4deg); transition: transform .45s var(--ease);
}
.mast-issue:hover img { transform: rotate(0) scale(1.08); }
.mast-issue span { display: flex; flex-direction: column; font: 400 13px/1.35 var(--sans); color: #6b665a; }
.mast-issue b { font: 700 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #1b1b1b; }
.mast-issue em { margin-top: 2px; font: 400 italic 15px var(--display); color: #1b1b1b; max-width: 220px; }

.mast-actions { justify-self: end; display: flex; align-items: center; gap: 12px; }
.mast-search-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid #d9d3c4; background: #fff; color: #1b1b1b; transition: background .2s, transform .25s var(--ease), border-color .2s;
}
.mast-search-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mast-search-btn:hover { background: #1b1b1b; color: #fff; border-color: #1b1b1b; transform: rotate(-8deg); }
.mast-subscribe {
  position: relative; overflow: hidden; padding: 12px 22px; border-radius: 999px;
  background: #1b1b1b; color: #fff !important; text-decoration: none;
  font: 600 12.5px var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.mast-subscribe::after {
  content: ""; position: absolute; inset: 0; background: var(--t-accent, #c9a227); transform: translateY(101%);
  transition: transform .35s var(--ease); z-index: 0;
}
.mast-subscribe:hover::after { transform: none; }
.mast-subscribe { isolation: isolate; }
.mast-subscribe::after { z-index: -1; }
.mast-subscribe:hover { color: var(--t-accent2, #1b1b1b) !important; }

/* ---------- navigation ---------- */
.mast .mast-nav {
  position: sticky; top: 0; z-index: 70; background: rgba(255,255,255,.94);
  border-bottom: 1px solid #e7e2d6; transition: box-shadow .3s, background .3s;
}
@supports (backdrop-filter: blur(8px)) { .mast .mast-nav { background: rgba(255,255,255,.82); backdrop-filter: saturate(150%) blur(12px); } }
.mast .mast-nav.scrolled { box-shadow: 0 12px 30px -18px rgba(0,0,0,.35); }
.mast-nav-inner { position: relative; max-width: var(--max); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.mast-mini { position: absolute; left: 40px; top: 50%; line-height: 0; opacity: 0; transform: translate(-10px, -50%); pointer-events: none; transition: opacity .3s, transform .4s var(--ease); }
.mast-mini img { width: 68px; height: auto; mix-blend-mode: multiply; }
.mast-nav.scrolled .mast-mini { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.mast-search-btn-nav { position: absolute; right: 40px; top: 50%; width: 36px; height: 36px; transform: translateY(-50%) scale(.6); opacity: 0; pointer-events: none; }
.mast-nav.scrolled .mast-search-btn-nav { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.mast-nav.scrolled .mast-search-btn-nav:hover { transform: translateY(-50%) rotate(-8deg); }

.mast .mast-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: nowrap; }
.mast .mast-nav li { position: static; margin: 0; }
.mast .mast-nav a {
  position: relative; display: block; padding: 17px 18px; color: #1b1b1b; text-decoration: none;
  font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
}
.mast .mast-nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 9px; height: 2px; border-radius: 0;
  background: var(--t-accent2, #1b1b1b); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.mast .mast-nav a:hover::after, .mast .mast-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.mast .mast-nav a.active { font-weight: 700; }
.mast .mast-nav .nav-sub { display: none; }
.mast .mast-nav .has-panel > a::before {
  content: ""; position: absolute; right: 4px; top: 50%; width: 5px; height: 5px; margin-top: -4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .3s;
}
.mast .mast-nav .has-panel:hover > a::before, .mast .mast-nav .has-panel.open > a::before { transform: rotate(-135deg) translate(-2px, -2px); }

/* Past Issues panel */
.mast-panel {
  position: absolute; left: 40px; right: 40px; top: 100%; padding: 26px 30px 22px;
  background: #fff; border: 1px solid #e7e2d6; border-top: 0; box-shadow: 0 30px 50px -30px rgba(0,0,0,.4);
  display: grid; grid-template-columns: 1fr 260px; gap: 30px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.has-panel:hover .mast-panel, .has-panel:focus-within .mast-panel, .has-panel.open .mast-panel {
  opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease);
}
.mast-panel-covers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.mast .mast-panel-covers a { padding: 0; letter-spacing: 0; text-transform: none; }
.mast .mast-panel-covers a::after { display: none; }
.mast-panel-covers img {
  width: 100%; height: auto; border-radius: 2px; box-shadow: 0 12px 24px -12px rgba(0,0,0,.5);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.has-panel:hover .mast-panel-covers img { animation: panel-in .5s calc(var(--i) * 60ms) var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(14px); } }
.mast-panel-covers a:hover img { transform: translateY(-6px) rotate(-1.5deg); box-shadow: 0 20px 30px -14px rgba(0,0,0,.55); }
.mast-panel-covers span { display: block; margin-top: 10px; font: 400 italic 14px/1.3 var(--display); color: #1b1b1b; }
.mast-panel-covers b { display: block; font: 700 11px var(--sans); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: #8a8270; }
.mast-panel-years { border-left: 1px solid #e7e2d6; padding-left: 26px; }
.mast-panel-years > span { display: block; margin-bottom: 12px; font: 700 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #8a8270; }
.mast-panel-years div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.mast .mast-panel-years a { padding: 6px 0; font: 400 16px var(--display); letter-spacing: 0; text-transform: none; color: #1b1b1b; }
.mast .mast-panel-years a::after { left: 0; right: auto; width: 100%; bottom: 2px; }
.mast .mast-panel-years a.all { grid-column: 1 / -1; font: 600 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }

/* ---------- search overlay ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 24px;
  background: rgba(251,249,244,.97);
}
@supports (backdrop-filter: blur(8px)) { .search-overlay { background: rgba(251,249,244,.9); backdrop-filter: blur(14px); } }
.search-overlay[hidden] { display: none; }
.search-overlay form { width: min(760px, 100%); animation: rise .45s var(--ease) both; }
.search-overlay label { display: block; margin-bottom: 14px; font: 300 clamp(30px, 4vw, 52px)/1.1 var(--title); color: #1b1b1b; }
.search-overlay input {
  width: 100%; padding: 14px 0; border: 0; border-bottom: 2px solid #1b1b1b; background: transparent; outline: none;
  font: 300 clamp(22px, 3vw, 34px) var(--display); color: #1b1b1b;
}
.search-overlay input:focus { border-bottom-color: var(--t-bg, var(--artblue)); }
.search-hints { margin: 18px 0 0; font: 500 12px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #8a8270; }
.search-hints a { display: inline-block; margin: 6px 4px 0; padding: 6px 12px; border: 1px solid #d9d3c4; border-radius: 999px; color: #1b1b1b; text-decoration: none; letter-spacing: .04em; text-transform: none; font-size: 13px; transition: background .2s, color .2s; }
.search-hints a:hover { background: #1b1b1b; color: #fff; }
.search-close {
  position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 1px solid #d9d3c4; background: #fff; font: 300 30px/1 var(--sans); color: #1b1b1b; transition: transform .3s var(--ease);
}
.search-close:hover { transform: rotate(90deg); }

/* ---------- tablets and phones ---------- */
@media (max-width: 1100px) {
  .mast-meta span:nth-child(2) { display: none; }
  .mast .mast-nav a { padding: 16px 12px; letter-spacing: .12em; }
  .mast .mast-nav a::after { left: 12px; right: 12px; }
  .mast-issue em { display: none; }
}
@media (max-width: 860px) {
  .mast-util-inner, .mast-main-inner, .mast-nav-inner { padding-left: 18px; padding-right: 18px; }
  .mast-main::before, .mast-main::after { left: 18px; right: 18px; }
  .mast-meta { display: none; }
  .mast-main-inner { grid-template-columns: auto 1fr auto; padding-top: 14px; padding-bottom: 14px; gap: 14px; }
  .mast-issue span { display: none; }
  .mast-issue img { width: 44px; }
  .mast-logo img { width: 150px; }
  .mast-tagline { display: none; }
  .mast-subscribe { display: none; }

  /* Mobile menu: full-screen panel with large links */
  .mast .mast-nav { position: sticky; }
  .mast-nav-inner { justify-content: space-between; min-height: 52px; }
  .mast-mini, .mast-nav.scrolled .mast-mini { position: static; opacity: 1; transform: none; pointer-events: auto; }
  .mast-mini img { width: 74px; }
  .mast-search-btn-nav, .mast-nav.scrolled .mast-search-btn-nav { display: none; }
  .mast .nav-toggle {
    display: flex; align-items: center; gap: 10px; width: auto; padding: 10px 0 10px 12px; margin-left: auto;
    color: #1b1b1b; font: 600 12.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; background: none; border: 0;
  }
  .mast .nav-toggle-bars, .mast .nav-toggle-bars::before, .mast .nav-toggle-bars::after { background: #1b1b1b; }
  .mast .mainnav.open .nav-toggle-bars { background: transparent; }
  .mast .mast-nav ul {
    position: fixed; left: 0; right: 0; top: 52px; bottom: 0; z-index: 80; display: flex; flex-direction: column; justify-content: flex-start;
    padding: 20px 22px 40px; background: #fbf9f4; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
  }
  .mast .mast-nav.open ul { display: flex; opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease); animation: none; }
  .mast .mast-nav li { border-bottom: 1px solid #e7e2d6; }
  .mast .mast-nav ul > li > a { padding: 16px 0; font: 300 30px/1.1 var(--title); letter-spacing: 0; text-transform: none; }
  .mast .mast-nav ul > li > a::after { display: none; }
  .mast .mast-nav .has-panel > a::before { display: none; }
  .mast .mast-nav .nav-sub { display: block; border: 0; margin-top: 18px; }
  .mast .mast-nav .nav-sub a { display: inline-block; padding: 14px 26px; border-radius: 999px; background: #1b1b1b; color: #fff; font: 600 13px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
  .mast-panel { display: none; }
  .no-js .mast .mast-nav ul { position: static; opacity: 1; visibility: visible; transform: none; }
}

/* The compact logo is a link inside the nav: keep it out of the link styles above */
.mast .mast-nav .mast-mini { position: absolute; padding: 0; }
.mast .mast-nav .mast-mini::after { display: none; }
@media (max-width: 860px) {
  .mast .mast-nav .mast-mini { position: static; }
}
@media (max-width: 860px) {
  .mast-mini { visibility: hidden; }
  .mast-nav.scrolled .mast-mini, .mast-nav.open .mast-mini { visibility: visible; }
}
@media (max-width: 860px) {
  /* backdrop-filter would make the fixed menu panel relative to the bar */
  .mast .mast-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}

/* Institutional logos: separators between them, and phone sizes */
.mast-inst a + a { position: relative; }
.mast-inst a + a::before {
  content: ""; position: absolute; left: -13px; top: 15%; bottom: 15%; width: 1px; background: #d9d3c4;
}
@media (max-width: 860px) {
  .mast-util-inner { padding-top: 10px; padding-bottom: 10px; }
  .mast-inst { gap: 20px; }
  .mast-inst a + a::before { left: -10px; }
  .mast-inst a:nth-child(1) img { height: 44px; }
  .mast-inst a:nth-child(2) img { height: 42px; }
  .mast-inst a:nth-child(3) img { height: 34px; }
}
