/* A story, as unamotion lays it out (story.js draws it), as the old site had it (story.css), on Daybook's tokens. The
   photograph on top, clean (no shade over it, no words on it), framed by the theme; under it, the kind's own layout on
   surfaces made for its words: the story's ground, or a card, a ticket, a tag, a coupon. So every line reads on
   whatever photograph the business uses. The photograph takes the room the words leave. Sizes follow the story's
   width (cqw: whatever holds a story is an inline-size container), with a 15px floor.
   The business's colour is the Daybook field the story sits in; its theme is its own (data-look):
   - Classic: the photograph full width, white cards on the warm card ground, the colour on its numbers and sticker;
   - Editorial: the photograph in a ruled frame on the page's ground, ink lines round every card, a light headline;
   - Bold: an arched photograph on the business's colour, capitals, cards in its soft tint;
   - Pastel: a tilted rounded photograph on the colour's soft tint, white rounded cards, a light headline;
   - Dark: Daybook's dark page, the photograph's foot melting into it.
   Inter Tight only: the themes differ in weight, size and case, never in face. */
.st-s {
  --bg: var(--db-card);
  --ink: var(--db-fg);
  --ink-2: var(--db-fg-3);
  --card: var(--db-raised);
  --card-ink: var(--db-fg);
  --card-ink-2: var(--db-fg-3);
  --line: transparent;
  --pop: var(--db-field-text);
  --fill: var(--db-field);
  --fill-ink: var(--db-field-ink);
  --card-pop: var(--db-field-text);
  --rule: var(--db-edge);
  --r: 3.5cqw;
  --stk: var(--db-field);
  --stk-ink: var(--db-field-ink);
  --h-w: 500;
  --h-size: 11.5cqw;
  --h-case: none;
  --h-ls: -0.04em;
  --h-ink: var(--ink);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-db);
  letter-spacing: -0.01em;
}
.st-s__ph {
  position: relative;
  flex: 1 1 0;
  min-height: 14%;
  overflow: hidden;
}
.st-s__ph img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.st-s__in {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 2.6cqw;
  padding: 6cqw 7cqw 6.5cqw;
}
/* no photograph: the words in the middle of the ground, under the viewer's own bar */
.st-s[data-photo="none"] .st-s__in {
  flex: 1;
  justify-content: center;
  padding-top: 22cqw;
}

/* the words */
.st-s p {
  margin: 0;
}
.st-s__kick {
  color: var(--ink-2);
  font: 400 max(15px, 5.2cqw)/1.25 var(--font-db);
}
.st-s__h {
  color: var(--h-ink);
  font: var(--h-w) max(24px, var(--h-size))/1.02 var(--font-db);
  letter-spacing: var(--h-ls);
  text-transform: var(--h-case);
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.st-s__sub {
  color: var(--ink-2);
  font: 400 max(15px, 4.9cqw)/1.3 var(--font-db);
}
.st-s__rows {
  display: flex;
  flex-direction: column;
  padding: 0;
  list-style: none;
}
.st-s__rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3cqw;
  padding: 2.2cqw 0;
  border-top: 1px solid var(--rule);
  font: 400 max(15px, 4.9cqw)/1.25 var(--font-db);
}
.st-s__rows li:first-child {
  border-top: 0;
}
.st-s__rows b {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
/* a surface for words: the card colour, the theme's corners, Editorial's ink line round it */
.st-s__card,
.st-s__ticket,
.st-s__tag,
.st-s__coupon,
.st-s__chip {
  border-radius: var(--r);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--card-ink);
}
:is(.st-s__card, .st-s__ticket, .st-s__tag, .st-s__coupon, .st-s__chip) :is(.st-s__kick, .st-s__sub) {
  color: var(--card-ink-2);
}
:is(.st-s__card, .st-s__ticket, .st-s__tag, .st-s__coupon) .st-s__h {
  color: var(--card-ink);
}
.st-s__card li {
  border-top-color: color-mix(in srgb, var(--card-ink) 13%, transparent);
}

/* tomorrow's classes: the day, then its timetable on a card */
.st-s__card {
  margin-top: 1cqw;
  padding: 1cqw 4cqw;
}
/* the last spots: the count, big, in the business's colour beside its words; then the class */
.st-s__count {
  display: flex;
  align-items: center;
  gap: 3cqw;
}
.st-s__num {
  color: var(--pop);
  font: var(--h-w) max(60px, 27cqw)/0.8 var(--font-db);
  letter-spacing: -0.05em;
}
.st-s__unit {
  max-width: 30cqw;
  color: var(--ink);
  font: 500 max(15px, 5.4cqw)/1.1 var(--font-db);
  letter-spacing: -0.02em;
}
.st-s--spots {
  --h-size: 9.5cqw;
}
/* the event: a ticket, its stub with the day and the hour, its notches and tear line, the event beside */
.st-s__ticket {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  margin-top: 1cqw;
  overflow: hidden;
  --h-size: 7.4cqw;
}
.st-s__stub {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2cqw;
  padding: 4cqw 4.5cqw;
  border-right: 1.5px dashed color-mix(in srgb, var(--card-ink) 32%, transparent);
  text-align: center;
}
.st-s__stub::before,
.st-s__stub::after {
  content: "";
  position: absolute;
  right: calc(-3cqw - 1px);
  width: 6cqw;
  height: 6cqw;
  border-radius: 50%;
  background: var(--bg);
}
.st-s__stub::before {
  top: -3cqw;
}
.st-s__stub::after {
  bottom: -3cqw;
}
.st-s__stub b {
  color: var(--card-pop);
  font: var(--h-w) max(22px, 8.5cqw)/1 var(--font-db);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.st-s__stub span {
  font: 500 max(15px, 5cqw)/1.1 var(--font-db);
  font-variant-numeric: tabular-nums;
}
.st-s__tbody {
  display: flex;
  flex-direction: column;
  gap: 1.2cqw;
  min-width: 0;
  padding: 4cqw 4.5cqw;
}
/* the new class: its badge, its name, its day on a chip */
.st-s__badge {
  align-self: flex-start;
  padding: 1.8cqw 3.6cqw;
  border-radius: var(--radius-db-full);
  background: var(--fill);
  color: var(--fill-ink);
  font: 600 max(15px, 4.6cqw)/1 var(--font-db);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.st-s__chip {
  align-self: flex-start;
  padding: 2.2cqw 3.8cqw;
  font: 500 max(15px, 5cqw)/1.2 var(--font-db);
  font-variant-numeric: tabular-nums;
}
/* the team: a portrait, a name tag laid over its foot, their days on a chip */
.st-s__tag {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1cqw;
  margin-top: -15cqw;
  padding: 4cqw 5cqw;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-db-float);
}
.st-s[data-photo="none"] .st-s__tag {
  margin-top: 0;
}
/* the offer: a coupon, its price big in the business's colour, a dashed line inside its edge */
.st-s__coupon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1cqw;
  margin-top: 1cqw;
  padding: 6cqw 5cqw;
  outline: 1.5px dashed color-mix(in srgb, var(--card-ink) 38%, transparent);
  outline-offset: -2.6cqw;
  text-align: center;
  --h-size: 8cqw;
}
.st-s__price {
  color: var(--card-pop);
  font: var(--h-w) max(52px, 23cqw)/0.9 var(--font-db);
  letter-spacing: -0.045em;
}

/* the link sticker, then the business */
.st-s__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  box-sizing: border-box;
  max-width: 100%;
  margin-top: 1.5cqw;
  padding: 9px 13px;
  border: 0;
  border-radius: 10px;
  background: var(--stk);
  box-shadow: var(--shadow-db-float);
  color: var(--stk-ink);
  cursor: pointer;
  font: 600 15px/1 var(--font-db);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.st-s__link span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.st-s__link .bl-icon {
  flex: none;
  width: 16px;
  height: 16px;
}
button.st-s__link:focus-visible {
  outline: 2px solid var(--db-focus);
  outline-offset: 3px;
}
.st-s__brand {
  display: flex;
  align-items: center;
  gap: 2.5cqw;
  margin-top: 1cqw;
  font: 500 max(15px, 4.8cqw)/1.2 var(--font-db);
}
.st-s__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: max(24px, 8cqw);
  height: max(24px, 8cqw);
  border-radius: 50%;
  background: var(--fill);
  color: var(--fill-ink);
  font: 500 max(15px, 5cqw)/1 var(--font-db);
}
.st-s__brand b {
  min-width: 0;
  overflow: hidden;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ---------------------------------------------------------------- the themes */
.st-s[data-look="editorial"] {
  --bg: var(--db-bg);
  --card: var(--db-bg-2);
  --ink-2: var(--db-fg-2);
  --card-ink-2: var(--db-fg-2);
  --line: var(--db-fg);
  --pop: var(--db-fg);
  --fill: var(--db-fg);
  --fill-ink: var(--db-bg);
  --card-pop: var(--db-fg);
  --rule: var(--db-edge-3);
  --r: 0px;
  --stk: var(--db-fg);
  --stk-ink: var(--db-bg);
  --h-w: 300;
  --h-size: 13cqw;
  --h-ls: -0.045em;
}
.st-s[data-look="editorial"] .st-s__ph {
  margin: 10cqw 7cqw 0;
  box-shadow: 0 0 0 1px var(--db-fg);
}
.st-s[data-look="editorial"] .st-s__badge {
  border-radius: 0;
}
.st-s[data-look="bold"] {
  --bg: var(--db-field);
  --ink: var(--db-field-ink);
  --ink-2: color-mix(in srgb, var(--db-field-ink) 80%, transparent);
  --card: var(--db-field-soft);
  --card-ink: var(--db-fg);
  --card-ink-2: var(--db-fg-2);
  --pop: var(--db-field-ink);
  --fill: var(--db-field-ink);
  --fill-ink: var(--db-field);
  --card-pop: var(--db-field-text);
  --rule: color-mix(in srgb, var(--db-field-ink) 22%, transparent);
  --r: 2cqw;
  --stk: var(--db-raised);
  --stk-ink: var(--db-field-text);
  --h-w: 600;
  --h-case: uppercase;
  --h-ls: -0.015em;
  --h-ink: var(--db-field-ink);
}
.st-s[data-look="bold"] .st-s__ph {
  margin: 10cqw 7cqw 0;
  border-radius: 999px 999px 0 0;
}
.st-s[data-look="pastel"] {
  --bg: var(--db-field-soft);
  --ink-2: var(--db-fg-2);
  --card-ink-2: var(--db-fg-2);
  --r: 6cqw;
  --stk: var(--db-raised);
  --stk-ink: var(--db-field-text);
  --h-w: 300;
  --h-size: 12.5cqw;
  --h-ls: -0.04em;
}
.st-s[data-look="pastel"] .st-s__ph {
  margin: 10cqw 8cqw 0;
  border-radius: 7cqw;
  box-shadow: var(--shadow-db-float);
  rotate: -2deg;
}
.st-s[data-look="pastel"] .st-s__link {
  border-radius: var(--radius-db-full);
}
.st-s[data-look="dark"] {
  --bg: var(--db-bg);
  --card: var(--db-card);
  --stk: var(--color-white);
  --stk-ink: var(--color-black);
}
/* the photograph's foot melts into the ground; no words lie on it */
.st-s[data-look="dark"] .st-s__ph::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(transparent, var(--bg));
}
