/* =========================
   ROOT VARIABLES
   ========================= */

:root {
  --black: #000000;
  --text-color: #ca9896;
  --max-width: 1240px;
  --link-color: #634415;
  --link-hover: #724e19;
  --nav-text-mobile: #b7791f;
  color-scheme: dark;
  --brand-x: 25vw;
  --brand-y: 25vh;
  --brand-size: clamp(22px, 7vw, 64px);
  --brand-spacing: 0.14em;
  --brand-color: #410606;
  --brand-shadow: 0 2px 10px rgba(0,0,0,0.85), 0 0 18px rgba(140,90,40,0.25);
  --nav-x: 5vw;
  --nav-y: 5vh;
  --r-nav-y: 5vh;
  --nav-left-x: 5vw;
  --nav-right-x: 5.2vw;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  background-color: var(--black);
  color: var(--text-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  min-height: 100svh;
  width: 100%;
}

.page,
body {
  text-shadow: 0 1px 2px rgba(0,0,0,0.65);
}

.page {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}

html{
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.posterArea {
  width: 100%;
  min-height: calc(100vw * 16 / 9);
  position: relative;
  display: flex;
  flex-direction: column;
  background-image: url("assets/tavern-bg.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  width: 100%;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.topbar {
  position: absolute;
  top: var(--nav-y);
  left: var(--nav-left-x);
  z-index: 20;
  padding-top: 0;
}
.topbarRight {
  position: absolute;
  top: var(--r-nav-y);
  right: var(--nav-right-x);
  z-index: 20;
  padding-top: 0;
}

.brandNameFloating {
  position: absolute;
  top: var(--brand-y);
  left: var(--brand-x);
  z-index: 10;
  font-family: "MedievalSharp", cursive;
  font-size: var(--brand-size);
  letter-spacing: var(--brand-spacing);
  transition: letter-spacing 0.3s ease;
  color: var(--brand-color);
  user-select: none;
  text-shadow:var(--brand-shadow);
}

.brandNameFloating:hover,
.brandNameFloating:focus-visible {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.9),
    0 0 22px rgba(160, 105, 50, 0.35);
  outline: none;
}

.navButton {
  padding: 4px 6px;
  border-radius: 9px;
  background: rgba(68, 1, 1, 0.75);
  color: #0f0501;
  text-decoration: none;
  font-family: "MedievalSharp", cursive;
  letter-spacing: 0.08em;
  font-size: 16px;
  backdrop-filter: blur(6px);
}

.navButton:hover {
  background: rgba(0,0,0,0.7);
}

.aboutSection {
  max-width: 600px;
  margin-top: 140px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  text-align: center;
  opacity: 0.9;
  line-height: 1.8;
  scroll-margin-top: 25vh;
  word-spacing: 0.01em;
  letter-spacing: 0.02em;
}

.aboutSection .navButton {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  text-align: center;
}

.aboutSection .musicButton {
  background: rgba(68, 1, 1, 0.75);
  margin-top: 60px;
}

.posterSpacer {
  height: calc(100vw * 1.05);
  flex-shrink: 0;
}

.footer {
  padding: 0 28px 25px;
  text-align: left;
  font-size: 12px;
  color: rgba(116, 77, 77, 0.75);
  line-height: 1.2;
}

/*  @MEDIA 950PX */
@media (max-width: 950px) and (orientation: landscape) {
  :root {
    --brand-y: 10vh;
    --brand-x: 24vw;
  }

  .posterSpacer {
    height: clamp(320px, 58vw, 520px);
  }

  .aboutSection {
    margin-top: 40px;
    max-width: 560px;
  }
}

/* @MEDIA 768PX */
@media (max-width: 768px) {
  :root {
    --brand-y: 11vh;
    --brand-x: 18vw;
    --nav-left-x: 5vw;
    --nav-right-x: 5vw;
  }

  .navButton {
    font-size: 15px;
    padding: 4px 7px;
    color: var(--nav-text-mobile);
    text-shadow: 0 0 4px rgba(0,0,0,0.8);
  }

  .posterSpacer {
    height: clamp(400px, 78vw, 680px);
  }

  .aboutSection {
    margin-top: 32vh;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }

  .aboutSection .navButton.musicButton {
    margin-top: 40px;
    margin-bottom: 16px;
  }

  .footer{
    margin-top: 30px;
  }
}
