html {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: "Acumin";
  src: url("/assets/fonts/Acumin/AcuminVariableConcept.otf");
  src: url("/assets/fonts/Acumin/AcuminVariableConcept.otf") format("opentype"),
    url("/assets/fonts/Acumin/AcuminVariableConcept.ttf") format("truetype");
}

:root {
  --padding: 1.5rem;
  --max-width: min(80vw, 80rem);
  --max-width: clamp(80vw, 80rem, 90vw);
  --max-width: 80vw;

  /* previously was 60vh. 11em is the height of the header (6em) + top margin (3em) + bottom margin (2em) */
  --mobile-max-height: calc(100vh - 11em); /* browser support backup */
  --mobile-max-height: calc(100dvh - 11em);

  --cc-bg: #fbf8f3;
  --cc-cool-change: #0000ff;
  --cc-cool-change-secondary: #a4a4ff;

  /* the change of seasons */
  --cc-primary-Djeran: olive;
  --cc-secondary-Djeran: #857a55;
  --cc-primary-Makuru: #927af2;
  --cc-secondary-Makuru: #3d628e;
  --cc-primary-Kambarang: #00f;
  /* FIXME: using default colour for readability */
  /*--cc-primary-Kambarang: #ffd919;*/
  /*--cc-secondary-Kambarang: rgb(2, 89, 74);*/

  --cc-primary-Birak: rgb(247, 64, 64);
  --cc-secondary-Birak: rgb(169, 55, 13);
  --cc-primary-Bunuru: rgb(250, 151, 65);
  --cc-secondary-Bunuru: rgb(154, 93, 1);
  --cc-primary-Djilba: rgb(255, 8, 247);
  --cc-secondary-Djilba: rgb(152, 28, 148);
  --cc-secondary-Kambarang: #a4a4ff;

  /* typo */
  --font-family: "Acumin", Arial, Helvetica, sans-serif;
  --fs-main: 16px;
  --fs-small: 0.75em;
  --fs-medium: 0.85em;
  --fs-header: 1.5em;
  --fw-accent: 382;
  --fw-body: 300;
}

html {
  font-family: var(--font-family);
  font-size: var(--fs-main);
  background-color: var(--cc-bg);
}
img {
  width: 100%;
}

p {
  font-weight: var(--fw-body);
}

.header-container,
.intro-container,
ul.grid,
footer {
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

li {
  list-style: none;
  font-weight: var(--fw-body);
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong,
b {
  font-weight: var(--fw-accent);
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

/* colour coding */
.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

/* seasons styling*/
.Birak {
  background-color: var(--cc-primary-Birak);
}
.Bunuru {
  background-color: var(--cc-primary-Bunuru);
}
.Djeran {
  background-color: var(--cc-primary-Djeran);
}
.Makuru {
  background-color: var(--cc-primary-Makuru);
  color: white;
}
.Djilba {
  background-color: var(--cc-primary-Djilba);
}
.Kambarang {
  background-color: var(--cc-primary-Kambarang);
}

.header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 600;
  cursor: pointer;
  max-width: 8rem;
}

.menu {
  display: flex;
}
.menu a {
  display: block;
}
.menu a[aria-current] {
  text-decoration: underline;
}

.grid {
  --columns: 6;
  /* --gutter: 3rem; */
  display: grid;
  /* grid-gap: var(--gutter); */
  grid-template-columns: 1fr;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: 0.75rem;
  line-height: 1.5em;
}

@media screen and (min-width: 60rem) {
  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }
}

/* -------------
CUSTOM CSS 
------------- */

.credit {
  display: grid;
  width: 100%;
  justify-items: start;
  grid-template-columns: minmax(500px, 1fr) 3fr;
}
.credit {
  display: flex;
  justify-content: space-between;
  /* max-width: 40%; */
  align-items: baseline;
}

.fs-small {
  font-size: var(--fs-small);
  font-weight: var(--fw-body);
}

.text a {
  text-decoration: underline;
}

/* Pills */

.pill,
.pills a,
.pills button {
  border-radius: 1em;
  border: 1px solid;
  border-top-color: currentcolor;
  border-right-color: currentcolor;
  border-bottom-color: currentcolor;
  border-left-color: currentcolor;
  line-height: 1;
  margin-bottom: 0.1em;
  padding: 0.15em 0.6em 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intro-container .programming {
  color: #aaa;
  font-size: 0.4em;
  margin-bottom: 1.5em;
  /* max-width: 70%; */
  line-height: 1em;
  text-decoration: underline;
}

/* SVG */
svg {
  width: 100%;
}

.logo svg rect {
  stroke-width: 0.9rem;
  stroke: var(--cc-primary);
  fill: var(--cc-bg);
}
.logo svg path {
  fill: var(--cc-primary);
}

/* Modal styling */

.modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.modal-header li,
.modal-header #contact-expand-icon,
.modal-header #about-expand-icon {
  position: relative;
  margin-bottom: 0.2em;
  margin-right: 0.2em;
  list-style: none;
  z-index: 2;
  cursor: pointer;
  color: var(--cc-bg);
}

/* header box styling */
.modal-header li::before {
  content: "";
  border: 1px solid var(--cc-primary);
  top: 0.25em;
  right: 0px;
  z-index: -1;
  width: 80%;
  height: 2em;
  margin-right: 2px;
  position: absolute;
  background-color: var(--cc-bg);
  transition: background-color 1000ms ease-in-out;
}

.modal-header li svg {
  width: 2.5em;
  margin: 0;
  padding: 0;
}

#contact-popup,
#about-popup {
  top: 0;
  left: 0;
  position: fixed;
  width: 100%;
  height: 100%;

  display: flex;
  visibility: hidden;

  align-items: center;
  justify-content: center;
  z-index: 1000;
  pointer-events: visiblePainted;
}

/* popup visibility */
#contact-popup.show,
#about-popup.show {
  visibility: visible;
}

.frame-article {
  background-color: var(--cc-bg);
  height: calc(80vh - 2.5em);
  overflow: auto;
}
@media screen and (max-width: 600px) {
  .frame-article {
    height: 100%;
  }
}

.frame-article a:not(.svg-link) {
  text-decoration: underline;
}

.frame-article.about,
.frame-article.contact {
  height: 100%;
}

.frame-article.noticeboard {
  background-color: transparent;
  overflow: inherit;
}

.blocks .block-type-text p,
.blocks .block-type-list {
  margin-bottom: 1em;
}

svg path {
  fill: var(--cc-secondary);
  stroke: var(--cc-primary) !important;
}
