:root {
  --cream: #F6E6D5;
  --ivory: #FFF8F2;
  --terracotta: #C86B53;
  --coral: #F46E4E;
  --earth: #8B5C4A;
  --sand: #D8C7B2;
  --ink: #4D3730;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 28px 16px;
  background: var(--ivory);
  color: var(--ink);
  font-family: Montserrat, sans-serif;
}

.card {
  width: min(760px, 100%);
  margin: auto;
  padding: clamp(24px, 5vw, 52px);
  background: #FFFAF6;
  border: 1px solid var(--sand);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(139, 92, 74, 0.10);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--terracotta);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

h1,
h2,
h3 {
  color: var(--earth);
  font-family: "Cormorant Garamond", serif;
  line-height: 1.02;
}

h1,
h2 {
  margin: 0.1em 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.3rem);
}

h2 {
  font-size: 2.2rem;
}

h3 {
  margin: 0.15em 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.intro {
  max-width: 580px;
  margin-bottom: 30px;
  line-height: 1.7;
}

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

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
}

input {
  width: 100%;
  padding: 14px;
  color: var(--ink);
  background: #FFFFFF;
  border: 1px solid var(--sand);
  border-radius: 12px;
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(200, 107, 83, 0.25);
  border-color: var(--terracotta);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 400;
  line-height: 1.5;
}

.consent input {
  width: 18px;
  margin-top: 2px;
}

.consent a,
.subscription-notice a {
  color: var(--terracotta);
}

button {
  padding: 16px 24px;
  color: #FFFFFF;
  background: var(--coral);
  border: 0;
  border-radius: 999px;
  font: 600 0.92rem Montserrat, sans-serif;
  cursor: pointer;
}

button:hover {
  background: var(--terracotta);
}

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

.subscription-notice {
  margin: -4px 4px 0;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.72;
  text-align: center;
}

#status {
  min-height: 24px;
  color: var(--terracotta);
  line-height: 1.5;
}

#result {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--sand);
  text-align: center;
}

.ascendant-card {
  margin: 24px 0 30px;
  padding: 26px clamp(18px, 4vw, 34px);
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 20px;
  text-align: left;
}

.ascendant-label {
  margin: 0 0 8px;
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.ascendant-ruler {
  margin: 8px 0 16px;
  color: var(--terracotta);
  font-weight: 600;
}

.ascendant-explainer {
  margin: 0;
  line-height: 1.7;
}

#chart svg {
  width: min(100%, 590px);
  height: auto;
}

.summary {
  line-height: 1.6;
}

@media (max-width: 560px) {
  body {
    padding: 16px 10px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card {
    border-radius: 16px;
  }

  .ascendant-card {
    border-radius: 16px;
  }

  .subscription-notice {
    margin-right: 0;
    margin-left: 0;
    font-size: 0.7rem;
  }
}
