:root {
  /* Designer Brand Palette */
  --primary-bg: #fdfbf7; /* "Paper" white - warmer, more organic */
  --secondary-bg: #ffffff; /* Pure white */
  --tertiary-bg: #f4f1ea; /* Beige/Greige for texture */
  --content-bg: #ffffff;

  --text-primary: #0a0a0a; /* Near black for sharp contrast */
  --text-secondary: #4a4a4a; /* Dark Grey */
  --text-muted: #888888;

  --accent-primary: #ab936b; /* Archive Gold */
  --accent-primary-hover: #8c7350;
  --accent-secondary: #1a1a1a;

  --border-color: #e0ded9; /* Subtle organic border */
  --border-strong: #1a1a1a; /* Strong separator */
  
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.06);

  /* Typography - Editorial */
  --font-primary: "Jost", "Helvetica Neue", sans-serif; /* Body */
  --font-display: "Cormorant Garamond", serif; /* Headings */
  --font-mono: "Courier New", monospace; /* Technical accents */

  --container-width: 1400px; /* Wider, more expansive */
  --header-height: 90px;
  
  --transition-slow: 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  --transition-fast: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Global Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--primary-bg);
  color: var(--text-secondary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain Texture Overlay for "Film" Look */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.04;
  background-image: 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");
}

/* Typography System */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 400; /* Elegant weight */
  line-height: 1.1;
}

h1 {
  font-size: 5.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 3.5rem;
  margin-bottom: 1em;
  position: relative;
  display: inline-block;
}

h3 {
  font-size: 2rem;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1.5em;
  font-weight: 300;
  max-width: 65ch;
}

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

/* Layout Utilities */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border-color);
  margin: 0;
}

/* Header - Editorial Style */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: rgba(253, 251, 247, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: -0.5px;
  z-index: 1001;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 50px;
}

.main-nav a {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 5px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background-color: var(--text-primary);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Hero Section - The "Cover" */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-content {
  max-width: 900px;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 2px;
  margin-bottom: 20px;
  display: block;
}

.hero-content h1 {
  font-style: italic; /* Designer touch */
}

.hero-content h1 span {
  font-style: normal;
  display: block;
}

.hero-subheading {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-top: 30px;
  margin-bottom: 50px;
  border-left: 1px solid var(--text-primary);
  padding-left: 20px;
}

/* Buttons - High Fashion "Ghost" Style */
.cta-button {
  display: inline-block;
  padding: 15px 40px;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  background: transparent;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cta-button:hover {
  background: var(--text-primary);
  color: var(--secondary-bg);
}

/* About / The Designer */
.about-me-section {
  padding: 160px 0;
  background-color: var(--primary-bg);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  padding: 20px;
  border: 1px solid var(--border-color);
}

.about-me-image img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: filter var(--transition-slow);
}

.about-me-image:hover img {
  filter: grayscale(0%);
}

.about-text h2 {
  font-size: 3rem;
}

.about-meta {
  margin-top: 40px;
  display: flex;
  gap: 40px;
}

.meta-item span {
  display: block;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 5px;
}

.meta-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
}

/* Featured Collection - Full Width Slider */
.featured-curated-banner-section {
  padding: 0;
  background-color: var(--secondary-bg);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.featured-header {
  padding: 80px 0 40px;
  text-align: center;
}

.featured-curated-rotator {
  width: 100%;
  height: 80vh;
  position: relative;
  overflow: hidden;
}

.featured-slide {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
}

.featured-slide.active {
  opacity: 1;
  z-index: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3); /* Darken slightly for text readability */
}

.featured-slide-content {
  position: absolute;
  bottom: 100px;
  left: 10%;
  max-width: 600px;
  color: #fff; /* Always white on images */
  z-index: 2;
}

.featured-slide-content h3 {
  font-size: 4rem;
  color: #fff;
  margin-bottom: 0.2em;
}

.featured-slide-content p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 2em;
}

.featured-slide-content .cta-button {
  border-color: #fff;
  color: #fff;
}

.featured-slide-content .cta-button:hover {
  background: #fff;
  color: #000;
}

/* The Archive (Github) - Grid Layout */
.projects-section {
  padding: 160px 0;
  background-color: var(--primary-bg);
}

.archive-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 80px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-strong);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; /* Tight grid */
  background-color: var(--border-color); /* Creates borders between items */
  border: 1px solid var(--border-color);
}

.project-card {
  background-color: var(--primary-bg);
  padding: 40px;
  height: 100%;
  transition: background-color var(--transition-fast);
}

.project-card:hover {
  background-color: #fff;
}

.project-thumbnail.placeholder {
  background-color: var(--tertiary-bg);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  border: 1px solid var(--border-color);
  padding: 2px 8px;
  margin-right: 5px;
  color: var(--text-secondary);
}

.project-info h3 {
  font-size: 1.4rem;
  margin-top: 15px;
}

.project-info p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Sidebar Layout */
.page-layout-container {
  display: flex;
  gap: 60px;
  padding: 120px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.main-content-area {
  flex: 3;
}

.sidebar-area {
  flex: 1;
  border-left: 1px solid var(--border-color);
  padding-left: 40px;
}

.rotator-item {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-color);
}

/* Memories / Polaroids */
.memories-section {
  padding: 160px 0;
  background-color: var(--tertiary-bg);
  position: relative;
  overflow: hidden;
}

.memories-grid {
  column-count: 4;
  column-gap: 30px;
}

.memory-card-container {
  margin-bottom: 30px;
  break-inside: avoid;
}

.memory-card {
  background: #fff;
  padding: 12px 12px 50px 12px; /* Classic Polaroid */
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.memory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  z-index: 10;
}

.memory-card img {
  width: 100%;
  display: block;
  filter: sepia(20%);
}

/* Footer */
.site-footer {
  padding: 80px 0;
  background-color: var(--text-primary);
  color: var(--primary-bg);
  text-align: center;
}

.site-footer p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1px;
  opacity: 0.6;
  color: #fff;
}

.social-links a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 15px;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
}

/* Floating Polaroid - Lower Z-index so it doesn't block nav */
#floating-polaroid {
  position: fixed;
  z-index: 90;
  width: 180px;
  pointer-events: none;
}
#floating-polaroid .polaroid-face {
    background: #fff;
    padding: 10px 10px 35px 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Responsive */
@media (max-width: 1024px) {
  h1 { font-size: 4rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout-container { flex-direction: column; }
  .sidebar-area { border-left: none; padding-left: 0; border-top: 1px solid var(--border-color); padding-top: 40px; }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 3rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .memories-grid { column-count: 2; }
  .main-nav ul { gap: 20px; }
}
