:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --paper-deep: #efede5;
  --surface: #fffefa;
  --ink: #192026;
  --ink-soft: #565d5e;
  --muted: #777b76;
  --line: #deded5;
  --acid: #d9f36a;
  --acid-deep: #bfd94b;
  --green: #356951;
  --amber: #98651d;
  --red: #985049;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --shadow: 0 18px 52px rgb(33 35 26 / 5%);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: inherit;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--acid-deep);
  outline-offset: 4px;
}

.page-shell {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 5;
  top: 12px;
  left: 12px;
  padding: 12px 16px;
  transform: translateY(-150%);
  background: var(--acid);
}

.skip-link:focus {
  transform: translateY(0);
}

.masthead,
.project-navigation,
.wordmark,
.panel-heading,
.privacy-note,
.form-actions,
.input-meta,
.result-heading,
.recommendation-topline,
.site-footer {
  display: flex;
  align-items: center;
}

.masthead {
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  gap: 11px;
  font-size: 14px;
  font-weight: 660;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark-icon {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-family: var(--serif);
  font-size: 17px;
}

.project-navigation {
  gap: 25px;
}

.project-navigation a {
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.project-navigation a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.intro {
  max-width: 780px;
  padding-block: 76px 58px;
}

.eyebrow,
.step-label,
.process-kicker {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid-deep);
}

.intro h1,
.process-hero h1 {
  margin: 20px 0 15px;
  font-family: var(--serif);
  font-size: clamp(56px, 8.3vw, 101px);
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 0.91;
}

.intro h1 span {
  color: #6b7068;
}

.intro-copy,
.process-summary {
  max-width: 590px;
  margin: 25px 0 22px;
  color: var(--ink-soft);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
}

.privacy-note {
  gap: 9px;
  color: var(--green);
  font-size: 12px;
  line-height: 1.5;
}

.privacy-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(350px, 0.87fr) minmax(380px, 1fr);
  align-items: start;
  gap: 26px;
}

.input-panel,
.output-panel {
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.input-panel {
  position: sticky;
  top: 20px;
}

.panel-heading,
.result-heading,
.recommendation-topline {
  justify-content: space-between;
  gap: 14px;
}

.panel-heading h2 {
  margin: 9px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.local-pill {
  padding: 6px 9px;
  border: 1px solid #d7e3cb;
  border-radius: 40px;
  color: var(--green);
  font-size: 10px;
  white-space: nowrap;
}

.sample-section {
  margin-block: 30px 24px;
}

.sample-heading,
.textarea-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.sample-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sample-button {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 50px;
  color: var(--ink-soft);
  background: transparent;
  font-size: 11px;
  transition: border-color 160ms ease, background 160ms ease;
}

.sample-button:hover {
  border-color: var(--ink-soft);
}

.sample-button[aria-pressed="true"] {
  border-color: var(--acid-deep);
  color: var(--ink);
  background: var(--acid);
}

.textarea-label {
  margin-bottom: 3px;
}

.format-hint {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.format-hint span {
  white-space: nowrap;
}

#conversation {
  width: 100%;
  min-height: 230px;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fcfbf7;
  font-size: 13px;
  line-height: 1.75;
}

#conversation::placeholder {
  color: #888b86;
}

.input-meta {
  justify-content: space-between;
  min-height: 28px;
}

.input-error,
.character-count {
  font-size: 10px;
}

.input-error {
  color: var(--red);
}

.character-count {
  margin-left: auto;
  color: var(--muted);
}

.form-actions {
  gap: 16px;
  margin-top: 8px;
}

.primary-button {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  background: var(--acid);
  font-size: 13px;
  font-weight: 650;
  transition: background 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  background: var(--acid-deep);
  transform: translateY(-1px);
}

.quiet-button,
.copy-button {
  padding: 7px 0;
  border: 0;
  color: var(--ink-soft);
  background: transparent;
  font-size: 12px;
}

.quiet-button:hover,
.copy-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.output-heading {
  margin-bottom: 22px;
}

.message-total,
.question-total,
.legend {
  color: var(--muted);
  font-size: 10px;
}

.recommendation-card {
  padding: 17px;
  border: 1px solid #d8e4b4;
  border-radius: 9px;
  background: #f5f8e8;
}

.recommendation-topline h3,
.result-section h3,
.draft-card h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 680;
}

.confidence-label {
  padding: 4px 8px;
  border-radius: 30px;
  color: var(--green);
  background: #e8efd2;
  font-size: 10px;
  white-space: nowrap;
}

.confidence-label[data-confidence="tentative"] {
  color: var(--amber);
  background: #f2ebda;
}

.recommendation-title {
  margin: 16px 0 6px;
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: -0.05em;
  line-height: 1.15;
}

.recommendation-support {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.result-section {
  margin-top: 24px;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.legend span {
  color: var(--green);
}

.availability-list,
.constraint-list,
.questions-list {
  margin: 14px 0 0;
  padding: 0;
}

.availability-list,
.constraint-list {
  list-style: none;
}

.availability-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-block: 7px;
}

.person-name {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.day-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.day-badge {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: var(--surface);
  font-size: 10px;
}

.day-badge[data-status="yes"] {
  border-color: #cfded3;
  color: var(--green);
  background: #f0f6f1;
}

.day-badge[data-status="maybe"] {
  border-color: #e8dbc1;
  color: var(--amber);
  background: #faf6ed;
}

.day-badge[data-status="no"] {
  border-color: #e7d2cf;
  color: var(--red);
  background: #faf1ef;
}

.constraint-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.constraint-tag {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink-soft);
  background: #fcfbf7;
  font-size: 10px;
}

.empty-constraint {
  color: var(--muted);
  font-size: 11px;
}

.questions-list {
  display: grid;
  gap: 10px;
  margin-left: 18px;
}

.question-item {
  padding-left: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.question-item::marker {
  color: var(--amber);
}

.draft-card {
  margin-top: 24px;
  padding: 16px;
  border-radius: 7px;
  background: var(--paper-deep);
}

.copy-button {
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.draft-message {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.empty-state {
  display: grid;
  min-height: 340px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.empty-state[hidden],
.results[hidden] {
  display: none;
}

.empty-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
}

.empty-state p {
  max-width: 210px;
  font-size: 12px;
  line-height: 1.7;
}

.honesty-note {
  display: flex;
  max-width: 770px;
  gap: 12px;
  margin-block: 33px 92px;
}

.asterisk {
  color: var(--green);
  font-family: var(--serif);
  font-size: 30px;
}

.honesty-note p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.8;
}

.honesty-note a,
.process-content a {
  text-decoration-color: var(--acid-deep);
  text-underline-offset: 3px;
}

.site-footer {
  justify-content: space-between;
  min-height: 72px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

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

.clipboard-buffer {
  position: fixed;
  top: 0;
  left: -9999px;
  width: 1px;
  height: 1px;
  padding: 0;
  opacity: 0;
}

.process-main {
  max-width: 900px;
}

.process-hero {
  padding-block: 93px 68px;
}

.process-hero h1 {
  max-width: 820px;
  font-size: clamp(53px, 8vw, 87px);
}

.process-summary {
  max-width: 680px;
}

.process-content {
  display: grid;
  gap: 38px;
  padding-bottom: 96px;
}

.process-card {
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}

.process-card h2 {
  margin: 8px 0 12px;
  font-family: var(--serif);
  font-size: 33px;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.process-card p,
.process-card li {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.process-card ol,
.process-card ul {
  display: grid;
  gap: 7px;
  padding-left: 22px;
}

.prompt-block {
  overflow-wrap: anywhere;
  margin: 17px 0 0;
  padding: 18px;
  border-left: 3px solid var(--acid-deep);
  color: var(--ink);
  background: #f7f7f0;
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.process-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}

.process-actions .primary-button {
  display: inline-grid;
  place-items: center;
  text-decoration: none;
}

@media (max-width: 920px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .input-panel {
    position: static;
  }

  .intro {
    padding-block: 66px 45px;
  }
}

@media (max-width: 600px) {
  .page-shell {
    width: calc(100% - 38px);
  }

  .masthead {
    min-height: 72px;
  }

  .project-navigation {
    gap: 14px;
  }

  .project-navigation a,
  .wordmark {
    font-size: 11px;
  }

  .home-link {
    display: none;
  }

  .intro {
    padding-block: 59px 36px;
  }

  .intro h1 {
    font-size: clamp(53px, 14vw, 76px);
  }

  .intro-copy {
    margin-block: 19px;
    font-size: 15px;
  }

  .input-panel,
  .output-panel {
    padding: 21px;
  }

  .panel-heading h2 {
    font-size: 23px;
  }

  .local-pill {
    font-size: 9px;
  }

  .availability-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .day-badges {
    justify-content: flex-start;
  }

  .legend {
    max-width: 105px;
    text-align: right;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }

  .honesty-note {
    margin-bottom: 63px;
  }

  .process-hero {
    padding-block: 65px 43px;
  }

  .process-card {
    padding: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
