:root {
  --red: #8a0000;
  --red-dim: #5a0000;
  --red-glow: rgba(138, 0, 0, 0.18);
  --white: #c8b8b8;
  --white-dim: rgba(200, 184, 184, 0.45);
  --bg: #080808;
  --surface: #0e0e0e;
  --font-head: "Ancient", "Palatino Linotype", serif;
  --font-body: "Georgia", "Times New Roman", serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
}

/*grain effect*/

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.6;
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--red-dim);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--red);
}

a {
  color: var(--red);
  text-decoration: none;
  transition:
    color 0.2s var(--ease),
    opacity 0.2s var(--ease);
}
a:hover {
  color: var(--white);
}

.page {
  max-width: 520px;
  margin: 0 auto;
  padding: 80px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.site-header::after {
  content: "";
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--red), transparent);
  margin-top: 16px;
}

.site-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  color: var(--red);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  line-height: 1;
  text-shadow:
    0 0 40px var(--red-glow),
    0 0 80px var(--red-glow);
  animation: flicker 8s infinite;
}

@keyframes flicker {
  0%,
  95%,
  100% {
    opacity: 1;
  }
  96% {
    opacity: 0.85;
  }
  97% {
    opacity: 1;
  }
  98% {
    opacity: 0.9;
  }
  99% {
    opacity: 1;
  }
}

.rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--red-dim),
    transparent
  );
  border: none;
}

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red-dim);
  margin-bottom: 20px;
  font-family: var(--font-body);
}

.about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about blockquote {
  border-left: 2px solid var(--red);
  padding-left: 16px;
  font-style: italic;
  color: var(--white-dim);
  font-size: 0.9rem;
  position: relative;
}

.about blockquote::before {
  content: "\201C";
  font-family: var(--font-head);
  font-size: 2.5rem;
  color: var(--red-dim);
  position: absolute;
  left: -8px;
  top: -12px;
  line-height: 1;
}

.about p {
  font-size: 0.88rem;
  color: var(--white-dim);
  line-height: 1.85;
}

nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

nav li {
  border-bottom: 1px solid rgba(138, 0, 0, 0.15);
  transition: background 0.2s var(--ease);
}
nav li:first-child {
  border-top: 1px solid rgba(138, 0, 0, 0.15);
}

nav li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-family: var(--font-head);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--red);
  transition:
    color 0.2s var(--ease),
    padding-left 0.2s var(--ease);
}

nav li a::after {
  content: "→";
  font-family: var(--font-body);
  font-size: 0.8rem;
  opacity: 0;
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease);
  transform: translateX(-6px);
}

nav li:hover a {
  color: var(--white);
  padding-left: 8px;
}
nav li:hover a::after {
  opacity: 1;
  transform: translateX(0);
}

.music {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.music iframe {
  width: 100%;
  height: 166px;
  border: none;
  display: block;
  filter: grayscale(30%);
  transition: filter 0.3s var(--ease);
}
.music iframe:hover {
  filter: invert(1) hue-rotate(180deg);
}

.music iframe {
  filter: grayscale(30%) invert(1) hue-rotate(180deg);
}

footer {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--red-dim);
  text-transform: uppercase;
  opacity: 0.6;
  margin-top: 40px;
}

.page > * {
  animation: fadein 0.8s var(--ease) both;
}
.page > *:nth-child(1) {
  animation-delay: 0.05s;
}
.page > *:nth-child(2) {
  animation-delay: 0.15s;
}
.page > *:nth-child(3) {
  animation-delay: 0.25s;
}
.page > *:nth-child(4) {
  animation-delay: 0.35s;
}
.page > *:nth-child(5) {
  animation-delay: 0.45s;
}
.page > *:nth-child(6) {
  animation-delay: 0.55s;
}
.page > *:nth-child(7) {
  animation-delay: 0.65s;
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .page {
    padding: 56px 18px 80px;
    gap: 56px;
  }
}
