/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 :root {
  /* --light-anchor-fg: #0a5bb5; */
  --light-anchor-fg: #7c5e2d;
  --light-icon-hue-rotate: 185deg;
  --mute-fg: #7c5e2d;

  --bg: #0b0a09;
  --fg: #b0a287; /* old, earthly: #a59169 */

  --dark-anchor-fg: #b5810a;

  --light-mobile-nav-bg: #ffeccf;
  --mobile-nav-bg: black;

  --mobile-nav-height: 65px;

  --constellation-line: #9D6822;
  --constellation-connector: #30516a;

  --glow: rgba(212, 175, 55, 0.4);

  --hoverbox-region: 7rem;
  --base-hoverbox-border-color: #30516a;
  --hoverbox-border-color: var(--base-hoverbox-border-color);

  --z-hoverboxes: 10;
 }

 .noto-naskh-arabic-regular {
  font-family: "Noto Naskh Arabic", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.noto-naskh-arabic-bold {
  font-family: "Noto Naskh Arabic", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

html {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
}

body {
  font-family: "Noto Naskh Arabic", serif;
}

input[type="submit"] {
  font-family: inherit;
  font-weight: 700;
}

p {
  margin-block-start: 1rem;
  margin-block-end: 1rem;
}

a, .button-link {
  color: #b5810a;
  color: light-dark(var(--light-anchor-fg), var(--dark-anchor-fg));
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: #f3a20046;
  text-decoration-thickness: .1rem;
  text-underline-offset: 3.5px;
}

a:hover, .button-link:hover {
  text-decoration: underline;
}

.button-reset {
  border: none;
  background: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  padding: 0;
}

#mobile-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 1rem;
  align-self: stretch;
/*
  position: sticky;
  bottom: 0; */

  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;

  background: color-mix(in srgb, #020d2c, black 10%);
  z-index: 1;
  padding: 0.5rem 0.5rem 0.25rem;

  transition: transform 0.3s ease;
  transform: translateY(0);

  /* border-top: 8px solid transparent; */
  /* border-image: url("/assets/bg/toolbar-border-e0efbda1.webp") 8 repeat; */
  /* padding: 0.25rem 1rem; */
  border-top: 2px solid color-mix(in srgb, #020d2c, white 10%);
  box-shadow: 0 -1px 0px 0px color-mix(in srgb, #020d2c, black 50%);
}

.mobile-nav-button {
  color: color-mix(in srgb, var(--light-anchor-fg), white 10%);
  text-decoration: none;
}

.mobile-nav-button:active {
  text-decoration: none;
}

.mobile-nav-button svg {
  transition: transform 0.3s ease, stroke 0.3s ease;
  fill: color-mix(in srgb, var(--constellation-connector), transparent 70%);
  stroke: color-mix(in srgb, var(--fg), black 30%);
}
.mobile-nav-button:active svg {
  transform: scale(1.3);
  stroke: var(--dark-anchor-fg);
}

#mobile-nav a, #mobile-nav .button-link {
  /* font-weight: 700; */
}
/*
#mobile-nav:not(:empty):before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  height: 8px;
  width: 100%;
  background-image: url("/assets/bg/toolbar-border-e0efbda1.webp");
  background-repeat: repeat;
  background-size: auto 100%;
  z-index: 1;
} */

#mobile-nav:not(:empty) {
  /* height: var(--mobile-nav-height); */
}

#mobile-nav img {
  mix-blend-mode: lighten;
}

body.mobile {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.mobile--with-nav {
  /* padding-bottom: var(--mobile-nav-height); */
  scroll-padding-bottom: var(--mobile-nav-height);
}

#mobile-nav.headroom--pinned {
  transform: translateY(0);
}
#mobile-nav.headroom--unpinned {
  transform: translateY(100%);
}

.mobile-nav-item {
  display: flex; flex-direction: column;  align-items: center;
}

@view-transition {
  navigation: auto;
}
