:root {
  color-scheme: light dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #0d0d0f;
  color: #f4f1e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgb(190 151 65 / 18%), transparent 32rem),
    #0d0d0f;
}

main {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.brand {
  color: #d7b45e;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 8px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  margin-top: 32px;
  color: #e5c978;
  font-size: 1.15rem;
}

p,
li,
label,
input,
select,
textarea,
button {
  font-size: 1rem;
  line-height: 1.65;
}

p,
li {
  color: #d2cec5;
}

a {
  color: #f0d988;
}

.meta,
.hint {
  color: #9c988f;
}

.card {
  margin-top: 28px;
  padding: clamp(20px, 5vw, 36px);
  border: 1px solid rgb(229 201 120 / 22%);
  border-radius: 24px;
  background: rgb(24 24 28 / 88%);
  box-shadow: 0 24px 80px rgb(0 0 0 / 32%);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

form {
  display: grid;
  gap: 20px;
}

label {
  display: grid;
  gap: 8px;
  color: #f4f1e8;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #4a463e;
  border-radius: 12px;
  background: #111114;
  color: #f4f1e8;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.confirmation {
  display: flex;
  grid-template-columns: none;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.confirmation input {
  width: auto;
  margin-top: 7px;
}

button {
  width: fit-content;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: #d7b45e;
  color: #14120e;
  font-weight: 900;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

#result {
  min-height: 1.6em;
  margin: 0;
  font-weight: 700;
}

#result[data-state="error"] {
  color: #ff8d8d;
}

#result[data-state="success"] {
  color: #8de6a4;
}

@media (prefers-color-scheme: light) {
  :root {
    background: #f6f2e9;
    color: #181612;
  }

  body {
    background:
      radial-gradient(circle at top left, rgb(190 151 65 / 20%), transparent 32rem),
      #f6f2e9;
  }

  .card {
    background: rgb(255 255 255 / 90%);
    box-shadow: 0 24px 80px rgb(55 42 20 / 10%);
  }

  p,
  li {
    color: #464138;
  }

  label {
    color: #181612;
  }

  input,
  select,
  textarea {
    border-color: #cfc7b8;
    background: #fff;
    color: #181612;
  }
}
