/* =========================
   Base reset
   ========================= */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background-color: #f7f7f5;
  color: #1a1a1a;
  line-height: 1.6;
}

/* =========================
   Layout
   ========================= */

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* =========================
   Header
   ========================= */

.header {
  margin-bottom: 3rem;
}

.headline {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.subheadline {
  font-size: 1rem;
  color: #555;
  max-width: 520px;
}

/* =========================
   Intro
   ========================= */

.intro {
  margin-top: 2rem;
}

/* =========================
   Buttons
   ========================= */

button {
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
  border: none;
}

.primary-button {
  background-color: #111;
  color: #fff;
  padding: 0.85rem 1.5rem;
  font-weight: 500;
}

.primary-button:hover {
  background-color: #000;
}

.secondary-button {
  background-color: transparent;
  color: #111;
  padding: 0.75rem 1.25rem;
  border: 1px solid #ccc;
}

.secondary-button:hover {
  background-color: #eee;
}

.link-button {
  background: none;
  color: #555;
  padding: 0;
  margin-top: 0.25rem;
  text-decoration: underline;
}

/* =========================
   Questions
   ========================= */

.questions {
  margin-top: 3rem;
}

.progress {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.25rem;
}

.question {
  background-color: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2.5rem;
}

.question-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 1rem;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.option-button {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0.75rem 1rem;
  text-align: left;
}

.option-button:hover {
  background-color: #f0f0f0;
}

/* =========================
   Result
   ========================= */

.result {
  margin-top: 3rem;
}

.result-headline {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.result-intro {
  margin: 0 0 1.5rem;
  color: #666;
  max-width: 520px;
}

.result-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.result-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.result-blurb {
  color: #444;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 420px;
}

.link-button {
  align-self: flex-start;
}

/* =========================
   Utilities
   ========================= */

[hidden] {
  display: none !important;
}
