@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

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

:root {
  --text: #2F1600;
  --bg: #FFF1D7;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hoefler Text', 'Playfair Display', 'Georgia', serif;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 40px 0 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.logo {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

.contact {
  margin-top: -10px;
  padding-left: 10px;
}

.contact a {
  font-family: 'Hoefler Text', 'Playfair Display', 'Georgia', serif;
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.5;
  font-style: italic;
  transition: opacity 0.2s ease;
}

.contact a:hover {
  opacity: 0.6;
}

.main-content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  width: 100%;
}

.hamlet-image {
  flex: 0 0 55%;
  max-width: 55%;
}

.hamlet-image img {
  width: 100%;
  height: auto;
  display: block;
}

.nav {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding-bottom: 60px;
  padding-left: 20px;
}

.nav a,
.nav button {
  font-family: 'Hoefler Text', 'Playfair Display', 'Georgia', serif;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  display: block;
  line-height: 1.3;
  transition: opacity 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.nav a:hover,
.nav button:hover {
  opacity: 0.6;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(47, 22, 0, 0.5);
  z-index: 100;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg);
  max-width: 560px;
  width: 90%;
  padding: 48px 44px;
  position: relative;
  border: 2px solid var(--text);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-family: 'Hoefler Text', 'Playfair Display', 'Georgia', serif;
  font-size: 28px;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.modal-close:hover {
  opacity: 0.5;
}

.modal-logo {
  height: 48px;
  width: auto;
  display: inline;
  vertical-align: baseline;
  margin-bottom: -6px;
}

.modal p {
  font-family: 'Hoefler Text', 'Playfair Display', 'Georgia', serif;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--bg);
  font-family: 'Hoefler Text', 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-size: 16px;
  padding: 12px 24px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    padding: 20px 12px 0 12px;
  }

  .logo {
    max-width: 100%;
  }

  .contact {
    margin-top: 4px;
    padding-left: 6px;
  }

  .contact a {
    font-size: clamp(18px, 4.5vw, 26px);
    line-height: 1.6;
  }

  .main-content {
    align-items: flex-end;
  }

  .hamlet-image {
    flex: 0 0 52%;
    max-width: 52%;
  }

  .nav {
    flex: 0 0 46%;
    padding-bottom: 14px;
    padding-left: 8px;
  }

  .nav a,
  .nav button {
    font-size: clamp(30px, 9vw, 52px);
    line-height: 1.25;
  }

  .modal {
    padding: 32px 24px;
  }

  .modal-logo {
    height: 34px;
  }

  .modal p {
    font-size: 16px;
  }
}
