:root {
  --mc-ink: #173231;
  --mc-ink-soft: rgba(23, 50, 49, 0.7);
  --mc-line: rgba(23, 50, 49, 0.12);
  --mc-line-strong: rgba(23, 50, 49, 0.2);
  --mc-paper: #fffdfa;
  --mc-paper-deep: #f6f0e8;
  --mc-sage: #90b3a4;
  --mc-green: #3f725c;
  --mc-cream: #faf6f0;
  --mc-shadow: 0 18px 40px rgba(23, 50, 49, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Arapey", Georgia, serif;
  color: var(--mc-ink);
  background:
    radial-gradient(circle at top right, rgba(144, 179, 164, 0.16), transparent 30%),
    linear-gradient(180deg, #fffdf9 0%, #f8f3eb 100%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.app-shell {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 24px 18px 40px;
}

.hero-card,
.chooser-card,
.workspace-card {
  background: rgba(255, 253, 250, 0.92);
  border: 1px solid var(--mc-line);
  box-shadow: var(--mc-shadow);
}

.hero-card {
  padding: 18px 0 28px;
  text-align: left;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 320px);
  gap: 24px;
  align-items: center;
}

.hero-copy-block {
  min-width: 0;
}

.hero-visual {
  min-width: 0;
  justify-self: end;
}

.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px rgba(23, 50, 49, 0.1));
}

.chooser-card,
.workspace-card {
  padding: 22px;
  border-radius: 26px;
}

.workspace-card {
  margin-top: 18px;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-start;
  text-decoration: none;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.78rem;
  border: 1px solid rgba(23, 50, 49, 0.14);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.78);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(23, 50, 49, 0.68);
}

.eyebrow,
.result-kicker {
  display: inline-block;
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(23, 50, 49, 0.55);
}

.eyebrow {
  margin-top: 18px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Gloock", Georgia, serif;
  font-weight: 400;
  color: var(--mc-ink);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.08;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.14;
}

p,
label,
button,
input {
  font-size: 1.12rem;
}

.hero-copy,
.chooser-copy,
.task-copy,
.subtle-note,
.field-help,
.result-panel p,
.footer-note {
  margin: 0;
  line-height: 1.55;
  color: var(--mc-ink-soft);
}

.hero-copy {
  max-width: 35rem;
  margin: 12px 0 0;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-notes span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.82);
  border: 1px solid rgba(23, 50, 49, 0.11);
  color: rgba(23, 50, 49, 0.72);
  font-size: 0.98rem;
}

.chooser-card h2 {
  margin-bottom: 8px;
}

.task-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.task-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--mc-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 240, 232, 0.72));
  color: var(--mc-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.task-card::after {
  content: "Start";
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(23, 50, 49, 0.5);
}

.task-card:hover,
.task-card:focus-visible {
  border-color: rgba(63, 114, 92, 0.38);
  box-shadow: 0 14px 26px rgba(23, 50, 49, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.task-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(63, 114, 92, 0.09);
  border: 1px solid rgba(63, 114, 92, 0.12);
  font-family: "Gloock", Georgia, serif;
  font-size: 1rem;
}

.task-card__copy {
  display: block;
}

.task-card__title {
  display: block;
  font-family: "Gloock", Georgia, serif;
  font-size: 1.24rem;
  line-height: 1.2;
}

.task-card__body {
  display: block;
  margin-top: 4px;
  color: var(--mc-ink-soft);
  line-height: 1.45;
}

.task-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ghost-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--mc-line-strong);
  background: transparent;
  color: var(--mc-ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.ghost-button:hover,
.ghost-button:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: rgba(63, 114, 92, 0.34);
  background: rgba(144, 179, 164, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.button--secondary {
  width: 100%;
}

.task-panel h2 {
  margin-bottom: 6px;
}

.task-copy,
.subtle-note {
  max-width: 38rem;
}

.subtle-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mc-line);
  font-size: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--button-row {
  justify-content: end;
}

.field-label {
  font-family: "Gloock", Georgia, serif;
  font-size: 1.08rem;
}

.field-help {
  font-size: 0.96rem;
}

input[type="number"],
input[type="file"] {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--mc-line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--mc-ink);
}

input[type="number"]:focus,
input[type="file"]:focus {
  outline: 2px solid rgba(63, 114, 92, 0.18);
  border-color: rgba(63, 114, 92, 0.38);
}

.result-panel {
  margin-top: 20px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 246, 240, 0.88));
  border: 1px solid var(--mc-line);
}

.result-panel h3 {
  margin-bottom: 10px;
}

.result-panel p + p {
  margin-top: 8px;
}

.matches-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mc-line);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(144, 179, 164, 0.11);
  border: 1px solid rgba(63, 114, 92, 0.16);
  color: var(--mc-ink);
  font-size: 1rem;
}

.footer-note {
  margin-top: 18px;
  text-align: center;
  font-size: 1rem;
}

.footer-link {
  font-family: "Gloock", Georgia, serif;
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 50, 49, 0.2);
}

.footer-link:hover,
.footer-link:focus-visible {
  border-bottom-color: rgba(23, 50, 49, 0.55);
  outline: none;
}

@media (max-width: 820px) {
  .hero-card__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-visual {
    max-width: 320px;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 20px 14px 34px;
  }

  .chooser-card,
  .workspace-card {
    padding: 18px;
    border-radius: 22px;
  }

  .hero-card {
    padding: 12px 0 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-notes {
    gap: 8px;
  }

  .hero-notes span {
    font-size: 0.92rem;
  }

  .task-card {
    grid-template-columns: auto 1fr;
  }

  .task-card::after {
    display: none;
  }

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

  .task-top {
    margin-bottom: 12px;
  }

  .ghost-button,
  .button {
    width: 100%;
  }
}
