/* Selected Terrain composition. Ink and paper stay readable if the enhancement fails. */
.channel-note {
  --channel-ink: #101216;
  --channel-paper: #f4f3ee;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  position: relative;
  isolation: isolate;
  /* The poster uses the page gutter above and beside it. The weather row below
     supplies its own breathing room; an extra bottom margin doubled that gap. */
  margin: var(--pad) var(--pad) 0;
  padding: clamp(1.5rem, 3.5vw, 4rem);
  background: var(--channel-ink);
  color: var(--channel-paper);
}
.channel-note * { min-width: 0; }
.channel-note::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/illustrations/channel-terrain-9b844270.png') var(--channel-art-x, 50%) center / cover;
  opacity: 0;
}
.channel-note.is-contrast-ready::before { opacity: 1; }
.channel-visual { aspect-ratio: 1; display: grid; place-items: center; }
.channel-photo, .channel-photo-frame {
  display: block;
  width: 88%;
  height: auto;
  max-width: 400px;
  border: .5rem solid var(--channel-paper);
  object-fit: contain;
  transform: rotate(3deg);
}
.channel-photo-frame {
  max-width: 360px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.channel-photo-frame .channel-photo {
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  object-fit: cover;
  filter: grayscale(1);
  /* Keep the hands and shift the left-hand table outside the photo window. */
  transform: scale(1.28);
  transform-origin: right bottom;
}
.channel-body { padding: clamp(24px, 3vw, 48px); }
.channel-kicker {
  display: block;
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.channel-title {
  font-size: clamp(2rem, 4.1vw, 4.2rem);
  line-height: 1.04;
  /* Leave room for Golos descenders below the last line.
     Return that room to the following gap so the composition keeps its rhythm. */
  padding-bottom: .12em;
  margin-bottom: -.12em;
  letter-spacing: -.025em;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.channel-title span { display: block; padding-bottom: .12em; margin-bottom: -.12em; }
.channel-copy {
  max-width: 42ch;
  overflow-wrap: anywhere;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-top: var(--space-6);
}
.channel-link {
  min-height: 44px;
  margin-top: var(--space-4);
  gap: var(--space-3);
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--channel-paper);
}
.channel-link .link-label { display: inline-block; text-decoration-color: currentColor; }
.channel-link:is(:hover, :focus-visible) .link-label { text-decoration-thickness: 3px; }
.channel-link .link-icon { color: var(--channel-paper); }
.channel-note.is-contrast-ready .channel-canvas-ink {
  color: transparent;
  text-decoration-color: transparent;
}
.channel-note.is-contrast-ready .channel-link:focus-visible { outline: none; }
/* The paragraph and its action share an axis on the dark/cobalt area of the artwork. */
@media (min-width: 701px) {
  .channel-copy, .channel-link { margin-left: 30%; }
}
@media (max-width: 700px) {
  .channel-note { --channel-art-x: 35%; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding: clamp(16px, 5vw, 24px); }
  .channel-visual { aspect-ratio: auto; padding-block: 8px; }
  .channel-photo, .channel-photo-frame { width: 84%; max-width: 320px; border-width: .375rem; }
  .channel-body { padding: clamp(16px, 5vw, 24px); }
  .channel-kicker { margin-bottom: var(--space-4); }
  .channel-title { font-size: clamp(1.375rem, 7.2vw, 2.75rem); letter-spacing: -.015em; }
  .channel-copy { margin-top: var(--space-4); }
}
/* Give enlarged words the available width instead of shrinking the user's text. */
@media (max-width: 360px) {
  .channel-note { padding-inline: 8px; }
  .channel-body { padding-inline: 0; }
}
@media (forced-colors: active) {
  .channel-note { background: Canvas; color: CanvasText; }
  .channel-note::before { display: none; }
  .channel-note.is-contrast-ready .channel-canvas-ink { color: CanvasText; text-decoration-color: currentColor; }
  .channel-link, .channel-link .link-icon { color: LinkText; }
  .channel-note.is-contrast-ready .channel-link:focus-visible { outline: 2px solid Highlight; outline-offset: 4px; }
}

/* Keep the full portrait; the desktop frame follows content height. */
@media (min-width: 701px) {
  .channel-visual { aspect-ratio: auto; }
  .channel-body { padding-block: clamp(16px, 2vw, 32px); }
  .channel-note:has(.channel-motion:not([hidden])) .channel-body { padding-bottom: max(clamp(16px, 2vw, 32px), calc(80px - clamp(1.5rem, 3.5vw, 4rem))); }
  .channel-actions { margin-left: 30%; }
}
.channel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--space-4); }
.channel-actions .channel-link { margin: 0; }
.channel-motion { position: absolute; right: var(--space-6); bottom: var(--space-4); min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--channel-paper); gap: 8px; font: inherit; font-size: var(--text-label); cursor: pointer; }
.channel-motion[hidden] { display: none; }
@media (max-width: 700px) {
  /* The footer grows with enlarged text instead of reserving a fixed height. */
  .channel-motion { position: static; grid-column: 1; justify-self: end; max-width: 100%; }
}
.channel-motion:focus-visible { outline: 2px solid #fff; outline-offset: 4px; box-shadow: 0 0 0 6px #101216; }
.channel-motion .link-label { display: inline-block; text-decoration-color: currentColor; }
.channel-motion:is(:hover, :focus-visible) .link-label { text-decoration-thickness: 3px; }
.channel-motion .link-icon { color: var(--channel-paper); }
/* Stable icon geometry keeps the adaptive strokes aligned in paused frames. */
.channel-note .link:is(:hover, :focus-visible) .link-icon { translate: none; }
.channel-moving-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; }
.channel-note.is-contrast-ready .channel-moving-art { opacity: 1; }
@media (forced-colors: active) { .channel-moving-art, .channel-motion { display: none; } }
@media (forced-colors: active) {
  .channel-note.is-contrast-ready .channel-link .link-icon { color: LinkText; }
}
