:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --ink: #202124;
  --paper: #f5f1eb;
  --white: #fffdf9;
  --line: #c8c3bc;
  --muted: #67645f;
  --coral: #a8412b;
  --coral-dark: #7d2d1f;
  --blue: #2f6f85;
  --focus: #176b87;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
textarea {
  font: inherit;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--paper);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 620px);
  min-height: 100vh;
}

.brand-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(32px, 6vw, 88px);
  background-image: url("/assets/boij-background.png");
  background-position: right center;
  background-size: cover;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-panel h1 {
  max-width: 9ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: 0;
}

.intro {
  max-width: 34rem;
  margin: 28px 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.5;
}

.brand-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 72px;
}

.site-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(190px, 100%);
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.site-link--fensi {
  background: var(--white);
}

.site-link--deved {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.site-link:hover {
  transform: translateY(-2px);
}

.site-link--fensi:hover {
  color: var(--white);
  background: var(--coral-dark);
}

.site-link--deved:hover {
  background: var(--blue);
}

.contact-panel {
  align-self: stretch;
  padding: clamp(32px, 5vw, 72px);
  border-left: 1px solid rgb(32 33 36 / 18%);
  background: rgb(255 253 249 / 92%);
  backdrop-filter: blur(18px);
}

.contact-heading {
  max-width: 34rem;
  margin-bottom: 36px;
}

.contact-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.contact-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

#contact-form {
  display: grid;
  gap: 24px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 800;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: none;
  color: var(--ink);
  background: rgb(255 255 255 / 68%);
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

.field input {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 148px;
  padding: 13px 14px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--focus);
  background: var(--white);
  box-shadow: 0 0 0 3px rgb(23 107 135 / 14%);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.privacy-note {
  max-width: 22rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.submit-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 156px;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--coral);
  border-radius: 4px;
  cursor: pointer;
  color: var(--white);
  background: var(--coral);
  font-weight: 800;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.submit-button:hover:not(:disabled) {
  background: var(--coral-dark);
  transform: translateY(-2px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.64;
}

.site-link:focus-visible,
.submit-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.form-status {
  min-height: 24px;
  margin: -8px 0 0;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.form-status[data-state="success"] {
  color: #286346;
}

.form-status[data-state="error"] {
  color: #9a2e22;
}

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

@media (max-width: 920px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    min-height: min(54vh, 520px);
    padding: 30px 24px 36px;
    background-position: 45% center;
  }

  .brand-panel h1 {
    font-size: clamp(4.5rem, 22vw, 7.4rem);
  }

  .intro {
    max-width: 17rem;
    margin-top: 20px;
  }

  .brand-links {
    padding-top: 48px;
  }

  .contact-panel {
    padding: 42px 24px 52px;
    border-top: 1px solid rgb(32 33 36 / 18%);
    border-left: 0;
    background: var(--white);
    backdrop-filter: none;
  }
}

@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .brand-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-link {
    width: 100%;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .submit-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
