:root {
  color-scheme: light;
  --ink: #23302d;
  --muted: #5f6e68;
  --paper: #fffdf9;
  --canvas: #f7f2ea;
  --forest: #205a4a;
  --forest-dark: #164237;
  --sage: #dce9df;
  --rose: #f2dfd7;
  --line: #d9d3c8;
  --focus: #164237;
  font-family: "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, #e4eee6 0, transparent 28rem),
    var(--canvas);
  line-height: 1.7;
}

a { color: var(--forest-dark); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .75rem 1rem;
  background: white;
}

.skip-link:focus { top: 1rem; }

.site-header,
.site-footer,
.page-shell {
  width: min(100% - 2rem, 760px);
  margin-inline: auto;
}

.site-header {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  color: var(--ink);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.prototype-label,
.sample-tag {
  color: #6d4a2d;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.prototype-label { opacity: .72; }
.development-metadata, .site-development-info { color: var(--muted); font-size: .85rem; margin-block: .75rem; text-transform: none; letter-spacing: normal; font-weight: normal; }
.development-metadata summary, .sample-notice summary { cursor: pointer; }
.development-metadata dd { overflow-wrap: anywhere; }

.page-shell { min-height: calc(100vh - 11rem); }

.hero,
.flow-card,
.message-card {
  margin: 2rem 0 3rem;
  padding: clamp(1.4rem, 5vw, 3rem);
  border: 1px solid rgba(35, 48, 45, .1);
  border-radius: 1.5rem;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 1.2rem 3rem rgba(50, 55, 45, .08);
}

.hero h1,
.flow-card h1,
.message-card h1 {
  margin: .35rem 0 1rem;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: clamp(2rem, 8vw, 3.4rem);
  line-height: 1.2;
  letter-spacing: -.025em;
}

.flow-card h1,
.message-card h1 { font-size: clamp(1.75rem, 7vw, 2.6rem); }

.eyebrow {
  margin: 0;
  color: var(--forest);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.lead { color: var(--muted); font-size: 1.06rem; }

.value-loop {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 999px;
  background: var(--sage);
  font-weight: 700;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: .8rem 1.2rem;
  border: 2px solid var(--forest);
  border-radius: .85rem;
  font: inherit;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-action {
  color: white;
  background: var(--forest);
}

.primary-action:hover { background: var(--forest-dark); }

.secondary-action {
  color: var(--forest);
  background: transparent;
}

.text-link {
  display: block;
  margin-top: 1.2rem;
  text-align: center;
}

.sample-notice,
.privacy-note {
  margin: 1rem 0 3rem;
  padding: 1rem;
  border-left: .3rem solid #b97843;
  background: #fff7ed;
}

.progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: .85rem;
}

.progress progress { width: 100%; accent-color: var(--forest); }

.choice-list {
  display: grid;
  gap: .65rem;
  margin: 1.4rem 0;
  padding: 0;
  border: 0;
}

.choice-list legend {
  margin-bottom: .65rem;
  font-weight: 800;
}

.choice-list label {
  display: flex;
  min-height: 3.3rem;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: white;
  cursor: pointer;
}

.choice-list label:has(input:checked) {
  border: 2px solid var(--forest);
  background: var(--sage);
}

.choice-list input { width: 1.25rem; height: 1.25rem; accent-color: var(--forest); }
.choice-list small { display: block; color: var(--muted); }
.choice-list [data-concern-list] {
  display: grid;
  gap: .65rem;
}
.choice-guidance { color: var(--muted); }
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.validation { display: block; color: #a02323; font-weight: 700; }

.context-summary {
  margin: 1.25rem 0;
  padding: 1rem;
  border-left: .3rem solid var(--forest);
  border-radius: .35rem;
  background: var(--sage);
}
.context-summary p { margin: .55rem 0 0; }
.context-summary .context-label {
  margin: 0 0 .35rem;
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.journey-subject-summary {
  display: grid;
  gap: .75rem;
  margin: 0 0 .75rem;
}

.journey-subject-summary div { display: grid; gap: .2rem; }
.journey-subject-summary dt { color: var(--muted); font-size: .85rem; font-weight: 700; }
.journey-subject-summary dd { margin: 0; font-weight: 700; }
.journey-subject-summary--compact {
  gap: .35rem;
  margin: .55rem 0 0;
  padding-inline: .25rem;
}
.journey-subject-summary--compact dd { font-size: .92rem; }
.reflection-bridge {
  margin: 0 0 1rem;
  color: var(--muted);
}

.form-section { margin-top: 1.5rem; }
.form-section h2 {
  margin: 0 0 .3rem;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.25rem;
}
.form-section--divided {
  margin-top: 2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.choice-list--compact { gap: .45rem; margin-block: 1rem; }
.choice-list--compact label { min-height: 2.9rem; padding-block: .65rem; }
.reflection-section { border-top-color: #cda995; }

.advice-panel {
  position: relative;
  margin: 1.2rem 0;
  padding: 1.4rem;
  border-radius: 1rem;
  background: var(--sage);
}

.advice-panel--self { background: var(--rose); }
.advice-panel h2 { margin: 0 0 .55rem; font-family: Georgia, "Yu Mincho", serif; }
.advice-panel p { margin: 0; }
.advice-icon { font-size: 1.5rem; font-weight: 800; }
.save-feedback {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: .3rem solid var(--forest);
  border-radius: .35rem;
  background: var(--sage);
  font-weight: 700;
}

.account-feedback,
.psa-value-bridge,
.development-auth-notice,
.account-unavailable {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: .85rem;
}

.account-feedback {
  border-left: .3rem solid var(--forest);
  background: var(--sage);
}

.account-feedback p,
.development-auth-notice p { margin: .35rem 0 0; }

.psa-value-bridge {
  margin-block: 2rem;
  border: 1px solid var(--line);
  background: #fffaf1;
}

.psa-value-points {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.psa-value-points li + li {
  margin-top: 0.3rem;
}

.psa-value-bridge h2 {
  margin: .35rem 0 .75rem;
  font-family: Georgia, "Yu Mincho", serif;
}

.person-list { display: grid; gap: 1rem; margin: 1.25rem 0; }
.person-card, .person-confirmed { border: 1px solid #d9d4c8; border-radius: 14px; padding: 1rem; background: #fffdf8; }
.person-card h2, .person-confirmed h2 { margin-top: 0; }
.availability-label { color: var(--forest-dark); font-weight: 700; }
.person-selector .text-link { display: inline-block; margin-top: 1rem; }

.p1-guidance, .p1-status {
  margin: 1.5rem 0;
  padding: 1.15rem;
  border: 1px solid #c9d9cf;
  border-radius: 14px;
  background: #f5faf6;
}
.p1-guidance h2 { margin: .35rem 0 .75rem; }

.development-auth-notice {
  border-left: .3rem solid #b97843;
  background: #fff7ed;
}

.account-actions { display: grid; gap: 1rem; margin-top: 1.5rem; }
.account-existing { padding-top: 1rem; border-top: 1px solid var(--line); }
.account-existing p { margin: 0; font-weight: 700; }
.account-actions .primary-action,
.account-actions .secondary-action { margin-top: .5rem; }
.account-unavailable { background: var(--sage); font-weight: 700; }

.saved-advice-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.saved-advice-actions form { margin: 0; }

.text-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--forest-dark);
  cursor: pointer;
  font: inherit;
  padding: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.text-button:focus-visible { outline: 3px solid var(--focus); }
.celebration { text-align: center; }
.celebration h1 {
  font-size: clamp(1.6rem, 6vw, 2.3rem);
  text-wrap: balance;
}

.site-footer {
  padding: 1rem 0 2rem;
  color: var(--muted);
  font-size: .8rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

@media (max-width: 639px) {
  [data-situation-draft] .choice-list--compact { gap: .35rem; margin-block: .8rem; }
  [data-situation-draft] .choice-list--compact label { min-height: 2.75rem; padding-block: .45rem; }
  [data-situation-draft] .form-section { margin-top: 1.1rem; }
  [data-situation-draft] .form-section--divided { margin-top: 1.4rem; padding-top: 1.2rem; }
}

@media (min-width: 640px) {
  .hero,
  .flow-card,
  .message-card { margin-top: 4rem; }
  .primary-action,
  .secondary-action { width: auto; min-width: 17rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
