:root {
  --green: #00302b;
  --green-soft: #0d493f;
  --pink: #ffc9e1;
  --pink-strong: #ff91be;
  --cream: #fef5e4;
  --sage: #cfe5d8;
  --white: #ffffff;
  --ink: #102f2b;
  --muted: #55716c;
  --border: rgba(0, 48, 43, 0.15);
  --shadow: 0 18px 60px rgba(0, 48, 43, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 93% 2%, rgba(255, 201, 225, 0.7), transparent 24rem),
    var(--cream);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

button,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 190px;
  height: auto;
  display: block;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workshop-label {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--green);
  border-radius: 999px;
  color: var(--green);
  background: rgba(254, 245, 228, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-author {
  min-height: 40px;
  padding: 4px 12px 4px 5px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(0, 48, 43, 0.22);
  border-radius: 999px;
  color: var(--green);
  background: rgba(255, 255, 255, 0.45);
  font-size: 0.75rem;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.header-author:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.78);
}

.header-author img {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 50%;
}

.header-author span {
  white-space: nowrap;
}

main {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 88px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  margin-top: 22px;
  padding: clamp(42px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(0, 48, 43, 0.92), rgba(0, 48, 43, 1)),
    var(--green);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(207, 229, 216, 0.16);
  border-radius: 52% 48% 42% 58%;
  pointer-events: none;
}

.hero::before {
  width: 480px;
  height: 300px;
  top: -145px;
  right: 40px;
  transform: rotate(-16deg);
}

.hero::after {
  width: 380px;
  height: 220px;
  right: -170px;
  bottom: -80px;
  transform: rotate(24deg);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.mini-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--pink);
}

.mini-label {
  color: var(--green-soft);
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.025em;
}

.lede {
  max-width: 700px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--green);
  background: var(--pink);
}

.button-primary:hover {
  background: var(--pink-strong);
}

.button-secondary {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.steps-nav {
  margin: 22px 0 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
}

.steps-nav a {
  min-height: 48px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.steps-nav a:hover {
  background: var(--sage);
}

.steps-nav span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 0.7rem;
}

.intro-card,
.final-action,
.done-card {
  margin-top: 64px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-lg);
}

.intro-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 30px;
  color: var(--green);
  background: var(--sage);
}

.intro-card ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  list-style: none;
}

.intro-card li {
  min-height: 84px;
  padding: 18px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 48, 43, 0.15);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.48);
  font-weight: 700;
}

.prompt-list {
  margin-top: 24px;
  display: grid;
  gap: 24px;
}

.prompt-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 36px rgba(0, 48, 43, 0.055);
}

.prompt-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 20px;
}

.prompt-heading p:not(.mini-label) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.step-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green);
  background: var(--pink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
}

.edit-tip {
  margin: 26px 0 0 74px;
  padding: 14px 16px;
  border-left: 4px solid var(--pink-strong);
  border-radius: 0 10px 10px 0;
  color: var(--green);
  background: rgba(255, 201, 225, 0.34);
  font-size: 0.86rem;
}

.setup-builder {
  margin: 24px 0 0 74px;
  overflow: hidden;
  border: 1px solid rgba(0, 48, 43, 0.14);
  border-radius: var(--radius-md);
  background: rgba(207, 229, 216, 0.38);
}

.setup-builder-summary {
  min-height: 94px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.setup-builder-summary::-webkit-details-marker {
  display: none;
}

.setup-builder-summary h3 {
  margin: 0;
  color: var(--green);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
}

.setup-builder-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.setup-chevron {
  width: 38px;
  height: 38px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 1.4rem;
  transition: transform 180ms ease;
}

.setup-builder[open] .setup-chevron {
  transform: rotate(180deg);
}

.setup-builder-content {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(0, 48, 43, 0.12);
  background: rgba(255, 255, 255, 0.28);
}

.setup-builder-content > p:first-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.setup-group-label {
  margin: 22px 0 9px;
  color: var(--green);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.setup-field {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.setup-field > span {
  color: var(--green-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.setup-field select,
.setup-field input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid rgba(0, 48, 43, 0.23);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.88);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.76rem;
}

.setup-field select:focus,
.setup-field input:focus {
  border-color: var(--pink-strong);
  box-shadow: 0 0 0 3px rgba(255, 145, 190, 0.22);
}

.setup-field input::placeholder {
  color: #78908c;
}

.routine-meta {
  margin: 24px 0 0 74px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.routine-meta div {
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 48, 43, 0.12);
  border-radius: 14px;
  background: var(--sage);
}

.routine-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.routine-meta strong {
  margin-top: 6px;
  display: block;
  color: var(--green);
  font-size: 0.86rem;
}

.prompt-shell {
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 48, 43, 0.24);
  border-radius: var(--radius-md);
  background: var(--green);
}

.prompt-toolbar {
  min-height: 58px;
  padding: 10px 12px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.copy-button {
  min-width: 126px;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  color: var(--green);
  background: var(--pink);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.copy-button:hover:not(:disabled) {
  transform: translateY(-1px);
  background: var(--pink-strong);
}

.copy-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.copy-button.is-copied {
  background: var(--sage);
}

.copy-button.is-error {
  color: var(--white);
  background: #9f3340;
}

.prompt-textarea {
  width: 100%;
  display: block;
  resize: vertical;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  outline: none;
  color: #1b3934;
  background: #f8fbf9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.55;
  tab-size: 2;
}

.prompt-textarea:focus {
  box-shadow: inset 0 0 0 3px rgba(255, 145, 190, 0.35);
}

.prompt-large {
  min-height: 460px;
  padding: 22px;
}

.prompt-medium {
  min-height: 340px;
  padding: 22px;
}

.prompt-short {
  min-height: 110px;
  padding: 18px;
}

.success-check {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-soft);
  font-size: 0.86rem;
}

.success-check span,
.done-mark {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-weight: 700;
}

.success-check span {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.expected-result,
.run-checklist {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 16px;
  color: var(--green);
  background: var(--sage);
}

.expected-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(0, 48, 43, 0.09);
}

.expected-result code {
  margin-top: 5px;
  display: block;
  font-size: 0.78rem;
  white-space: normal;
}

.expected-result .result-note {
  margin: 10px 0 0;
  color: var(--green-soft);
  font-size: 0.8rem;
}

.run-checklist h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
}

.run-checklist ol {
  margin: 12px 0 0;
  padding-left: 22px;
}

.run-checklist li + li {
  margin-top: 8px;
}

.run-checklist code {
  font-size: 0.76rem;
}

.final-action {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 44px;
  color: var(--green);
  background: var(--pink);
}

.final-action p:not(.mini-label) {
  margin: 16px 0 0;
}

.prompt-shell-compact {
  margin-top: 0;
}

.done-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  color: var(--white);
  background: var(--green);
}

.done-card .mini-label {
  color: var(--pink);
}

.done-card p:not(.mini-label) {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.done-mark {
  width: 72px;
  height: 72px;
  color: var(--green);
  background: var(--pink);
  font-size: 2rem;
}

.optional-routines {
  margin-top: 72px;
}

.optional-routines-intro {
  max-width: 780px;
}

.optional-routines-intro > p:not(.mini-label) {
  margin: 16px 0 0;
  color: var(--muted);
}

.optional-routine-list {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.optional-routine-card {
  border-color: rgba(255, 145, 190, 0.48);
}

.optional-routine-heading p:not(.routine-kicker) {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.routine-kicker {
  margin: 0 0 8px;
  color: var(--pink-deep);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.optional-routine-card .routine-meta {
  margin-left: 0;
}

.credit-card {
  margin-top: 24px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--green);
  background: var(--pink);
}

.credit-photo {
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  box-shadow: 0 18px 45px rgba(0, 48, 43, 0.16);
}

.credit-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.credit-copy > p:not(.mini-label) {
  margin: 14px 0 0;
  color: var(--green-soft);
}

.credit-links {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.credit-links a {
  min-height: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(0, 48, 43, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.credit-links a:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.7);
}

.credit-link-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  font-size: 1.25rem;
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
  line-height: 1;
}

footer {
  padding: 42px 20px;
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  color: var(--green);
  background: var(--sage);
}

footer img {
  width: 150px;
  height: auto;
}

footer p {
  margin: 0;
  font-size: 0.83rem;
}

.footer-note {
  opacity: 0.58;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.copy-announcement {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 17px;
  border-radius: 12px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 36px rgba(0, 48, 43, 0.22);
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.copy-announcement.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .steps-nav {
    grid-template-columns: 1fr 1fr;
  }

  .intro-card,
  .final-action {
    grid-template-columns: 1fr;
  }

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

  .done-card {
    grid-template-columns: 64px 1fr;
  }

  .done-card .button {
    grid-column: 1 / -1;
  }

  .credit-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .site-header,
  main {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .site-header {
    padding-top: 18px;
    flex-wrap: wrap;
  }

  .brand img {
    width: 145px;
  }

  .workshop-label {
    padding: 6px 10px;
    font-size: 0.62rem;
  }

  .header-meta {
    width: 100%;
    justify-content: space-between;
  }

  .header-author {
    min-height: 36px;
    padding-right: 10px;
    font-size: 0.68rem;
  }

  .header-author img {
    width: 26px;
    height: 26px;
  }

  .hero {
    margin-top: 10px;
    padding: 36px 24px;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.65rem, 14vw, 4rem);
  }

  .hero-actions {
    display: grid;
  }

  .steps-nav {
    grid-template-columns: 1fr;
  }

  .steps-nav a {
    justify-content: flex-start;
  }

  .intro-card ul {
    grid-template-columns: 1fr;
  }

  .prompt-card {
    padding: 26px 18px;
    border-radius: 22px;
  }

  .prompt-heading {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .step-badge {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .edit-tip {
    margin-left: 0;
  }

  .setup-builder {
    margin-left: 0;
  }

  .setup-builder-summary {
    min-height: 84px;
    padding: 15px 16px;
  }

  .setup-builder-summary h3 {
    font-size: 1.3rem;
  }

  .setup-builder-content {
    padding: 16px;
  }

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

  .routine-meta {
    margin-left: 0;
    grid-template-columns: 1fr;
  }

  .prompt-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .copy-button {
    width: 100%;
  }

  .prompt-large {
    min-height: 410px;
  }

  .prompt-medium {
    min-height: 300px;
  }

  .credit-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .credit-photo {
    width: min(210px, 72vw);
    justify-self: center;
  }

  .credit-links {
    justify-content: center;
  }

  .final-action {
    gap: 24px;
    border-radius: 22px;
  }

  .done-card {
    grid-template-columns: 1fr;
    justify-items: start;
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
