:root {
  color-scheme: dark;
  --background: #070807;
  --text: #f6f2ea;
  --muted: rgba(246, 242, 234, 0.76);
  --soft: rgba(246, 242, 234, 0.58);
  --line: rgba(246, 242, 234, 0.34);
  --field: rgba(0, 0, 0, 0.28);
  --field-focus: rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.page-shell {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.64)),
    url("../img/real-and-lee-logo.07774939941e.png") center 20% / min(92vw, 760px) auto
      no-repeat,
    var(--background);
}

.landing-panel {
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  justify-items: center;
  gap: clamp(24px, 5vh, 44px);
  padding: 34px 20px 22px;
}

.site-address {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
}

.hero-copy {
  align-self: end;
  display: grid;
  place-items: center;
  min-height: 22vh;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 7vw, 4.8rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

.contact-form {
  width: min(100%, 560px);
  display: grid;
  gap: 14px;
}

.contact-form h2 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.contact-form label {
  display: block;
}

.contact-form span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  outline: none;
  padding: 14px 16px;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--soft);
  opacity: 1;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--field-focus);
  border-color: var(--text);
}

.contact-form button {
  min-height: 52px;
  border: 1px solid var(--text);
  border-radius: 2px;
  background: var(--text);
  color: #111411;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.contact-form button:hover,
.contact-form button:focus {
  background: transparent;
  color: var(--text);
}

.form-alert {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 0.94rem;
  text-align: center;
}

.form-alert.success {
  background: rgba(87, 130, 108, 0.3);
}

.form-alert.error {
  background: rgba(141, 74, 74, 0.32);
}

.footer-note {
  margin: 0;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
}

@media (max-width: 520px) {
  .page-shell {
    background:
      linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.7)),
      url("../img/real-and-lee-logo.07774939941e.png") center 18% / min(118vw, 500px) auto
        no-repeat,
      var(--background);
  }

  .landing-panel {
    gap: 24px;
    padding: 28px 18px 18px;
  }

  .site-address {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
  }
}
