/* CastMe public pages. These tokens apply to the homepage and opt-in preview views. */
:root {
  --cm-paper: #f6f6ed;
  --cm-ink: #14251e;
  --cm-moss: #173e35;
  --cm-acid: #dfef98;
  --cm-rule: #aeb6a8;
  --cm-dim: #43554a;
  --cm-serif: Georgia, 'Times New Roman', serif;
  --cm-sans: Manrope, Arial, sans-serif;
}

.cm-sheet { width: min(1280px, calc(100% - clamp(36px, 9vw, 142px))); margin-inline: auto; }
.castme-front { background: var(--cm-paper); color: var(--cm-ink); font-family: var(--cm-sans); }
.castme-front a:focus-visible { outline: 3px solid #a43c70; outline-offset: 4px; }
.castme-front .cm-masthead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(450px, 37vw, 620px);
  background: #202a24;
  color: #fffdf2;
}
.cm-worktable, .cm-masthead::before {
  position: absolute;
  inset: 0;
}
.cm-worktable { z-index: -2; }
.cm-worktable img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 73% center; }
.cm-masthead::before {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(19, 26, 22, .91), rgba(19, 26, 22, .62) 34%, rgba(19, 26, 22, .1) 63%, transparent 77%);
}
.cm-masthead-inner { padding-block: clamp(34px, 5vw, 76px); }
.castme-front .cm-masthead h1 {
  max-width: 7em;
  margin: 0 0 19px;
  color: inherit;
  font: 400 clamp(60px, 7.6vw, 113px)/.92 var(--cm-serif);
  letter-spacing: -.067em;
}
.castme-front .cm-masthead h1 em {
  display: block;
  font: italic 400 1em/.94 var(--cm-serif);
  color: #dfef98;
  letter-spacing: -.07em;
}
.castme-front .cm-masthead .cm-action { background: #fffdf2; color: var(--cm-ink); }
.castme-front .cm-masthead .cm-action:hover { background: var(--cm-acid); }
.castme-front .cm-masthead a:focus-visible { outline-color: #edb9d5; }
.cm-masthead-copy { padding-bottom: 3px; }
.cm-masthead-copy p { margin: 0 0 17px; max-width: 35ch; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; }
.cm-inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 20px; }
.cm-action, .castme-front .cm-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  gap: 19px;
  padding: 0 13px;
  background: var(--cm-moss);
  color: #fffef4;
  font-weight: 750;
  font-size: 13px;
}
.cm-underlink, .castme-front .cm-underlink {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: inherit;
  font-weight: 750;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.cm-action:hover { background: #264f40; }
.cm-underlink:hover { text-decoration-thickness: 2px; }
.cm-from-set { margin-top: clamp(23px, 3vw, 44px); }
.cm-film-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--cm-ink);
  padding: 8px 0 9px;
}
.castme-front .cm-film-bar h2 { margin: 0; font: 400 25px/1.15 var(--cm-serif); }
.cm-film-bar > span { color: var(--cm-dim); font-size: 12px; }
.cm-film-bar > a { padding: 8px 0; font-size: 13px; font-weight: 750; }
.cm-film-bar > a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cm-edit { display: grid; grid-template-columns: 1.24fr 1fr; gap: 9px; }
.cm-edit figure { margin: 0; min-width: 0; }
.cm-edit figure > a { display: block; background: #151817; }
.cm-edit img { width: 100%; aspect-ratio: 2.1; display: block; object-fit: cover; }
.cm-set img { object-position: 50% 48%; }
.cm-screen img { object-position: 79% center; }
@media (min-width: 700px) {
  .cm-edit img { height: clamp(215px, 25.4vw, 370px); aspect-ratio: auto; }
}
.cm-edit figcaption {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: baseline;
  gap: clamp(8px, 1.6vw, 24px);
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--cm-rule);
  font-size: 13px;
  line-height: 1.5;
}
.cm-caption-label { font-weight: 800; }
.cm-edit figcaption small { display: block; font-size: 11px; color: var(--cm-dim); }
.cm-desk { padding-block: clamp(38px, 5vw, 76px); }
.cm-desk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 18px; flex-wrap: wrap; margin-bottom: 17px; }
.castme-front .cm-desk-head h2, .castme-front .cm-section-lead h2 {
  color: inherit;
  margin: 0;
  font: 400 clamp(36px, 4.25vw, 67px)/1.04 var(--cm-serif);
  letter-spacing: -.057em;
}
.cm-desk-head p { margin: 0; color: var(--cm-dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.cm-desk-layout { display: grid; grid-template-columns: minmax(0, 2.08fr) minmax(240px, 1fr); gap: clamp(23px, 4vw, 65px); }
.castme-front .hn-call-list { margin: 0; padding: 0; display: block; border-top: 1px solid var(--cm-ink); }
.castme-front .hn-call-list > li { margin: 0; border-bottom: 1px solid var(--cm-rule); }
.castme-front .hn-call-list .hn-call {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 13px 4px 13px 0;
  margin: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: inherit;
}
.castme-front .hn-call-list .hn-call:hover { background: #e8eddd; }
.castme-front .hn-call-title { font-size: 16px; line-height: 1.3; }
.castme-front .hn-call-meta { color: var(--cm-dim); font-size: 12px; line-height: 1.4; }
.castme-front .hn-badge {
  display: inline-block;
  padding: 0 5px;
  background: var(--cm-acid);
  border: 0;
  border-radius: 0;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cm-ink);
}
.castme-front .cm-desk-calls > a { margin-top: 9px; }
.castme-front .cm-desk-aside .hn-feature {
  padding: 23px 23px 18px;
  min-height: 0;
  background: #e9eddb;
  border: none;
  border-top: 3px solid var(--cm-moss);
  border-radius: 0;
  color: var(--cm-ink);
}
.castme-front .cm-desk-aside .hn-feature-copy { padding: 0; }
.castme-front .cm-desk-aside .hn-feature h2 {
  margin: 7px 0 12px !important;
  font: 400 32px/1.05 var(--cm-serif);
  letter-spacing: -.044em;
}
.castme-front .cm-desk-aside .hn-feature h2 em { display: block; font-size: .72em; margin-top: 4px; }
.castme-front .cm-desk-aside .hn-kicker { margin: 0; font-size: 11px; color: var(--cm-dim); }
.castme-front .cm-desk-aside .hn-feature p:not(.hn-kicker), .cm-alerts p { margin: 0 0 12px; font-size: 14px; line-height: 1.55; }
.castme-front .cm-desk-aside .hn-feature-copy > p:not(.hn-kicker) {
  color: var(--cm-ink);
  font-size: 15px;
}
.castme-front .cm-desk-aside .hn-feature a { color: var(--cm-moss); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.cm-alerts { border-top: 1px solid var(--cm-rule); margin-top: 18px; padding-top: 16px; }
.cm-alerts:first-child { margin-top: 0; }
.cm-alerts h3 { margin: 0 0 5px; font-size: 17px; }
.cm-alerts p { margin-bottom: 0; }
.cm-faces { padding: clamp(30px, 4.75vw, 68px) 0; background: #e8eddb; }
.cm-section-lead { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px 32px; margin-bottom: 26px; }
.cm-section-lead p { max-width: 56ch; margin: 11px 0 0; color: var(--cm-dim); }
.castme-front .hn-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.castme-front .hn-people .cmh-performer { display: block; border: 0; border-bottom: 1px solid var(--cm-rule); border-radius: 0; background: transparent; color: inherit; box-shadow: none; }
.castme-front .hn-people .cmh-performer-photo { border-radius: 0; aspect-ratio: .96; }
.castme-front .hn-people .cmh-performer-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.castme-front .hn-people .cmh-performer-copy { padding: 10px 0; }
.castme-front .hn-people .cmh-performer-copy h3 { margin: 1px 0; font: 400 clamp(19px, 2.45vw, 31px)/1.12 var(--cm-serif); }
.castme-front .hn-people .cmh-performer-copy p { margin: 0; font-size: 12px; color: var(--cm-dim); }
.castme-front .hn-people .cmh-performer-craft { font-weight: 800; }
.cm-paths, .cm-members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 3vw, 45px); }
.cm-paths { padding: clamp(35px, 5vw, 72px) 0 20px; }
.cm-paths article { border-top: 2px solid var(--cm-ink); padding-top: 15px; }
.castme-front .cm-paths h2 { margin: 0; font: 400 clamp(30px, 3vw, 47px)/1.02 var(--cm-serif); letter-spacing: -.05em; }
.cm-paths p, .cm-members p { max-width: 43ch; margin: 9px 0; color: var(--cm-dim); font-size: 14px; }
.cm-paths article .cm-underlink { margin-right: 12px; }
.cm-other-tools { grid-column: 1 / -1; border-top: 1px solid var(--cm-rule); padding-block: 10px; }
.cm-other-tools summary { width: fit-content; padding: 8px 0; font-size: 13px; font-weight: 750; cursor: pointer; }
.cm-other-tools a { display: inline-block; padding: 8px 14px 8px 0; text-decoration: underline; font-size: 13px; }
.cm-members { border-top: 1px solid var(--cm-rule); padding-block: 23px 32px; }
.cm-members h3 { margin: 0; font-size: 15px; }
.castme-front .cm-members a { color: var(--cm-moss); }
.cm-home-links { display: none; }
body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .cm-home-links {
  display: flex;
  grid-area: links;
  justify-content: center;
  align-items: center;
  gap: clamp(17px, 4vw, 61px);
}
.cm-home-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cm-ink); font-size: 14px; font-weight: 800; white-space: nowrap; }
.cm-home-links a:hover, .cm-home-links a[aria-current='page'] { text-decoration: underline; text-underline-offset: 6px; }
body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .site-header {
  background: var(--cm-paper);
  color: var(--cm-ink);
  border-bottom: 1px solid var(--cm-rule);
}
body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .site-header .header-inner {
  display: grid;
  grid-template-areas: 'brand links actions';
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 66px;
}
body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .header-inner > .brand { grid-area: brand; }
body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .header-actions { grid-area: actions; }
@media (scripting: enabled) {
  body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .site-header #castme-primary-navigation[data-menu-open='false'] { display: none !important; }
}
@media (scripting: none) {
  body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .site-header .header-inner { display: flex; flex-wrap: wrap; }
}
@media (max-width: 844px) {
  body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .site-header .header-inner {
    grid-template-areas: 'brand actions' 'links links';
    grid-template-columns: 1fr auto;
    gap: 0;
    padding-top: 5px;
  }
  body:has(.castme-front, .sc-directory, .scn-dir, #main .op-filter-drawer, #main [data-cm-casting-index]) .cm-home-links { justify-content: space-between; margin-top: 4px; border-top: 1px solid var(--cm-rule); }
}
@media (max-width: 699px) {
  .castme-front .cm-masthead { min-height: 0; align-items: flex-start; }
  .cm-masthead-inner { padding: 26px 0 clamp(178px, 42vw, 236px); }
  .castme-front .cm-masthead h1 { font-size: clamp(46px, 11vw, 69px); margin-bottom: 12px; }
  .castme-front .cm-masthead h1 em { display: inline-block; }
  .cm-worktable { inset: auto 0 0; height: clamp(230px, 65vw, 350px); }
  .cm-worktable img { object-position: 89% 60%; }
  .cm-masthead::before { background: linear-gradient(180deg, #202a24 0%, #202a24 33%, rgba(32, 42, 36, .52) 52%, transparent 73%); }
  .cm-masthead-copy p { font-size: 14px; margin-bottom: 8px; }
  .cm-film-bar { gap: 7px; }
  .cm-film-bar > span { font-size: 11px; }
  .cm-film-bar > a { font-size: 11px; }
  .cm-edit figcaption { grid-template-columns: 1fr; gap: 3px; font-size: 12px; padding: 9px 0 11px; }
  .cm-desk-layout { grid-template-columns: 1fr; }
  .cm-desk-head { margin-bottom: 13px; }
  .castme-front .hn-people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cm-paths, .cm-members { grid-template-columns: 1fr; }
  .cm-members { gap: 12px; }
}
@media (max-width: 374px) {
  .cm-edit { grid-template-columns: 1fr; gap: 14px; }
  .cm-film-bar { grid-template-columns: 1fr auto; }
  .cm-film-bar > span { display: none; }
  .cm-inline-actions { column-gap: 13px; }
}

/* The existing Showcase directory still decides which work and people are public. */
body:has(.sc-directory) { background: var(--cm-paper); }
#main .sc-directory { color: var(--cm-ink); padding-top: clamp(36px, 5vw, 72px); }
#main .sc-directory .sc-directory-heading h1,
#main .sc-directory .sc-directory-card h2 {
  font-family: var(--cm-serif);
  color: var(--cm-ink);
}
#main .sc-directory .sc-directory-heading h1 {
  margin-top: 0;
  font-size: clamp(48px, 7.7vw, 116px);
  line-height: .98;
  letter-spacing: -.068em;
}
#main .sc-directory .sc-directory-card { border-color: var(--cm-rule); }
#main .sc-directory .sc-directory-card h2 { font-size: clamp(21px, 2.7vw, 33px); }
#main .sc-directory .sc-directory-tools { border-color: var(--cm-ink); }
#main .sc-directory-filters button[aria-pressed="true"] {
  color: var(--cm-ink); background: var(--cm-acid); border-color: var(--cm-moss);
}
body:has(.castme-front) .site-header { background: var(--cm-paper) !important; }
body:has(.castme-front) .site-footer { background: var(--cm-paper); border-color: var(--cm-rule); }
.castme-front .cmh-performer-view { display: none; }
@media (max-width: 699px) {
  .cm-edit img { height: clamp(126px, 33vw, 225px); aspect-ratio: auto; }
  .cm-set img { object-position: 49% center; }
}
@media (max-width: 374px) {
  .cm-edit img { height: auto; aspect-ratio: 2.05; }
}


body:has(.scn-dir) { background: var(--cm-paper); }
#main .scn-dir { --scn-bg: var(--cm-paper); --scn-ink: var(--cm-ink); --scn-line: var(--cm-rule); }
#main .scn-dir .scn-dir-head h1 {
  margin-top: 6px;
  font: 400 clamp(46px, 7.1vw, 106px)/.96 var(--cm-serif);
  letter-spacing: -.061em;
}
#main .scn-dir .scn-card { border-radius: 0; box-shadow: none; }
#main .scn-dir .scn-card-body h2 { font: 400 clamp(19px, 2.05vw, 30px)/1.18 var(--cm-serif); }
#main .scn-dir .scn-chips button { min-height: 44px; border-radius: 0; }
#main .scn-dir .scn-chips button[aria-pressed="true"] {
  color: var(--cm-ink); background: var(--cm-acid); border-color: var(--cm-moss);
}
