:root {
  color-scheme: dark;
  --ink: #f0e6cf;
  --muted: #b8ad96;
  --dim: #7f7769;
  --paper: rgba(219, 202, 165, 0.09);
  --line: rgba(229, 205, 154, 0.24);
  --accent: #d7a84c;
  --accent-deep: #8f3d32;
  --shadow: rgba(0, 0, 0, 0.68);
  --spotlight-x: 64%;
  --spotlight-y: 27%;
  font-family:
    Georgia,
    "Times New Roman",
    "Noto Serif",
    serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #080807;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: #080807;
}

body::selection {
  color: #110f0b;
  background: var(--accent);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 720px) minmax(260px, 360px);
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(36px, 6vw, 82px);
  isolation: isolate;
  background:
    radial-gradient(
      circle at var(--spotlight-x) var(--spotlight-y),
      rgba(226, 211, 177, 0.17) 0%,
      rgba(87, 76, 58, 0.08) 20%,
      rgba(7, 7, 6, 0.2) 42%,
      rgba(2, 2, 2, 0.78) 78%
    ),
    linear-gradient(90deg, rgba(2, 2, 2, 0.88) 0%, rgba(5, 5, 4, 0.58) 43%, rgba(0, 0, 0, 0.26) 100%),
    linear-gradient(0deg, rgba(5, 5, 4, 0.92) 0%, rgba(5, 5, 4, 0.18) 42%, rgba(0, 0, 0, 0.5) 100%),
    url("../public/assets/darnytska-room.png") center / cover no-repeat;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
}

.hero::before {
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 68%);
}

.hero::after {
  opacity: 0.2;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.05) 0,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px,
      transparent 5px
    );
  mix-blend-mode: overlay;
}

.case-mark {
  position: absolute;
  top: clamp(26px, 4vw, 54px);
  right: clamp(28px, 5vw, 72px);
  color: rgba(235, 222, 192, 0.16);
  font-family:
    "Courier New",
    Consolas,
    monospace;
  font-size: clamp(4rem, 11vw, 12rem);
  font-weight: 700;
  line-height: 0.85;
  text-transform: uppercase;
  transform: rotate(-4deg);
  user-select: none;
}

.case-intro {
  width: min(100%, 720px);
  padding-top: clamp(80px, 12vh, 150px);
}

.archive-label,
.case-status span {
  font-family:
    "Courier New",
    Consolas,
    monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #d2b878;
}

.archive-label::before {
  width: 34px;
  height: 1px;
  background: var(--accent-deep);
  content: "";
}

h1 {
  max-width: 680px;
  margin: 0;
  color: #fff8df;
  font-size: clamp(4rem, 7vw, 7.8rem);
  font-weight: 500;
  line-height: 0.92;
  text-shadow: 0 18px 54px var(--shadow);
}

.subtitle {
  max-width: 620px;
  margin: 22px 0 0;
  color: #d8ccb1;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.32;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.72);
}

.case-divider {
  width: min(420px, 72vw);
  height: 1px;
  margin: 30px 0 28px;
  background: linear-gradient(90deg, var(--accent), rgba(215, 168, 76, 0));
}

.case-copy {
  max-width: 660px;
  color: var(--muted);
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.75;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.74);
}

.case-copy p {
  margin: 0;
}

.case-copy p + p {
  margin-top: 18px;
}

.investigation-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid rgba(226, 191, 111, 0.76);
  border-radius: 3px;
  color: #1a1208;
  background:
    linear-gradient(180deg, rgba(255, 234, 176, 0.94), rgba(194, 139, 48, 0.96)),
    #d7a84c;
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.46),
    0 0 34px rgba(215, 168, 76, 0.14);
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.investigation-link:hover {
  border-color: rgba(255, 232, 175, 0.96);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.54),
    0 0 42px rgba(215, 168, 76, 0.22);
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.investigation-link:focus-visible {
  outline: 2px solid #fff4cf;
  outline-offset: 4px;
}

.button-mark {
  font-size: 1.05rem;
}

.case-status {
  display: grid;
  gap: 12px;
  width: min(100%, 360px);
  margin-left: auto;
  padding-bottom: 10px;
}

.case-status div {
  min-height: 74px;
  padding: 16px 18px;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(219, 202, 165, 0.1), rgba(20, 19, 16, 0.06)),
    var(--paper);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.case-status span {
  display: block;
  margin-bottom: 8px;
  color: var(--dim);
}

.case-status strong {
  display: block;
  color: #efe2c2;
  font-family:
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.28;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 34px 24px 28px;
  }

  .case-intro {
    padding-top: 72px;
  }

  .case-status {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
    padding-bottom: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 100svh;
    gap: 28px;
    background-position: 62% center;
  }

  h1 {
    padding-left: 8px;
    font-size: clamp(2.85rem, 14vw, 3.9rem);
  }

  .case-copy {
    line-height: 1.62;
  }

  .case-status {
    grid-template-columns: 1fr;
  }

  .case-status div {
    min-height: 62px;
  }

  .investigation-link {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
