/* Enterprise Magazine: components */

/* ===================== masthead / header ===================== */

.head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: rgba(245,241,233,.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule-2);
  transition: transform .6s var(--ease), background .5s var(--ease),
              border-color .5s var(--ease), color .5s var(--ease);
}
.head.is-tucked { transform: translateY(-100%); }

/* transparent over a dark hero, until scrolled */
.head.is-over {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--d-paper);
}
.head.is-over .brand-e { border-color: rgba(242,236,225,.75); }
.head.is-over .nav a { color: var(--d-paper); }
.head.is-over .soc a { color: rgba(242,236,225,.8); }

.head-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 82px;
}

.brand {
  grid-column: 2;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 13px;
}
.brand-e {
  width: 34px; height: 34px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 1.24rem;
  line-height: 1;
  padding-bottom: 2px;
  flex: none;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.brand:hover .brand-e { background: var(--ink); color: var(--paper); }
.head.is-over .brand:hover .brand-e { background: var(--d-paper); color: var(--ink); border-color: var(--d-paper); }
.brand-word {
  font-family: var(--display);
  font-size: 1.02rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}
.nav a {
  font-size: .672rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.soc {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 17px;
}
.soc a {
  color: rgba(18,16,13,.62);
  transition: color .4s var(--ease), transform .4s var(--ease);
  display: grid;
  place-items: center;
}
.soc a:hover { color: var(--brass-lo); transform: translateY(-2px); }
.head.is-over .soc a:hover { color: var(--brass); }
.soc svg { width: 15px; height: 15px; fill: currentColor; }

.burger { display: none; }

/* ===================== hero ===================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: kb 26s ease-out forwards;
}
@keyframes kb { to { transform: scale(1); } }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10,9,7,.86) 0%, rgba(10,9,7,.34) 46%, rgba(10,9,7,.5) 100%);
}

.hero-in {
  padding-block: 128px clamp(56px, 8vh, 96px);
  color: var(--d-paper);
  position: relative;
}

/* the masthead lockup */
.masthead { max-width: 15ch; }
.masthead .d1 {
  color: var(--d-paper);
  line-height: .94;
  letter-spacing: -.02em;
}
.masthead .d1 em {
  font-style: italic;
  color: var(--brass);
}

.hero-tag {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.42rem);
  color: rgba(242,236,225,.86);
  margin-top: 26px;
  max-width: 34ch;
}

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(38px, 6vh, 64px);
  padding-top: 26px;
  border-top: 1px solid rgba(242,236,225,.2);
}
.hero-est {
  font-size: .66rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(242,236,225,.6);
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .63rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(242,236,225,.7);
}
.scroll-cue i {
  width: 1px; height: 34px;
  background: rgba(242,236,225,.4);
  position: relative;
  overflow: hidden;
  display: block;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass);
  animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ===================== figures / plates ===================== */

.plate {
  position: relative;
  overflow: hidden;
  background: var(--bone);
}
.plate img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.15s var(--ease);
}
.plate.is-4x5  { aspect-ratio: 4 / 5; }
.plate.is-3x2  { aspect-ratio: 3 / 2; }
.plate.is-16x9 { aspect-ratio: 16 / 9; }
.plate.is-1x1  { aspect-ratio: 1 / 1; }

figure { margin: 0; }
figcaption {
  font-size: .688rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(18,16,13,.48);
  margin-top: 14px;
}
.on-dark figcaption { color: var(--d-mute); }

/* ===================== intro / statement ===================== */

.intro-copy p { max-width: 56ch; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
  margin-top: clamp(46px, 6vw, 78px);
}
.stat {
  background: var(--paper);
  padding: 34px clamp(18px, 2.4vw, 34px);
}
.stat b {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat b i { font-style: normal; color: var(--brass); }
.stat span {
  display: block;
  margin-top: 12px;
  font-size: .66rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(18,16,13,.55);
}

/* ===================== editions ===================== */

.editions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(34px, 4.4vw, 68px) clamp(28px, 3.6vw, 56px);
}
.edition { display: block; }
.edition .plate { margin-bottom: 22px; }
.edition:hover .plate img { transform: scale(1.045); }

.edition-meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
}
.edition-no {
  font-family: var(--display);
  font-size: .9rem;
  color: var(--brass-lo);
  letter-spacing: .06em;
}
.edition-when {
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(18,16,13,.5);
}
.edition h3 { margin-bottom: 14px; }
.edition p { max-width: 48ch; color: rgba(18,16,13,.68); font-size: .96rem; }

/* ===================== trio (craft strip) ===================== */

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
}
.trio figure:hover .plate img { transform: scale(1.045); }

/* ===================== podcasts ===================== */

.pods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 44px);
}
.pod {
  border-top: 1px solid var(--d-rule);
  padding-top: 26px;
}
.pod .plate { margin-bottom: 24px; }
.pod:hover .plate img { transform: scale(1.045); }
.pod h3 { margin-bottom: 13px; }
.pod p { color: var(--d-mute); font-size: .94rem; max-width: 34ch; }
.pod .tag {
  display: inline-block;
  margin-top: 20px;
  font-size: .61rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--brass);
  border: 1px solid rgba(169,139,93,.42);
  padding: 7px 13px;
}

/* ===================== newsletter ===================== */

.news-wrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,.92fr);
  gap: clamp(34px, 6vw, 96px);
  align-items: center;
}
.news-form { display: flex; flex-direction: column; gap: 8px; }
.news-row {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ink);
  align-items: stretch;
}
.news-row input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 15px 2px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--ink);
}
.news-row input:focus { outline: none; }
.news-row button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--sans);
  font-size: .67rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 0 4px 0 22px;
  color: var(--ink);
  white-space: nowrap;
  transition: color .4s var(--ease);
}
.news-row button:hover { color: var(--brass-lo); }
.form-msg {
  font-size: .78rem;
  color: var(--brass-lo);
  min-height: 1.3em;
  letter-spacing: .04em;
}

/* ===================== page hero (inner pages) ===================== */

.phead {
  padding-block: clamp(146px, 17vh, 210px) clamp(44px, 6vw, 76px);
  border-bottom: 1px solid var(--rule);
}
.phead .d2 { max-width: 18ch; }
.phead .standfirst { margin-top: 24px; }

/* ===================== offices ===================== */

.offices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.office {
  background: var(--paper);
  padding: clamp(26px, 3vw, 40px);
}
.office h3 {
  font-size: 1.32rem;
  margin-bottom: 16px;
}
.office address {
  font-style: normal;
  font-size: .93rem;
  line-height: 1.78;
  color: rgba(18,16,13,.7);
}
.office address a:hover { color: var(--brass-lo); }

.hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 26px;
  font-size: .9rem;
}
.hours dt { color: rgba(18,16,13,.55); }
.hours dd { margin: 0; }

/* ===================== prose (terms) ===================== */

.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  margin: 56px 0 20px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
}
.prose h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose p, .prose li { color: rgba(18,16,13,.76); font-size: .97rem; }
.prose ol, .prose ul { padding-left: 22px; margin: 0 0 1.15em; }
.prose li { margin-bottom: .6em; }
.prose ol { list-style: decimal; }
.prose a { color: var(--brass-lo); text-decoration: underline; text-underline-offset: 3px; }

/* ===================== footer ===================== */

.foot { background: var(--ink); color: var(--d-paper); }
.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(34px, 5vw, 76px);
  padding-block: clamp(60px, 7vw, 96px) clamp(44px, 5vw, 64px);
}
.foot h4 {
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(242,236,225,.5);
  margin-bottom: 22px;
}
.foot address {
  font-style: normal;
  font-size: .93rem;
  line-height: 1.82;
  color: var(--d-mute);
}
.foot address a:hover { color: var(--brass); }
.foot .hours dt, .foot .hours dd { color: var(--d-mute); font-size: .88rem; }

.foot-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 24px; }
.foot-brand .brand-e { border-color: rgba(242,236,225,.7); }

.foot-soc { display: flex; gap: 16px; margin-top: 26px; }
.foot-soc a {
  width: 38px; height: 38px;
  border: 1px solid var(--d-rule);
  display: grid; place-items: center;
  color: var(--d-mute);
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.foot-soc a:hover { color: var(--ink); background: var(--brass); border-color: var(--brass); }
.foot-soc svg { width: 15px; height: 15px; fill: currentColor; }

.foot-bar {
  border-top: 1px solid var(--d-rule);
  padding-block: 26px 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 26px; }
.foot-bar a, .foot-bar span {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--d-mute);
}
.foot-bar a:hover { color: var(--d-paper); }

/* ===================== responsive ===================== */

@media (max-width: 980px) {
  .editions { grid-template-columns: 1fr; }
  .pods { grid-template-columns: 1fr; gap: 44px; }
  .trio { grid-template-columns: 1fr; gap: 34px; }
  .offices { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .news-wrap { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .head-in { grid-template-columns: auto 1fr auto; height: 68px; }
  .brand { grid-column: 1; justify-self: start; }
  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
  }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 8px 0 30px;
  }
  .nav a { font-size: .82rem; letter-spacing: .2em; }
  .head-in.is-open { height: auto; }
  .soc { grid-column: 2; justify-self: end; }
  .burger {
    grid-column: 3;
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border: 1px solid var(--rule);
    background: transparent;
    cursor: pointer;
    padding: 0;
    margin-left: 14px;
  }
  .head.is-over .burger { border-color: rgba(242,236,225,.4); }
  .burger span {
    display: block;
    width: 15px; height: 1px;
    background: currentColor;
    position: relative;
  }
  .burger span::before, .burger span::after {
    content: ""; position: absolute; left: 0;
    width: 15px; height: 1px; background: currentColor;
    transition: transform .4s var(--ease);
  }
  .burger span::before { top: -5px; }
  .burger span::after  { top: 5px; }
  .burger[aria-expanded="true"] span { background: transparent; }
  .burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
  .burger[aria-expanded="true"] span::after  { transform: translateY(-5px) rotate(-45deg); }

  .stats { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 22px; }
}
