:root {
  --bg: #f6efe6;
  --bg-accent: #eee0cf;
  --text: #2e251f;
  --muted: #5f5147;
  --card: #fffaf4;
  --border: rgba(94, 72, 56, 0.18);
  --accent: #b1643c;
  --accent-soft: rgba(177, 100, 60, 0.18);
  --shadow: 0 20px 46px rgba(82, 60, 44, 0.16);
  --glow: rgba(255, 214, 170, 0.55);
}

* { box-sizing: border-box; }


body {
  margin: 0;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  background: radial-gradient(1100px 520px at 12% -10%, #fff4e6 0%, transparent 60%),
    radial-gradient(900px 520px at 88% 12%, #efe1d0 0%, transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-accent));
  color: var(--text);
  line-height: 1.6;
}

body::selection {
  background: var(--accent-soft);
}

#cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, var(--glow), rgba(255, 228, 200, 0));
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: 1;
}

body:hover #cursor-glow {
  opacity: 0.85;
}

@media (hover: none) and (pointer: coarse) {
  #cursor-glow {
    display: none;
  }
}

#last-updated,
.fineprint {
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
}

#last-updated {
  color: rgba(66, 50, 40, 0.6);
  font-size: 0.8rem;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 18px 48px;
  position: relative;
  z-index: 2;
}

.topbar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(255, 249, 241, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 3;
}

.brand {
  font-family: "Cormorant Garamond", "Iowan Old Style", serif;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(82, 60, 44, 0.12);
  border-color: rgba(140, 96, 70, 0.25);
}

.lang-btn img {
  width: 22px;
  height: 22px;
  display: block;
  border-radius: 4px;
}

.lang-btn.active {
  outline: 2px solid rgba(140, 96, 70, 0.4);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
}

h1 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", "Iowan Old Style", serif;
  font-size: clamp(2.1rem, 2.8vw, 2.8rem);
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
}

.hero-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.hero-photos img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #eee;
}

.content {
  margin-top: 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.content h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-family: "Cormorant Garamond", "Iowan Old Style", serif;
}

.content h3 {
  font-family: "Cormorant Garamond", "Iowan Old Style", serif;
}

.content h1 {
  margin: 18px 0 10px;
  font-family: "Cormorant Garamond", "Iowan Old Style", serif;
  font-size: clamp(2rem, 2.6vw, 2.5rem);
  letter-spacing: -0.01em;
}

.content h2 {
  font-size: clamp(1.35rem, 1.8vw, 1.6rem);
}

.content h3 {
  font-size: 1.15rem;
}

.content p {
  margin: 10px 0;
}

.content hr {
  border: 0;
  height: 1px;
  margin: 24px 0;
  background: linear-gradient(
    90deg,
    rgba(94, 72, 56, 0) 0%,
    rgba(94, 72, 56, 0.28) 20%,
    rgba(94, 72, 56, 0.28) 80%,
    rgba(94, 72, 56, 0) 100%
  );
}

.footer {
  margin-top: 18px;
}

.contact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.fineprint {
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, color 200ms ease;
}

a:hover {
  border-bottom-color: var(--accent);
  color: #a85b39;
}

.contact-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 8px 14px;
  cursor: pointer;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--text);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.contact-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(82, 60, 44, 0.12);
  border-color: rgba(140, 96, 70, 0.25);
}

.contact-form {
  margin-top: 12px;
  display: grid;
  gap: 12px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 400ms ease, opacity 300ms ease;
}

.contact-form.is-open {
  max-height: 420px;
  opacity: 1;
}

.contact-form.is-sent {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field input,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  font-size: 0.98rem;
  background: #fffdf9;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(60, 44, 32, 0.08);
}

.field textarea {
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

.submit-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-family: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", serif;
  color: var(--text);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(82, 60, 44, 0.12);
  border-color: rgba(140, 96, 70, 0.25);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 238, 218, 0.8);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms ease, background 220ms ease;
}

.submit-icon svg {
  width: 18px;
  height: 18px;
  color: #8f5638;
  transition: transform 220ms ease, color 220ms ease;
}

.submit-btn:hover .submit-icon {
  transform: translateY(-1px);
  background: rgba(255, 225, 193, 0.9);
}

.submit-btn:hover .submit-icon svg {
  transform: translateX(2px) rotate(-4deg);
  color: #a45e3c;
}

.contact-success {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------------- Gallery ---------------- */

.gallery {
  margin-top: 18px;
}

.gallery-viewport {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  touch-action: pan-y; /* allow vertical scroll + horizontal swipe */
  box-shadow: var(--shadow);
  position: relative;
}

.gallery-track {
  display: flex;
  width: 100%;
  transition: transform 220ms ease;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

@media (max-width: 780px) {
  .gallery-slide { height: 300px; }
}

.gallery-slide img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(62, 44, 32, 0.2);
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.3;
  background: rgba(62, 44, 32, 0.7);
  color: #fffaf2;
  text-align: center;
  opacity: 1; /* visible by default (mobile) */
  pointer-events: none;
  z-index: 2;
}

/* Only on devices that actually support hover: hide until hover */
@media (hover: hover) and (pointer: fine) {
  .gallery-caption {
    opacity: 0;
    transition: opacity 150ms ease;
  }

  .gallery-slide:hover .gallery-caption {
    opacity: 1;
  }
}

.gallery-controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.gallery-btn {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  color: var(--text);
}

.gallery-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(82, 60, 44, 0.12);
  border-color: rgba(140, 96, 70, 0.25);
}

.gallery-dots {
  display: flex;
  gap: 6px;
}

.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 250, 244, 0.85);
}

.gallery-dot.active {
  background: rgba(116, 78, 54, 0.75);
}

/* ---------------- Soft reveals ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 800ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }

  #cursor-glow {
    display: none;
  }
}
