:root {
  --color-bg: #1b231c;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.85);
  --color-border: rgba(255, 255, 255, 0.25);
  --color-border-focus: rgba(255, 255, 255, 0.6);
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-serif);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */

.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.container {
  max-width: 520px;
  width: 100%;
  text-align: center;
}

/* Logo */

.logo {
  margin-bottom: 2.5rem;
}

.logo img {
  width: 200px;
  height: auto;
  display: inline-block;
}

/* Typography */

.tagline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-wrap: balance;
  margin-bottom: 2.5rem;
}

/* Form */

.form {
  margin-bottom: 3rem;
}

.form-input {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 0.875rem 1.25rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease, opacity 0.3s ease, max-height 0.3s ease 0.15s, margin-bottom 0.3s ease 0.15s, padding 0.3s ease 0.15s;
  text-align: center;
  margin-bottom: 1rem;
  max-height: 150px;
  overflow: hidden;
}

.form-input::placeholder {
  color: var(--color-text-muted);
  font-style: italic;
}

.form-input:focus {
  border-color: var(--color-border-focus);
}

.form-button {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-text);
  border: 1px solid var(--color-text);
  padding: 0.9375rem 2rem;
  width: 100%;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease,
    max-height 0.3s ease 0.15s,
    margin-bottom 0.3s ease 0.15s,
    padding 0.3s ease 0.15s;
  margin-bottom: 1rem;
  max-height: 150px;
  overflow: hidden;
}

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

.form-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Honeypot - visually hidden */
.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* Privacy consent */

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
  transition: opacity 0.3s ease, max-height 0.3s ease 0.15s;
  max-height: 150px;
  overflow: hidden;
}

.form-consent input[type="checkbox"] {
  margin-top: 0.3em;
  accent-color: var(--color-text);
  flex-shrink: 0;
}

.form-consent a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent a:hover {
  color: var(--color-text-muted);
}

/* Form feedback */

.form-message {
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  min-height: 1.25rem;
}

.form-message.error {
  color: #e8a0a0;
}

/* Morph animation: fade + collapse form elements */
.form.morph .form-input {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
}

.form.morph .form-button {
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
}

.form.morph .form-consent,
.form.morph .hp {
  opacity: 0;
  max-height: 0;
}

.form.morph .form-message {
  min-height: 0;
  margin-top: 0;
}

/* Success card */
.form-message.success {
  color: var(--color-bg);
  background: var(--color-text);
  font-size: 1.375rem;
  font-weight: 400;
  line-height: 1.8;
  padding: 2rem 2.5rem;
  letter-spacing: 0.01em;
  animation: successReveal 0.4s ease 0.15s both;
}

.form-message.success strong {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@keyframes successReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Social */

.social {
  margin-bottom: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 1.0625rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--color-text);
}

.social-icon {
  width: 20px;
  height: 20px;
}

/* Footer */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-text);
}

.footer-copy {
  opacity: 0.75;
}

/* Responsive */

@media (min-width: 768px) {
  .mobile-break {
    display: none;
  }

  .logo img {
    width: 240px;
  }

  .tagline {
    font-size: 1.5rem;
  }

  .footer {
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }
}
