@import url('./journal.css');

.art-page {
  --journal-paper: #f9f6ec;
  --journal-green: #304b36;
  --journal-ink: #263d2d;
  --journal-clay: #a04c31;
}
.duet-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.duet-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 88%;
  height: 165%;
  left: 44%;
  bottom: -67%;
  border-radius: 50%;
  background: #e9edda;
  transform: rotate(-12deg);
}
.duet-layout {
  width: min(1400px, 100%);
  margin-inline: auto;
  padding: clamp(25px, 3vw, 48px) clamp(12px, 2vw, 28px) clamp(30px, 3vw, 46px) clamp(25px, 5vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(0px, 1vw, 18px);
  align-items: center;
}
.duet-copy { position: relative; z-index: 1; padding-block: 20px; }
.duet-copy h1 {
  color: var(--journal-ink);
  font-size: clamp(61px, 6.6vw, 96px);
  font-weight: 520;
  letter-spacing: -.04em;
  line-height: .99;
  text-wrap: initial;
}
.duet-copy h1 em {
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-synthesis: style;
  color: var(--journal-clay);
  line-height: 1.12;
}
html:lang(ru) .duet-copy { container-type: inline-size; }
html:lang(ru) .duet-copy h1 em {
  /* Fit «на занятии?» to the text column even after the desktop grid reaches its cap. */
  font-size: min(1em, 16.5cqi);
  white-space: nowrap;
}
.duet-copy > p {
  max-width: 44ch;
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.63;
  margin-block: 23px 25px;
  color: #4b594c;
}
.duet-stage { position: relative; padding: 0 0 36px; }
.duet-stage .hero-dance { width: 100%; overflow: clip; }
.duet-beat { position: absolute; inset: 0; transform-origin: 50% 82%; }
.duet-ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #a87b4e;
  stroke-width: 1.45;
  pointer-events: none;
}
.duet-stage .hero-ground { color: #667e55; }
.duet-replay {
  position: absolute;
  right: 10%;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 3px;
  border: 0;
  background: transparent;
  font: italic 19px Georgia, serif;
  font-synthesis: style;
  color: var(--journal-green);
}
.duet-replay svg { width: 17px; height: 17px; }
.duet-replay:hover { text-decoration: underline; text-underline-offset: 5px; }
.invitation-demo { padding-block: clamp(46px, 5.5vw, 82px); background: var(--journal-green); color: #fffdf4; }
.invitation-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 9%; align-items: center; }
.art-page .invitation-maker > h2 { max-width: 15ch; font-size: clamp(36px, 3.65vw, 55px); }
.invitation-maker > p { margin: 12px 0 24px; max-width: 42ch; color: #dde5d6; font-size: 16px; }
.invitation-choice + .invitation-choice { margin-top: 15px; }
.invitation-choice legend { color: #e2e8db; margin: 0 0 7px; font-size: 13px; font-weight: 520; }
.invitation-choice > div { display: flex; flex-wrap: wrap; gap: 6px; }
.invitation-choice label { position: relative; cursor: pointer; }
.invitation-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.invitation-choice span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid #95a58e;
  border-radius: 20px;
  color: #fffdf4;
  font-size: 14px;
  line-height: 1.35;
}
.invitation-choice input:checked + span { background: #edf1e4; color: #253e2c; border-color: #edf1e4; font-weight: 610; }
.invitation-choice input:focus-visible + span, .sample-replies input:focus-visible + span { outline: 3px solid #d79670; outline-offset: 3px; }
.apply-example { margin-top: 16px; padding: 8px 15px; border: 0; border-radius: 4px; color: var(--journal-green); background: var(--journal-paper); }
.message-paper {
  width: 100%;
  max-width: 490px;
  justify-self: end;
  position: relative;
  padding: clamp(22px, 3vw, 40px);
  border-radius: 4px 13px 6px 10px;
  color: var(--journal-ink);
  background: #fbf7ed;
}
.message-label { padding-bottom: 12px; border-bottom: 1px solid var(--journal-line); font-size: 12px; color: #576950; }
.message-heading { display: flex; align-items: center; gap: 6px; margin: 15px 0 10px; }
.message-heading img { width: 29px; height: 29px; mix-blend-mode: multiply; }
.message-heading > span { font-size: 16px; font-weight: 600; }
.message-heading small { margin-left: auto; color: #675240; font-size: 13px; text-align: right; }
.message-text { font-size: clamp(22px, 2.05vw, 32px); letter-spacing: -.025em; line-height: 1.23; }
.sample-replies { margin-top: 18px; }
.sample-replies legend { margin-bottom: 8px; font-size: 12px; color: #576950; }
.sample-replies label { display: flex; position: relative; align-items: center; cursor: pointer; }
.sample-replies label + label { margin-top: 5px; }
.sample-replies input { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); margin: 0; accent-color: var(--journal-green); }
.sample-replies span { width: 100%; padding: 8px 10px 8px 35px; border: 1px solid #c9d0bd; border-radius: 5px; font-size: 14px; }
.sample-replies input:checked + span { background: #e4ebd8; border-color: #849778; }
.schedule-fold { border-bottom: 1px solid var(--journal-line); }
.schedule-fold > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 65px;
  font-weight: 550;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}
.schedule-fold summary::-webkit-details-marker { display: none; }
.schedule-fold > summary span { font-size: 24px; font-weight: 380; }
.schedule-fold[open] > summary span { transform: rotate(45deg); }
.art-page .cast-button {
  grid-column: auto;
  display: grid;
  place-items: center;
  padding: 0;
  margin: 8px 0 21px;
}
.art-page .cast-button .cast-art {
  display: block;
  width: min(100%, 118px);
  aspect-ratio: 1/2;
  margin: 0;
  background: url('/landing-assets/dance-sprites.webp') no-repeat;
  background-size: 300% 100%;
}
.art-page .cast-button .cast-school { background-position: 50% 0; }
.art-page .cast-button .cast-student { background-position: 100% 0; }
.art-page .people-roles { gap: clamp(20px, 3.7vw, 58px); }
.art-page .people-roles article { border-top: 0; padding-top: 0; }
.art-page .people-roles article header { border-top: 1px solid #b0b5a1; padding-top: 14px; }
.art-page .journal-join { background: #efe3d2; }
.art-page .journal-invitation img { width: min(100%, 390px); margin: 15px auto 0; }
.art-page .journal-form { align-self: center; }
@media (min-width: 701px) {
  html:lang(en) .duet-copy h1 { font-size: clamp(44px, 5.3vw, 81px); }
}
@media (min-width: 1500px) {
  .duet-layout { padding-left: 80px; }
}
@media (min-width: 701px) and (max-width: 950px) {
  .duet-layout { padding-inline: 5vw 1vw; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .duet-copy h1 { font-size: clamp(46px, 6.5vw, 64px); }
  .duet-copy > p { font-size: 15px; }
  .invitation-layout { gap: 5%; }
}
@media (max-width: 700px) {
  .duet-layout { grid-template-columns: minmax(0, 1fr); padding: 0 0 32px; gap: 0; }
  .duet-hero::before { width: 115%; height: 380px; left: 20%; top: -60px; bottom: auto; transform: rotate(-16deg); }
  .duet-stage { grid-row: 1; width: min(100%, 440px); margin: 0 auto; padding: 0 4px 12px; }
  .duet-replay { right: 4%; bottom: -2px; font-size: 16px; min-height: 32px; }
  .duet-replay svg { height: 14px; width: 14px; }
  .duet-copy { margin-inline: 20px; padding: 18px 0 0; }
  .duet-copy h1 { font-size: clamp(49px, 10.8vw, 68px); }
  .duet-copy > p { margin-block: 13px 18px; font-size: 16px; line-height: 1.55; }
  .invitation-layout { grid-template-columns: 1fr; gap: 25px; }
  .message-paper { justify-self: start; }
  .art-page .cast-button { width: 66px; margin: 0; grid-column: 1; grid-row: 1/4; align-self: center; }
  .art-page .cast-button .cast-art { width: 100%; }
  .art-page .people-roles article { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 0 16px; border-top: 1px solid #b0b5a1; padding-top: 15px; }
  .art-page .people-roles article header { display: flex; flex-direction: column-reverse; gap: 4px; border: 0; padding: 0; }
  .art-page .people-roles article header span { text-align: left; }
  .art-page .journal-invitation img { display: block; width: min(205px, 58%); margin: 15px 0 0 auto; }
}
@media (max-width: 360px) {
  .duet-copy { margin-inline: 16px; }
  .invitation-choice span { padding-inline: 10px; }
}
