/*******************************************************************************
 *** CSS styling - ref.ch - Base
 ******************************************************************************/

@font-face {
  font-family: Chap;
  font-weight: 700;
  src: url( "fonts/ref_chap_700.woff" ) format( "woff" );
}

html,body {
  font-size: 100%;
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

body {
  display: grid;
  grid-template-columns: 1fr 20px minmax( auto, 1280px ) 20px 1fr; /* old max width: 1140px */
  grid-template-rows: auto auto auto;
}

body > header {
  grid-column: 3/4;
  grid-row: 1/2;
  padding-top: 2rem;
  padding-bottom: 1rem;
}
body > main {
  grid-column: 3/4;
  grid-row: 2/3;
}
body > footer {
  grid-column: 3/4;
  grid-row: 3/4;
}

.site-header-logo a {
  display: flex;
  align-items: baseline;
  color: #333;
  text-decoration: none;
}
.site-header-logo h1 {
  font-family: Chap;
  font-weight: 700;
  font-size: 4rem;
  line-height: 1;
  margin: 0;
  padding: 0;
}
.site-header-logo h2 {
  font-family: Roboto;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .025rem;
  line-height: 1.1;
  margin: 0;
  padding: 0 0 0 1rem;
  transform: translateY( -.88rem );
}

footer {
  font-family: Roboto;
  font-weight: 700;
  font-size: .8rem;
  padding-top: 3.5rem;
}
.footer-menu__big {
  font-weight: 700;
  font-size: 1rem;
}
.footer-menu__small {
  font-weight: 400;
  font-size: .85rem;
}
footer a {
  color: #222;
  text-decoration: none;
  padding: 0 1rem;
}
footer ul {
  margin: 0;
  padding: 0 0 1rem;
  text-align: center;
}
footer li {
  display: inline-block;
}
footer nav {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 1rem 0 2rem;
}
footer nav img {
  display: block;
}
article {
  display: grid;
  grid-template-columns: repeat( 6, 1fr );
  font-size: .92rem;
  color: #333;
}
article > * {
  grid-column: 2/6;
}

article h1 {
  font-family: "Source Serif 4";
  font-variation-settings: "opsz" 50, "wght" 650;
  font-size: 1.9rem;
  line-height: 1.3;
  margin: 0 0 1.2rem;
  text-align: center;
  color: #222;
  hyphens: auto;
}
article h4 {
  font-family: Roboto;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .05rem;
  line-height: 1;
  margin: 2.8rem 0 0;
  padding: .5rem;
  text-align: center;
}

article p,
article a,
article ul {
  font-family: "Source Serif 4";
  font-variation-settings: "opsz" 34, "wght" 450;
  line-height: 1.45;
  margin: 0 0 1.2rem;
  color: #333;
}
article p:last-child,
article a:last-child,
article ul:last-child {
  margin: 0;
}

.breadcrumb-base {
  grid-column-start: 1;
  height: 2rem;
  width: 190px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin: 2.8rem 0 0 190px;
  background-color: #444;
}
.breadcrumb-base h4 {
  margin: 0;
  padding: 0;
  color: white;
}
.event-details {
  box-sizing: border-box;
  float: left;
  display: flex;
  flex-direction: column;
  width: 380px;
  margin: 0 2rem 1.5rem calc( 100% / -4 );
  padding: .8rem;
  background-color: gainsboro;
}
.event-wrapper h1 {
  font-variation-settings: "opsz" 50, "wght" 750;
  font-size: 2.2rem;
  text-align: left;
  margin-right: calc( 100% / -4 );
  padding-right: 1rem;
  hyphens: none;
  background: linear-gradient(60deg, #4c4, #29e);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.event-wrapper h1.small {
  font-size: 1.6rem;
}
.event-details h2 {
  font-family: Roboto;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-align: left;
  margin: 0;
}
.event-details h2 span {
  font-weight: 300;
  font-size: .7rem;
}
.event-details p + h2 {
  font-size: 1rem;
  margin: 1.4rem 0 0;
}
.event-details p {
  font-family: Roboto;
  font-weight: 300;
  font-size: .95rem;
  line-height: 1.3;
  margin: 0;
}
.event-details a {
  font-family: Roboto;
  font-weight: 300;
  font-size: .85rem;
  line-height: 1.3;
  margin: 0;
}
a.button {
  display: inline-block;
  font-family: Roboto;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  padding: .4rem .6rem;
  color: #333;
  background-color: transparent;
  border: 1px solid gray;
  border-radius: 0;
  cursor: pointer;
  transition-duration: 0.1s;
}
.event-details a.button {
  font-size: .75rem;
  margin: .5rem .2rem 0 0;
  padding: .3rem .4rem;
  background-color: rgba(255,255,255,.5);
  border: none;
}
a.button:hover {
  background-color: gainsboro;
}

.wp-block-file a {
  word-break: break-all;
}
.wp-block-file__button {
  display: none;
}
.desktop-hidden {
  display: none;
}


@media (min-width: 1201px) {
  html,body {
    font-size: 140%;
  }
}
@media (max-width: 1200px) {
  html,body {
    font-size: 130%;
  }
}
@media (max-width: 1024px) {
  html,body {
    font-size: 120%;
  }
}

/*** TABLET & MOBILE ***/
@media (max-width: 768px) {
  html,body {
    font-size: 120%;
  }
  body {
    grid-template-columns: 0 20px auto 20px 0;
  }
  body > header {
    padding-bottom: 1.2rem;
  }
  article {
    display: block;
    font-size: 1rem;
    line-height: 1.5;
  }
  article h1,
  article h4 {
    text-align: left;
  }
  .breadcrumb-base {
    position: relative;
    display: inline-flex;
    width: auto;
    margin: 0;
    padding: 0 .6rem;
  }
  .event-details {
    box-sizing: content-box;
    float: unset;
    width: 100%;
    margin: -2rem 0 1.8rem -20px;
    padding: calc( 20px + 2.4rem ) 20px 20px;
    background: linear-gradient( 60deg, #44cc4480, #2299ee80 );
  }
  .event-details h1 {
    display: block;
    font-family: Roboto;
    font-weight: 700;
    font-size: 1.9rem;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    color: #222;
    background: unset;
    -webkit-text-fill-color: unset;
  }
  .event-details h2 {
    color: #222;
  }
  .event-wrapper {
    padding-bottom: 1.8rem;
    border-bottom: 1px solid lightgray;
  }
  .event-wrapper h2 {
    font-family: Roboto;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    text-align: left;
    margin: 0;
  }
  .desktop-hidden {
    display: inherit;
  }
  .mobile-hidden {
    display: none;
  }
}
@media (max-width: 480px) {
  html,body {
    font-size: 115%;
  }
  body {
    grid-template-columns: 0 15px auto 15px 0;
  }
  body > header {
    padding: 25px 0 20px;
  }
  .site-header-logo h1 {
    font-size: 3.5rem;
  }
  .event-details {
    margin-left: -15px;
    padding: calc( 15px + 2.4rem ) 15px 15px;
  }
}
@media (max-width: 320px) {
  html,body {
    font-size: 110%;
  }
  body {
    grid-template-columns: 0 10px auto 10px 0;
  }
  body > header {
    padding: 20px 0 10px;
  }
  .site-header-logo h1 {
    font-size: 3.2rem;
  }
  .event-details {
    margin-left: -10px;
    padding: calc( 10px + 2.4rem ) 10px 10px;
  }
}
