@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Inter:wght@300;400;600&display=swap');

:root {
  --primary: #a0522d;
  --secondary: #d2b48c;
  --bg-color: #ffffff;
  --text-color: #171717;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(160, 82, 45, 0.1);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --border-radius: 16px;
  --texture-overlay: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--texture-overlay);
  opacity: 0.03;
  pointer-events: none;
  z-index: 9999;
}

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

/* Bento Grid Layout */
.bento-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 24px;
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.bento-item {
  position: relative;
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 30px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.bento-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(160, 82, 45, 0.1);
}

.bento-large {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-tall {
  grid-row: span 2;
}

.bento-wide {
  grid-column: span 2;
}

/* Glassmorphism Elements */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary);
  color: var(--text-color);
  transform: scale(1.05);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

/* Decorative Accents */
.accent-line {
  width: 50px;
  height: 3px;
  background: var(--secondary);
  margin: 15px 0;
}

.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(23, 23, 23, 0.8));
  z-index: 1;
}

.bento-content {
  position: relative;
  z-index: 2;
}

.bento-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: var(--transition);
}

.bento-item:hover img {
  transform: scale(1.08);
}

/* Typography Utilities */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-light { color: #ffffff; }

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .bento-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bento-container {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .bento-large, .bento-wide, .bento-tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}