:root {
  color-scheme: light;
  --ink: #292b2a;
  --muted: #777a75;
  --paper: #f7f3ed;
  --card: #fffefa;
  --line: #e8e1d8;
  --accent: #b65b49;
  --accent-dark: #914737;
  --accent-soft: #f5e8e2;
  --olive: #68755d;
  --focus: #3157d5;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 9%, rgba(235, 215, 198, 0.62), transparent 31rem),
    var(--paper);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
  padding: 0.7rem 0.9rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100% - 2rem, 760px);
  margin: 0 auto;
  padding: 3.25rem 0 1.5rem;
}

.intro {
  max-width: 610px;
  margin: 0 auto 2rem;
  text-align: center;
}

.intro-toolbar {
  position: relative;
  display: flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.brand-mark {
  display: grid;
  width: 3rem;
  height: 3rem;
  margin: 0;
  place-items: center;
  border: 1px solid rgba(182, 91, 73, 0.25);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.language-control {
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transform: translateY(-50%);
}

.language-control label {
  color: var(--muted);
  font-size: 0.76rem;
}

.language-control select {
  min-height: 2.35rem;
  padding: 0.35rem 1.8rem 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--card);
  color: var(--ink);
  font-size: 0.82rem;
}

.eyebrow {
  margin: 0;
  color: var(--olive);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 7vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

h1 span {
  color: var(--accent);
  font-style: italic;
}

h1 .title-start {
  color: inherit;
  font-style: normal;
}

.intro-copy {
  max-width: 28rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.planner-card {
  padding: clamp(1.25rem, 5vw, 2.5rem);
  border: 1px solid rgba(92, 75, 58, 0.08);
  border-radius: 1.35rem;
  background: var(--card);
  box-shadow: 0 1.5rem 4rem rgba(73, 58, 44, 0.09);
}

.card-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.card-heading h2 {
  margin: 0.25rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.step-count {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: #f2f0e9;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.question-block {
  min-width: 0;
  margin: 0;
  padding: 1.6rem 0 0;
  border: 0;
}

.question-block legend {
  width: 100%;
  padding: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.question-number {
  display: inline-block;
  margin-right: 0.5rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.choice-row {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.yes-no-choice {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: #4c4e49;
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 140ms ease, background 140ms ease;
}

.yes-no-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

input[type="radio"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
}

.place-field {
  margin-top: 1rem;
}

.place-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.place-field input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: white;
  color: var(--ink);
}

.place-field input::placeholder {
  color: #9b9c96;
}

.date-type-block {
  margin-top: 0.2rem;
  padding-top: 1.8rem;
}

.date-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.date-type-choice {
  position: relative;
  display: grid;
  min-height: 5.2rem;
  grid-template-columns: 1rem 1fr;
  align-content: center;
  align-items: start;
  column-gap: 0.65rem;
  row-gap: 0.25rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fffefa;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.date-type-choice:hover {
  transform: translateY(-1px);
  border-color: #d7b6a8;
}

.date-type-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.date-type-choice input {
  grid-row: span 2;
  margin-top: 0.1rem;
}

.choice-title {
  font-size: 0.9rem;
  font-weight: 650;
}

.choice-detail {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.plan-button {
  display: flex;
  width: 100%;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: background 140ms ease, transform 140ms ease;
}

.email-consent {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.email-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
}

.email-consent input {
  flex: 0 0 auto;
  margin-top: 0.18rem;
  accent-color: var(--accent);
}

.plan-button:hover {
  transform: translateY(-1px);
  background: var(--accent-dark);
}

.plan-button span[aria-hidden="true"] {
  font-size: 1.15rem;
}

.honest-answer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.honest-answer p {
  margin: 0;
}

.honest-button {
  padding: 0.3rem 0.45rem;
  border: 0;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.honest-button:hover {
  background: var(--accent-soft);
}

.result-card {
  margin-top: 1.6rem;
  padding: 1.35rem;
  border: 1px solid #e8d4c8;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #fcf4ef, #f8f2e8);
}

.result-card h2 {
  margin: 0.4rem 0 0.65rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.result-card > p:not(.eyebrow) {
  margin-bottom: 0.65rem;
  color: #555650;
  line-height: 1.6;
}

.place-note {
  font-size: 0.86rem;
}

.submit-status {
  padding: 0.7rem 0.8rem;
  border-radius: 0.6rem;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.reset-button {
  padding: 0.5rem 0;
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.page-footer {
  padding: 1.25rem 0 0.5rem;
  color: #85867f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.88rem;
  font-style: italic;
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 1.1rem, 760px);
    padding-top: 2rem;
  }

  .intro {
    margin-bottom: 1.4rem;
  }

  .language-control {
    gap: 0.3rem;
  }

  .language-control label {
    font-size: 0.7rem;
  }

  .language-control select {
    padding-left: 0.5rem;
    font-size: 0.76rem;
  }

  .card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .date-type-grid {
    grid-template-columns: 1fr;
  }

  .date-type-choice {
    min-height: 4.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
