* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: auto !important;
  text-decoration: none;
}

html {
  min-height: 100%;
  position: relative;
}

body {
  min-width: 100%;
  min-height: var(--full-height);
  display: grid;
  grid-template-rows: auto 1fr auto;
  /* background-color: var(--c-lighter); */
  color: var(--c-darker);
  transition: 0.4s ease-in-out;
}

body .menu-bg {
  transition: 0.4s ease-in-out;
}

footer {
  align-self: flex-end;
}

main {
  min-height: 100%;
  background: inherit;
}

html {
  /* scroll-behavior: smooth !important; */
  scroll-padding-top: 100px;
}

figcaption {
  display: block !important;
  padding-top: 18px !important;
  text-align: center !important;
  max-width: 90%;
  align-self: center;
}

.transition-fade {
  transition:
    opacity 250ms cubic-bezier(0.4,0,0.2,1),
    transform 250ms cubic-bezier(0.4,0,0.2,1);
  transform: translateY(0);
}
html.is-animating .transition-fade {
  opacity: 0;
  transform: translateY(8px);
}

a,
a:hover,
a:active,
a:focus,
a:focus-within,
a:focus-visible,
a:visited {
  appearance: none !important;
  -moz-appearance: none !important;
  -webkit-appearance: none !important;
  display: block;
  text-decoration: none;
  cursor: pointer !;
  color: black;
}

button {
  display: block;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li,
ul dt,
ul dd,
dl li,
dl dt,
dl dd {
  margin: 0;
  display: block;
  height: fit-content;
}

table th,
table tr,
table td {
  text-align: left;
}

small {
  font-size: 60%;
}

strong {
  font-weight: 500;
}

address {
  font-style: normal;
}

figure {
  margin: 0;
  margin-block: 0;
  margin-inline: 0;
  display: flex;
  flex-direction: column;
}

img,
video {
  display: block;
  width: 100%;
  height: auto;
}

iframe {
  border: none;
}

#text a {
  display: inline;
}



/* ============================================= */
/* HEADER */
/* ============================================= */

:root {
    --active-color: var(--c-darker);
    --inactive-color: var(--c-medium);
}

.menu {
  position: fixed;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px var(--main-margin);
  /* background: linear-gradient(to bottom, #F5F5F5 0%, #F5F5F5 30%, transparent 100%); */
  z-index: 9;
  min-height: 75px;
  width: var(--full-width);
}

.menu--logo {
    height: fit-content;
}

.menu--nav {
    display: flex;
    gap: 8px;
}

.menu--logo-link {
  color: var(--active-color) !important;
}


.button--back {
  width: fit-content;
  position: absolute;
  right: var(--main-margin);
  top: 10px;
}

body.page-template-essay .button--back {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease-in;
}

body.page-template-essay .menu--nav,
.button--back {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in;
}

/* .menu a {
    color: var(--inactive-color);
    transition: var(--main-transition);
}

.menu a.--active-page,
nav[data-state="open"] a,
a.menu--logo-link {
    color: var(--active-color) !important;
} */

.menu a {
    color: var(--inactive-color);
    transition: var(--main-transition);
}

.menu a:hover {
    color: var(--active-color) !important;
    transition: color 0.3s ease-in;
}

body.page-template-essays .menu a:not([href*="/about"]):not([href*="/glossary"]):not(.language-link),
body.page-template-about .menu a[href*="/about"]:not(.language-link),
body.page-template-essays .menu a[href*="/essays"]:not(.language-link),
body.page-template-glossary .menu a[href*="/glossary"]:not(.language-link) {
    color: var(--active-color);
}
/* === Language Switcher === */
.languages--wrapper {
  display: flex;
  flex-direction: column;
}

.language {
  margin-bottom: -2px;
  order: 2;
  opacity: 0;
  color: var(--inactive-color);
  transition: var(--main-transition);
}

.language.--active {
  order: 1;
  opacity: 1;
  /* color: inherit; */
}

.language a {
  transition: var(--main-transition);
  opacity: 1;
  color: inherit;
}

/* === Hover Effects (Desktop Only) === */
@media (hover: hover) {

    /* nav[data-state="open"] a:hover, */
    /* .menu a.--active-page:hover,
    a.menu--logo-link:hover {
        color: var(--inactive-color) !important;
    } */
    
    /* nav[data-state="compact"] a:hover {
      color: var(--active-color);
    } */


    .menu--logo-link:hover,
    body.page-template-about .menu a[href*="/about"]:not(.language-link):hover,
    body.page-template-essays .menu a[href*="/essays"]:not(.language-link):hover,
    body.page-template-glossary .menu a[href*="/glossary"]:not(.language-link):hover {
    color: var(--inactive-color) !important;
    }
    
    .languages--wrapper:hover .language {
        opacity: 1;
    }
    
    .languages--wrapper .language:not(.--active) a:hover,
    .language.--active a:hover {
        color: var(--active-color);
    }
    
    .language.--active a:hover ~ .language a,
    .language.--active a:hover + .language a {
        color: var(--inactive-color);
    }
}

/* ============================================= */
/* HOME */
/* ============================================= */

.home--hero {
    height: calc(var(--full-height));
    max-height: calc(var(--full-height));
    width: var(--full-width);
    overflow: hidden;
    cursor: default;
    z-index: 9;
    position: relative;
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.4,0,0.2,1);
}

.hero--home:hover * {
    color: inherit;
}

.hero--home h1,
.hero--home h3,
.hero--home svg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    cursor: pointer;
}

.hero--home h1 {
    top: 50%;
    transform: translate(-50%, -14vh);
    letter-spacing: 8px;
    text-wrap: nowrap;
}

.hero--home h3 {
    display: flex;
    bottom: 12vh;
    gap: 1.5rem;
    letter-spacing: 2px;
}

.hero--home svg {
    bottom: 35vh;
}

.hero--home video {

    object-fit: cover;
    height: calc(var(--full-height));
    min-width: var(--full-width);
}

.hero--home picture,
.hero--home figure {
  height: calc(var(--full-height));
  min-height: calc(var(--full-height));
  width: var(--full-width);
}

.hero--home picture img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  backface-visibility: hidden;
}

.hero--home {
    position: absolute;
    /* transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s ease; */
    opacity: 1;
    visibility: visible;
    /* will-change: opacity; */
    /* z-index: 99; */
    top: calc(var(--full-height) * -1);
    display: block;
}

/* .hero--home.is-fading {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
} */
/* .hero--home[data-hero="hidden"] .home--hero {
  display: none !important;
} */

body[data-template="essays"]:not(.hero-closed) main {
  transform: translateY(var(--full-height));
  transition: none;
  /* z-index: 9; */
}
body[data-template="essays"] main.hero-closed {
  transform: translateY(0);
  /* z-index: 5; */
  /* transition: transform 1s cubic-bezier(0.4,0,0.2,1); */
}
body.page-template-essays:not(.hero-closed) nav {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in;
}
body.hero-closed nav {
  opacity: 1;
  pointer-events: auto;
}

body:not(.hero-closed) {
  overflow-y: scroll;
  touch-action: none;
}

/* ============================================= */
/* FOOTER */
/* ============================================= */



footer.main-grid {
  padding: 20rem var(--main-padding) 2.5rem var(--main-padding) !important;
}

footer h3 {
    font-variant-numeric: lining-nums proportional-nums;
    grid-column: 1 / -1;
}
footer h3,
footer h5,
footer h6 {
  text-align: center;
}

footer h5 {
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: var(--t-xsmall);
  line-height: var(--lh-xsmall);
}

footer input {
    width: 30vw;
    background: transparent;
    border: 0;
    border: 1px dashed black;
    border-radius: 3px;
    padding: 4px;
}

#newsletter-title {
  text-transform: initial !important;
  letter-spacing: 0;
}

.issn {
  margin-bottom: 1.5rem;
  letter-spacing: 0;
}

.footer--links {
      display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 4px;
}

.footer--links >:nth-child(2) {
  margin-right: -4px;
}

.atph {
  margin-right: 6px;
}

/* .FBAUP {
  margin: 1.2rem 0 2.5rem 0;
  line-height: 19px;
} */

/* @media (max-width: 1200px) {
    body, main {
    zoom: 0.85; 
  }
  :root {
    --full-width: calc(100vw - (100vw - 100%) * 0.85) !important;
    --full-height: calc(var(--vh, 1vh) * 185) !important;
  }
} */