:root {
  --ink: #1a1410;
  --cream: #f7efe4;
  --gold: #c9a45c;
  --gold-soft: #e8d4a8;
  --forest: #1e3a2f;
  --forest-deep: #0f221c;
  --mist: rgba(247, 239, 228, 0.12);
  --glow: rgba(201, 164, 92, 0.35);
  --danger: #c45c4a;
  --ok: #6f9e7a;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--forest-deep);
  line-height: 1.5;
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(201, 164, 92, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 80%, rgba(30, 58, 47, 0.9), transparent 50%),
    radial-gradient(ellipse 50% 45% at 10% 70%, rgba(15, 34, 28, 0.95), transparent 45%),
    linear-gradient(165deg, #163028 0%, #0f221c 45%, #1a120e 100%);
  animation: breathe 12s ease-in-out infinite alternate;
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  opacity: 0.35;
  pointer-events: none;
}

@keyframes breathe {
  from {
    filter: brightness(1);
  }
  to {
    filter: brightness(1.06);
  }
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  max-width: 42rem;
  margin: 0 auto;
}

.brand {
  margin-bottom: clamp(1.75rem, 5vw, 2.75rem);
  animation: rise 0.9s ease-out both;
}

.brand__mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--gold-soft);
  text-shadow: 0 0 40px var(--glow);
}

.brand__tag {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 239, 228, 0.55);
}

.hero {
  animation: rise 1s ease-out 0.15s both;
}

.hero h1 {
  margin: 0 0 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 5.5vw, 2.35rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.2;
  color: var(--cream);
}

.lead {
  margin: 0;
  font-weight: 300;
  font-size: 0.98rem;
  color: rgba(247, 239, 228, 0.72);
  max-width: 34rem;
}

.lead a,
.lead a:link,
.lead a:visited {
  color: rgba(247, 239, 228, 0.62);
  text-decoration: underline;
  text-decoration-color: rgba(247, 239, 228, 0.3);
  text-underline-offset: 0.18em;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.lead a:hover,
.lead a:focus-visible {
  color: rgba(247, 239, 228, 0.85);
  text-decoration-color: rgba(247, 239, 228, 0.5);
}

.lead a:active {
  color: rgba(247, 239, 228, 0.7);
}

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

.upload {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field__label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 239, 228, 0.55);
}

.field__label em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

.field input {
  appearance: none;
  width: 100%;
  padding: 0.95rem 1.1rem;
  border: 1px solid rgba(232, 212, 168, 0.28);
  border-radius: 2px;
  background: rgba(15, 34, 28, 0.55);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input::placeholder {
  color: rgba(247, 239, 228, 0.35);
}

.field input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.18);
}

.actions {
  margin-top: 0.25rem;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.05rem 1.6rem;
  border-radius: 2px;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  width: 100%;
  background: linear-gradient(135deg, var(--gold) 0%, #a8843f 100%);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(201, 164, 92, 0.25);
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 100%);
}

.btn--send {
  width: 100%;
  background: transparent;
  color: var(--gold-soft);
  border: 1px solid rgba(232, 212, 168, 0.45);
}

.btn--send:hover:not(:disabled) {
  background: var(--mist);
}

.file-summary {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(247, 239, 228, 0.7);
}

.preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 0.55rem;
}

.preview li {
  aspect-ratio: 1;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(232, 212, 168, 0.15);
  animation: rise 0.4s ease-out both;
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

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

.status--err {
  color: #e8a598;
}

.status--busy {
  color: var(--gold-soft);
}

@media (min-width: 720px) {
  .stage {
    max-width: 38rem;
  }
}
