:root {
  --bg:     rgb(216, 216, 216);
  --ink:    #111111;
  --muted:  #666660;
  --border: #aaaaaa;
  --red:    #c0392b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
nav {
  padding: 2rem 3rem;
  display: flex;
  align-items: baseline;
  border-bottom: 0px solid var(--border);
}

.nav-logo {
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  font-size: 36px;
  letter-spacing: 0px;
  text-decoration: none;
  color: var(--ink);
}

/* Main */
main {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  padding: 5rem 3rem 6rem;
  gap: 6rem;
}

/* Left */
.col-left { display: flex; flex-direction: column; padding-top: 0.5rem; }

.label-tag {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

h1 {
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 2.5rem;
}

h1 em { font-style: normal; color: var(--muted); }

.description {
  font-size: 15px;
  line-height: 26px;
  color: var(--muted);
  font-weight: 300;
  max-width: 30ch;
  margin-bottom: 3.5rem;
}

.contact-direct {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: auto;
}

.contact-direct p {
  font-size: 12px;
  letter-spacing: 0px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 0.6rem;
}

.contact-direct a {
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.contact-direct a:hover { border-color: var(--ink); }

/* Form */
form { display: flex; flex-direction: column; }

.field {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 0;
  position: relative;
}

.field:last-of-type { border-bottom: 1px solid var(--border); }

.field-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.6rem;
}

label {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  transition: color 0.2s;
}

.field:focus-within label { color: var(--ink); }

.badge {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 300;
}

.badge.req { border-color: var(--ink); color: var(--ink); }

input, textarea {
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ink);
  width: 100%;
  padding: 0;
  resize: none;
  caret-color: var(--ink);
}

input::placeholder, textarea::placeholder { color: var(--border); }
textarea { min-height: 100px; line-height: 1.8; }

.message-footer { display: flex; justify-content: flex-end; margin-top: 0.8rem; }

.word-count {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 300;
  transition: color 0.2s;
}
.word-count.over { color: var(--red); }

.error-hint {
  font-size: 12px;
  color: var(--red);
  font-weight: 300;
  margin-top: 0.35rem;
  display: none;
}

/* Submit */
.submit-row {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

button[type="submit"] {
  background: var(--ink);
  color: var(--bg);
  border: none;
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2.4rem;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover { background: var(--muted); }
button[type="submit"]:disabled { background: var(--border); cursor: not-allowed; }

.submit-note {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 20px;
}

.server-error {
  display: none;
  margin-top: 1.2rem;
  font-size: 0.7rem;
  font-weight: 300;
  color: var(--red);
  border-top: 1px solid var(--red);
  padding-top: 0.8rem;
}

/* Thank you */
.thank-you {
  display: none;
  flex-direction: column;
  padding-top: 0.5rem;
}

.thank-you .ty-label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.thank-you h2 {
  font-family: 'Roboto', sans-serif;
  font-weight: 100;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 2rem;
}

.thank-you h2 em { font-style: normal; color: var(--muted); }

.thank-you p {
  font-size: 15px;
  line-height: 26px;
  color: var(--muted);
  font-weight: 300;
  max-width: 32ch;
  margin-bottom: 3rem;
}

.thank-you a {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 0px solid var(--ink);
  padding-bottom: 1px;
}

/* Footer */
footer {
  border-top: 0px solid var(--border);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.65);
}

footer span {
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 300;
  color: var(--muted);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.col-left { animation: fadeUp 0.7s ease both; }
.col-right { animation: fadeUp 0.7s ease both 0.1s; }

@media (max-width: 720px) {
  nav { padding: 1.5rem; }
  main { grid-template-columns: 1fr; gap: 3rem; padding: 3rem 1.5rem 5rem; }
  .contact-direct { margin-top: 0; }
  footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
}
