:root {
  --bg-deep: #0f1c18;
  --bg-mid: #1a3229;
  --ink: #e8f0ea;
  --muted: #9db5a8;
  --accent: #c4a35a;
  --accent-hover: #d4b56e;
  --line: rgba(232, 240, 234, 0.16);
  --danger: #e07a6a;
  --ok: #6fbf8a;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(196, 163, 90, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 80%, rgba(61, 120, 96, 0.35), transparent 50%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 45%, #0c1612 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.04) translate(-1%, 1%); }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) 1.25rem 4rem;
  animation: rise 0.7s ease-out both;
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.brand h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--accent);
}

.lead {
  margin: 0 0 2.25rem;
  color: var(--muted);
  max-width: 32rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(15, 28, 24, 0.55);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(15, 28, 24, 0.8);
}

.contact-form button {
  margin-top: 0.5rem;
  padding: 0.85rem 1.25rem;
  border: none;
  background: var(--accent);
  color: #1a1508;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.contact-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.contact-form button:active:not(:disabled) {
  transform: translateY(1px);
}

.contact-form button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.status {
  min-height: 1.4rem;
  margin: 0;
  font-size: 0.95rem;
}

.status.ok { color: var(--ok); }
.status.err { color: var(--danger); }

.result {
  margin-top: 1.5rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
  overflow-x: auto;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: pre-wrap;
  animation: rise 0.4s ease-out both;
}

@media (max-width: 480px) {
  .contact-form button {
    width: 100%;
  }
}
