/* Hydra brand patterns. Loads after tokens.css; colours, lengths and fonts are tokens.
   Canvas sizes are format constants: slide 1920 x 1080, post 1080 x 1350. */

/* Logo. The supplied PNGs are 1920 x 1080 with transparent padding above and
   below the mark. This box crops that padding, so the logo sizes by width. */
.hy-logo {
  display: block;
  aspect-ratio: 1920 / 270;
  object-fit: cover;
  object-position: center;
}

/* Footer band: closes every slide and post, white logo at the right. */
.hy-band {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  width: 100%;
  height: var(--band-height);
  padding-right: var(--band-inset);
  background: var(--band);
  color: var(--on-band);
}
.hy-band .hy-logo { width: var(--band-logo); }
.hy-band--post { height: var(--band-height-post); }
.hy-band--post .hy-logo { width: var(--band-logo-post); }

/* Emphasis: one key phrase in a headline, on a dark ground. */
.hy-emphasis {
  color: var(--gradient-light);
  background-image: linear-gradient(90deg, var(--gradient-dark), var(--gradient-mid) 50%, var(--gradient-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hy-highlight { color: var(--highlight); }

/* Card: a rounded panel on the ground. */
.hy-card {
  box-sizing: border-box;
  padding: var(--card-pad);
  border-radius: var(--radius-card);
  background: var(--inverse);
  color: var(--on-inverse);
}
.hy-card--outline {
  padding: calc(var(--card-pad) - var(--border-thick));
  border: var(--border-thick) solid var(--ink);
  background: var(--ground);
  color: var(--ink);
}
[data-theme="light"] .hy-card--outline {
  padding: calc(var(--card-pad) - var(--border-thin));
  border-width: var(--border-thin);
}
.hy-card--marine {
  background: var(--bright-marine);
  color: var(--pure-white);
}

/* Divider rule. */
.hy-rule {
  margin: 0;
  border: 0;
  border-top: var(--border-thin) solid var(--rule);
}
.hy-rule--vertical {
  align-self: stretch;
  border-top: 0;
  border-left: var(--border-thin) solid var(--rule);
}

/* Slide: 1920 x 1080, band at the foot. Scale the whole slide to fit. */
.hy-slide {
  position: relative;
  box-sizing: border-box;
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-secondary);
}
.hy-slide > .hy-band {
  position: absolute;
  left: 0;
  bottom: 0;
}

/* Post: 1080 x 1350, always on a dark ground. */
.hy-post {
  position: relative;
  box-sizing: border-box;
  width: 1080px;
  height: 1350px;
  overflow: hidden;
  background: var(--black);
  color: var(--pure-white);
  font-family: var(--font-primary);
}
.hy-post > .hy-band {
  position: absolute;
  left: 0;
  bottom: 0;
}
