/* Static editorial timing graphic. All typography inherits the site's fonts. */
.interval-story {
  --story-ink: #111413;
  --story-paper: #f2f0e9;
  --story-work: #b4ff3b;
  --story-forest: #244432;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 2.3vw, 34px);
  border: 1px solid rgba(242, 240, 233, .18);
  background: var(--story-ink);
  color: var(--story-paper);
  font-family: inherit;
  font-variant-numeric: tabular-nums;
}

.interval-story *,
.interval-story *::before,
.interval-story *::after { box-sizing: border-box; }

.interval-story p { margin: 0; }

.interval-story__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(242, 240, 233, .22);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.interval-story__topline > span {
  flex: none;
  color: var(--story-work);
  font-size: 12px;
  letter-spacing: .08em;
}

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

.interval-story__phase {
  min-width: 0;
  padding: 20px 20px 22px;
  background: var(--story-forest);
}

.interval-story__phase--work {
  background: var(--story-work);
  color: var(--story-ink);
}

.interval-story__phase-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.interval-story__key {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
}

.interval-story__key--work { background: var(--story-work); }
.interval-story__key--rest { background: var(--story-paper); }
.interval-story__phase--work .interval-story__key { background: var(--story-ink); }

.interval-story__duration {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.interval-story__value {
  display: block;
  margin-top: 12px;
  font-size: clamp(80px, 8.3vw, 132px);
  font-weight: 650;
  line-height: .98;
  letter-spacing: -.085em;
}

.interval-story__unit {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.interval-story__sequence { margin-top: 31px; }

.interval-story__sequence-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.interval-story__sequence-heading p:last-child {
  color: rgba(242, 240, 233, .76);
  font-size: 12px;
  font-weight: 500;
}

.interval-story .interval-story__timeline {
  display: grid;
  grid-template-columns: 3fr 3fr 3fr 2fr;
  gap: 8px;
  min-width: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.interval-story__cycle { min-width: 0; }

.interval-story__cycle-bar {
  display: grid;
  grid-template-columns: 2fr 1fr;
  height: 43px;
  overflow: hidden;
}

.interval-story__work-bar { background: var(--story-work); }
.interval-story__cycle--last .interval-story__cycle-bar { grid-template-columns: 1fr; }
.interval-story__rest-bar { background: var(--story-paper); }

.interval-story__cycle-caption {
  display: flex;
  justify-content: space-between;
  gap: 5px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.interval-story__cycle-caption span:first-child { color: rgba(242, 240, 233, .6); }

.interval-story__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid rgba(242, 240, 233, .22);
}

.interval-story__total {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.interval-story__total > strong {
  color: var(--story-work);
  font-size: clamp(48px, 4.7vw, 68px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.06em;
}

.interval-story__total > span {
  font-size: 12px;
  line-height: 1.4;
}

.interval-story__totals-by-phase { display: grid; gap: 10px; }

.interval-story__totals-by-phase p {
  display: grid;
  grid-template-columns: 7px minmax(44px, auto) auto;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  line-height: 1.4;
}

.interval-story__totals-by-phase strong { font-size: 16px; font-weight: 650; }
.interval-story__totals-by-phase p > span:last-child { color: rgba(242, 240, 233, .76); }

.interval-story__scope {
  margin-top: 24px;
  color: rgba(242, 240, 233, .68);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .interval-story { padding: 22px; }
  .interval-story__topline { padding-bottom: 18px; }
  .interval-story__phases { margin-top: 20px; gap: 12px; }
  .interval-story__phase { padding: 18px 18px 20px; }
  .interval-story__value { font-size: clamp(78px, 17vw, 112px); }
}

@media (max-width: 430px) {
  .interval-story { padding: 18px; }
  .interval-story__phases { gap: 10px; }
  .interval-story__phase { padding: 16px 14px 18px; }
  .interval-story__value { margin-top: 14px; font-size: clamp(68px, 19vw, 80px); }
  .interval-story .interval-story__timeline { gap: 6px; }
  .interval-story__cycle-bar { height: 38px; }
  .interval-story__sequence { margin-top: 26px; }
  .interval-story__sequence-heading { font-size: 12px; }
  .interval-story__sequence-heading p:last-child { font-size: 12px; }
  .interval-story__cycle-caption { font-size: 12px; gap: 3px; }
  .interval-story__summary { gap: 14px; margin-top: 24px; padding-top: 20px; }
  .interval-story__total > strong { font-size: 49px; }
  .interval-story__scope { margin-top: 21px; }
}

@media print {
  .interval-story {
    break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
