body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(180deg, #f3f1ef 0%, #ebe9e6 100%);
  color: #242424;
  line-height: 1.7;
  font-weight: 400;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'ss01' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a {
  color: #8b6f47;
  transition: color 150ms ease;
}
a:hover {
  color: #6b5638;
}
.site-shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 28px;
  background: linear-gradient(180deg, #f3f1ef 0%, #ebe9e6 100%);
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #f3f1ef;
  border: 1px solid #d9d7d2;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 8px 32px rgba(16, 22, 30, 0.08), 0 2px 8px rgba(16, 22, 30, 0.04);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.brand a {
  color: #1e1e1e;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 12px;
  color: #4d4d4d;
  text-decoration: none;
  background: linear-gradient(135deg, #e8e3db 0%, #f0ede7 100%);
  border: 1px solid #d9d1c8;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.site-nav-link:hover,
.site-nav-link:focus {
  background: linear-gradient(135deg, #c9bfb4 0%, #d4ccc2 100%);
  color: #1a1a1a;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: #b8b0a5;
}
.site-content {
  padding: 34px 0;
}
.hero {
  background: linear-gradient(135deg, #f3f1ef 0%, #ede9e6 100%);
  border: 1px solid #dedad6;
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(20, 26, 34, 0.08), 0 2px 8px rgba(20, 26, 34, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #1f1f1f;
  letter-spacing: -0.05em;
  line-height: 1.1;
}
.hero-copy p,
.hero-body {
  margin: 0;
  color: #515151;
  font-size: 1.1rem;
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.01em;
}
.page-list {
  display: grid;
  gap: 22px;
}
.page-card {
  background: #f3f1ef;
  border: 1px solid #e4e0db;
  border-radius: 16px;
  padding: 32px;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(28, 32, 35, 0.06);
}
.page-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(28, 32, 35, 0.12), 0 4px 16px rgba(28, 32, 35, 0.08);
}
.page-card h2 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.page-card h2 a {
  color: #232323;
  text-decoration: none;
  transition: color 200ms ease;
}
.page-card h2 a:hover {
  color: #8b6f47;
}
.page-card p {
  margin: 0;
  color: #606060;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
}
.page-article {
  background: #f3f1ef;
  border: 1px solid #ece9e5;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 8px 32px rgba(26, 30, 34, 0.06), 0 2px 8px rgba(26, 30, 34, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.page-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 2.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
  color: #1f1f1f;
}
.page-meta {
  margin: 0 0 32px;
  color: #6f6f6f;
  font-size: 0.95rem;
  font-weight: 500;
}
.page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.page-body p {
  line-height: 1.8;
  color: #4f4f4f;
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 1.5em;
}
.page-body {
  background: #f3f1ef;
  padding: 0;
  border-radius: 8px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 280px);
  gap: 24px;
  margin-top: 24px;
  justify-content: center;
}
.portfolio-grid figure {
  margin: 0;
  background: radial-gradient(circle at center, rgba(180, 150, 120, 0.4) 0%, rgba(220, 200, 180, 0.25) 50%, #f3f1ef 100%);
  border: 1px solid #e9e5df;
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 8px 32px rgba(24, 30, 34, 0.1), inset 0 0 60px rgba(160, 130, 100, 0.2);
  height: 320px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-grid figure a {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.portfolio-grid img {
  width: 100%;
  display: block;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(120, 100, 80, 0.15));
  border-radius: 12px;
}
.portfolio-grid figure:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 48px rgba(24, 30, 34, 0.15), inset 0 0 80px rgba(160, 130, 100, 0.3);
}
.gallery-caption {
  padding: 8px 10px;
  font-size: 0.9rem;
  color: #585858;
  line-height: 1.5;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-top: auto;
}
.site-nav-link.active,
.site-nav-link.active:hover {
  background: linear-gradient(135deg, #9a8d82 0%, #a69387 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(154, 141, 130, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  border-color: #8a7d72;
  font-weight: 600;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(14, 18, 22, 0.88);
  z-index: 9999;
  padding: 24px;
}
.lightbox-overlay.active {
  display: flex;
}
.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.lightbox-controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.lightbox-button {
  pointer-events: all;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 250ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}
.lightbox-button:hover {
  transform: translateY(-2px) scale(1.05);
  background: linear-gradient(135deg, rgba(200, 180, 160, 0.3) 0%, rgba(220, 200, 180, 0.2) 100%);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(200, 180, 160, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
}
.lightbox-prev,
.lightbox-next {
  pointer-events: all;
}
.site-footer {
  margin-top: 42px;
  text-align: center;
  color: #6e6e6e;
  font-size: 0.95rem;
}
section {
  background: #f3f1ef;
  border-radius: 8px;
  padding: 0;
}
figure {
  background: #f3f1ef;
}
@media (max-width: 820px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .site-shell {
    padding: 22px 18px;
  }
}

/* Additional background overrides to eliminate white backgrounds */
.site-content {
  background: #f3f1ef !important;
}
.site-header {
  background: #f3f1ef !important;
}
.hero {
  background: #f3f1ef !important;
}
.page-article {
  background: #f3f1ef !important;
}
.page-body {
  background: #f3f1ef !important;
}
body {
  background: #f3f1ef !important;
}
