:root {
  color-scheme: dark;
  --ink: #050806;
  --gold: #c99133;
  --gold-soft: rgba(211, 158, 67, 0.28);
  --shadow: rgba(0, 0, 0, 0.72);
}

* {
  box-sizing: border-box;
}

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

body {
  background:
    radial-gradient(circle at 50% 20%, rgba(108, 80, 36, 0.24), transparent 34rem),
    radial-gradient(circle at 20% 80%, rgba(39, 74, 68, 0.20), transparent 28rem),
    linear-gradient(135deg, #020303 0%, #09110f 45%, #020303 100%);
  color: #f6dfac;
  font-family: Georgia, 'Times New Roman', serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.28;
}

.site-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 28px);
}

.poster-card {
  position: relative;
  width: min(100%, 1672px);
  border: 1px solid var(--gold-soft);
  border-radius: 8px;
  background: #020303;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 20px 90px var(--shadow),
    0 0 56px rgba(177, 124, 37, 0.18);
  overflow: hidden;
}

.poster-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}

.poster-card picture,
.poster-card img {
  display: block;
}

.poster-card img {
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .site-shell {
    padding: 6px;
    align-items: start;
  }

  .poster-card {
    border-radius: 4px;
  }
}

@media (max-width: 720px) and (orientation: portrait) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .site-shell {
    min-height: 100svh;
    height: 100svh;
    padding: 4px;
    place-items: center;
  }

  @supports (height: 100dvh) {
    .site-shell {
      min-height: 100dvh;
      height: 100dvh;
    }
  }

  .poster-card {
    width: auto;
    max-width: calc(100vw - 8px);
    max-height: calc(100svh - 8px);
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.8),
      0 8px 32px var(--shadow);
  }

  @supports (height: 100dvh) {
    .poster-card {
      max-height: calc(100dvh - 8px);
    }
  }

  .poster-card img {
    width: auto;
    max-width: calc(100vw - 8px);
    height: auto;
    max-height: calc(100svh - 8px);
    object-fit: contain;
  }

  @supports (height: 100dvh) {
    .poster-card img {
      max-height: calc(100dvh - 8px);
    }
  }
}
