/* =========================================================
   埃奇摩尔庄园谜案 — interactive fiction case study
   ========================================================= */

.case-title h1.manor-title {
  font-size: clamp(42px, 6.2vw, 94px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.case-cover__tag--top {
  top: 18px;
  bottom: auto;
}

.manor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(34px, 5vw, 60px);
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manor-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(48px, 5.4vw, 78px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.05em;
}

.manor-stat span {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.manor-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(32px, 4vw, 48px);
}

.manor-flow__step {
  position: relative;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.manor-flow__step::after {
  content: "→";
  position: absolute;
  top: 12px;
  right: -11px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
}

.manor-flow__step:last-child::after {
  display: none;
}

.manor-flow__num {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.manor-flow__step h3 {
  margin: 15px 0 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.manor-flow__step p {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.manor-note {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.manor-cast {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.manor-cast__card {
  overflow: hidden;
  border: 1px solid rgba(22, 21, 18, 0.12);
  border-radius: 2px;
  background: #f2efe7;
  color: #161512;
}

.manor-cast__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #fff;
}

.manor-cast__info {
  padding: 12px 13px 14px;
}

.manor-cast__info h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.manor-cast__info p {
  margin: 6px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: #6d675c;
}

.manor-props {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.manor-prop {
  margin: 0;
}

.manor-prop img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 2px;
  background: var(--paper-2);
}

.manor-prop figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 9px;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.manor-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.manor-cta h2 {
  margin: 12px 0 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

.manor-cta p {
  max-width: 540px;
  margin: 16px 0 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.manor-platform-note {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .manor-cast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .manor-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 16px;
  }

  .manor-flow__step::after {
    display: none;
  }

  .manor-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .case-title h1.manor-title {
    font-size: clamp(38px, 11.4vw, 54px);
    line-height: 1.06;
  }

  .case-cover--manor {
    aspect-ratio: 16 / 9;
    max-height: none;
  }

  .case-cover__tag--top {
    top: 10px;
    bottom: auto;
  }

  .manor-stats {
    gap: 12px;
  }

  .manor-stat strong {
    font-size: clamp(38px, 11vw, 52px);
  }

  .manor-flow {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .manor-flow__step::after {
    display: none;
  }

  .manor-flow__step h3 {
    margin-top: 8px;
    font-size: 21px;
  }

  .manor-cast {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .manor-cast__info {
    padding: 9px 10px 11px;
  }

  .manor-cast__info h3 {
    font-size: 16px;
  }

  .manor-cast__info p {
    font-size: 7px;
  }

  .manor-props {
    grid-template-columns: 1fr;
  }

  .manor-cta {
    padding: 22px 18px;
  }

  .manor-cta h2 {
    font-size: 34px;
  }
}
