@import url("https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap");

:root {
  --charcoal: #1f1f1c;
  --white: #fffaf1;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  background: #d5d0c0;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-image: url("../assets/basin-background-original.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.2) 0%, rgba(255, 250, 241, 0) 28%),
    linear-gradient(180deg, rgba(31, 31, 28, 0) 52%, rgba(31, 31, 28, 0.16) 100%);
}

.site-header {
  position: absolute;
  top: 56px;
  right: 72px;
  left: 56px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  width: min-content;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-align: center;
  color: var(--charcoal);
}

.brand-mark {
  width: 74px;
  height: auto;
  margin-bottom: 12px;
}

.brand-word {
  display: block;
  padding-left: 0.28em;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  font-weight: 400;
  letter-spacing: 0.28em;
}

.brand-number {
  display: block;
  margin-top: 8px;
  padding-left: 0.35em;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.contact-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 13px 19px 12px;
  border: 1px solid rgba(31, 31, 28, 0.78);
  background: rgba(255, 250, 241, 0.12);
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}

.contact-button:hover,
.contact-button:focus-visible {
  border-color: var(--charcoal);
  background: rgba(255, 250, 241, 0.24);
}

.contact-button:focus-visible {
  outline: 2px solid rgba(31, 31, 28, 0.8);
  outline-offset: 4px;
}

.hero-title {
  place-self: center;
  max-width: min(88vw, 1040px);
  margin: -4vh 0 0;
  padding: 0 24px;
  color: var(--white);
  font-family: "Great Vibes", "Snell Roundhand", "Brush Script MT", cursive;
  font-size: clamp(42px, 5vw, 86px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-align: center;
  text-shadow:
    0 2px 10px rgba(31, 31, 28, 0.48),
    0 1px 2px rgba(31, 31, 28, 0.36);
}

.site-footer {
  position: absolute;
  right: 24px;
  bottom: 18px;
  left: 24px;
  z-index: 2;
  color: rgba(255, 250, 241, 0.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 3px rgba(31, 31, 28, 0.45);
}

.contact-panel {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 28px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.contact-panel:target {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.contact-panel__scrim {
  position: absolute;
  inset: 0;
  background: rgba(31, 31, 28, 0.44);
  backdrop-filter: blur(3px);
}

.contact-panel__card {
  position: relative;
  width: min(100%, 480px);
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 34px;
  border: 1px solid rgba(31, 31, 28, 0.22);
  background: rgba(255, 250, 241, 0.94);
  box-shadow: 0 24px 70px rgba(31, 31, 28, 0.28);
}

.contact-panel__close {
  position: absolute;
  top: 16px;
  right: 18px;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  font-family: Arial, sans-serif;
  font-size: 28px;
  line-height: 1;
}

.contact-panel__card h2 {
  margin: 0 36px 10px 0;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel__card p {
  margin: 0 0 24px;
  color: rgba(31, 31, 28, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-field label span {
  color: rgba(31, 31, 28, 0.58);
  letter-spacing: 0.08em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(31, 31, 28, 0.36);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.5);
  color: var(--charcoal);
  font: 16px/1.35 Georgia, "Times New Roman", serif;
}

.form-field input {
  min-height: 44px;
  padding: 10px 12px;
}

.form-field textarea {
  min-height: 116px;
  resize: vertical;
  padding: 11px 12px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid rgba(31, 31, 28, 0.64);
  outline-offset: 2px;
}

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

.submit-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 13px 22px 12px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:hover,
.submit-button:focus-visible {
  background: rgba(31, 31, 28, 0.88);
}

.contact-panel__fallback {
  margin: 18px 0 0;
  font-size: 13px;
}

.contact-panel__fallback a {
  border-bottom: 1px solid currentColor;
}

.status-page {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(rgba(255, 250, 241, 0.84), rgba(255, 250, 241, 0.84)),
    url("../assets/basin-background-original.png") center center / cover no-repeat;
}

.status-card {
  width: min(100%, 520px);
  padding: 38px;
  border: 1px solid rgba(31, 31, 28, 0.22);
  background: rgba(255, 250, 241, 0.94);
  text-align: center;
  box-shadow: 0 24px 70px rgba(31, 31, 28, 0.18);
}

.status-card img {
  width: 84px;
  height: auto;
  margin-bottom: 18px;
}

.status-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card p {
  margin: 0 auto 24px;
  max-width: 36em;
  color: rgba(31, 31, 28, 0.78);
  font-size: 16px;
  line-height: 1.55;
}

.status-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px 12px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-email {
  display: block;
  width: fit-content;
  margin: 18px auto 0;
  border-bottom: 1px solid currentColor;
  color: rgba(31, 31, 28, 0.78);
  font-size: 14px;
}

@media (max-width: 768px) {
  .site-header {
    top: 24px;
    right: 24px;
    left: 24px;
    gap: 18px;
  }

  .brand-mark {
    width: 52px;
    margin-bottom: 9px;
  }

  .brand-word {
    font-size: 30px;
    letter-spacing: 0.28em;
  }

  .brand-number {
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.35em;
  }

  .contact-button {
    min-height: 36px;
    padding: 11px 12px 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .hero-title {
    max-width: 92vw;
    margin-top: -2vh;
    font-size: clamp(32px, 10vw, 56px);
    line-height: 1.12;
  }

  .contact-panel {
    padding: 18px;
  }

  .contact-panel__card {
    max-height: calc(100vh - 36px);
    padding: 28px 22px 24px;
  }

  .contact-panel__card h2 {
    font-size: 22px;
  }

  .status-card {
    padding: 30px 22px;
  }
}

@media (max-width: 420px) {
  .site-header {
    align-items: flex-start;
  }

  .contact-button {
    max-width: 116px;
    text-align: center;
  }

  .hero-title {
    padding: 0 18px;
  }

  .site-footer {
    bottom: 12px;
    font-size: 10px;
  }
}
