.gold-border {
  border: 1px solid #f7a71b;
}

.bg-neutral-500 {
  background-color: #171c26;
}

p {
  color: #f6f1ee;
  font-family: "OpenSans", sans-serif;
  margin-bottom: 1.625em;
}

label {
  color: #f6f1ee;
  font-family: "OpenSans", sans-serif;
  display: block;
  width: fit-content;
}

h1,
h2,
h3,
h4,
h5,
h6,
.nav-menu {
  font-family: "Sudbury", "Merriweather", serif;
  font-weight: 400;
  color: #f6f1ee;
}

h1 {
  font-size: 3em;
  font-family: "Cinzel", serif;
  margin-bottom: 1em;
  display: block;
  width: fit-content;
  margin-inline: auto;
  position: relative;
}
h1::after {
  content: "";
  display: block;
  width: 120%;
  position: absolute;
  left: -10%;
  height: 10px;
  background-image: url(get-img("ui/flourish-line.svg"));
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.page-light h1 {
  color: #0f0f0f;
}
.page-light h1::after {
  background-image: url(get-img("ui/flourish-line-dark.svg"));
}

h2 {
  font-size: 2em;
  display: block;
  width: fit-content;
  margin-inline: auto;
  position: relative;
}

h3 {
  font-size: 1.5em;
}

h4 {
  font-size: 1.25em;
}

h1,
h2,
h3 {
  text-align: center;
}

a {
  color: #f7a71b;
  text-decoration: underline;
  text-underline-offset: 5px;
}
a:hover {
  text-decoration: underline;
  color: #754c04;
}

.fa,
.fas,
.fab {
  color: #f6f1ee;
}

.minor-drop-shadow {
  filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.25));
}

.archive-article {
  margin-top: 1rem;
}
.archive-date {
  text-align: left;
}
.archive-title {
  text-align: left;
}
.archive-header {
  padding-left: 1rem;
}
.archive-content {
  padding-inline: 2.5rem;
  padding-block: 1rem;
}

h1 {
  font-size: clamp(1.75rem, 4.25vw, 2.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1rem, 2.5vw, 1.75rem);
}

.responsive-small {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem) !important;
}

.responsive-medium {
  font-size: clamp(1rem, 2vw, 1.25rem) !important;
}

.responsive-large {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem) !important;
}

@media screen and (max-width: 1023px) {
  .site-header {
    margin-bottom: 2rem !important;
  }
  .site-header #header-top {
    position: relative;
    height: 15vh;
    display: flex;
    justify-content: space-between;
  }
  .site-header div.header-main {
    padding-block: 0;
  }
  .site-header div.header-main div.logo-container {
    top: 0;
    left: 0;
    padding: 0;
    position: relative;
    transform: unset;
  }
  .site-header div.header-main div.logo-container .site-logo {
    max-width: 15em;
  }
  .site-header #header-mid {
    display: none;
  }
  .site-header #header-bottom {
    display: none;
  }
  #community #community-img img {
    width: 50vw !important;
    max-width: 300px;
  }
  article {
    word-wrap: break-word;
    hyphens: auto;
  }
  #read {
    grid-template-areas: "header" "flourish" "space" "inkimg" "compinfo" "audimg" "audinfo" !important;
  }
}
@media screen and (max-width: 580px) {
  .is-hidden-small {
    display: none !important;
  }
}

@media screen and (max-width: 1023px) {
  section#audiobooks,
  section#start-help {
    width: auto;
  }
}
.is-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 768px) {
  .book-carousel .slick-next {
    right: 0;
  }
  .book-carousel .slick-prev {
    left: 0;
  }
  .book-carousel .slick-list {
    margin: 0 24px;
  }
}
@media screen and (max-width: 480px) {
  .book-carousel .slick-prev::before,
  .book-carousel .slick-next::before {
    font-size: 1.6rem;
  }
}
.book-display-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1/1;
  filter: drop-shadow(4px 10px 5px #22202b) drop-shadow(2px 8px 10px #18171e);
}

.slick-prev:before {
  content: "\f053";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  font-size: 2rem;
  text-rendering: auto;
  color: #f7a71b;
}

.slick-next:before {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-style: normal;
  font-variant: normal;
  font-size: 2rem;
  text-rendering: auto;
  color: #f7a71b;
}

.btn, .btn-secondary, .btn-primary {
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  font-weight: 500;
  font-family: "OpenSans", sans-serif;
}

.btn-primary {
  background-color: #f7a71b;
  color: #0f0f0f;
}
.btn-primary:hover {
  background-color: #a66c06;
}

.btn-secondary {
  background-color: #153454;
}
.btn-secondary:hover {
  background-color: #102740;
}

.btn-border {
  border: 2px solid;
  border-radius: 5px;
  color: #f7a71b;
  background-color: #242c3d;
  font-size: 1.5rem;
  padding: 0.5rem;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 1.3;
}
.btn-border i {
  color: unset;
}
.btn-border a {
  color: unset;
}
.btn-border:hover {
  background-color: #f7a71b;
  color: #242c3d;
  cursor: pointer;
}
.btn-border.lowkey {
  color: #b3bcd0;
  border-color: #b3bcd0;
  border-width: 1px;
}
.btn-border.lowkey:hover {
  color: #f7a71b;
  border-color: #f7a71b;
  background-color: #242c3d;
}

.link-button {
  display: block;
  width: fit-content;
}

.flourish-container {
  position: relative;
  background: #171c26;
  border: 2px solid #f7a71b;
  border-radius: 5px;
  padding: 3rem;
}
.flourish-container .corner-flourish {
  width: 12rem;
  height: auto;
  position: absolute;
  filter: drop-shadow(0px 0px 1px #0f0f0f);
  pointer-events: none;
  rotate: none !important;
}
@media screen and (max-width: 1023px) {
  .flourish-container .corner-flourish {
    width: 6rem;
  }
}
.flourish-container .top-left {
  top: 0rem;
  left: 0rem;
  rotate: 180deg;
}
.flourish-container .top-right {
  top: 0rem;
  right: 0rem;
  rotate: 270deg;
}
.flourish-container .bottom-left {
  bottom: 0rem;
  left: 0rem;
  rotate: 90deg;
}
.flourish-container .bottom-right {
  bottom: 0rem;
  right: 0rem;
  rotate: 0deg;
}

:root {
  --reader-article-background-color: rgba(15, 19, 25, 0.8);
}

.site-header {
  background-color: transparent;
  box-shadow: none;
}
.site-header .header-main {
  box-shadow: 0 0px 15px 1px rgba(15, 15, 15, 0.75);
}

.front-page-content-wrapper {
  border-radius: 5px;
  background: rgba(23, 28, 38, 0.9);
  margin-bottom: 4rem;
}
.front-page-content-wrapper > * {
  padding-inline: 3rem;
}

.site-content {
  max-width: 75rem;
}
.site-content .main-section {
  margin-bottom: 4rem;
}

#start-help {
  padding-bottom: 0;
}
#start-help #start-help-img-wrapper {
  padding-bottom: 0;
  position: relative;
  display: flex;
  flex-grow: 1;
  align-items: flex-end;
  justify-content: center;
}
#start-help #start-help-img-wrapper img {
  width: 40%;
  height: auto;
}

#read {
  display: flex;
  width: 100%;
  margin: 0 auto;
  padding-inline: 0;
}
#read img {
  width: 100%;
  height: auto;
}
#read #inkpaper-img {
  width: 50%;
}
#read #audio-info {
  margin-left: 0;
}
@media screen and (max-width: 1023px) {
  #read {
    flex-direction: column;
  }
  #read .home-info-box {
    flex: 1 1 100%;
    margin-block: 1rem;
    max-width: 400px;
    margin-inline: auto;
  }
  #read #audio-info {
    margin-left: auto;
    margin-top: 0;
  }
}

.home-info-box {
  flex: 1 1 50%;
  border: 1px solid #171c26;
  border-radius: 5px;
  border-block: 1px solid #f7a71b;
  background-color: rgba(15, 19, 25, 0.8);
  margin: 3rem;
  padding: 2em;
  text-align: center;
}
.home-info-box .home-img-wrapper {
  height: 50%;
  margin-bottom: 1rem;
}
.home-info-box .home-info-body {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.home-info-box .home-img {
  margin-inline: auto;
  display: block;
}
.home-info-box h3 {
  margin-bottom: 1rem;
}
.home-info-box p,
.home-info-box span,
.home-info-box a {
  display: inline-block;
}

#socials h2 {
  font-family: "Sudbury", "Merriweather", serif;
}

#socials {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#socials > div > div, #socials > div > a {
  margin-inline: auto;
  display: block;
  width: fit-content;
  margin-top: 1rem;
}

#community {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  align-content: center;
  text-align: center;
}
@media screen and (max-width: 1023px) {
  #community {
    flex-direction: column-reverse;
  }
}
#community > * {
  max-width: 400px;
}

.flourish {
  margin-inline: auto;
  display: block;
  margin-top: 0.6em;
}

.parallax-layer {
  position: fixed;
  top: 0;
  width: 100%;
  height: 150vh;
  background-size: cover;
  background-position: top center;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.parallax-layer#layer-1 {
  background-image: url("../..//assets/images/home-bg/Layer_1_sm.webp");
  z-index: -96;
  scale: 1;
  left: 0;
  background-position: right 75% top;
}
@media screen and (max-width: 1023px) {
  .parallax-layer#layer-1 {
    background-position: right 25% top;
  }
}
.parallax-layer#layer-2 {
  background-image: url("../..//assets/images/home-bg/Layer_2_sm.webp");
  z-index: -97;
  scale: 1;
  left: 0;
  background-position: left top;
  transform-origin: center left;
}
.parallax-layer#layer-3 {
  background-image: url("../..//assets/images/home-bg/Layer_3_sm.webp");
  z-index: -98;
  scale: 1;
  left: 0;
  background-position: top left;
  transform-origin: center left;
}
.parallax-layer#layer-4 {
  background-image: url("../..//assets/images/home-bg/Layer_4_sm.webp");
  z-index: -99;
  left: 0;
  background-position: top center;
  transform-origin: center center;
}

#small-announcements {
  margin-top: 1rem;
}
#small-announcements h2 {
  margin-bottom: 1rem;
}
#small-announcements .view-all {
  text-align: center;
  position: relative;
  margin-left: auto;
  margin-top: 1rem;
}
#small-announcements .view-all a {
  font-weight: 600;
  font-size: 1.2rem;
  display: block;
  width: fit-content;
  margin-left: auto;
}
#small-announcements .view-all a::before {
  content: "";
  position: absolute;
  display: block;
  width: 33%;
  max-width: 200px;
  height: 1px;
  background-color: #f7a71b;
  margin-bottom: 1rem;
  right: 4.5em;
  top: 50%;
}

.big-announcements article {
  padding-inline: 4rem;
  display: grid;
  grid-template-areas: "img header" "img excerpt";
  gap: 2rem;
  width: 100%;
  margin: 0;
  border-top: 1px solid #f7a71b;
  background: rgba(15, 19, 25, 0.8);
}
.big-announcements article:last-child {
  border-bottom: 1px solid #f7a71b;
}
.big-announcements article:nth-child(even) {
  grid-template-areas: "header img" "excerpt img";
}
.big-announcements .announcement-header {
  grid-area: header;
  justify-content: end;
  display: flex;
  flex-direction: column;
}
.big-announcements .announcement-header h3 {
  margin: 0;
  text-align: center;
  text-wrap: balance;
}
.big-announcements .announcement-header .category-chip {
  margin-inline: auto;
}
.big-announcements .announcement-img-container {
  grid-area: img;
  padding: 1rem;
}
.big-announcements .announcement-img-container img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.big-announcements .announcement-excerpt {
  grid-area: excerpt;
}
.big-announcements .announcement-excerpt p {
  margin: 0;
  max-width: calc(100vw - 4rem);
}
@media screen and (max-width: 600px) {
  .big-announcements {
    padding-inline: 0;
  }
  .big-announcements article {
    padding: 2rem;
    grid-template-areas: "header" "img" "excerpt" !important;
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
    background: rgba(15, 19, 25, 0.8) !important;
  }
  .big-announcements article .announcement-img-container {
    width: 100%;
    height: 200px;
    max-height: 50vw;
  }
}

.category-chip {
  height: fit-content;
  width: fit-content;
  color: #f6f1ee;
  font-size: 0.8em;
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

article {
  background-color: transparent;
}
