:root {
  color-scheme: dark;
  background: #101318;
  color: #fff1d8;
  font: 1rem/1.5 system-ui, sans-serif;
}

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

.tavern {
  --mask: linear-gradient(90deg, rgb(8 10 15 / .28) 0%, rgb(8 10 15 / .39) 43%, rgb(8 10 15 / .77) 100%);
  --image-position: 14% center;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, min(42vw, 34rem));
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(2.25rem, 5vh, 4rem) clamp(1.5rem, 6vw, 6rem);
  background: #101318;
}

.tavern-scene {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.tavern-scene img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--image-position);
}

.tavern-scene::after {
  position: absolute;
  inset: 0;
  background: var(--mask);
  content: '';
}

.intro {
  grid-column: 2;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: .75rem;
  text-align: center;
}

.intro h1 {
  width: 100%;
  margin: 0;
}

.intro h1 img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 .25rem .45rem rgb(4 6 9 / .7));
}

.intro p {
  width: min(100%, 32rem);
  margin: 0;
  padding-inline: .35rem;
  color: #f6e2bf;
  font: 400 clamp(1.125rem, 1.7vw, 1.38rem)/1.4 "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  text-shadow: 0 1px 2px #080a0d, 0 .12rem .5rem #0a0c10;
  text-wrap: balance;
}

.curseforge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12.75rem;
  min-height: 3.2rem;
  margin-top: .45rem;
  padding: .6rem 1.1rem;
  color: #ffe3aa;
  background: url('assets/button-red.png') center / 100% 100% no-repeat;
  font: 700 1rem/1.25 Georgia, serif;
  text-decoration: none;
  text-shadow: 0 1px 2px #250a04;
}

.curseforge:hover { filter: brightness(1.16); }
.curseforge:focus-visible { outline: 2px solid #ffdf9b; outline-offset: 3px; }

.hire-preview {
  display: block;
  width: 100%;
  height: auto;
  margin-top: .65rem;
  border: 1px solid #986e42;
  border-radius: .22rem;
  box-shadow: 0 .6rem 2.2rem rgb(3 5 9 / .62);
}

@media (max-width: 52rem) {
  .tavern {
    --mask: linear-gradient(180deg, rgb(8 10 15 / .23), rgb(8 10 15 / .57) 41%, rgb(8 10 15 / .87) 100%);
    --image-position: 15% center;
    grid-template-columns: minmax(0, 27rem);
    justify-content: center;
    align-items: end;
    padding: clamp(7rem, 25svh, 14rem) 1rem clamp(1.5rem, 5svh, 3rem);
  }

  .intro { grid-column: 1; }
}
