:root {
  --ink: #1d1a17;
  --muted: #6b6358;
  --paper: #faf7f2;
  --tint: #f1ebe1;
  --accent: #c73e2c;
  --line: #e3dbcf;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(29, 26, 23, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, .brand-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; place-items: center; }
.brand-name { font-size: 1.2rem; }

.nav { display: flex; gap: 20px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); }

/* Hero */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.82);
}
.hero-bg.has-image { animation: fade 1s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.hero-content { position: relative; padding: 40px 24px; max-width: 620px; color: #fff; }
.hero-content h1 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin: 0 0 16px; }
.hero-content p { font-size: 1.1rem; max-width: 46ch; margin: 0 0 24px; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.btn:hover { background: #a83222; }

/* Sections */
.section { padding: 64px 24px; max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; }
.lede { color: var(--muted); margin: 0 0 32px; }
.section--tint { background: var(--tint); }

/* Category cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ddd;
  color: #fff;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-4px); }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card figcaption {
  position: relative;
  margin: 0;
  padding: 18px;
  width: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
}
.card--loading { display: grid; place-items: center; color: var(--muted); font-size: 0.95rem; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { padding: 10px 12px; color: var(--muted); font-size: 0.9rem; }
.gallery-loading { grid-column: 1 / -1; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-info p { margin: 0 0 18px; }
.contact-info a { color: var(--accent); text-decoration: none; }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 0.9rem; }
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-msg { font-size: 0.9rem; }

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* Mobile nav */
@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
    gap: 14px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
}
