:root {
  --bg: #333;
  --color: #fff;
  --primary: #db1f5a;
}

[data-theme='pink'] {
  --bg: #db1f5a;
  --color: #fff;
  --primary: #db1f5a;
}

[data-theme='purple'] {
  --bg: rebeccapurple;
  --color: #fff;
  --primary: #db1f5a;
}

[data-theme='dark'] {
  --bg: #000;
  --color: #fff;
  --primary: #db1f5a;
}

[data-theme='absinthe'] {
  --bg: #0a1a05;
  --color: #d4f0c0;
  --primary: #84cc16;
}

[data-theme='aether'] {
  --bg: #0d0221;
  --color: #e0e7ff;
  --primary: #7c3aed;
}

[data-theme='altar'] {
  --bg: #1a0505;
  --color: #fca5a5;
  --primary: #991b1b;
}

[data-theme='sulfur'] {
  --bg: #1c1917;
  --color: #fafaf9;
  --primary: #eab308;
}

[data-theme='nocturnal'] {
  --bg: #042f2e;
  --color: #ccfbf1;
  --primary: #14b8a6;
}

html {
  font-size: 14px;
}

body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  font-size: 2rem;
  background-color: #000;
  color: var(--color);
  font-family: 'Instrument Sans', sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings: 'wdth' 100;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

#content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#content > .afos-section:last-of-type {
  flex: 1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.6rem;
}
h3 {
  font-size: 1.75rem;
}
h4 {
  font-size: 1.3rem;
}

p {
  margin: 0 0 1rem;
  line-height: 1.5;
  font-size: 1.25rem;
}

ul,
ol {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
  line-height: 1.7;
}

.meta {
  display: flex;
  justify-content: space-between;
}

small,
time,
.meta {
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}

.center {
  text-align: center;
}

.kicker {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.afos-section {
  background-color: var(--bg);
  background-image: url('../images/paper.png?cache3');
  background-position: top center;
  color: var(--color);
  position: relative;
  padding: 0 0 100px;
  display: flex;
  justify-content: center;
  z-index: 2;
  animation: afos-jump 16s steps(4, jump-start) infinite;
}

.afos-section::before {
  background-image: url('../images/paper.png?cache3');
  background-position: bottom center;
  animation: afos-jump 16s steps(4, jump-start) infinite;
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -130px;
  height: 150px;
  pointer-events: none;
  background-color: var(--bg);
  -webkit-mask-image: url('../images/border.webp');
  mask-image: url('../images/border.webp');
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: left top;
  mask-position: center top;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  z-index: -1;
}

.afos-section:first-of-type {
  margin-top: 90px;
}

.afos-section .afos-section-container {
  max-width: 1120px;
  margin: 2rem 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

@keyframes afos-jump {
  0% {
    background-position-x: 50%;
  }
  33% {
    background-position-x: 0%;
  }
  66% {
    background-position-x: 75%;
  }
  100% {
    background-position-x: 25%;
  }
}

.editor-styles-wrapper .afos-section:first-of-type {
  margin-top: 0;
}

.main-header {
  position: sticky;
  overflow: hidden;
  width: 100%;
  padding: 0;
  top: 0;
  z-index: 1;
  display: none;
}

.main-header nav {
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  gap: 1rem;
  font-family: 'Instrument Serif', serif;
  font-size: 4rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  padding: 3rem 4rem;
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
}

.background_video {
  position: fixed;
  top: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 300px;
  object-fit: cover;
  opacity: 0.4;
}

@media (min-width: 640px) {
  .background_video {
    height: 500px;
  }
}

.main-header .logo svg {
  height: 16rem;
  width: 16rem;
  transition: all 0.3s ease;
}

.main-header nav li {
  list-style: none;
}

.main-header nav li:not(:only-child):first-child {
  padding-right: 1rem;
  border-right: 2px solid white;
}

.main-header nav li:not(:only-child):last-child {
  padding-left: 1rem;
  border-left: 2px solid white;
}

.main-header nav a,
.scrolled-header nav a {
  color: currentColor;
  text-decoration: none;
  transition: 0.2s all ease-in-out;
}

.main-header nav a:hover,
.main-header nav li.active a,
.scrolled-header nav a:hover,
.scrolled-header nav li.active a {
  color: var(--primary);
}

.scrolled-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: 100%;
  display: block;
  background: transparent;
}

.scrolled-header.visible {
  display: block;
}

.scrolled-header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Instrument Serif', serif;
  text-transform: uppercase;
  padding: 0.8rem 1.5rem;
  gap: 1rem;
  position: relative;
  list-style: none;
  margin: 0;
}

.scrolled-header .logo svg {
  height: 4rem;
  width: 4rem;
}

.scrolled-header .hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  z-index: 12;
}

.scrolled-header .hamburger span {
  display: block;
  width: 2.4rem;
  height: 0.25rem;
  background: #fff;
  border-radius: 999px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.scrolled-header .hamburger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(0.55rem) rotate(45deg);
}

.scrolled-header .hamburger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.scrolled-header .hamburger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-0.55rem) rotate(-45deg);
}

.scrolled-header .menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 75vw;
  max-width: 320px;
  background: rgba(0, 0, 0, 0.95);
  padding: 6rem 2rem 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 2rem;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  z-index: 11;
  margin: 0;
}

.scrolled-header .menu.open {
  transform: translateX(0);
}

.scrolled-header nav:not(:has(.hamburger)) {
  justify-content: flex-start;
}

@media (min-width: 768px) {
  .main-header {
    display: block;
  }
  .scrolled-header {
    display: none;
  }
  .afos-section:first-of-type {
    margin-top: 150px;
  }
}

@media (min-width: 640px) {
  h1 {
    font-size: 3rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 2.25rem;
  }
}

.afos-footer {
  background-color: var(--bg);
  background-image: url('../images/paper.png?cache3');
  background-position: top center;
  color: var(--color);
  position: relative;
  font-size: 1.5rem;
  display: flex;
  justify-content: center;
  z-index: 2;
  animation: afos-jump 16s steps(4, jump-start) infinite;
}

.afos-footer::before {
  background-image: url('../images/paper.png?cache3');
  background-position: bottom center;
  animation: afos-jump 16s steps(4, jump-start) infinite;
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -140px;
  height: 150px;
  pointer-events: none;
  background-color: var(--bg);
  -webkit-mask-image: url('../images/border.webp');
  mask-image: url('../images/border.webp');
  -webkit-mask-repeat: repeat-x;
  mask-repeat: repeat-x;
  -webkit-mask-position: left top;
  mask-position: center top;
  -webkit-mask-size: auto 100%;
  mask-size: auto 100%;
  z-index: -1;
}

.afos-footer .container {
  max-width: 1120px;
  margin: 2rem 1rem;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.afos-footer svg {
  max-width: 32px;
  max-height: 32px;
}

.made-by {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.made-by a {
  text-decoration: none;
}

.made-by-logo {
  width: 2em;
  height: 2em;
  flex-shrink: 0;
}

.socials {
  list-style-type: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin: 2rem 0;
  padding: 0;
}

.socials li {
  width: auto;
}

.socials a {
  color: currentColor;
  opacity: 0.8;
  transform-origin: center;
}

.socials a:hover {
  color: var(--primary);
}
.socials a:hover svg {
  transform: scale(1.2);
}

.socials svg {
  max-height: 32px;
  max-width: 32px;
  transition: 0.2s all ease;
}

.sprite {
  opacity: 0;
  height: 0;
  width: 0;
  position: absolute;
}

.afos-transition {
  position: fixed;
  inset: 0;
  z-index: 1099;
  pointer-events: none;
  background-image: url('/wp-content/themes/forest-of-stars/assets/images/sprite2.jpg');
  background-repeat: no-repeat;
  background-size: 100% 2000%;
  background-position: 0 0%;
  filter: invert(1);
  mix-blend-mode: multiply;
  transform: translateZ(0);
  will-change: background-position;
  animation: afos-sprite 1s steps(20) forwards;
}

@keyframes afos-sprite {
  from {
    background-position: 0 0%;
  }
  to {
    background-position: 0 100%;
  }
}

.post {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1rem 3.5rem;
}

.post-title {
  font-size: 1.8rem;
}

.post-head {
  margin-bottom: 1.5rem;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.post-summary {
  margin: 0;
  font-size: 1.2rem;
  opacity: 0.9;
}

.post-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.post-body p {
  margin: 0;
}

.post-body h2 {
  margin: 2rem 0 0.75rem;
}

.post-footer {
  margin-top: 2.5rem;
  display: flex;
  justify-content: flex-start;
}

.post-back {
  display: inline-block;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: currentColor;
  border-bottom: 1px solid transparent;
  opacity: 0.85;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.post-back:hover {
  color: var(--primary);
  border-color: currentColor;
  opacity: 1;
}

@media (min-width: 640px) {
  .post {
    padding-inline: 1.5rem;
  }
  .post-title {
    font-size: revert;
  }
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3.5rem 1.5rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.empty-state__icon {
  font-size: 1.4rem;
  opacity: 0.3;
  letter-spacing: 0.6rem;
  display: block;
}

.empty-state p {
  margin: 0;
  font-style: italic;
  opacity: 0.6;
  font-size: 1.1rem;
}

.live-events {
  padding: 2.5rem 1rem 3.5rem;
  width: calc(100% - 3rem);
}

.live-events__list {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-events__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.live-events__info {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.live-events__venue {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.live-events__venue-name {
  margin: 0;
}
.live-events__venue-city {
  margin: 0;
  opacity: 0.9;
}
.live-events__note {
  margin: 0.1rem 0 0;
}
.live-events__cta {
  flex-shrink: 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.live-events__button:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .live-events {
    padding-inline: 1.5rem;
  }
  .live-events__row {
    flex-direction: row;
    align-items: center;
  }
  .live-events__cta {
    width: auto;
    display: block;
  }
}
