/* Monochrome, minimalist theme */
:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #bdbdbd;
  --gray-600: #666666;
  --gray-800: #222222;
  --max-width: 1120px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--max-width);
  padding-left: var(--space-5);
  padding-right: var(--space-5);
  margin-left: auto;
  margin-right: auto;
}

/* Typography */
.h1, h1 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; margin: 0 0 var(--space-5); }
.h2, h2 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2.5rem); line-height: 1.2; margin: 0 0 var(--space-4); }
.h3, h3 { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.25rem; line-height: 1.3; margin: 0 0 var(--space-3); }
.lead { font-size: 1.1rem; color: var(--gray-800); }
.muted { color: var(--gray-600); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--gray-200);
}

.navbar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); height: 64px; }
.brand { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; color: var(--black); text-decoration: none; font-size: 1.25rem; letter-spacing: 0.5px; }

.nav-links { display: flex; align-items: center; gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--black); text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid transparent; transition: border-color 180ms ease, color 180ms ease; }
.nav-links a:hover, .nav-links a:focus { border-bottom-color: var(--black); }

.nav-toggle { display: none; background: transparent; border: 1px solid var(--gray-200); padding: 8px 10px; border-radius: 4px; }
.nav-toggle:focus { outline: 2px solid var(--black); outline-offset: 2px; }

/* Hero carousel */
.hero { position: relative; min-height: min(90vh, 900px); color: var(--white); background: var(--black); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 800ms ease; }
.hero-slide.active { opacity: 1; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); opacity: 0.9; }
.hero-overlay { position: relative; text-align: center; padding: var(--space-7) var(--space-5); max-width: 860px; margin: 0 auto; z-index: 1; top: 50%; transform: translateY(-50%); }
.hero-overlay h1 { color: var(--white); text-shadow: 0 1px 20px rgba(0,0,0,.35); }
.hero-overlay .tagline { color: var(--gray-100); margin-bottom: var(--space-6); font-size: clamp(1rem, 2.4vw, 1.25rem); }

/* Sections */
.section { padding: var(--space-8) 0; }

/* Grids */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* Figure / captions */
.figure { margin: 0; }
.figcaption { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--gray-800); margin-top: var(--space-3); }

/* Details list */
.details { border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: var(--space-6) 0; margin: var(--space-6) 0; }
.details dl { display: grid; grid-template-columns: 180px 1fr; gap: var(--space-4) var(--space-6); margin: 0; }
.details dt { color: var(--gray-600); }
.details dd { margin: 0; }

@media (max-width: 700px) {
  .details dl { grid-template-columns: 1fr; }
}

/* Buttons */
.button { appearance: none; background: transparent; color: var(--white); border: 1px solid var(--white); padding: 12px 20px; border-radius: 0; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: background 200ms ease, color 200ms ease; }
.button:hover, .button:focus { background: var(--white); color: var(--black); }
.button.dark { color: var(--black); border-color: var(--black); }
.button.dark:hover, .button.dark:focus { background: var(--black); color: var(--white); }

/* Footer */
.site-footer { padding: var(--space-7) 0; border-top: 1px solid var(--gray-200); color: var(--gray-600); font-size: 0.95rem; }

/* About */
.portrait { width: 100%; height: auto; filter: grayscale(100%); }

/* Contact form */
.form { display: grid; gap: var(--space-5); max-width: 720px; }
.input, textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--gray-200); background: var(--white); color: var(--black); font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial; }
textarea { min-height: 160px; resize: vertical; }
.input:focus, textarea:focus { outline: 2px solid var(--black); outline-offset: 2px; }

/* Accessibility */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* Responsive nav */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; top: 64px; right: 0; background: var(--white); border-left: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: var(--space-5); flex-direction: column; align-items: flex-start; min-width: 220px; display: none; }
  .nav-links a { padding: 6px 0; }
  .nav-links.open { display: flex; }
}

/* Quotes carousel */
.quotes { position: relative; min-height: 160px; }
.quote-item { 
  position: absolute; inset: 0; opacity: 0; 
  transition: opacity 700ms ease; 
  display: grid; place-items: center; text-align: center; padding: var(--space-6) var(--space-5);
}
.quote-item blockquote { 
  margin: 0 0 var(--space-3); 
  font-family: "Cormorant Garamond", Georgia, serif; 
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
}
.quote-item figcaption { color: var(--gray-600); }
.quote-item.active { opacity: 1; }

/* Cycling gallery */
.gallery { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--gray-100); overflow: hidden; }
.gallery-item { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); opacity: 0; transition: opacity 800ms ease; }
.gallery-item.active { opacity: 1; }
@media (max-width: 700px) {
  .gallery { aspect-ratio: 4 / 3; }
}

/* Gallery controls */
.gallery-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85); color: var(--black); border: 1px solid var(--gray-200); width: 44px; height: 44px; display: grid; place-items: center; font-size: 28px; line-height: 1; cursor: pointer; }
.gallery-control:hover, .gallery-control:focus { background: var(--white); outline: 2px solid var(--black); outline-offset: 2px; }
.gallery-control.prev { left: 10px; }
.gallery-control.next { right: 10px; }

/* Contact side image */
.contact-image { width: 100%; height: auto; filter: grayscale(100%); display: block; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.95); display: none; align-items: center; justify-content: center; z-index: 100; padding: var(--space-6); }
.lightbox.open { display: flex; }
.lightbox-image { max-width: 92vw; max-height: 86vh; object-fit: contain; filter: grayscale(100%); }
.lightbox-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--gray-100); font-family: "Cormorant Garamond", Georgia, serif; text-align: center; max-width: 80ch; padding: 8px 12px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; background: transparent; color: var(--white); font-size: 32px; border: 1px solid var(--gray-600); width: 44px; height: 44px; cursor: pointer; }
.lightbox-control { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); color: var(--white); border: 1px solid rgba(255,255,255,0.3); width: 48px; height: 64px; display: grid; place-items: center; font-size: 28px; cursor: pointer; }
.lightbox-control.prev { left: 16px; }
.lightbox-control.next { right: 16px; }

/* Blog posts */
.blog-posts { display: grid; gap: var(--space-6); margin: var(--space-6) 0; }
.blog-post { 
  border: 1px solid var(--gray-200); 
  background: var(--gray-100); 
  transition: border-color 200ms ease, background 200ms ease;
  overflow: hidden;
}
.blog-post:hover { 
  border-color: var(--gray-400); 
  background: var(--white); 
}
.blog-post-content {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-5);
  align-items: start;
}
.blog-post-image {
  width: 100%;
  height: 150px;
  overflow: hidden;
}
.blog-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 200ms ease;
}
.blog-post:hover .blog-post-image img {
  filter: grayscale(0%);
}
.blog-post-text {
  padding: var(--space-5);
  padding-left: 0;
}
.blog-post h3 { 
  margin-bottom: var(--space-2); 
  font-size: 1.1rem; 
  line-height: 1.4;
}
.blog-post h3 a { 
  color: var(--black); 
  text-decoration: none; 
  border-bottom: 1px solid transparent; 
  transition: border-color 200ms ease;
}
.blog-post h3 a:hover, .blog-post h3 a:focus { 
  border-bottom-color: var(--black); 
}
.blog-meta { 
  color: var(--gray-600); 
  font-size: 0.9rem; 
  margin-bottom: var(--space-3); 
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
  .blog-post p:last-child { 
  margin-bottom: 0; 
  color: var(--gray-800); 
  font-size: 0.95rem; 
  line-height: 1.5;
}

/* Instagram link */
.instagram-link {
  margin: var(--space-6) 0;
  padding: var(--space-5);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  text-align: center;
}
.instagram-link p {
  margin: 0;
  color: var(--gray-800);
  font-size: 1rem;
}
.instagram-link a {
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--black);
  transition: border-color 200ms ease;
}
.instagram-link a:hover, .instagram-link a:focus {
  border-bottom-color: transparent;
}

@media (max-width: 700px) {
  .blog-post-content {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .blog-post-image {
    height: 200px;
  }
  .blog-post-text {
    padding: var(--space-5);
    padding-top: 0;
  }
}

.book-cover { width: 100%; height: auto; filter: grayscale(100%); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
