/* --- The Ruined Manor Aesthetic --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Crimson+Text:ital@0;1&family=UnifrakturMaguntia&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Crimson Text', serif;
  background-color: #1a1612; /* Dark, damp earth */
  color: #c2a679; /* Tarnished gold/old paper */
  line-height: 1.8;
  /* Simulating stained wallpaper with a gradient overlay */
  background-image: 
    radial-gradient(circle, transparent 20%, #000 150%),
    url('https://www.transparenttextures.com/patterns/dark-matter.png'); 
  background-attachment: fixed;
}

/* --- Typography --- */
h1, h2, .site-logo {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #8d2b2b; /* Dried blood burgundy */
  text-shadow: 2px 2px 4px #000;
}

/* --- Navigation (The "Heavy Oak" Header) --- */
header {
  background-color: #261e18; /* Dark wood */
  border-bottom: 3px double #84754e; /* Tarnished gold trim */
  padding: 2rem 5%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.site-logo {
  font-size: 2.5rem;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
}

nav a {
  text-decoration: none;
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 1.2rem;
  color: #84754e;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

nav a:hover {
  color: #c2a679;
  text-shadow: 0 0 10px rgba(194, 166, 121, 0.5);
}

/* --- The Main Frame (The "Curator's Note") --- */
main {
  padding: 4rem 10%;
}

.room-intro {
  background: rgba(20, 18, 15, 0.9); /* Sunken shadow effect */
  border: 1px solid #3d342a;
  padding: 3rem;
  margin-bottom: 5rem;
  position: relative;
  box-shadow: inset 0 0 50px #000;
}

/* Adding a "cracked" or "dusty" flourish */
.room-intro::after {
  content: '❧';
  display: block;
  text-align: center;
  font-size: 2rem;
  color: #3d342a;
  margin-top: 1rem;
}

.room-intro h1 {
  font-size: 3rem;
  text-align: center;
}

.curator-note {
  font-size: 1.1rem;
  color: #7a6e5d;
  font-style: italic;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* --- The Gallery Grid (The "Picture Gallery") --- */
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 4rem;
}

.work-item {
  position: relative;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.work-item img {
  width: 100%;
  height: auto;
  display: block;
  border: 15px solid #1a1612; /* Heavy frame shadow */
  outline: 1px solid #4a3728;
  filter: sepia(30%) brightness(80%) contrast(110%); /* Makes art look aged */
  box-shadow: 10px 15px 30px rgba(0,0,0,0.9);
  transition: all 0.5s ease;
}

.work-item:hover {
  transform: scale(1.02) rotate(1deg); /* Slight "leaning" effect */
}

.work-item:hover img {
  filter: sepia(0%) brightness(100%) contrast(100%); /* Art "cleans up" on hover */
  outline-color: #84754e;
}

.work-info {
  margin-top: 1.5rem;
  text-align: center;
  opacity: 0.6;
}

.art-title {
  font-size: 1.1rem;
  color: #c2a679;
  letter-spacing: 2px;
}

.art-meta {
  font-size: 0.8rem;
  color: #5e5041;
  text-transform: lowercase;
  font-style: italic;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 5rem 0;
  border-top: 1px solid #261e18;
  font-size: 0.8rem;
  color: #3d342a;
}