:root {
  --apple-red: #c53b28;
  --leaf-green: #2f7f56;
  --seed-brown: #3c281d;
  --cream: #fff9ef;
  --ink: #1e1712;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 10%, #ffd8b8 0%, #ffd8b800 34%),
    radial-gradient(circle at 84% 86%, #c9edc7 0%, #c9edc700 42%),
    linear-gradient(145deg, var(--cream) 0%, #f5efdf 100%);
}

body.modal-open {
  overflow: hidden;
}

.landing {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem 1rem;
}

.shell {
  width: min(760px, 100%);
}

.language-dock {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.language-switch {
  display: inline-flex;
  gap: 0.25rem;
  background: #fff7ebcc;
  border: 1px solid #e7d6bf;
  border-radius: 999px;
  padding: 0.2rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #5b4e46;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  padding: 0.32rem 0.62rem;
  cursor: pointer;
}

.lang-btn.is-active {
  background: #fff;
  color: var(--seed-brown);
  box-shadow: 0 1px 6px -4px #0009;
}

.hero {
  width: 100%;
  padding: 2rem 2rem 2.2rem;
  border-radius: 22px;
  background: linear-gradient(160deg, #fffdf8 0%, #fff3e7 100%);
  border: 1px solid #e8d6c5;
  box-shadow:
    0 24px 60px -40px #4f2f1e88,
    inset 0 0 0 1px #ffffff80;
}

.kicker {
  margin: 0 0 0.9rem;
  color: var(--leaf-green);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

h1 {
  margin: 0 0 1rem;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 3.05rem);
  line-height: 1.08;
  color: var(--seed-brown);
}

.lead {
  margin: 0;
  font-size: clamp(0.98rem, 1.7vw, 1.1rem);
  line-height: 1.55;
  max-width: none;
}

.contact-button {
  display: inline-block;
  margin-top: 1.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(140deg, #b74634 0%, #8f2f23 100%);
  border: 1px solid #8f2f23;
  border-radius: 999px;
  padding: 0.66rem 1rem 0.7rem;
  box-shadow:
    0 10px 24px -16px #8f2f2399,
    inset 0 1px 0 #ffffff40;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.contact-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px -16px #8f2f23b3,
    inset 0 1px 0 #ffffff55;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.contact-modal[hidden] {
  display: none !important;
}

.contact-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 27, 21, 0.52);
}

.contact-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #e8d6c5;
  background: linear-gradient(160deg, #fffdf8 0%, #fff3e7 100%);
  box-shadow:
    0 28px 60px -38px #2a1a12cc,
    inset 0 0 0 1px #ffffff80;
  padding: 1.4rem 1.2rem 1.2rem;
}

.modal-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  border: 1px solid #d9c7b1;
  background: #fff8ef;
  color: #654f42;
  border-radius: 999px;
  width: 1.8rem;
  height: 1.8rem;
  line-height: 1;
  font-size: 1.2rem;
  cursor: pointer;
}

.contact-panel h2 {
  margin: 0;
  padding-right: 2rem;
  font-family: "Fraunces", serif;
  color: var(--seed-brown);
}

.contact-intro {
  margin: 0.5rem 0 1.1rem;
  color: #5b4e46;
  font-size: 0.95rem;
}

#contact-form {
  display: grid;
  gap: 0.82rem;
}

.field {
  display: grid;
  gap: 0.36rem;
  font-size: 0.88rem;
  color: #4e3f36;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d7c8b7;
  background: #fffdf8;
  border-radius: 10px;
  padding: 0.62rem 0.68rem;
  font: inherit;
  color: var(--ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid #af6a59;
  outline-offset: 1px;
}

.form-submit {
  justify-self: start;
  border: 1px solid #8f2f23;
  background: linear-gradient(140deg, #b74634 0%, #8f2f23 100%);
  color: #fff;
  border-radius: 999px;
  padding: 0.58rem 0.95rem 0.62rem;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.form-status {
  min-height: 1.1rem;
  margin: 0;
  font-size: 0.84rem;
  color: #5b4e46;
}

.meta {
  padding: 1rem 1.5rem 1.6rem;
  text-align: center;
  color: #5b4e46;
  font-size: 0.78rem;
}

.meta p {
  margin: 0.2rem 0;
}

@media (min-width: 700px) {
  h1,
  .lead {
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  .landing {
    align-items: flex-start;
    padding-top: 5.25rem;
  }

  .hero {
    padding: 1.5rem 1.2rem 1.6rem;
    border-radius: 16px;
  }

  .contact-panel {
    padding: 1.2rem 0.92rem 1rem;
  }
}
