/* Dream Skill: a fluid Y2K project story inside the shared My Work reading rail. */
.dream-detail {
  --dream-reading-width: 822px;
  --dream-ink: #241d25;
  --dream-copy: #514851;
  --dream-muted: #7d737d;
  --dream-rule: #c9c1ca;
  --dream-paper: #f1edf1;
  --dream-panel: #e8e3e7;
  --dream-panel-light: #f3eff2;
  --dream-berry: #8b1a5b;
  color: var(--dream-ink);
  background: var(--dream-paper);
}

.dream-detail .work-detail__site {
  width: min(calc(100% - 72px), var(--dream-reading-width));
  max-width: var(--dream-reading-width);
  padding-bottom: 76px;
}

.dream-detail .dream-hero {
  display: block;
  min-height: 0;
  padding: 28px 0 24px;
  border-bottom: 1px solid rgba(125, 115, 125, .28);
  background: transparent;
}

.dream-detail .work-hero__copy {
  grid-column: 1 / -1;
  width: 100%;
}

.dream-detail .work-hero h2 {
  margin: 6px 0 0;
  color: var(--dream-ink);
  font-family: var(--work-display);
  font-size: clamp(26px, 2.5vw, 30px);
  font-weight: 610;
  line-height: 1.12;
  letter-spacing: -.022em;
}

.dream-title-link {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.dream-title-link::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: #8b1a5b;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.dream-title-link:hover::after,
.dream-title-link:focus-visible::after { transform: scaleX(1); }

.dream-title-link:focus-visible {
  outline: 2px solid var(--dream-berry);
  outline-offset: 8px;
}

.dream-detail .work-hero__intro {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--dream-copy);
  font-family: var(--work-reading);
  font-size: 14px;
  line-height: 1.6;
}

.dream-article {
  padding-top: 34px;
  font-family: var(--work-reading);
}

.dream-article__copy,
.dream-workflow__steps,
.dream-article__footer {
  width: 100%;
  margin-inline: auto;
}

.dream-article__section + .dream-article__section {
  margin-top: clamp(38px, 5vw, 52px);
}

.dream-article p {
  margin: 0 0 1em;
  color: var(--dream-copy);
  font-size: 14px;
  line-height: 1.75;
}

.dream-article h3 {
  margin: 0 0 14px;
  color: var(--dream-ink);
  font-family: var(--work-display);
  font-size: clamp(15px, 1.45vw, 17px);
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -.008em;
}

.dream-opening__questions {
  margin: 0 0 1em !important;
  padding: 0;
  color: var(--dream-copy) !important;
  font-family: var(--work-reading);
  font-size: 14px !important;
  font-weight: 400;
  line-height: 1.75 !important;
}

.dream-workflow__steps {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
  counter-reset: dream-step;
}

.dream-workflow__step {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  min-width: 0;
  padding: 0;
  counter-increment: dream-step;
}

.dream-workflow__step::before {
  color: var(--dream-copy);
  font-family: var(--work-reading);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  content: counter(dream-step) ".";
}

.dream-workflow__step p {
  margin: 0;
  color: var(--dream-copy);
  font-size: 14px;
  line-height: 1.7;
}

.dream-case-study__intro {
  margin-bottom: 21px;
}

.dream-case-subhead {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin: 25px auto 14px;
}

.dream-case-subhead h4 {
  margin: 0;
  color: var(--dream-ink);
  font-family: var(--work-reading);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .03em;
}

.dream-case-subhead span {
  color: var(--dream-muted);
  font-family: var(--work-reading);
  font-size: 10px;
  letter-spacing: .06em;
}

.dream-dialogue-window {
  width: 100%;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  box-sizing: border-box;
  border-radius: 5px;
  background: rgba(232, 227, 231, .56);
}

.dream-note-frame:focus-visible {
  outline: 2px solid var(--dream-berry);
  outline-offset: 4px;
}

.dream-dialogue {
  display: grid;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 8px clamp(18px, 3vw, 28px) 16px;
}

.dream-dialogue__message {
  display: block;
  width: 100%;
  max-width: 684px;
  margin-inline: auto;
  padding: 0;
  box-sizing: border-box;
}

.dream-dialogue__message--dream {
  margin-bottom: 28px;
  padding-top: 10px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(45, 37, 45, .1);
}

.dream-dialogue__speaker {
  display: inline;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: inherit;
  letter-spacing: 0;
}

.dream-dialogue__speaker--dream {
  display: block;
  margin-bottom: 8px;
}

.dream-dialogue__dream-text {
  display: block;
}

.dream-dialogue__round {
  display: grid;
  width: 100%;
  max-width: 684px;
  margin-inline: auto;
  gap: 10px;
}

.dream-dialogue__round + .dream-dialogue__round {
  margin-top: 30px;
}

.dream-dialogue__round .dream-dialogue__message {
  max-width: none;
  margin: 0;
  padding: 0;
}

.dream-dialogue__content {
  min-width: 0;
}

.dream-dialogue__message p {
  margin: 0 0 .8em;
  color: var(--dream-copy);
  font-size: 13px;
  line-height: 1.75;
}

.dream-dialogue__message p:last-child { margin-bottom: 0; }

.dream-article .dream-dialogue__continuation {
  width: 100%;
  max-width: 684px;
  margin: 10px auto 0;
  padding-left: 0;
  box-sizing: border-box;
  color: var(--dream-muted);
  font-family: var(--work-reading);
  font-size: 18px;
  line-height: 1;
}

.dream-case-subhead--note { margin-top: clamp(32px, 4vw, 42px); }

.dream-note-frame {
  width: 100%;
  height: clamp(640px, 82vh, 820px);
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #302b31;
  border-radius: 5px;
  background: #090809;
  scrollbar-color: #746d75 #181519;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.dream-note-frame img {
  display: block;
  width: min(100%, 560px);
  height: auto;
  margin-inline: auto;
}

.dream-article__footer {
  margin-top: clamp(38px, 5vw, 52px);
  padding-top: 0;
}

.dream-github-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  color: var(--dream-berry);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.dream-github-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform-origin: left;
  transition: transform 180ms ease;
}

.dream-github-link span {
  font-size: 16px;
  transition: transform 180ms ease;
}

.dream-github-link:hover::after,
.dream-github-link:focus-visible::after { transform: scaleX(.82); }

.dream-github-link:hover span,
.dream-github-link:focus-visible span { transform: translate(3px, -3px); }

.dream-github-link:focus-visible {
  outline: 2px solid var(--dream-berry);
  outline-offset: 5px;
}

@media (max-width: 720px) {
  .dream-detail .work-detail__site {
    width: min(calc(100% - 40px), var(--dream-reading-width));
    padding-bottom: 50px;
  }

  .dream-article { padding-top: 30px; }
  .dream-article__section + .dream-article__section { margin-top: 38px; }
  .dream-dialogue { padding: 7px 17px 14px; }
  .dream-dialogue__message--dream { margin-bottom: 24px; padding-top: 8px; padding-bottom: 24px; }
  .dream-dialogue__round { gap: 8px; }
  .dream-dialogue__round + .dream-dialogue__round { margin-top: 24px; }
  .dream-article .dream-dialogue__continuation { max-width: 684px; padding-left: 0; }
  .dream-note-frame { height: clamp(580px, 76vh, 720px); }
}

@media (max-width: 480px) {
  .dream-workflow__steps { gap: 13px; }
  .dream-workflow__step { grid-template-columns: 24px minmax(0, 1fr); gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .dream-title-link::after,
  .dream-github-link::after,
  .dream-github-link span { transition: none; }
}
