/* ═══════════════════════════════════════════════
   Salt Lamp Studios — Main Stylesheet
   saltlampstudios.com
   ═══════════════════════════════════════════════ */

/* ── FONTS (loaded in index.html <head>) ── */
/* Cormorant Garamond: headings, display text    */
/* IBM Plex Mono: body, UI text                 */

/* ── DESIGN TOKENS ── */
:root {
  --ink:    #1c1610;
  --paper:  #f5ede0;
  --warm:   #e8d9c0;
  --amber:  #c17f3a;
  --rust:   #8b4a1a;
  --muted:  #7a6b58;
  --bone:   #d4c4aa;
  --glow:   #d4954a;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  cursor: crosshair;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.6;
}

/* Warm ambient glow behind content */
body::after {
  content: '';
  position: fixed;
  bottom: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 80vw;
  height: 60vh;
  background: radial-gradient(ellipse, rgba(193,127,58,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── ANIMATIONS ── */
@keyframes flicker {
  0%, 90%, 100% { opacity: 1; }
  92% { opacity: 0.7; }
  94% { opacity: 1; }
  96% { opacity: 0.85; }
  98% { opacity: 1; }
}

@keyframes drift {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  33% { transform: rotate(1.5deg) translateY(-6px); }
  66% { transform: rotate(-1deg) translateY(3px); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── HEADER ── */
header {
  border-bottom: 1px solid var(--ink);
  padding: 18px 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 100;
  flex-wrap: wrap;
  gap: 12px;
}

.header-left {
  display: flex;
  align-items: baseline;
  gap: 0;
  flex-wrap: wrap;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-glyph {
  height: 28px;
  width: auto;
  display: inline-block;
  animation: flicker 8s ease-in-out infinite;
  vertical-align: middle;
}

nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* ── HERO ── */
.hero {
  padding: 24px 40px 64px;
  border-bottom: 1px solid var(--bone);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}

.hero-left h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6.5vw, 90px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}

.hero-left h1 em {
  font-style: italic;
  color: var(--amber);
}

.hero-tagline {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 2px solid var(--amber);
  padding-left: 12px;
  line-height: 2;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 20px;
}

.hero-art {
  height: 180px;
  width: auto;
  opacity: 0.18;
  user-select: none;
  animation: drift 14s ease-in-out infinite;
  filter: blur(0.5px);
  display: block;
}

.hero-detail {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
}

.book-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 24px;
  border: 1px solid var(--amber);
  color: var(--amber);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.book-btn:hover {
  background: var(--amber);
  color: var(--paper);
}

/* ── SECTION COMMON ── */
section {
  border-bottom: 1px solid var(--bone);
  position: relative;
  z-index: 1;
}

.section-header {
  padding: 12px 40px;
  border-bottom: 1px solid var(--bone);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-num {
  font-size: 10px;
  color: var(--bone);
  letter-spacing: 0.1em;
}

/* ── SPACES ── */
#spaces .spaces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.space-item {
  border-right: 1px solid var(--bone);
  padding: 0;
  overflow: hidden;
}

.space-item:last-child {
  border-right: none;
}

.space-photo {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--bone);
  overflow: hidden;
  position: relative;
}

/* When a real photo is added, target img inside .space-photo */
.space-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.space-photo-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
}

.space-photo-inner .photo-icon {
  font-size: 32px;
  opacity: 0.4;
}

/* warm gradient overlay for placeholder */
.space-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(193,127,58,0.06) 0%, rgba(139,74,26,0.04) 100%);
}

.space-info {
  padding: 20px 24px;
}

.space-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.space-desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.space-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid var(--amber);
  padding: 2px 8px;
  margin-right: 4px;
  margin-bottom: 4px;
}

/* ── RATES ── */
#rates .rates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.rate-block {
  border-right: 1px solid var(--bone);
  border-bottom: 1px solid var(--bone);
  padding: 36px 40px;
}

.rate-block:nth-child(2n) {
  border-right: none;
}

.rate-block:nth-child(3),
.rate-block:nth-child(4) {
  border-bottom: none;
}

.rate-type {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.rate-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 4px;
}

.rate-price {
  font-size: 22px;
  color: var(--amber);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.rate-price span {
  font-size: 13px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 300;
}

.rate-details {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.rate-details li {
  list-style: none;
  padding-left: 14px;
  position: relative;
}

.rate-details li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--bone);
}

.rate-note {
  margin-top: 14px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--bone);
  border-top: 1px solid var(--bone);
  padding-top: 10px;
}

/* ── ABOUT ── */
#about .about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.about-text {
  padding: 48px 40px;
  border-right: 1px solid var(--bone);
}

.about-text p {
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 18px;
  font-size: 12.5px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--ink);
  font-weight: 400;
}

.about-aside {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.aside-block {
  border-left: 2px solid var(--amber);
  padding-left: 16px;
}

.aside-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 6px;
}

.aside-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink);
}

.aside-value a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--bone);
  transition: border-color 0.2s;
}

.aside-value a:hover {
  border-bottom-color: var(--amber);
}

/* ── GALLERY ── */
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.gallery-item {
  border-right: 1px solid var(--bone);
  aspect-ratio: 1;
  background: var(--warm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-item:last-child {
  border-right: none;
}

/* When real photos are added, target img inside .gallery-item */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(193,127,58,0.05) 0%, rgba(139,74,26,0.03) 100%);
}

.gallery-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.4;
}

.gallery-placeholder .ph-icon {
  font-size: 24px;
}

/* ── CONTACT ── */
#contact {
  border-bottom: none;
}

.contact-strip {
  padding: 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.contact-left p {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  line-height: 1.8;
}

.contact-email {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
  transition: color 0.2s;
}

.contact-email:hover {
  color: var(--amber);
}

.contact-right {
  display: flex;
  gap: 24px;
  align-items: center;
}

.social-link {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.social-link:hover {
  color: var(--ink);
  border-bottom-color: var(--amber);
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.12s; }
.fade-in:nth-child(3) { animation-delay: 0.19s; }
.fade-in:nth-child(4) { animation-delay: 0.26s; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 14px 20px; }
  nav { gap: 16px; margin-left: 0; }

  .hero {
    grid-template-columns: 1fr;
    padding: 20px 20px 40px;
    gap: 32px;
  }

  .hero-right { align-items: flex-start; }
  .hero-art { height: 120px; }

  #spaces .spaces-grid { grid-template-columns: 1fr; }
  .space-item { border-right: none; border-bottom: 1px solid var(--bone); }
  .space-item:last-child { border-bottom: none; }

  #rates .rates-grid { grid-template-columns: 1fr; }
  .rate-block { border-right: none; }
  .rate-block:nth-child(3) { border-bottom: 1px solid var(--bone); }

  #about .about-inner { grid-template-columns: 1fr; }
  .about-text { border-right: none; border-bottom: 1px solid var(--bone); padding: 32px 20px; }
  .about-aside { padding: 32px 20px; }

  #gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:nth-child(2) { border-right: none; }
  .gallery-item:nth-child(3) { border-right: 1px solid var(--bone); }
  .gallery-item:last-child { border-right: none; }

  .section-header { padding: 12px 20px; }
  .contact-strip { padding: 24px 20px; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .logo { font-size: 18px; }
  nav { gap: 12px; }
  nav a { font-size: 10px; }
  .hero-left h1 { font-size: 40px; }
  #gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .rate-block { padding: 24px 20px; }
  .contact-right { flex-wrap: wrap; gap: 16px; }
}
