:root {
  --ink: #17324d;
  --ink-soft: #456075;
  --paper: #fbf8f2;
  --paper-deep: #f1eadf;
  --coral: #ff6b4a;
  --coral-dark: #d94e31;
  --teal: #137a7f;
  --line: #d9d0c2;
  --white: #fffdf9;
  --shadow: 0 18px 50px rgba(23, 50, 77, 0.13);
}

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 16% 9%, rgba(255, 107, 74, 0.10), transparent 20rem), var(--paper);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
}

button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 2.5rem));
  min-height: calc(100vh - 5.4rem);
  margin: 2.4rem auto 1.8rem;
  display: grid;
  grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr);
  overflow: hidden;
  border: 1px solid rgba(23, 50, 77, 0.13);
  border-radius: 1.7rem;
  background: var(--white);
  box-shadow: var(--shadow);
}

.intro-panel {
  position: relative;
  padding: clamp(2rem, 5vw, 5.5rem) clamp(1.75rem, 4.5vw, 4.4rem);
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.intro-panel::after {
  position: absolute;
  z-index: 0;
  content: "";
  width: 18rem;
  height: 18rem;
  right: -9rem;
  bottom: -9rem;
  border: 2.2rem solid rgba(255, 107, 74, 0.9);
  border-radius: 50%;
}

.intro-panel > * { position: relative; z-index: 1; }

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: clamp(3rem, 9vh, 6.5rem);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pulse-mark { display: flex; align-items: flex-end; gap: 3px; height: 1rem; }
.pulse-mark i { display: block; width: 3px; border-radius: 10px; background: var(--coral); }
.pulse-mark i:nth-child(1) { height: .4rem; }
.pulse-mark i:nth-child(2) { height: 1rem; }
.pulse-mark i:nth-child(3) { height: .62rem; }

.eyebrow {
  margin: 0 0 .75rem;
  font-family: "DM Mono", ui-monospace, monospace;
  color: var(--coral);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.intro-panel h1, .activity-panel h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.05;
}

.intro-panel h1 { max-width: 11ch; font-size: clamp(2.7rem, 5vw, 5rem); letter-spacing: -.055em; }
.intro-panel h1 em { color: #ffd2c7; font-weight: 600; }

.intro-copy { max-width: 32rem; margin: 1.6rem 0 0; color: #d8e2e7; font-size: 1.06rem; }

.studio-note {
  display: flex;
  gap: .65rem;
  max-width: 31rem;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #d8e2e7;
  font-size: .89rem;
}
.studio-note span { color: var(--coral); }
.studio-note p { margin: 0; }
.studio-note strong { color: var(--white); }

.resource-links { margin-top: 2.1rem; }
.resource-links p { margin: 0 0 .65rem; color: #adc1ce; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.resource-links a { display: block; width: fit-content; margin-top: .5rem; color: var(--white); font-weight: 600; font-size: .9rem; text-decoration-color: var(--coral); text-underline-offset: .25rem; }
.resource-links a span { color: var(--coral); }

.activity-panel { position: relative; padding: clamp(2rem, 4.8vw, 4.8rem); background: var(--white); }
.panel-header { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.activity-panel h2 { font-size: clamp(2rem, 3.5vw, 3.35rem); letter-spacing: -.04em; }
.time-note { margin: .15rem 0 0; white-space: nowrap; color: var(--ink-soft); font-family: "DM Mono", monospace; font-size: .72rem; }

.pulse-rail { display: flex; gap: 1.1rem; padding: 0; margin: 2.5rem 0 2rem; list-style: none; }
.pulse-rail li { display: flex; align-items: center; gap: .5rem; color: #9aa9b2; font-size: .75rem; }
.pulse-rail li:not(:last-child)::after { content: ""; width: min(4vw, 4rem); height: 1px; margin-left: .55rem; background: var(--line); }
.pulse-rail span { display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 1px solid currentColor; border-radius: 50%; font-family: "DM Mono", monospace; font-size: .7rem; }
.pulse-rail .active { color: var(--coral-dark); }
.pulse-rail .active span { border-color: var(--coral); background: var(--coral); color: var(--white); }

.challenge-set { margin: 0; padding: 0; border: 0; }
.challenge-set legend { margin-bottom: 1rem; font-weight: 700; font-size: .96rem; }
.challenge-list { display: grid; gap: .7rem; }
.challenge-card {
  width: 100%;
  min-height: 4.75rem;
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 1rem;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.challenge-card:hover, .challenge-card:focus-visible { transform: translateX(.28rem); border-color: var(--coral); background: #fff8f5; box-shadow: 0 8px 20px rgba(23, 50, 77, .08); outline: none; }
.challenge-card.selected { border-color: var(--coral); background: #fff2ed; }
.card-number { color: var(--coral-dark); font-family: "DM Mono", monospace; font-size: .7rem; }
.challenge-card strong { display: block; font-size: .97rem; }
.challenge-card small { display: block; margin-top: .08rem; color: var(--ink-soft); font-size: .77rem; line-height: 1.35; }
.arrow { color: var(--coral-dark); font-size: 1.25rem; }

.recommendation { margin-top: 2rem; padding: clamp(1.25rem, 3.4vw, 2.2rem); border: 1px solid var(--ink); border-radius: 1rem; background: #eef7f5; animation: rise .32s ease both; }
@keyframes rise { from { transform: translateY(.65rem); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.recommendation[hidden] { display: none; }
.recommendation-topline { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--teal); font-size: .82rem; font-weight: 700; text-decoration: underline; text-underline-offset: .22rem; }
.recommendation-heading { display: flex; gap: 1rem; align-items: center; margin-top: .5rem; }
.icon-orbit { display: grid; flex: 0 0 auto; place-items: center; width: 3.5rem; height: 3.5rem; border: 1px solid var(--teal); border-radius: 50%; color: var(--teal); font-size: 1.3rem; }
.context-label { margin: 0 0 .2rem; color: var(--teal); font-family: "DM Mono", monospace; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.recommendation-heading h2 { font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.recommendation-summary { margin: 1.4rem 0; font-size: 1.02rem; }

.experiment-ticket { position: relative; margin: 1.15rem 0; padding: 1.1rem 1.25rem; border: 1px dashed #91aaa5; border-radius: .55rem; background: var(--white); }
.experiment-ticket::before, .experiment-ticket::after { position: absolute; top: 50%; width: .75rem; height: .75rem; content: ""; border-radius: 50%; background: #eef7f5; transform: translateY(-50%); }
.experiment-ticket::before { left: -.43rem; border-right: 1px solid #91aaa5; }
.experiment-ticket::after { right: -.43rem; border-left: 1px solid #91aaa5; }
.ticket-label, .prompt-label, .ai-label { display: block; margin-bottom: .4rem; color: var(--teal); font-family: "DM Mono", monospace; font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.experiment-ticket p, .reflection-prompt p, .ai-nudge p { margin: 0; }
.experiment-ticket p { font-weight: 600; }
.reflection-prompt { margin-top: 1.1rem; padding-left: 1rem; border-left: 3px solid var(--coral); }
.ai-nudge { margin-top: 1.1rem; padding: 1rem; border-radius: .6rem; background: #d8efec; }
.ai-nudge .ai-label { color: var(--teal); }
.recommendation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem; margin-top: 1.5rem; }
.primary-button { padding: .8rem 1rem; border: 1px solid var(--ink); border-radius: .45rem; background: var(--ink); color: var(--white); font-weight: 700; transition: background .18s ease, transform .18s ease; }
.primary-button:hover, .primary-button:focus-visible { background: var(--coral-dark); transform: translateY(-1px); outline: none; }
.copy-status { margin: 0; min-height: 1.2rem; color: var(--teal); font-size: .85rem; font-weight: 600; }

footer { width: min(1180px, calc(100% - 2.5rem)); margin: 0 auto 2.1rem; color: var(--ink-soft); font-size: .78rem; text-align: center; }
footer p { margin: 0; }

@media (max-width: 830px) {
  .page-shell { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .intro-panel { padding-bottom: 3rem; }
  .brand-lockup { margin-bottom: 3.2rem; }
  .intro-panel h1 { max-width: 16ch; }
  .activity-panel { padding: 2rem 1.35rem; }
}

@media (max-width: 520px) {
  .page-shell { width: min(100% - 1rem, 1180px); border-radius: 1.1rem; }
  .intro-panel { padding: 1.65rem 1.35rem 2.7rem; }
  .activity-panel { padding: 1.65rem 1.15rem; }
  .panel-header { display: block; }
  .time-note { margin-top: .8rem; }
  .pulse-rail { gap: .55rem; }
  .pulse-rail strong { display: none; }
  .pulse-rail li:not(:last-child)::after { width: 2.4rem; margin-left: .1rem; }
  .challenge-card { grid-template-columns: 2rem minmax(0, 1fr) .85rem; padding: .75rem; }
  .recommendation-topline { align-items: center; }
  .text-button { text-align: right; }
}

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