:root {
  --ink: #1c1718;
  --ink-muted: #3a3032;
  --paper: #f7f2ef;
  --paper-deep: #efe7e1;
  --accent: #ba00a1;
  --accent-soft: #e63ab6;
  --accent-deep: #8f007d;
  --sand: #d6cdc6;
  --shadow: rgba(20, 15, 18, 0.14);
  --display: "Sora", "Helvetica Neue", Arial, sans-serif;
  --sans: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --sidebar-size: clamp(220px, 24vw, 320px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: radial-gradient(900px 600px at 6% -10%, rgba(186, 0, 161, 0.25), transparent 60%),
    radial-gradient(700px 500px at 95% 10%, rgba(186, 0, 161, 0.18), transparent 55%),
    linear-gradient(135deg, #fbf7f4 0%, #f4ede7 60%, #fff 100%);
  font-size: clamp(18px, 0.7vw + 16px, 20px);
  line-height: 1.7;
  position: relative;
  z-index: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.03) 1px, transparent 1px, transparent 6px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--accent-soft);
  text-decoration: underline;
}

a:visited {
  color: var(--accent);
}

::selection {
  background: var(--accent);
  color: #fff;
}

img {
  max-width: 100%;
}

.page {
  display: grid;
  grid-template-columns: var(--sidebar-size) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  padding: clamp(16px, 2vw, 32px);
}

.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-deep) 100%);
  padding: clamp(24px, 3.5vw, 48px);
  border: 1px solid rgba(186, 0, 161, 0.18);
  position: sticky;
  top: clamp(16px, 2vw, 32px);
  width: 100%;
  height: auto;
  z-index: 1;
  border-radius: 22px;
  box-shadow: 0 22px 50px -40px rgba(40, 10, 32, 0.35);
  overflow: hidden;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
  border-radius: 22px 0 0 22px;
}

.sidebar img {
  width: 85%;
  max-width: 200px;
}

.sidebar h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  letter-spacing: 0.01em;
  line-height: 1.02;
  margin: 0.6em 0 0.6em;
  color: var(--ink);
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 0.8em 0;
}

.sidebar ul a {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 600;
  display: inline-block;
  position: relative;
  padding: 0.25em 0;
  transition: color 0.25s ease, transform 0.25s ease;
  text-decoration: none;
}

.sidebar ul a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25em;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transition: width 0.25s ease;
}

.sidebar ul a:hover {
  color: var(--accent-deep);
  transform: translateX(2px);
  text-decoration: none;
}

.sidebar ul a:hover::after {
  width: 100%;
}

.sidebar a,
.sidebar a:hover,
.sidebar a:visited {
  text-decoration: none;
}

.sidebar-sticky {
  position: static;
}

.content {
  background: linear-gradient(180deg, #ffffff 0%, var(--paper-deep) 100%);
  border: 1px solid rgba(186, 0, 161, 0.12);
  padding: clamp(28px, 4.5vw, 64px);
  border-radius: 24px;
  box-shadow: 0 24px 60px -45px var(--shadow);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.content h1,
.content h2,
.content h3 {
  font-family: var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}

.content h1 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-top: 0;
}

.content h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.content p,
.content ul {
  max-width: 62ch;
  color: var(--ink-muted);
}

.content p a,
.content li a,
.content small a {
  position: relative;
  color: var(--accent-deep);
  padding: 0 0.08em;
  background-image: linear-gradient(120deg, rgba(186, 0, 161, 0.2), rgba(186, 0, 161, 0.04));
  background-size: 100% 0.22em;
  background-position: 0 88%;
  background-repeat: no-repeat;
  border-radius: 0.2em;
  transition: background-size 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.content p a:hover,
.content li a:hover,
.content small a:hover {
  color: #fff;
  background-size: 100% 100%;
  box-shadow: 0 12px 24px -16px rgba(186, 0, 161, 0.6);
}

.content ul {
  padding-left: 1.2rem;
}

.grid {
  display: grid;
  gap: clamp(8px, 1.5vw, 16px);
}

.grid--home {
  grid-template-columns: repeat(3, 1fr);
  --grid-item-height: 50vh;
}

.grid--art {
  grid-template-columns: repeat(2, 1fr);
  --grid-item-height: 42vh;
}

.grid-item {
  position: relative;
  background-color: #fff;
  height: var(--grid-item-height, 50vh);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px -45px var(--shadow);
}

.grid-item > a {
  display: block;
  height: 100%;
  text-decoration: none;
}

.grid-item > a:hover {
  text-decoration: none;
}

.grid-item a,
.grid-item a:visited,
.grid-item a:hover {
  text-decoration: none;
}

.grid-item--width3 {
  grid-column: 1 / span 3;
}

.grid-title {
  position: relative;
  z-index: 1;
  color: #fff;
  text-decoration: none;
  padding: 1.2rem 1.6rem;
  font-weight: 600;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-family: var(--display);
  text-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  line-height: 1.1;
  background: linear-gradient(90deg, rgba(12, 10, 12, 0.85) 0%, rgba(12, 10, 12, 0.6) 45%, rgba(12, 10, 12, 0.25) 75%, rgba(12, 10, 12, 0) 100%);
  display: block;
  width: 100%;
}

.art-grid {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: flex-end;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.art-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 8, 10, 0.05) 0%, rgba(10, 8, 10, 0.55) 60%, rgba(186, 0, 161, 0.35) 100%);
}

.art-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.art-grid:hover {
  transform: scale(1.015);
  filter: saturate(1.08) contrast(1.02);
}

.art-grid:hover::after {
  opacity: 1;
}

.art-detail {
  padding: clamp(24px, 4vw, 56px);
}

.art-detail__inner {
  max-width: 60em;
  margin: auto;
}

.art-detail__image {
  height: auto;
  max-height: 70vh;
  border-radius: 16px;
  box-shadow: 0 18px 50px -32px var(--shadow);
  display: block;
}

.art-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.art-meta__status {
  color: var(--accent-deep);
}

.art-meta__status--nfs {
  color: #8d8d8d;
}

.art-meta__link {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(186, 0, 161, 0.35);
  padding-bottom: 0.1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.art-meta__link:hover {
  color: var(--accent);
  border-color: rgba(186, 0, 161, 0.8);
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 18px 50px -32px var(--shadow);
  margin-bottom: 1.8rem;
}

@media (max-width: 900px) {
  .page {
    grid-template-columns: 1fr;
    padding: clamp(14px, 3vw, 24px);
  }

  .sidebar {
    position: relative;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--sand);
    top: auto;
  }

  .sidebar-sticky {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
  }

  .sidebar h1 {
    flex: 1 1 200px;
    margin: 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
  }

  .sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.2rem;
  }

  .sidebar ul li {
    margin: 0;
  }

  .sidebar::after {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 5px;
    border-radius: 22px 22px 0 0;
  }

  .sidebar-sticky {
    position: static;
  }

  .content {
    border-radius: 18px;
  }
}

@media (max-width: 1100px) {
  .grid--home {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-item--width3 {
    grid-column: 1 / span 2;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 17px;
  }

  .sidebar {
    padding: 20px;
  }

  .sidebar img {
    width: 60%;
  }

  .sidebar ul {
    gap: 0.5rem;
  }

  .sidebar ul li {
    margin: 0;
  }

  .grid--home,
  .grid--art {
    grid-template-columns: repeat(1, 1fr);
  }

  .grid-item--width3 {
    grid-column: 1 / span 1;
  }

  .grid-item {
    border-radius: 12px;
  }
}
