:root {
  --bg: #0f1419;
  --gold: #d4a574;
  --bronze: #8b7355;
  --cream: #e8d5b7;
  --text: #f0ece4;
  --text-muted: #a09888;
  --focus: #d4a574;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(ellipse at 50% 30%, rgba(139, 115, 85, 0.06) 0%, transparent 70%);
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gold);
  color: var(--bg);
  font-weight: 400;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
  z-index: 100;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Layout */
.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.content {
  max-width: 520px;
  width: 100%;
  text-align: center;
  animation: fadeIn 1.2s ease-out both;
}

/* Heading */
.foundation-name {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Rule */
.rule {
  border: none;
  height: 1px;
  background: var(--gold);
  width: 4rem;
  margin: 1.5rem auto;
  opacity: 0.6;
}

/* Statement */
.statement {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 440px;
  margin: 0 auto 2.5rem;
}

/* Contact form */
.contact {
  margin-top: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: left;
}

.form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bronze);
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(139, 115, 85, 0.25);
  border-radius: 3px;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 165, 116, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 4.5rem;
}

.contact-form button {
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--bronze);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.8rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
  margin-top: 0.25rem;
}

.contact-form button:hover {
  background: rgba(212, 165, 116, 0.08);
  border-color: var(--gold);
}

.contact-form button:active {
  background: rgba(212, 165, 116, 0.15);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
}

.footer small {
  font-size: 0.7rem;
  color: var(--bronze);
  letter-spacing: 0.04em;
  opacity: 0.6;
}

/* Form feedback */
.form-success {
  color: var(--gold);
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem 0;
}

.form-error {
  color: #c47a7a;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .content {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .skip-link,
  .form-field input,
  .form-field textarea,
  .contact-form button {
    transition: none;
  }
}

/* Mobile adjustments */
@media (max-width: 480px) {
  .container {
    padding: 3rem 1.25rem 2rem;
  }

  .statement {
    font-size: 0.95rem;
  }

  .contact-form button {
    align-self: stretch;
    text-align: center;
  }
}
